/* Shared storefront foundation: loaded synchronously by the common head. */
:root {
  --store-font: Arial, Helvetica, sans-serif;
  --store-text: #30343b;
  --store-muted: #606770;
  --store-accent: #e89100;
  --store-line: #e3e6ea;
  --store-radius: 10px;
}
html { scrollbar-gutter: stable; }
body, p, input, button, select, textarea, .ptsans, .footer-head {
  font-family: var(--store-font);
}
body { color: var(--store-text); background: #fff; line-height: 1.5; }
p { text-align: left; }
h1, h2, h3, h4, h5, h6 { font-family: var(--store-font); line-height: 1.25; }
.home-h1 { font-family: var(--store-font); }
.header-for-light h1, .header-for-dark h1 {
  color: var(--store-text);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.25;
  margin: 0 0 24px;
}
/* Content is visible in its final position at first paint, without entry animations. */
.wow, .animated {
  visibility: visible !important;
  animation: none !important;
  transform: none !important;
}
.page-copy { font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.page-copy p, .page-copy li, .page-copy div, .page-copy span {
  font-family: var(--store-font) !important;
  line-height: inherit;
}
.page-copy p { margin: 0 0 16px; text-align: left !important; }
.page-copy [style*="justify"], .page-copy .text-justify { text-align: left !important; }
.page-copy [style*="font-size"], .page-copy [style*="font-family"] {
  font-family: var(--store-font) !important;
  font-size: inherit !important;
}
.page-copy h2, .page-copy h3 { margin: 28px 0 14px; }
.page-copy img, .page-copy iframe { max-width: 100%; }
.page-copy table { max-width: 100%; }
.page-copy a { color: #946000; text-underline-offset: 3px; }
/* Shared form controls; the serial checker uses the same spacing and typography. */
body .fenix-sn-check {
  max-width: 760px;
  margin: 24px 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  background: #fafbfc;
}
body .fenix-sn-check__form { gap: 12px; align-items: center; }
body .fenix-sn-check__input {
  flex: 1 1 auto;
  width: auto;
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
  font: 16px var(--store-font);
  border: 1px solid #b9c0c8;
  border-radius: 6px;
  box-shadow: none;
}
body .fenix-sn-check__input:focus { outline: 2px solid #ffa200; outline-offset: 2px; }
body .fenix-sn-check__btn {
  min-height: 48px;
  height: 48px;
  border-radius: 6px;
  font: 600 16px var(--store-font);
}
body .fenix-sn-check__hint { margin: 14px 0 0; color: var(--store-muted); font-size: 14px; }
body .fenix-sn-check__frame-wrap { border-radius: 6px; margin-top: 16px; }
body .fenix-sn-check__frame { height: 180px; }
@media (max-width: 767px) {
  body .fenix-sn-check__input { flex: 0 0 auto; width: 100%; }
  body .fenix-sn-check__btn { flex: 0 0 auto; width: 100%; }
}
/* Establish the sidebar order before scripts run, at Bootstrap's breakpoint. */
.storefront-layout { display: flex; flex-wrap: wrap; }
.storefront-layout::before, .storefront-layout::after { display: none; }
.storefront-layout > .sidebar { order: 0; }
.storefront-layout > .main-content { order: 1; min-width: 0; }
@media (max-width: 991px) {
  .storefront-layout > .sidebar { order: 2; width: 100%; }
  .storefront-layout > .main-content { width: 100%; }
}
/* Stock/network feedback needs normal flow, not the floating buy-button slot. */
.product.light .figure-hover-overlay { aspect-ratio: 1; max-height: 253px; }
.product.light .figure-hover-overlay > img {
  width: 100%;
  height: 100%;
  max-width: 253px;
  object-fit: contain;
}
.product.light .product-caption .product-cart.has-cart-error {
  position: static;
  display: block;
  clear: both;
  width: 100%;
  padding: 0 15px;
  text-align: right;
}
.product-cart .cart-error {
  text-align: left;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Navigation order and header position do not depend on DOM-ready/scroll handlers. */
@media (max-width: 767px) {
  #header .navbar-collapse.in { display: flex !important; flex-direction: column; }
  #header .navbar-collapse > .navbar-right { order: 2; }
}
@media (min-width: 992px) {
  #header { position: sticky; top: 0; z-index: 1000; }
}

/* Payment selection uses the same light surface, type and accent as the shop.
   The framework adds its own inline widget stylesheet after this shared head. */
.checkout-payment-choice { clear: both; width: 100%; margin: 24px 0; padding: 0; border: 0; }
.checkout-payment-choice legend { margin-bottom: 16px; font-size: 20px; color: var(--store-text); }
.checkout-payment-choice__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--store-line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: normal;
}
.checkout-payment-choice__option:has(input:checked) { border-color: var(--store-accent); }
.checkout-payment-choice__option:focus-within { outline: 2px solid var(--store-accent); outline-offset: 2px; }
.checkout-payment-choice__option input { flex: 0 0 auto; margin: 0; accent-color: var(--store-accent); }
.checkout-payment-choice__option img { flex: 0 0 60px; object-fit: contain; }
.checkout-payment-choice__description { display: block; color: var(--store-muted); font-size: 15px; }
.checkout-payment-summary { padding: 16px; border-left: 3px solid var(--store-accent); background: #fafbfc; }
body .c-payment-section .c-button {
  background: var(--store-accent) !important;
  border: 0;
  border-radius: 6px;
  font-size: 18px !important;
}
body .c-payment-section .c-button:hover { background: #b66f00 !important; }
.dialog.c-payments-wrapper.storefront-payments {
  color-scheme: light;
  --item-bg-color: #fafbfc;
  --item-border-color: var(--store-line);
  --name-color: var(--store-text);
  font: 16px/1.5 var(--store-font);
  padding: 24px !important;
  overflow-y: auto !important;
}
.dialog.c-payments-wrapper.storefront-payments.dialog-opened {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialog.c-payments-wrapper.storefront-payments .dialog-background {
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
}
.dialog.c-payments-wrapper.storefront-payments .dialog-body {
  position: relative !important;
  inset: auto !important;
  flex: 0 1 520px;
  width: 520px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  margin: auto !important;
  overflow-y: auto;
  background: #fff;
  color: var(--store-text);
  border-radius: var(--store-radius);
  border-top: 4px solid var(--store-accent);
  box-shadow: 0 16px 56px rgba(0, 0, 0, .25);
}
.dialog.c-payments-wrapper.storefront-payments .dialog-body .dialog-header {
  padding: 28px 68px 20px 28px;
  color: var(--store-text);
}
.storefront-payments .c-payment-heading {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.dialog.c-payments-wrapper.storefront-payments .dialog-title {
  font-size: 15px;
  color: var(--store-muted);
  line-height: 1.5;
}
.dialog.c-payments-wrapper.storefront-payments .dialog-body .dialog-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  color: var(--store-text);
  font-size: 20px;
  line-height: 24px;
  opacity: 1;
}
.storefront-payments .dialog-close:hover { background: #f1f3f5; }
.dialog.c-payments-wrapper.storefront-payments .dialog-body .dialog-content {
  padding: 0 28px 24px;
  min-height: 0;
}
.storefront-payments .c-payment-item:not(.c-payment-item-qr):not(.c-payment-item-sbp) {
  padding: 18px !important;
  border-radius: 6px !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.storefront-payments .c-payment-item-inner { align-items: center; }
.storefront-payments .c-payment-item:not(.c-payment-item-qr) .c-payment-header {
  flex: 0 0 64px !important;
}
.storefront-payments .c-payment-image-wrapper { border: 0 !important; }
.storefront-payments .c-payment-image { object-fit: contain; }
.storefront-payments .c-payment-body { min-width: 0; }
.storefront-payments .c-payment-name { font-size: 18px !important; line-height: 1.4 !important; }
.storefront-payments .c-payment-description {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--store-muted) !important;
  opacity: 1 !important;
  overflow-wrap: anywhere;
}
.storefront-payments .c-payment-item:focus-within { outline: 2px solid var(--store-accent); outline-offset: -2px; }
.storefront-payments .dialog-close:focus-visible { outline: 2px solid var(--store-accent); }
.dialog.c-payments-wrapper.storefront-payments .c-payment-footer {
  color: var(--store-muted);
  opacity: 1;
  padding: 20px 0 0;
  font-size: 13px;
}
.storefront-payments .c-payment-footer i { filter: brightness(.45); }
@media (max-width: 480px) {
  .dialog.c-payments-wrapper.storefront-payments { padding: 16px !important; }
  .dialog.c-payments-wrapper.storefront-payments .dialog-body { max-height: calc(100dvh - 32px); }
  .dialog.c-payments-wrapper.storefront-payments .dialog-body .dialog-header { padding: 24px 60px 18px 20px; }
  .dialog.c-payments-wrapper.storefront-payments .dialog-body .dialog-content { padding: 0 20px 20px; }
  .storefront-payments .c-payment-heading { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .dialog.c-payments-wrapper.storefront-payments,
  .dialog.c-payments-wrapper.storefront-payments .dialog-body { transition: none !important; }
}
