/* Product shopping controls: scoped overrides for the existing white storefront. */

/* Smaller, framed product previews keep the menu light and easy to scan. */
body .refresh-header .mega-panel {
  padding: 22px 0 26px;
  border-bottom-color: #dfe6e1;
  box-shadow: 0 18px 30px -16px #173d2b2b;
}
body .refresh-header .mega-top { padding-bottom: 14px; }
body .refresh-header .mega-top strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
}
body .mega-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
body .refresh-header :is(.mega-grid, .mobile-product-grid) .mega-product {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 14px 10px 16px;
  min-width: 0;
  border: 1px solid #e3e9e5;
  border-radius: 10px;
  background: #fff;
  color: #263d2d;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
body .refresh-header .mega-product .mega-product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  flex: 0 0 112px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
body .refresh-header .mega-product .mega-product-visual img {
  display: block;
  width: 112px;
  height: 112px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}
body .refresh-header .mega-product .mega-product-name {
  display: block;
  min-height: 42px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
body .refresh-header :is(.mega-grid, .mobile-product-grid) .mega-product:is(:hover, :focus-visible) {
  border-color: #83a08c;
  box-shadow: 0 6px 18px -10px #234c365c;
  transform: translateY(-2px);
}
body .refresh-header .mega-product:is(:hover, :focus-visible) .mega-product-visual img {
  transform: scale(1.04);
}
body .refresh-header .mega-product:focus-visible {
  outline: 2px solid #184832;
  outline-offset: 3px;
}
@media (max-width: 720px) {
  body .refresh-header :is(.mega-grid, .mobile-product-grid) .mega-product {
    gap: 10px;
    padding: 12px 8px;
  }
  body .refresh-header .mega-product .mega-product-visual {
    height: 96px;
    flex-basis: 96px;
  }
  body .refresh-header .mega-product .mega-product-visual img { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  body .refresh-header :is(.mega-grid, .mobile-product-grid) .mega-product,
  body .refresh-header .mega-product .mega-product-visual img {
    transition: none;
    transform: none;
  }
}

/* A real flag image avoids platform-dependent emoji alignment. */
body .nav-tools .lang-switch[data-language-switch] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 66px;
  min-height: 44px;
  padding-inline: 3px;
  line-height: 1;
  white-space: nowrap;
}
body .lang-switch .language-flag {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 14px;
  margin: 0;
  object-fit: contain;
  border: 1px solid #d6dbd7;
  border-radius: 1px;
  filter: none;
}
body .lang-switch > span { display: block; line-height: 1.2; }

/* Thumbnail column stays on the left at every viewport width. */
body .product-hero > .gallery-shell {
  --gallery-height: clamp(420px, 42vw, 600px);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  align-items: start;
  position: sticky;
  top: 128px;
}
body .gallery-shell .gallery-thumbs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-height: var(--gallery-height);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: #b6c5ba #fff;
  overscroll-behavior: contain;
}
body .gallery-shell .gallery-thumb {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 5px;
  border: 1px solid #dce3de;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
body .gallery-shell .gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
}
body .gallery-shell .gallery-thumb:hover { border-color: #658971; }
body .gallery-shell .gallery-thumb:is(.is-selected, [aria-pressed="true"], [aria-current="true"]) {
  border-color: #184832;
  box-shadow: inset 0 0 0 1px #184832;
}
body .gallery-shell .gallery-thumb:focus-visible,
body .purchase-box .sku-option:focus-visible {
  outline: 2px solid #184832;
  outline-offset: 3px;
}
body .gallery-shell > .product-stage {
  position: relative;
  top: auto;
  display: flex;
  width: 100%;
  height: var(--gallery-height);
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border: 1px solid #e2e7e3;
  border-radius: 4px;
  background: #fff;
}
body .gallery-shell .product-stage > .product-image-zoom[data-zoom-product] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}
body .gallery-shell .product-stage .stage-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  padding: 18px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  filter: none;
  background: #fff;
}
body .gallery-shell .product-image-zoom:focus-visible {
  outline: 2px solid #184832;
  outline-offset: -4px;
}

/* Compact option cards: two clear lines, with an understated selected control. */
body .purchase-box .purchase-heading h2 {
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 12px;
  letter-spacing: 0;
}
body .purchase-box .sku-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  margin: 0 0 18px;
}
body .purchase-box .sku-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  justify-content: normal;
  gap: 4px 8px;
  min-width: 0;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid #ccd7ce;
  border-radius: 15px;
  background: #fff;
  text-align: left;
  color: #263c2f;
  line-height: 1.35;
  overflow-wrap: normal;
  box-shadow: none;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
body .purchase-box .sku-option > strong {
  grid-column: 1;
  grid-row: 1;
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #243d2d;
}
body .purchase-box .sku-option > span {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  color: #9a3126;
  font-variant-numeric: tabular-nums;
}
body .purchase-box .sku-option > small {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  padding-right: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #65736a;
}
body .purchase-box .sku-option::after { content: none; }
body .purchase-box .sku-option:hover {
  border-color: #62816b;
  background: #fcfdfc;
}
body .purchase-box .sku-option:is(.is-selected, [aria-pressed="true"]) {
  border: 1px solid #184832;
  box-shadow: none;
  background: #f7faf7;
}

@media (max-width: 1280px) {
  body .product-hero > .gallery-shell { top: 114px; }
  body .mobile-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .purchase-box .sku-option {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 76px;
    padding: 8px 10px;
    gap: 1px;
  }
  body .purchase-box .sku-option > strong { grid-column: 1; grid-row: 1; padding-right: 0; }
  body .purchase-box .sku-option > span { grid-column: 1; grid-row: 2; }
  body .purchase-box .sku-option > small { grid-column: 1; grid-row: 3; padding-right: 0; }
}
@media (max-width: 1000px) {
  body .product-hero > .gallery-shell {
    --gallery-height: 540px;
    position: relative;
    top: auto;
  }
}
@media (max-width: 720px) {
  body .product-hero > .gallery-shell {
    --gallery-height: clamp(270px, 86vw, 380px);
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }
  body .gallery-shell .gallery-thumbs { gap: 8px; }
  body .gallery-shell .gallery-thumb { padding: 3px; }
  body .gallery-shell .product-stage .stage-image { padding: 10px; }
  body .mobile-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .nav-tools .lang-switch[data-language-switch] { min-width: 62px; gap: 6px; }
  body .purchase-box .purchase-heading h2 { font-size: 14px; margin-bottom: 12px; }
  body .purchase-box .sku-options { gap: 8px; margin-bottom: 16px; }
}
@media (max-width: 380px) {
  body .product-hero > .gallery-shell { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  body .nav-tools .lang-switch[data-language-switch] { min-width: 60px; gap: 5px; padding-inline: 0; }
  body .nav-tools .icon-btn { width: 42px; }
  body .lang-switch .language-flag { width: 18px; height: 13px; flex-basis: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body .gallery-shell .gallery-thumb,
  body .purchase-box .sku-option { transition: none; }
}
@media print {
  body .product-hero > .gallery-shell { position: static; top: auto; --gallery-height: 380px; }
}
