@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto/roboto-variable.ttf") format("truetype");
}

.mega-product-image-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.mega-product-image-button:focus-visible {
  outline: 3px solid rgba(0, 207, 232, .42);
  outline-offset: -3px;
}

.store-product-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  background: rgba(5, 8, 11, .58);
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.store-product-preview-backdrop.show {
  visibility: visible;
  opacity: 1;
}

.store-product-preview-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 110;
  display: flex;
  width: min(560px, 100vw);
  max-width: none;
  flex-direction: column;
  background: #fff;
  box-shadow: 18px 0 54px rgba(5, 8, 11, .24);
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  contain: layout style;
  transition: transform .24s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .24s;
}

.store-product-preview-drawer.open { transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
body.store-gallery-open .store-product-preview-drawer { visibility: hidden; pointer-events: none; }
.product-preview-body { overscroll-behavior-y: contain; }
.product-preview-header button, .product-lightbox-close, .product-lightbox-arrow { touch-action: manipulation; }

.product-preview-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: #fff;
  background: #11161b;
}

.product-preview-header > div { min-width: 0; }
.product-preview-header .drawer-title-label { display: block; color: var(--store-accent); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.product-preview-header h2 { margin: 5px 0 0; overflow: hidden; color: #fff; font-size: 1.35rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.product-preview-header .drawer-close { display: grid; width: 42px; height: 42px; flex: 0 0 42px; padding: 0; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 0; border-radius: 50%; cursor: pointer; }
.product-preview-header .drawer-close:hover { background: rgba(255,255,255,.16); }
.product-preview-header .drawer-close:focus-visible { outline: 3px solid rgba(0,207,232,.45); outline-offset: 2px; }
.product-preview-header .drawer-close svg { width: 21px; height: 21px; }

.product-preview-body { flex: 1; overflow-y: auto; padding: 22px; background: #f5f7f9; -webkit-overflow-scrolling: touch; }
.product-preview-cart-bar { position: relative; z-index: 3; flex: 0 0 auto; padding: 14px 22px 16px; background: rgba(255,255,255,.97); border-top: 1px solid #dbe3ec; box-shadow: 0 -10px 28px rgba(15,23,42,.1); }
.product-preview-cart-button { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; color: #061216; background: var(--store-accent); border: 0; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,157,180,.25); cursor: pointer; font: inherit; font-size: .94rem; font-weight: 900; letter-spacing: .025em; }
.product-preview-cart-button svg { width: 21px; height: 21px; flex: 0 0 21px; }
.product-preview-cart-button:hover { background: #19d7ea; transform: translateY(-1px); }
.product-preview-cart-button:focus-visible { outline: 3px solid rgba(0,157,180,.32); outline-offset: 3px; }
.product-preview-gallery, .product-preview-summary, .product-preview-variations, .product-preview-characteristics { background: #fff; border: 1px solid #e2e8f0; }
.product-preview-gallery { overflow: hidden; border-radius: 14px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.product-preview-main-image { position: relative; display: grid; width: 100%; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; color: #94a3b8; background: #eef2f7; touch-action: pan-y; }
.product-preview-main-image img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; will-change: transform,opacity; }
.product-preview-main-image .product-preview-slide-incoming { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.product-preview-main-image.is-touch-dragging img { cursor: grabbing; }
.product-preview-main-image img[hidden], .product-preview-main-image span[hidden] { display: none; }
.product-preview-main-image span { padding: 8px 12px; background: rgba(255,255,255,.78); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.product-preview-main-image .product-preview-discount { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 8px 13px; color: #061216; background: var(--store-accent); border-radius: 999px; box-shadow: 0 7px 18px rgba(0,157,180,.28); font-size: .72rem; font-weight: 900; letter-spacing: .035em; line-height: 1; }
.product-preview-expand { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; width: 46px; height: 46px; padding: 0; place-items: center; color: #071116; background: rgba(255,255,255,.94); border: 1px solid rgba(0,157,180,.34); border-radius: 50%; box-shadow: 0 8px 24px rgba(15,23,42,.2); cursor: pointer; backdrop-filter: blur(8px); }
.product-preview-expand:hover { color: #fff; background: #009db4; }
.product-preview-expand:focus-visible { outline: 3px solid rgba(0,207,232,.45); outline-offset: 2px; }
.product-preview-expand[hidden] { display: none; }
.product-preview-expand svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.product-preview-thumbs-carousel { display: grid; grid-template-columns: 28px minmax(0,1fr) 28px; align-items: center; gap: 6px; min-height: 78px; padding: 10px; background: #fff; }
.product-preview-thumbs-carousel[hidden] { display: none; }
.product-preview-thumbs { display: flex; min-width: 0; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 0; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.product-preview-thumbs::-webkit-scrollbar { display: none; }
.product-preview-thumbs.is-hinting > button { animation: product-preview-thumb-hint .78s ease-in-out both; }
@keyframes product-preview-thumb-hint {
  0%,100% { transform: translateX(0); }
  40% { transform: translateX(-11px); }
  72% { transform: translateX(3px); }
}
.product-preview-thumb-arrow { display: grid; width: 28px; height: 58px; padding: 0; place-items: center; color: #036b7b; background: #f3f8fa; border: 1px solid #d7e5e9; border-radius: 8px; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.product-preview-thumb-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.product-preview-thumb-arrow:hover:not(:disabled) { color: #061216; background: var(--store-accent); border-color: var(--store-accent); }
.product-preview-thumb-arrow:focus-visible { outline: 3px solid rgba(0,207,232,.38); outline-offset: 2px; }
.product-preview-thumb-arrow:disabled { cursor: default; opacity: .32; }
.product-preview-thumbs-carousel:not(.has-overflow) .product-preview-thumb-arrow { visibility: hidden; }
.product-preview-thumbs button { width: 72px; height: 58px; flex: 0 0 72px; overflow: hidden; padding: 0; background: #fff; border: 2px solid transparent; border-radius: 9px; cursor: pointer; scroll-snap-align: start; scroll-snap-stop: normal; }
.product-preview-thumbs button.is-active { border-color: var(--store-accent); box-shadow: 0 0 0 2px rgba(0,207,232,.15); }
.product-preview-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }

.product-preview-price-card, .product-preview-video-card, .product-preview-recommended { display: block; margin-top: 14px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.product-preview-price-grid { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); min-height: 112px; align-items: center; gap: 14px; padding: 20px; }
.product-preview-price-grid > div { min-width: 0; }
.product-preview-price-grid span { display: block; margin-bottom: 5px; color: #94a3b8; font-size: .64rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.product-preview-price-before { grid-column: 1; text-align: left; }
.product-preview-price-before del { color: #64748b; font-size: .88rem; font-weight: 750; }
.product-preview-price-current { grid-column: 2; text-align: center; }
.product-preview-price-current strong { display: block; color: #111827; font-size: clamp(1.8rem,3.2vw,2.35rem); font-weight: 900; letter-spacing: -.035em; white-space: nowrap; }
.product-preview-price-current:has(+ .product-preview-price-saving:not([hidden])) strong { color: #000; }
.product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) .product-preview-price-current strong { font-family: "Roboto", Arial, sans-serif; font-size: clamp(2.4rem, 4vw, 2.7rem); font-weight: 950; letter-spacing: -.055em; -webkit-text-stroke: .35px currentColor; }
.product-preview-price-saving { grid-column: 3; text-align: right; }
.product-preview-price-saving strong { display: block; color: #16a34a; font-size: 1rem; font-weight: 850; white-space: nowrap; }
.product-preview-payment { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; color: #334155; font-size: 1.1rem; text-align: center; }
.product-preview-payment[hidden] { display: none; }
.product-preview-payment img { flex: 0 0 36px; width: 36px; height: 36px; object-fit: contain; }
.product-preview-payment strong { min-width: 0; font-weight: 700; line-height: 1.25; }
@media (max-width: 780px) {
  .product-preview-payment { gap: 5px; font-size: .9rem; }
  .product-preview-payment img { flex-basis: 26px; width: 26px; height: 26px; }
}
.product-preview-price-before[hidden], .product-preview-price-saving[hidden], .product-preview-countdown[hidden], .product-preview-video-card[hidden], .product-preview-recommended[hidden], .product-preview-variations[hidden], .product-preview-characteristics[hidden] { display: none; }
.product-preview-countdown { display: grid; gap: 10px; padding: 14px 20px 17px; color: #e2e8f0; background: #11161b; text-align: center; }
.product-preview-countdown > span { color: var(--store-accent); font-size: .65rem; font-weight: 850; letter-spacing: .085em; text-transform: uppercase; }
.product-preview-countdown-units { display: grid; grid-template-columns: repeat(4,minmax(42px,1fr)); width: min(100%,310px); margin: 0 auto; }
.product-preview-countdown-units > div { position: relative; display: grid; gap: 3px; place-items: center; }
.product-preview-countdown-units > div:not(:last-child)::after { position: absolute; top: 1px; right: -2px; color: #64748b; font-size: 1.35rem; font-weight: 800; content: ':'; }
.product-preview-countdown-units strong { color: #fff; font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size: 1.55rem; font-variant-numeric: tabular-nums; line-height: 1; }
.product-preview-countdown-units small { color: #94a3b8; font-size: .58rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.product-preview-summary, .product-preview-variations, .product-preview-characteristics { margin-top: 14px; padding: 20px; border-radius: 14px; }
.product-preview-characteristics-list { display: grid; margin: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 11px; }
.product-preview-characteristic-row { display: grid; grid-template-columns: minmax(105px,.72fr) minmax(0,1.28fr); gap: 16px; padding: 12px 14px; }
.product-preview-characteristic-row + .product-preview-characteristic-row { border-top: 1px solid #e2e8f0; }
.product-preview-characteristic-row:nth-child(odd) { background: #f8fafc; }
.product-preview-characteristic-row dt, .product-preview-characteristic-row dd { margin: 0; }
.product-preview-characteristic-row dt { color: #64748b; font-size: .76rem; font-weight: 750; }
.product-preview-characteristic-row dd { color: #1e293b; font-size: .8rem; font-weight: 800; line-height: 1.45; }
.product-preview-characteristic-value { display: inline-flex; align-items: center; gap: 6px; }
.product-preview-characteristic-value i { display: inline-block; width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid rgba(15,23,42,.16); border-radius: 50%; }
@media (max-width: 420px) {
  .product-preview-characteristic-row { grid-template-columns: 1fr; gap: 4px; }
}
.product-preview-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.product-preview-identity { display: grid; min-width: 0; gap: 8px; }
.product-preview-brand { display: inline-flex; min-width: 0; align-items: center; gap: 9px; }
.product-preview-brand[hidden] { display: none; }
.product-preview-brand-mark { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; border-radius: 9px; font-size: .78rem; font-weight: 900; }
.product-preview-brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-preview-brand-mark img[hidden], .product-preview-brand-mark span[hidden] { display: none; }
.product-preview-brand > strong { min-width: 0; overflow: hidden; color: #0f172a; font-size: .82rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.product-preview-code { display: flex; min-height: 34px; align-items: center; gap: 4px; color: #64748b; font-size: .67rem; line-height: 1.25; }
.product-preview-code[hidden] { display: none; }
.product-preview-code strong { color: #334155; font-weight: 850; overflow-wrap: anywhere; }
.product-preview-meta > strong { color: #0284c7; font-size: 1.28rem; font-weight: 850; }
.product-preview-meta > strong.is-sale { display: flex; align-items: baseline; gap: 9px; }
.product-preview-meta > strong.is-sale del { color: #94a3b8; font-size: .78rem; font-weight: 650; }
.product-preview-meta > strong.is-sale span { color: #000; }
.product-preview-meta > strong[hidden] { display: none; }
.product-preview-share { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 7px; padding: 6px 13px; color: #fff; background: #25d366; border: 1px solid #1eae54; border-radius: 999px; box-shadow: 0 7px 16px rgba(37,211,102,.2); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 850; }
.product-preview-share:hover { background: #1fba59; transform: translateY(-1px); }
.product-preview-share:focus-visible { outline: 3px solid rgba(37,211,102,.28); outline-offset: 2px; }
.product-preview-share svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.product-preview-share-tools { display: grid; flex: 0 0 auto; justify-items: end; gap: 8px; }
.product-preview-text-controls { display: flex; align-items: center; gap: 7px; }
.product-preview-text-controls button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; color: #334155; background: #fff; border: 1px solid #c9d4dc; border-radius: 50%; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 900; line-height: 1; transition: color .18s ease,border-color .18s ease,background-color .18s ease; }
.product-preview-text-controls button:hover { color: #007f92; background: #f4fdff; border-color: var(--store-accent); }
.product-preview-text-controls button:focus-visible { outline: 3px solid rgba(0,198,221,.24); outline-offset: 2px; }
.product-preview-text-controls button:disabled { color: #b6c1cc; background: #f8fafc; border-color: #e2e8f0; cursor: default; }
.product-preview-summary h3 { margin: 17px 0 10px; color: #0f172a; font-size: clamp(1.35rem,2.5vw,1.85rem); line-height: 1.16; }
.product-preview-description { color: #475569; font-size: .88rem; line-height: 1.65; transition: font-size .18s ease; }
.product-preview-description > *:first-child { margin-top: 0; }
.product-preview-description > *:last-child { margin-bottom: 0; }
.product-preview-description ul, .product-preview-description ol { padding-left: 1.3rem; }
.product-preview-section-heading { margin-bottom: 12px; }
.product-preview-section-heading > span { color: #0284c7; font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.product-preview-section-heading h3 { margin: 4px 0 18px; color: #0f172a; font-size: 1.05rem; }
.product-preview-options { display: grid; gap: 15px; }
.product-preview-option-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.product-preview-option-group legend { margin-bottom: 8px; color: #334155; font-size: .76rem; font-weight: 800; }
.product-preview-option-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.product-preview-option-group button { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 7px 13px; color: #334155; background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 750; }
.product-preview-option-group button.is-active { color: #075985; background: #f0f9ff; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.product-preview-option-swatch { display: block; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid rgba(15,23,42,.16); border-radius: 50%; }
.product-preview-option-group button.uses-thumbnail { min-width: 84px; min-height: 104px; flex-direction: column; justify-content: flex-start; gap: 5px; padding: 5px 6px 8px; border-radius: 12px; text-align: center; }
.product-preview-option-thumbnail { display: block; width: 72px; height: 72px; flex: 0 0 72px; object-fit: cover; background: #eef2f7; border: 1px solid rgba(15,23,42,.14); border-radius: 8px; }

.product-preview-variation-detail { display: grid; gap: 9px; margin-top: 16px; padding: 11px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; }
.product-preview-variation-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-preview-variation-heading > span { color: #94a3b8; font-size: .65rem; font-weight: 750; text-transform: uppercase; white-space: nowrap; }
.product-preview-variation-heading strong { min-width: 0; overflow: hidden; color: #1e293b; font-size: .82rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.product-preview-variation-detail > p { margin: 0; padding: 9px 10px; color: #475569; background: #eef2f7; border-radius: 7px; font-size: .75rem; line-height: 1.5; white-space: pre-line; }
.product-preview-variation-detail > p[hidden] { display: none; }

.product-preview-video-heading { display: flex; align-items: center; gap: 11px; padding: 14px 16px; }
.product-preview-video-heading > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: #fff; background: #ef4444; border-radius: 10px; }
.product-preview-video-heading svg { width: 21px; height: 21px; }
.product-preview-video-heading div { display: grid; gap: 2px; }
.product-preview-video-heading small { color: #ef4444; font-size: .6rem; font-weight: 850; letter-spacing: .1em; }
.product-preview-video-heading strong { color: #0f172a; font-size: .98rem; }
.product-preview-video-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0f172a; }
.product-preview-video-frame iframe, .product-preview-video-frame video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }

.product-preview-recommended { padding: 17px 16px 16px; background: linear-gradient(145deg,#f0f9ff,#f5f3ff); border-color: #bae6fd; }
.product-preview-recommended-heading span { display: block; margin-bottom: 13px; color: #0f172a; font-size: 1.08rem; font-weight: 850; }
.product-preview-recommended-carousel { position: relative; }
.product-preview-recommended-track { display: flex; gap: 12px; overflow-x: auto; padding: 2px 1px 8px; scroll-behavior: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
.product-preview-recommended-track.is-animating { scroll-snap-type: none; }
.product-preview-recommended-track::-webkit-scrollbar { display: none; }
.product-preview-recommended-arrow { position: absolute; top: 50%; z-index: 3; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; color: #075985; background: rgba(255,255,255,.96); border: 1px solid #bae6fd; border-radius: 50%; box-shadow: 0 9px 24px rgba(15,23,42,.18); cursor: pointer; transform: translateY(-50%); transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.product-preview-recommended-arrow:hover { color: #fff; background: #009db4; transform: translateY(-50%) scale(1.06); }
.product-preview-recommended-arrow:focus-visible { outline: 3px solid rgba(0,157,180,.3); outline-offset: 2px; }
.product-preview-recommended-arrow[hidden] { display: none; }
.product-preview-recommended-arrow.is-prev { left: 6px; }
.product-preview-recommended-arrow.is-next { right: 6px; }
.product-preview-recommended-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.product-preview-recommended-card { position: relative; display: grid; min-width: 0; flex: 0 0 calc(48% - 6px); overflow: hidden; background: #fff; border: 1px solid #dbeafe; border-radius: 11px; scroll-snap-align: start; }
.product-preview-recommended-image { position: relative; display: grid; width: 100%; aspect-ratio: 1; place-items: center; overflow: hidden; color: #94a3b8; background: #f8fafc; font-size: .68rem; }
.product-preview-recommended-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-preview-recommended-open { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; border-radius: inherit; cursor: pointer; }
.product-preview-recommended-open:focus-visible { outline: 3px solid rgba(0,157,180,.5); outline-offset: -3px; }
.product-preview-recommended-open:disabled { cursor: wait; }
.product-preview-recommended-copy { display: grid; gap: 6px; padding: 11px; }
.product-preview-recommended-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #1e293b; font-size: .77rem; line-height: 1.3; overflow-wrap: anywhere; }
.product-preview-recommended-copy span { color: #0284c7; font-size: .86rem; font-weight: 850; }

.product-preview-similar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, calc(48% - 6px))); justify-content: space-between; gap: 14px 12px; padding: 2px 1px 8px; }
.product-preview-similar-empty { margin: 0; color: #64748b; font-size: .85rem; line-height: 1.5; }
.product-preview-similar-empty[hidden] { display: none; }
.product-preview-assistant { margin-top: 18px; grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 12px; padding: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, .15); }
.product-preview-assistant .store-menu-ai-icon { width: 44px; height: 44px; }
.product-preview-assistant .store-menu-ai-icon svg { width: 27px; height: 27px; }
.product-preview-assistant .store-menu-ai-copy strong { font-size: 1.05rem; line-height: 1.3; }
.product-preview-assistant .store-menu-ai-copy > span { font-size: .8rem; line-height: 1.5; letter-spacing: 0; }
.product-preview-assistant .store-menu-ai-sparkles { width: 32px; }
.product-preview-assistant .store-menu-ai-sparkles i:nth-child(2) { right: 20px; }
.product-preview-assistant:disabled { cursor: default; opacity: .65; }
@media (max-width: 700px) {
  .product-preview-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-preview-assistant { grid-template-columns: 36px minmax(0, 1fr) 28px; gap: 8px; border-radius: 26px; }
  .product-preview-assistant .store-menu-ai-icon { width: 36px; height: 36px; }
  .product-preview-assistant .store-menu-ai-sparkles { display: block; width: 28px; height: 38px; }
  .product-preview-assistant .store-menu-ai-sparkles i:nth-child(1) { top: 6px; right: 0; }
  .product-preview-assistant .store-menu-ai-sparkles i:nth-child(2) { right: 16px; }
  .product-preview-assistant .store-menu-ai-sparkles i:nth-child(3) { display: block; top: 2px; left: 0; width: 5px; height: 5px; }
  .product-preview-assistant .store-menu-ai-copy strong { font-size: .98rem; }
}

.product-gallery-lightbox { display: none; }
.product-gallery-lightbox.open { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(0,0,0,.97); overscroll-behavior: contain; }
.product-lightbox-stage { position: absolute; inset: 34px 96px 64px; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.product-lightbox-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; cursor: zoom-in; will-change: transform; }
.product-lightbox-stage .product-lightbox-incoming { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: none; }
.product-gallery-lightbox.pinching .product-lightbox-stage img,
.product-gallery-lightbox.panning .product-lightbox-stage img,
.product-gallery-lightbox.swiping .product-lightbox-stage img { transition: none; }
.product-gallery-lightbox.panning .product-lightbox-stage img { cursor: grabbing; }
.product-lightbox-close,
.product-lightbox-arrow { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.product-lightbox-close:hover,
.product-lightbox-arrow:hover { background: rgba(255,255,255,.2); transform: scale(1.05); }
.product-lightbox-close { top: 24px; right: 26px; width: 48px; height: 48px; }
.product-lightbox-close svg { width: 24px; height: 24px; }
.product-lightbox-arrow { top: 50%; width: 54px; height: 54px; transform: translateY(-50%); }
.product-lightbox-arrow:hover { transform: translateY(-50%) scale(1.05); }
.product-lightbox-arrow svg { width: 30px; height: 30px; }
.product-lightbox-prev { left: 24px; }
.product-lightbox-next { right: 24px; }
.product-lightbox-counter,
.product-lightbox-zoom { position: absolute; bottom: 23px; z-index: 2; color: rgba(255,255,255,.82); font-size: .82rem; font-weight: 700; letter-spacing: .03em; }
.product-lightbox-counter { left: 28px; }
.product-lightbox-zoom { left: 50%; transform: translateX(-50%); }

@media (max-width: 700px) {
  .store-product-preview-drawer { width: 100%; }
  .product-preview-header { min-height: 74px; padding: 14px 16px; }
  .product-preview-header h2 { font-size: 1.08rem; }
  .product-preview-body { padding: 14px; }
  .product-preview-cart-bar { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .product-preview-cart-button { min-height: 52px; }
  .product-preview-price-grid { min-height: 112px; gap: 4px; padding: 18px 6px; }
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) { grid-template-columns: max-content max-content max-content; justify-content: center; column-gap: 14px; }
  .product-preview-price-grid span { font-size: .62rem; }
  .product-preview-price-current span { color: #64748b; font-size: .64rem; font-weight: 950; }
  .product-preview-price-current strong { font-family: "Roboto", Arial, sans-serif; font-size: clamp(2.2rem, 9.6vw, 2.45rem); font-weight: 950; letter-spacing: -.055em; -webkit-text-stroke: .8px currentColor; }
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) .product-preview-price-current strong { font-size: clamp(2.1rem, 8.9vw, 2.2rem); -webkit-text-stroke: 1px currentColor; }
  .product-preview-price-before del { color: #475569; font-size: clamp(.86rem, 3.75vw, .94rem); font-weight: 850; letter-spacing: -.025em; white-space: nowrap; }
  .product-preview-price-saving strong { font-size: clamp(.86rem, 3.75vw, .94rem); font-weight: 900; letter-spacing: -.025em; }
  .product-preview-recommended-card { flex-basis: 72%; }
  .product-preview-recommended-copy span { font-size: 1.05rem; }
  .product-preview-recommended-arrow { display: none; }
  .product-preview-main-image .product-preview-discount { top: 12px; left: 12px; }
  .product-preview-expand { right: 12px; bottom: 12px; width: 44px; height: 44px; }
  .product-lightbox-stage { inset: 72px 0 64px; touch-action: none; }
  .product-lightbox-arrow { display: none; }
  .product-lightbox-close { top: 16px; right: 16px; width: 44px; height: 44px; }
  .product-lightbox-counter { left: 20px; bottom: 20px; }
  .product-lightbox-zoom { right: 20px; bottom: 20px; left: auto; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .store-product-preview-backdrop, .store-product-preview-drawer { transition: none; }
  .product-preview-thumbs.is-hinting > button { animation: none; }
}

/* El producto promocionado se abre delante del lector de noticias. */
body:has(.story-sheet.open) .store-product-preview-backdrop { z-index: 205; }
body:has(.story-sheet.open) .store-product-preview-drawer { z-index: 210; }

.product-preview-combo { display: grid; gap: 14px; margin-top: 14px; padding: 18px; background: linear-gradient(145deg, #effcf7, #f0f9ff); border: 1px solid #a7f3d0; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.product-preview-combo[hidden] { display: none; }
.product-preview-combo-heading > span { color: #047857; font-size: .62rem; font-weight: 850; letter-spacing: .1em; }
.product-preview-combo-heading h2, .product-preview-combo-heading h3 { margin: 4px 0; color: #0f172a; font-size: 1.05rem; line-height: 1.25; }
.product-preview-combo-heading p { margin: 0; color: #64748b; font-size: .72rem; }
.product-preview-combo-items { display: grid; gap: 8px; }
.product-preview-combo-item { display: grid; grid-template-columns: 22px 58px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 8px; color: #0f172a; background: #fff; border: 1px solid #dbeafe; border-radius: 10px; cursor: pointer; }
.product-preview-combo-item:has(input:focus-visible) { outline: 3px solid rgba(14, 165, 233, .22); outline-offset: 1px; }
.product-preview-combo-item:not(:has(input:checked)) { opacity: .62; }
.product-preview-combo-item input { width: 18px; height: 18px; margin: 0; accent-color: #0891b2; cursor: pointer; }
.product-preview-combo-photo { display: grid; width: 58px; height: 58px; place-items: center; overflow: hidden; color: #94a3b8; background: #f1f5f9; border-radius: 8px; font-size: .6rem; text-align: center; }
.product-preview-combo-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-preview-combo-name { min-width: 0; overflow: hidden; font-size: .74rem; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; }
.product-preview-combo-price { color: #0284c7; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.product-preview-combo-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #a7f3d0; }
.product-preview-combo-total span { color: #475569; font-size: .73rem; font-weight: 700; }
.product-preview-combo-total strong { color: #0f172a; font-size: 1.1rem; white-space: nowrap; }
@media (max-width: 520px) {
  .product-preview-combo { padding: 14px; }
  .product-preview-combo-item { grid-template-columns: 18px 48px minmax(0, 1fr); gap: 7px; }
  .product-preview-combo-photo { width: 48px; height: 48px; }
  .product-preview-combo-price { grid-column: 3; margin-top: -18px; }
}


.product-preview-combo-item.is-unavailable { opacity: .55; cursor: not-allowed; }
.product-preview-combo-item.is-unavailable input { cursor: not-allowed; }
.product-preview-combo-variation { grid-column: 3 / -1; min-width: 0; padding: 6px 8px; color: #334155; background: #f8fafc; border: 1px solid #dbe3ec; border-radius: 7px; font: inherit; font-size: .7rem; }
.product-preview-combo-availability { grid-column: 3 / -1; color: #9a503b; font-size: .68rem; font-weight: 700; }
.store-product-combo { margin: 0 0 16px; box-shadow: none; }
.store-product-buy > button { margin-top: 8px; }
.store-product-combo .product-preview-combo-heading h2 { margin: 4px 0; font-size: 1.05rem; line-height: 1.25; }

.mega-product-payment-preview, .product-preview-payment { flex-wrap: wrap; }

.product-preview-payment { display: grid; justify-content: stretch; gap: 8px; text-align: center; }
.product-preview-payment[hidden] { display: none; }
.product-preview-payment .product-informative-public-row { display: flex; justify-content: center; flex-wrap: nowrap; align-items: center; gap: 9px; width: 100%; min-width: 0; font-size: .8rem; }
.product-preview-payment .product-informative-public-row img { flex: 0 0 28px; width: 28px; height: 28px; min-width: 28px; max-width: 28px; object-fit: contain; }
.product-preview-payment .product-informative-public-row span { flex: 0 1 auto; min-width: 0; margin: 0; color: #334155; font-size: inherit; font-weight: 500; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.product-preview-payment .product-informative-public-row strong { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 767px) { .product-preview-payment .product-informative-public-row { font-size: .7rem; } }

/* Antes y ahorro cerca del precio de oferta, con mayor presencia. */
.product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) { column-gap: 20px; }
.product-preview-price-before { text-align: right; }
.product-preview-price-saving { justify-self: start; text-align: center; }
.product-preview-price-before > span, .product-preview-price-saving > span { color: #64748b; font-size: clamp(.82rem, 2vw, 1.05rem); font-weight: 900; letter-spacing: .035em; }
.product-preview-price-before del, .product-preview-price-saving strong { font-size: clamp(1.35rem, 4.5vw, 1.8rem); font-weight: 900; letter-spacing: -.025em; white-space: nowrap; }
.product-preview-price-before del, .product-preview-price-saving strong { color: #475569; }
@media (max-width: 780px) {
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) { column-gap: 12px; }
}

/* Símbolo pequeño junto al importe principal. */
.product-preview-price-current strong { display: flex; justify-content: center; align-items: baseline; gap: .08em; }
.product-preview-price-current strong > span { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
.product-preview-price-current strong > .product-preview-price-symbol { font-size: .58em; letter-spacing: 0; -webkit-text-stroke: 0; }

/* Mayor tamaño para los tres grupos de precio. */
.product-preview-price-current > span { font-size: clamp(.82rem, 2vw, 1.05rem); }
.product-preview-price-current strong { font-size: clamp(2.3rem, 4vw, 2.9rem); }
.product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) .product-preview-price-current strong { font-size: clamp(3rem, 5vw, 3.35rem); }
@media (max-width: 780px) {
  .product-preview-price-current strong,
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) .product-preview-price-current strong { font-size: 2.65rem; }
}

/* Roboto en toda la zona de precios. */
.product-preview-price-card { font-family: "Roboto", Arial, sans-serif; }

/* Círculos de Antes y Ahorrás separados del precio de oferta. */
.product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) {
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 28px;
}
.product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) :is(.product-preview-price-before, .product-preview-price-saving) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  box-sizing: border-box;
  width: 104px;
  height: 104px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #f1f5f9;
  text-align: center;
}
@media (max-width: 780px) {
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) { column-gap: 18px; padding-inline: 14px; }
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) :is(.product-preview-price-before, .product-preview-price-saving) { width: 76px; height: 76px; padding: 5px; }
}
@media (max-width: 360px) {
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) { column-gap: 14px; padding-inline: 10px; }
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) :is(.product-preview-price-before, .product-preview-price-saving) { width: 66px; height: 66px; }
}

/* Símbolo proporcional también en Antes y Ahorrás. */
.product-preview-price-before del, .product-preview-price-saving strong { display: inline-flex; align-items: baseline; justify-content: center; gap: .08em; }
.product-preview-price-before del > span, .product-preview-price-saving strong > span { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
.product-preview-price-before del > .product-preview-price-symbol, .product-preview-price-saving strong > .product-preview-price-symbol { font-size: .58em; letter-spacing: 0; }
@media (min-width: 781px) {
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) :is(.product-preview-price-before, .product-preview-price-saving) { width: 120px; height: 120px; transform: scale(.9); }
}

/* En móvil, textos menores y círculos más cerca del precio central. */
@media (max-width: 780px) {
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) .product-preview-price-before { transform: translateX(6px); }
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) .product-preview-price-saving { transform: translateX(-6px); }
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) :is(.product-preview-price-before, .product-preview-price-saving) > :is(span, del, strong) { transform: scale(.9); }
}

/* Precio de oferta un poco mayor en móvil. */
@media (max-width: 780px) {
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) .product-preview-price-current strong { font-size: 2.9rem; }
}

/* En móvil, etiqueta e importe juntos y centrados dentro de cada círculo. */
@media (max-width: 780px) {
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) :is(.product-preview-price-before, .product-preview-price-saving) > span { margin-bottom: 1px; line-height: 1.1; transform: translateY(2px) scale(.85); }
  .product-preview-price-grid:has(.product-preview-price-saving:not([hidden])) :is(.product-preview-price-before > del, .product-preview-price-saving > strong) { line-height: 1.1; }
}

/* Disponibilidad sobre la base de la imagen, sin alterar el recorte de galería. */
.product-preview-stock-label { padding: 8px 13px; border-radius: 999px; color: #fff; background: #dc2626; box-shadow: 0 7px 18px rgba(0,0,0,.18); font-size: .72rem; font-weight: 900; letter-spacing: .035em; line-height: 1; }
.product-preview-stock-label[hidden] { display: none; }
.product-preview-stock-anchor { position: relative; height: 14px; z-index: 3; }
.product-preview-stock-anchor:has([hidden]) { display: none; }
.product-preview-stock-anchor > .product-preview-stock-label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; }
.product-preview-recommended-image:has(.product-preview-recommended-stock) { overflow: visible; z-index: 2; }
.product-preview-recommended-stock { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); z-index: 2; padding: 7px 9px; font-size: .66rem; white-space: nowrap; pointer-events: none; }
#productPreviewDrawer .product-preview-recommended-card:has(.product-preview-recommended-stock) .product-preview-recommended-copy { padding-top: 22px; }
