/* =====================================================================
   MXIRO storefront — replicates the Shopify "Horizon" look of mxiro.store
   ===================================================================== */
:root {
  --fg: rgba(0, 0, 0, .81);
  --fg-strong: #000;
  --muted: rgba(0, 0, 0, .55);
  --line: rgba(0, 0, 0, .12);
  --bg: #fff;
  --card: #f6f6f6;
  --pad: 24px;
  --header-h: 66px;
  --font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--fg-strong); }
h1, h2, h3 { font-weight: 500; margin: 0; color: var(--fg); letter-spacing: -.01em; }
s, .compare { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { padding: 0 var(--pad); }
svg.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---------- Announcement marquee ---------- */
.announcement { overflow: hidden; white-space: nowrap; padding: 4px 0; background: #fff; position: relative; z-index: 31; }
.announcement__track { display: inline-flex; animation: marquee 22s linear infinite; }
.announcement__item { font-family: Akshar, "Arial Narrow", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .01em; color: #ff0000; padding: 0 28px; text-transform: uppercase; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header__more { position: relative; }
.header__more > button { font-size: 14px; display: flex; align-items: center; gap: 4px; }
.header__more-list { position: absolute; top: 30px; left: -16px; background: #fff; color: var(--fg); box-shadow: 0 6px 30px rgba(0,0,0,.12); padding: 10px 0; min-width: 210px; display: none; flex-direction: column; }
.header__more-list a { padding: 8px 18px; }
.header__more:hover .header__more-list, .header__more:focus-within .header__more-list { display: flex; }
.header__nav { overflow: visible !important; }
.header { position: sticky; top: 0; z-index: 30; height: var(--header-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 0 var(--pad); background: #fff; transition: background .25s, color .25s; }
.header--transparent { position: absolute; left: 0; right: 0; top: auto; background: transparent; color: #fff; }
.header--transparent.is-solid { position: fixed; top: 0; background: #fff; color: var(--fg); }
.header__nav { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; overflow: hidden; }
.header__nav a { font-size: 14px; white-space: nowrap; opacity: .95; }
.header__nav a:hover, .header__nav a.active { text-decoration: underline; text-underline-offset: 4px; }
.header__logo img { height: 36px; width: auto; }
.header--transparent:not(.is-solid) .header__logo img { filter: invert(1); }
.header__icons { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.header__icons button, .header__icons a { display: grid; place-items: center; width: 32px; height: 32px; position: relative; }
.cart-count { position: absolute; top: 1px; right: -2px; min-width: 16px; height: 16px; border-radius: 99px; background: currentColor; font-size: 10px; display: grid; place-items: center; }
.cart-count span { color: #fff; mix-blend-mode: normal; }
.header--transparent:not(.is-solid) .cart-count span { color: #000; }
.header__burger { display: none !important; width: 32px; height: 32px; place-items: center; }
@media (max-width: 990px) {
  .header__nav { display: none; }
  .header__burger { display: grid !important; }
  .header__left { display: flex; gap: 6px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100vh - 30px); min-height: 520px; max-height: 1000px; overflow: hidden; background: #222; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__content { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px; }
.hero__kicker { font-size: 14px; font-weight: 500; }
.hero__title { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; color: #fff; letter-spacing: .01em; }
.hero__btn { margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; min-width: 176px; height: 44px; padding: 0 24px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; transition: background .2s; }
.hero__btn:hover { background: rgba(0,0,0,.7); }
@media (max-width: 749px) { .hero { height: 594px; min-height: 0; } .hero__content { bottom: 48px; } }

/* ---------- Sections ---------- */
.section { padding: 32px 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad) 16px; }
.section__title { font-size: 22px; font-weight: 500; }
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px - 2 * var(--pad)) / 4.15); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad); scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__arrows { display: flex; gap: 8px; }
.carousel__arrows button { width: 32px; height: 32px; display: grid; place-items: center; }
.carousel__arrows button:disabled { opacity: .3; }
@media (max-width: 990px) { .carousel__track { grid-auto-columns: calc((100% - 16px - 2 * var(--pad)) / 2.2); } }
@media (max-width: 749px) { .carousel__track { grid-auto-columns: 44%; gap: 10px; padding: 0 12px; } }

.editorial { display: block; }
.editorial img { width: 100%; height: auto; }

/* ---------- Product card ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; aspect-ratio: 307 / 411; background: var(--card); overflow: hidden; display: block; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.card__media img.alt { opacity: 0; }
@media (hover: hover) { .card:hover .card__media img.alt { opacity: 1; } .card:hover .card__media img.main.has-alt { opacity: 0; } }
.badge { position: absolute; top: 10px; right: 10px; background: #fff; color: var(--fg); font-size: 12px; padding: 2px 8px; z-index: 2; }
.badge--sold { background: #000; color: #fff; }
.card__quick { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; display: grid; place-items: center; z-index: 2; }
.card__quick svg { width: 18px; height: 18px; }
.card__info { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.card__title { font-size: 15px; line-height: 1.3; color: var(--fg); }
.price { font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; color: var(--fg); }
.price .now { font-weight: 500; }
.price s { color: var(--muted); }
.swatches { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.swatch { width: 24px; height: 30px; background: var(--card); border: 1px solid transparent; overflow: hidden; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch.on { border-color: #000; }
.swatches__count { font-size: 13px; color: var(--muted); margin-left: 4px; }

/* ---------- Collection page ---------- */
.collection { padding: 40px var(--pad) 64px; }
.collection h1 { font-size: 48px; font-weight: 500; margin-bottom: 32px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; }
.toolbar__filters { display: flex; gap: 18px; align-items: center; }
.toolbar select { border: 0; background: transparent; font-size: 13px; cursor: pointer; padding: 4px 0; }
.toolbar label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
@media (max-width: 990px) { .grid { grid-template-columns: repeat(3, 1fr); } .collection h1 { font-size: 36px; } }
@media (max-width: 749px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; } .collection { padding: 24px 12px 48px; } .collection h1 { font-size: 30px; margin-bottom: 20px; } }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; }
.gallery { position: relative; background: var(--card); aspect-ratio: 1744 / 2336; max-height: calc(100vh - var(--header-h)); width: 100%; overflow: hidden; position: sticky; top: var(--header-h); }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: #555; }
.gallery__arrow--prev { left: 6px; } .gallery__arrow--next { right: 6px; }
.gallery__counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; background: rgba(255,255,255,.85); padding: 2px 10px; }
.thumbs { display: none; }
.product__info { padding: 22px 40px 40px; max-width: 560px; width: 100%; justify-self: center; }
.product__head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 18px; }
.product__title { font-size: 15px; font-weight: 500; }
.product__price { font-size: 15px; white-space: nowrap; }
.product__price s { color: var(--muted); margin-left: 4px; }
.opt { margin-bottom: 16px; }
.opt__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.opt__label span.val { color: var(--muted); font-weight: 400; margin-left: 10px; }
.opt__label button { font-size: 12px; text-decoration: underline; color: var(--muted); font-weight: 400; }
.opt__imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.opt__img { width: 56px; height: 74px; background: var(--card); border: 1px solid transparent; padding: 2px; }
.opt__img img { width: 100%; height: 100%; object-fit: cover; }
.opt__img.on { border-color: #000; }
.opt__btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.opt__btn { height: 40px; background: #f2f2f2; font-size: 14px; border: 1px solid transparent; }
.opt__btn.on { background: #000; color: #fff; }
.opt__btn.out { color: var(--muted); text-decoration: line-through; }
.buy-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; margin: 20px 0 10px; }
.qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); height: 44px; padding: 0 8px; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; font-size: 18px; }
.qty input { width: 30px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; background: #000; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; transition: opacity .2s; width: 100%; }
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--outline { background: #fff; color: #000; border: 1px solid #000; }
.btn svg { width: 16px; height: 16px; }
.product__desc { margin: 22px 0 30px; font-size: 14px; }
.product__desc p { margin: 0 0 8px; }
.product__links { display: flex; gap: 26px; flex-wrap: wrap; }
.product__links button { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.stock-note { font-size: 13px; color: #b00; margin-top: 4px; }
@media (max-width: 899px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: relative; top: 0; max-height: none; }
  .product__info { padding: 20px 16px 32px; max-width: none; }
}

/* ---------- Reviews marquee ---------- */
.reviews { padding: 40px 0 10px; overflow: hidden; }
.reviews__marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 18px; }
.reviews__marquee .announcement__track { animation-duration: 30s; }
.reviews__marquee span { font-weight: 600; font-size: 22px; letter-spacing: .02em; padding: 0 26px; }
.reviews__imgs { display: flex; gap: 12px; animation: marquee 40s linear infinite; width: max-content; }
.reviews__imgs img { height: 260px; width: auto; }

/* ---------- Drawers / overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 41; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,.12); }
.drawer--right { right: 0; animation: inR .28s cubic-bezier(.2,.7,.2,1); }
.drawer--left { left: 0; animation: inL .28s cubic-bezier(.2,.7,.2,1); }
.drawer--wide { width: min(520px, 96vw); }
@keyframes inR { from { transform: translateX(100%); } }
@keyframes inL { from { transform: translateX(-100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.drawer__head h2 { font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 24px 24px; }
.drawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.close { width: 32px; height: 32px; display: grid; place-items: center; }

.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { background: var(--card); aspect-ratio: 3/4; }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__title { font-size: 14px; font-weight: 500; }
.cart-line__variant { font-size: 13px; color: var(--muted); }
.cart-line .qty { height: 36px; width: 104px; margin-top: 10px; }
.cart-line__right { text-align: right; font-size: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-line__remove { color: var(--muted); }
.cart-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.cart-row--total { font-weight: 600; font-size: 16px; }
.cart-note { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ship-bar { margin: 8px 0 4px; font-size: 13px; }
.ship-bar__track { height: 4px; background: #eee; margin-top: 6px; }
.ship-bar__fill { height: 100%; background: #000; transition: width .3s; }

.menu-list { display: flex; flex-direction: column; }
.menu-list a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }

.info h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.info ul { padding-left: 18px; margin: 0; } .info li { margin: 4px 0; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 8px; text-align: center; }
.size-table th { background: #f6f6f6; font-weight: 600; }
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.finder__result { font-size: 15px; margin-top: 8px; min-height: 22px; font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); }
.input { width: 100%; height: 46px; border: 1px solid #d6d6d6; border-radius: 5px; padding: 0 12px; background: #fff; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 110px; padding: 12px; resize: vertical; }
.input:focus { border-color: #000; box-shadow: 0 0 0 1px #000; }
.input.err { border-color: #d72c0d; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err-msg { color: #d72c0d; font-size: 13px; margin-top: 4px; }

/* ---------- Search ---------- */
.search-modal { position: fixed; inset: 0 0 auto 0; z-index: 41; background: #fff; padding: 20px var(--pad) 30px; max-height: 90vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.1); animation: fade .2s; }
.search-modal__bar { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #000; padding-bottom: 8px; }
.search-modal__bar input { flex: 1; border: 0; font-size: 22px; outline: none; background: transparent; }
.search-modal .grid { margin-top: 20px; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 749px) { .search-modal .grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Popup ---------- */
.popup { position: fixed; left: 22px; bottom: 22px; z-index: 35; width: 262px; background: rgba(255,255,255,.96); border-radius: 10px; box-shadow: 0 4px 30px rgba(0,0,0,.15); padding: 24px 24px 26px; text-align: center; animation: fade .3s; }
.popup h3 { font-size: 18px; font-weight: 700; color: #000; }
.popup p { font-size: 12px; margin: 4px 0 18px; color: #000; }
.popup .input { height: 38px; font-size: 13px; margin-bottom: 8px; border-radius: 4px; }
.popup .btn { height: 36px; border-radius: 4px; background: #222; text-transform: none; font-weight: 600; }
.popup .close { position: absolute; top: 14px; right: 14px; }
.popup__code { font-size: 22px; font-weight: 700; letter-spacing: .08em; border: 1px dashed #000; padding: 8px; margin: 10px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #000; color: #fff; padding: 12px 20px; font-size: 14px; z-index: 60; border-radius: 4px; animation: fade .2s; }

/* ---------- Footer ---------- */
.footer { margin-top: 20px; }
.footer__news { padding: 40px var(--pad) 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__news h2 { font-size: 22px; }
.footer__news form { display: flex; width: min(420px, 100%); border: 1px solid #d6d6d6; border-radius: 99px; overflow: hidden; }
.footer__news input { flex: 1; border: 0; padding: 0 18px; height: 46px; outline: none; }
.footer__news button { width: 46px; display: grid; place-items: center; }
.footer__bottom { padding: 24px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.footer__bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__social { display: flex; gap: 12px; }

/* ---------- Pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 48px var(--pad) 64px; }
.page h1 { font-size: 40px; margin-bottom: 26px; }
.page h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 600; }
.page p, .page li { font-size: 15px; }
@media (max-width: 749px) { .page h1 { font-size: 30px; } }

/* ---------- Checkout (Shopify-like) ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.checkout__main { padding: 40px 48px 60px; display: flex; justify-content: flex-end; border-right: 1px solid var(--line); }
.checkout__main > div { width: 100%; max-width: 560px; }
.checkout__side { background: #f5f5f5; padding: 40px 48px; }
.checkout__side > div { max-width: 440px; position: sticky; top: 40px; }
.checkout h2 { font-size: 21px; font-weight: 600; margin: 28px 0 14px; color: #000; }
.checkout__logo { display: flex; justify-content: center; margin-bottom: 10px; }
.checkout__logo img { height: 42px; }
.radio-card { border: 1px solid #d6d6d6; border-radius: 6px; overflow: hidden; }
.radio-card label { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid #d6d6d6; font-size: 14px; }
.radio-card label:last-child { border-bottom: 0; }
.radio-card label.on { background: #f5f8ff; outline: 1px solid #000; outline-offset: -1px; }
.radio-card label .grow { flex: 1; }
.radio-card__extra { padding: 14px 16px; background: #f5f5f5; font-size: 13px; }
.sum-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; margin-bottom: 14px; font-size: 14px; }
.sum-line__img { position: relative; width: 64px; height: 64px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.sum-line__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.sum-line__img b { position: absolute; top: -8px; right: -8px; background: rgba(0,0,0,.6); color: #fff; border-radius: 99px; min-width: 21px; height: 21px; font-size: 12px; display: grid; place-items: center; }
.discount-row { display: flex; gap: 10px; margin: 18px 0; }
.discount-row .btn { width: auto; background: #e9e9e9; color: #555; border-radius: 5px; text-transform: none; }
.sum-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 600; margin-top: 12px; color: #000; }
.sum-total small { font-size: 12px; color: var(--muted); font-weight: 400; margin-right: 6px; }
.checkout .btn--pay { height: 56px; font-size: 18px; border-radius: 5px; text-transform: none; font-weight: 600; margin-top: 22px; }
.mobile-summary-toggle { display: none; }
@media (max-width: 899px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout__main { padding: 20px 16px 40px; border: 0; order: 2; }
  .checkout__side { padding: 20px 16px; order: 1; }
  .checkout__side > div { position: static; max-width: none; }
}
.thanks { text-align: left; }
.thanks__badge { width: 52px; height: 52px; border: 2px solid #000; border-radius: 99px; display: grid; place-items: center; margin-bottom: 12px; }
.box { border: 1px solid #d6d6d6; border-radius: 6px; padding: 18px; margin-top: 18px; font-size: 14px; }
.status-steps { display: flex; gap: 6px; margin: 14px 0; }
.status-steps span { flex: 1; height: 4px; background: #e5e5e5; }
.status-steps span.on { background: #000; }

.skeleton { background: linear-gradient(90deg, #f3f3f3, #fafafa, #f3f3f3); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
/* Cart discount + back-in-stock */
.cart-disc { margin-bottom: 12px; font-size: 14px; }
.cart-disc summary { cursor: pointer; padding: 6px 0; }
.cart-disc .discount-row { margin: 8px 0; }
.notify-btn { background: none; border: 1px solid var(--fg); width: 100%; height: 44px; font: inherit; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

/* Checkout upsell popup */
.upsell { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; animation: up-fade .2s; }
@keyframes up-fade { from { opacity: 0; } }
.upsell__dialog { position: relative; background: #fff; width: min(720px, 100%); max-height: 90vh; overflow: auto; padding: 26px 22px 18px; border-radius: 10px; text-align: center; }
.upsell__x { position: absolute; top: 10px; right: 10px; background: none; border: 0; cursor: pointer; padding: 6px; }
.upsell__timer { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: #b3121a; font-weight: 600; }
.upsell__timer b { font-variant-numeric: tabular-nums; font-size: 15px; }
.upsell__track { display: block; width: 100%; height: 3px; background: #f1d5d6; border-radius: 3px; overflow: hidden; }
.upsell__track span { display: block; height: 100%; background: #b3121a; transition: width .25s linear; }
.upsell__pulse { width: 8px; height: 8px; border-radius: 50%; background: #b3121a; animation: up-pulse 1.2s infinite; display: inline-block; }
@keyframes up-pulse { 50% { opacity: .3; } }
.upsell h2 { font-size: 22px; margin: 12px 0 4px; color: #000; }
.upsell__sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.upsell__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.upsell__card { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.upsell__card img { width: 100%; aspect-ratio: 307/411; object-fit: cover; background: var(--card); }
.upsell__name { margin: 0; font-size: 13px; font-weight: 500; }
.upsell__price { margin: 0; font-size: 13px; color: var(--muted); }
.upsell__select { height: 36px; border: 1px solid var(--line); font: inherit; font-size: 13px; padding: 0 6px; }
.upsell__add { height: 40px; font-size: 12px; background: #b3121a; border-color: #b3121a; }
.upsell__skip { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.upsell-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 45; background: #b3121a; color: #fff; border: 0; border-radius: 99px; padding: 10px 18px; font: inherit; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.upsell-bar .upsell__pulse { background: #fff; }
.demo-banner { position: fixed; right: 12px; bottom: 12px; z-index: 34; font-size: 11px; background: #ffe58a; color: #000; padding: 6px 10px; border-radius: 4px; }
