/* =========================================================
   نوّار | Nawwar — Soft Romantic storefront theme (RTL)
   ========================================================= */
:root {
  --bg: #FDFBF7;
  --surface: #FFFFFF;
  --alt: #F4EFEA;
  --blush: #F6E4E1;
  --blush-2: #EFD3CE;
  --rose: #E8C4BE;
  --text: #2D2825;
  --muted: #6B605B;
  --primary: #B88A83;
  --primary-hover: #A3766F;
  --secondary: #D0B8A8;
  --sage: #839B8F;
  --sage-soft: #E3EAE6;
  --sale: #C9506B;
  --border: #EBE3DC;

  --sh-sm: 0 2px 8px rgba(45, 40, 37, .04);
  --sh-md: 0 8px 24px rgba(45, 40, 37, .08);
  --sh-lg: 0 20px 50px rgba(45, 40, 37, .12);
  --sh-glass: 0 8px 32px rgba(184, 138, 131, .12);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-pill: 9999px;
  --font-head: 'Amiri', serif;
  --font-body: 'Alexandria', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.7;
  color: var(--text); background: var(--bg);
  background-image: radial-gradient(1200px 600px at 100% -10%, rgba(246, 228, 225, .55), transparent 60%),
                    radial-gradient(900px 500px at 0% 20%, rgba(227, 234, 230, .45), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--text); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0; }
p { margin: 0; }
[class^="icon-"], [class*=" icon-"] { display: inline-block; line-height: 1; vertical-align: -0.12em; }

.container { max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* fill-mode MUST stay "backwards" (not "both"): "both" keeps <main> a stacking
   context forever, which traps fixed z-index overlays (OTP modal) inside it and
   lets the footer paint over them. "backwards" is visually identical here. */
.main { animation: fadeIn .5s var(--ease) backwards; }
.hero, .phead { animation: fadeUp .6s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--primary); text-transform: uppercase; }
.eyebrow--dot::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-inline-end: 8px; vertical-align: middle; }
.stars { color: #D9A24B; letter-spacing: .05em; font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(184, 138, 131, .28); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #443c38; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

.ibtn {
  position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 1.15rem;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.ibtn:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.ibtn--cart { background: var(--text); color: #fff; border-color: var(--text); }
.ibtn--cart:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cart-badge {
  position: absolute; top: -4px; inset-inline-start: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--sale); color: #fff; font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.cart-badge.is-hidden { display: none; }

/* ---------- Announce bar ---------- */
.announce { background: var(--text); color: #F4EFEA; font-size: .8rem; }
.announce__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.announce__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header ---------- */
.hdr {
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid rgba(235, 227, 220, .6);
  transition: box-shadow .3s;
}
.hdr.is-stuck { box-shadow: var(--sh-glass); }
.hdr__row { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.hdr__burger { display: none; width: 44px; height: 44px; font-size: 1.4rem; align-items: center; justify-content: center; border-radius: 50%; }
.hdr__burger:hover { background: var(--blush); }
.hdr__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.hdr__search-toggle { display: none; }

/* Logo (typographic) */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); }
.logo__mark {
  width: 30px; height: 30px; background: linear-gradient(145deg, var(--rose), var(--primary));
  border-radius: 50% 50% 4px 50%; transform: rotate(45deg); flex: 0 0 auto;
  position: relative; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35);
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(405deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__ar { font-family: var(--font-head); font-weight: 700; font-size: 1.85rem; color: var(--text); letter-spacing: -.01em; }
.logo__en { font-size: .62rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--primary); margin-top: 3px; }
.logo--sm .logo__ar { font-size: 1.5rem; }
.logo--sm .logo__mark { width: 24px; height: 24px; }
.logo--lg .logo__ar { font-size: 2.3rem; }
.logo--lg .logo__mark { width: 38px; height: 38px; }

/* Search */
.srch { flex: 1; max-width: 520px; display: flex; align-items: center; position: relative; margin-inline: auto; }
.srch input {
  width: 100%; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface);
  padding-inline: 44px 8px; transition: border-color .2s, box-shadow .2s;
}
.srch input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(184, 138, 131, .12); }
.srch__icon { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.05rem; pointer-events: none; }
.srch button { position: absolute; inset-inline-end: 5px; top: 5px; height: 36px; padding-inline: 16px; border-radius: var(--r-pill); background: var(--text); color: #fff; font-weight: 600; font-size: .85rem; transition: background-color .2s; }
.srch button:hover { background: var(--primary); }
.srch--mobile { display: none; max-width: none; margin: 0; padding-bottom: 12px; }
.srch--mobile .srch__wrap { position: relative; display: flex; }
.srch--mobile.is-open { display: block; }

/* Nav */
.nav { border-top: 1px solid rgba(235, 227, 220, .6); }
.nav__inner { display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 13px 16px; font-size: .9rem; font-weight: 500; color: var(--text);
  white-space: nowrap; position: relative; transition: color .2s; cursor: pointer; background: none; border: 0; font-family: inherit;
}
.nav__link::after { content: ''; position: absolute; inset-inline: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after, .nav__item:hover .nav__link::after { transform: scaleX(1); }
.dd {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 70;
}
.nav__item:hover .dd { opacity: 1; visibility: visible; transform: none; }
.dd__link { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: .88rem; transition: background-color .15s, color .15s; }
.dd__link:hover { background: var(--blush); color: var(--primary); }
.dd__link--sub { padding-inline-start: 26px; color: var(--muted); font-size: .82rem; }
.dd--mega { width: 560px; max-width: min(90vw, 560px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 10px; }
.nav__item--more .dd { inset-inline-start: auto; inset-inline-end: 0; }
.dd__link--head { font-weight: 600; }

/* Drawer */
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 360px); background: var(--bg); z-index: 100;
  transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; box-shadow: var(--sh-lg);
}
[dir="rtl"] .drawer { transform: translateX(100%); }
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer__body { flex: 1; overflow: auto; padding: 12px; }
.drawer__link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-radius: var(--r-md); font-weight: 500; transition: background-color .15s; list-style: none; cursor: pointer; }
.drawer__link::-webkit-details-marker { display: none; }
.drawer__link:hover { background: var(--blush); }
.drawer__group[open] > .drawer__link { background: var(--blush); color: var(--primary); }
.drawer__group[open] > .drawer__link i { transform: rotate(180deg); }
.drawer__link i { transition: transform .25s; }
.drawer__sub { display: flex; flex-direction: column; padding: 6px 0 6px 0; }
.drawer__sub a { padding: 10px 14px 10px 30px; font-size: .9rem; color: var(--muted); border-radius: var(--r-sm); }
.drawer__sub a:hover { color: var(--primary); background: var(--alt); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(45, 40, 37, .45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 90; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 84px) clamp(24px, 4vw, 48px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.3; margin: 10px 0 18px; padding-top: .18em; color: var(--text); }
.hero__title em { font-style: normal; color: var(--primary); position: relative; display: inline-block; }
.hero__title em::after { content: ''; position: absolute; inset-inline: -4px; bottom: 6px; height: 14px; background: var(--blush-2); z-index: -1; border-radius: 6px; }
.hero__lead { font-size: 1.05rem; color: var(--muted); max-width: 52ch; line-height: 1.9; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { list-style: none; margin: 36px 0 0; padding: 0; display: flex; gap: clamp(20px, 4vw, 48px); }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; color: var(--text); }
.hero__stats span { font-size: .78rem; color: var(--muted); margin-top: 6px; }

.hero__art { position: relative; height: clamp(360px, 42vw, 560px); }
.hero__shape { position: absolute; overflow: hidden; background: var(--alt); box-shadow: var(--sh-lg); transition: transform .5s var(--ease); }
.hero__shape img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero__shape:hover img { transform: scale(1.05); }
.hero__shape--1 { width: 56%; height: 78%; inset-inline-end: 6%; top: 4%; border-radius: 48% 52% 46% 54% / 40% 44% 56% 60%; z-index: 2; }
.hero__shape--2 { width: 38%; height: 50%; inset-inline-start: 0; bottom: 4%; border-radius: var(--r-xl); z-index: 3; border: 6px solid var(--bg); }
.hero__shape--3 { width: 30%; height: 36%; inset-inline-end: 0; bottom: 0; border-radius: 50%; z-index: 1; opacity: .95; }
.hero__chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: .8rem; font-weight: 600;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--r-pill); box-shadow: var(--sh-md);
  animation: float 6s ease-in-out infinite;
}
.hero__chip--a { top: 8%; inset-inline-start: 6%; color: var(--sage); }
.hero__chip--b { bottom: 28%; inset-inline-end: -2%; animation-delay: -3s; }

/* ---------- Features ---------- */
.feats { padding-block: 8px 24px; }
.feats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: transform .25s var(--ease), box-shadow .25s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.feat i { width: 46px; height: 46px; border-radius: 14px; background: var(--blush); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: 0 0 auto; }
.feat b { display: block; font-size: .92rem; }
.feat span { font-size: .78rem; color: var(--muted); }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(28px, 4vw, 56px); }
.sec--tight { padding-block: 20px 48px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec__title { font-size: clamp(1.6rem, 3vw, 2.3rem); position: relative; padding-inline-start: 18px; }
.sec__title::before { content: ''; position: absolute; inset-inline-start: 0; top: .32em; width: 6px; height: .7em; border-radius: 4px; background: var(--primary); }
.sec__sub { color: var(--muted); font-size: .9rem; margin-top: 4px; padding-inline-start: 18px; }
.sec__more { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; background: var(--surface); transition: transform .2s var(--ease), border-color .2s, color .2s; white-space: nowrap; }
.sec__more:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px 14px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cat__img { width: 100%; aspect-ratio: 1; border-radius: 46% 54% 50% 50% / 50% 46% 54% 50%; overflow: hidden; background: var(--alt); border: 4px solid var(--surface); box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s, border-radius .6s var(--ease); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover .cat__img { transform: translateY(-4px); box-shadow: var(--sh-md); border-radius: 50%; }
.cat:hover .cat__img img { transform: scale(1.08); }
.cat__name { font-size: .88rem; font-weight: 600; transition: color .2s; }
.cat:hover .cat__name { color: var(--primary); }

/* ---------- Product card ---------- */
.card { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--border); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card--out .card__media img { filter: grayscale(.6); opacity: .8; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; padding: 5px 11px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 700; line-height: 1.2; }
.badge--sale { background: var(--text); color: #fff; }
.badge--out { background: rgba(255, 255, 255, .92); color: var(--muted); top: auto; bottom: 10px; inset-inline: 10px; text-align: center; }
.badge--lg { font-size: .85rem; padding: 8px 16px; top: 16px; inset-inline-start: 16px; }
.card__body { padding: 12px 6px 4px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: .9rem; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; transition: color .2s; }
.card__title:hover { color: var(--primary); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.card__price { display: flex; flex-direction: column; line-height: 1.2; }
.price { font-weight: 700; font-size: 1rem; color: var(--text); }
.price--old { color: var(--muted); font-size: .78rem; font-weight: 400; }
.price--xl { font-size: 1.7rem; font-family: var(--font-body); }
.card__add { width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform .2s var(--ease), background-color .2s, color .2s; flex: 0 0 auto; }
.card__add:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.card__add.added { background: var(--sage); color: #fff; }
.card__add[disabled] { opacity: .4; cursor: not-allowed; }

/* Rows (horizontal sliders) */
.row { position: relative; }
.row__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.row__track::-webkit-scrollbar { display: none; }
.row__track > * { scroll-snap-align: start; }
.row__nav { position: absolute; top: 40%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-md); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background-color .2s, color .2s, transform .2s; }
.row__nav:hover { background: var(--text); color: #fff; transform: scale(1.06); }
.row__nav--prev { inset-inline-start: -18px; }
.row__nav--next { inset-inline-end: -18px; }

/* Grid (listing) */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--blush); border-block: 1px solid var(--blush-2); padding: 14px 0; margin-block: 8px; }
.marquee__track { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; font-family: var(--font-head); font-size: 1.15rem; color: var(--primary-hover); animation: marquee 40s linear infinite; }
.marquee__track i { color: var(--primary); opacity: .6; }

/* ---------- Promo ---------- */
.promo { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 56px); overflow: hidden; position: relative; }
.promo--blush { background: linear-gradient(135deg, var(--blush), #FBF1EE); }
.promo--sage { background: linear-gradient(135deg, var(--sage-soft), #F1F5F2); }
.promo--sage .eyebrow { color: var(--sage); }
.promo::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .5); inset-inline-end: -120px; top: -160px; }
.promo__text { position: relative; z-index: 1; }
.promo__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 10px 0 14px; }
.promo__desc { color: var(--muted); max-width: 46ch; margin-bottom: 24px; line-height: 1.9; }
.promo__media { position: relative; z-index: 1; display: block; aspect-ratio: 1; max-width: 420px; margin-inline-start: auto; border-radius: 46% 54% 50% 50% / 50% 46% 54% 50%; overflow: hidden; box-shadow: var(--sh-lg); transition: transform .4s var(--ease); }
.promo__media:hover { transform: rotate(-2deg) scale(1.02); }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.promo__tag { position: absolute; bottom: 14%; inset-inline-start: 8%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); padding: 8px 14px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600; box-shadow: var(--sh-md); max-width: 84%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.brands__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 16px; transition: transform .25s var(--ease), box-shadow .25s; }
.brands__item img { max-height: 100%; object-fit: contain; filter: grayscale(1) opacity(.7); transition: filter .3s; }
.brands__item:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.brands__item:hover img { filter: none; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.review { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 22px 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), box-shadow .25s; }
.review:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.review__quote { position: absolute; top: 4px; inset-inline-end: 18px; font-family: var(--font-head); font-size: 4.5rem; line-height: 1; color: var(--blush-2); }
.review blockquote { margin: 0; color: var(--text); font-size: .92rem; line-height: 1.85; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review figcaption b { display: block; font-size: .9rem; }
.review figcaption small { color: var(--muted); font-size: .75rem; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Page heads / crumbs ---------- */
.phead { padding-block: 22px 8px; }
.phead--soft { background: linear-gradient(180deg, var(--blush) 0%, transparent 100%); padding-block: 22px 20px; }
.phead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.phead__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.phead__meta { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--primary); }
.crumbs i { font-size: .75rem; opacity: .6; }
.crumbs span { color: var(--text); font-weight: 500; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sort { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 4px 6px 4px 16px; }
.sort label { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sort select { border: 0; background: var(--alt); border-radius: var(--r-pill); padding: 8px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.sort select:focus { outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 8px 16px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-pill); font-size: .85rem; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager__dots { min-width: 42px; height: 42px; padding-inline: 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; border: 1px solid var(--border); background: var(--surface); transition: background-color .2s, color .2s, border-color .2s; }
.pager__dots { border: 0; background: none; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager a.is-active { background: var(--text); color: #fff; border-color: var(--text); }

.empty { text-align: center; padding: 72px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty i { font-size: 3rem; color: var(--rose); }
.empty p { font-size: 1.05rem; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.pdp__media { position: sticky; top: 16px; border-radius: var(--r-xl); overflow: hidden; background: var(--alt); aspect-ratio: 4 / 5; box-shadow: var(--sh-md); }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__cat { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--primary); background: var(--blush); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }
.pdp__title { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.3; }
.pdp__subtitle { color: var(--muted); margin-top: 8px; }
.pdp__price { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.pdp__save { background: var(--sale); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); }
.pdp__stock { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.pdp__stock.is-in { color: var(--sage); }
.pdp__stock.is-out { color: var(--sale); }
.pdp__buy { display: flex; gap: 12px; margin-top: 26px; }
.pdp__add { flex: 1; }
.pdp__perks { list-style: none; padding: 18px 20px; margin: 26px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.pdp__perks i { color: var(--primary); margin-inline-end: 8px; }
.pdp__sku { margin-top: 14px; font-size: .78rem; color: var(--muted); }
.pdp__desc { margin-top: 56px; max-width: 820px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 36px); }
.pdp__desc h3 { font-size: 1.5rem; margin-bottom: 14px; }
.pdp__desc p { color: var(--muted); line-height: 1.95; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); height: 52px; padding: 4px; }
.qty button { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.qty button:hover { background: var(--blush); color: var(--primary); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 1rem; }
.qty input:focus { outline: none; }
.qty--sm { height: 40px; padding: 2px; }
.qty--sm button { width: 34px; height: 34px; }
.qty--sm input { width: 36px; font-size: .9rem; }

.stickybuy { display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 80; background: rgba(253, 251, 247, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -10px 30px rgba(45, 40, 37, .08); }
.stickybuy__price { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.stickybuy__price span { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stickybuy__price b { font-size: 1.05rem; }
.stickybuy .btn { padding-inline: 20px; }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.cart__items { display: flex; flex-direction: column; gap: 12px; }
.citem { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; transition: box-shadow .2s; }
.citem:hover { box-shadow: var(--sh-sm); }
.citem__img { border-radius: var(--r-md); overflow: hidden; background: var(--alt); aspect-ratio: 1; }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.citem__title { font-weight: 600; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem__title:hover { color: var(--primary); }
.citem__price { color: var(--muted); font-size: .85rem; }
.citem__controls { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.citem__remove { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: var(--r-pill); transition: color .2s, background-color .2s; }
.citem__remove:hover { color: var(--sale); background: #FBEBEF; }
.citem__line { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.summary { position: sticky; top: 140px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.summary h3 { font-size: 1.5rem; margin-bottom: 6px; }
.summary__row { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; }
.summary__row--muted { color: var(--muted); font-size: .82rem; }
.summary__row--total { border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 6px; font-size: 1.05rem; }
.summary__row--total b { font-size: 1.4rem; }
.summary__note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 4px; }
.summary__note i { color: var(--sage); }

/* ---------- Static pages ---------- */
.prose { max-width: 780px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 44px); line-height: 2; color: var(--muted); font-size: 1rem; }
.prose p + p { margin-top: 14px; }
.prose b { color: var(--text); }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-inline-start: 20px; margin: 10px 0; }

/* ---------- Footer ---------- */
.ftr { margin-top: 48px; background: var(--blush); border-radius: 48px 48px 0 0; padding-block: 8px 24px; position: relative; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; padding-block: 40px 40px; }
.ftr__brand .logo { margin-bottom: 14px; }
.ftr__tag { font-family: var(--font-head); font-size: 1.25rem; color: var(--primary-hover); }
.ftr__desc { font-size: .86rem; color: var(--muted); line-height: 1.9; margin-top: 10px; max-width: 46ch; }
.ftr__col h4 { font-size: 1.15rem; margin-bottom: 14px; }
.ftr__col a { display: block; padding: 5px 0; font-size: .9rem; color: var(--muted); transition: color .2s, transform .2s var(--ease); }
.ftr__col a:hover { color: var(--primary); transform: translateX(-4px); }
.paylogos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.paylogos__chip { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 5px 10px; }
.paylogos__chip svg { display: block; height: 16px; width: auto; }
.ftr__bar { border-top: 1px solid rgba(184, 138, 131, .25); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.ftr__bar-en { font-family: var(--font-head); font-style: italic; letter-spacing: .02em; }

/* ---------- Floating & toast ---------- */
.toast { position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 110; background: var(--text); color: #fff; padding: 14px 20px; border-radius: var(--r-md); box-shadow: var(--sh-lg); font-size: .9rem; font-weight: 500; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .row__track { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
  .cats { grid-template-columns: repeat(5, 1fr); }
  .brands { grid-template-columns: repeat(5, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .ftr__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hdr__row { min-height: 66px; gap: 10px; }
  .hdr__burger { display: inline-flex; }
  .hdr .srch:not(.srch--mobile) { display: none; }
  .hdr__search-toggle { display: inline-flex; }
  .nav { display: none; }
  .logo__ar { font-size: 1.55rem; }
  .logo__mark { width: 26px; height: 26px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; height: clamp(300px, 70vw, 420px); }
  .hero__title { font-size: clamp(2.3rem, 9vw, 3.6rem); }
  .feats__grid { grid-template-columns: repeat(2, 1fr); }
  .row__track { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
  .row__nav { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .promo { grid-template-columns: 1fr; }
  .promo__media { margin-inline: auto; max-width: 340px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: relative; aspect-ratio: 1; max-height: 520px; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .stickybuy { display: flex; }
  body:has(.stickybuy) .ftr { padding-bottom: 80px; }
  .ftr { border-radius: 32px 32px 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .announce__inner { justify-content: center; }
  .announce__item { white-space: normal; text-align: center; max-width: 100%; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .cat__name { font-size: .8rem; }
  .row__track { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 8px; }
  .card__title { font-size: .84rem; }
  .card__add { width: 36px; height: 36px; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .feats__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat { padding: 14px; gap: 10px; flex-direction: column; text-align: center; }
  .feat i { width: 40px; height: 40px; }
  .hero__stats { gap: 22px; }
  .hero__cta .btn { flex: 1; }
  .hero__chip--b { display: none; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .citem { grid-template-columns: 84px 1fr; }
  .citem__line { grid-column: 1 / -1; text-align: end; border-top: 1px dashed var(--border); padding-top: 10px; }
  .pdp__buy { flex-wrap: wrap; }
  .pdp__buy .qty { width: 100%; justify-content: space-between; }
  .pdp__add { width: 100%; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__col:last-child { grid-column: 1 / -1; }
  .toast { inset-inline: 16px; bottom: 90px; text-align: center; }
}

/* =====================================================================
   Checkout + Payment + OTP (mock card gateway)  —  added
   ===================================================================== */

/* two-column layout: form + sticky summary */
.cart-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }

/* generic surface box for the checkout / payment forms */
.card-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 30px); box-shadow: var(--sh-sm); }
.card-box h3 { font-size: 1.25rem; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.card-box h3 i { color: var(--primary); }
.co-card__title { font-size: 1.15rem; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; font-weight: 600; }
.co-card__title i { color: var(--primary); }
.co-card__title .billing-edit { margin-inline-start: auto; font-size: .8rem; font-weight: 500; }

/* form grid + fields */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); font-family: inherit; font-size: .95rem; background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(184, 138, 131, .16); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #b7a99f; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--sale); background: #fdf3f4; }
.field.is-invalid label { color: var(--sale); }

/* form error banner */
.form-errors { background: #fbe9e7; border: 1px solid #f3c9c4; color: var(--sale); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.form-errors i { margin-top: 3px; }
.form-errors ul { margin: 0; padding-inline-start: 18px; font-size: .9rem; line-height: 1.7; }

/* read-only billing recap on the payment page */
.billing-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.billing-list > div { font-size: .92rem; font-weight: 600; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.billing-list > div > span { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.billing-list .full { grid-column: 1 / -1; }

/* accepted-brands row + brand logo pills */
.card-accepted-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .82rem; color: var(--muted); }
.pay-badge { border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; background: #fff; display: inline-flex; align-items: center; }
.pay-badge svg { display: block; height: 16px; width: auto; }
.pay-badge--visa svg { height: 13px; }

/* card number field — detected brand logo sits INSIDE the field on the right;
   the input reserves 58px on the right so the number can never run under it,
   and only the logo matching the entered brand is shown */
.card-number-wrap { position: relative; }
.card-number-wrap input { padding-right: 58px; font-size: .92rem; letter-spacing: .04em; }
.card-brand-icons { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; pointer-events: none; }
.cbi { display: none; width: 42px; height: 27px; }
.cbi.is-active { display: block; animation: cbi-in .18s ease; }
.cbi svg { display: block; width: 100%; height: 100%; }
@keyframes cbi-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.secure-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.secure-note i { color: var(--sage); }

/* checkout/payment line-item list in the summary */
.co-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.co-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.co-line img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--alt); }
.co-line__name { font-size: .82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-line__name small { color: var(--muted); }
.co-line b { font-size: .85rem; }

/* success card */
.pay-success { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 46px 30px; }
.pay-success__icon { font-size: 3.4rem; color: var(--sage); animation: pop .5s var(--ease); }
.pay-success h2 { font-size: 1.7rem; margin: 0; }
.pay-success p { color: var(--muted); margin: 0; }
.pay-success__num { font-size: 1rem !important; }
.pay-success__num b { color: var(--primary); letter-spacing: .03em; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Modal (OTP gateway) ---------- */
body.no-scroll { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(45, 40, 37, .55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; overflow-y: auto; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal { background: var(--surface); border-radius: var(--r-xl); width: 100%; max-width: 420px; box-shadow: var(--sh-lg); overflow: hidden auto; margin: auto; transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); }
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.otp-modal { max-width: 380px; max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); }

.gw-head { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: linear-gradient(135deg, var(--blush), var(--rose)); }
.gw-logo-mark { width: 30px; height: 30px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; box-shadow: var(--sh-sm); }
.gw-logo-mark::before { content: "\f023"; }
.gw-brand-txt { display: flex; flex-direction: column; }
.gw-brand-txt b { font-size: .95rem; }
.gw-brand-txt small { color: #7a5f5a; font-size: .72rem; display: flex; align-items: center; gap: 5px; }
.gw-brand-txt small i { color: var(--sage); }

.gw-step { padding: 14px 20px 10px; text-align: center; }
.gw-step h3 { font-size: 1.15rem; margin: 8px 0 2px; }

.gw-progress { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.gw-progress span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--primary), var(--rose)); border-radius: 99px; animation: gwload 1.4s var(--ease) infinite; }
@keyframes gwload { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }

.otp-spinner { width: 44px; height: 44px; margin: 4px auto 2px; border-radius: 50%; border: 4px solid var(--blush); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.otp-sub { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }
.otp-dots { display: inline-flex; gap: 4px; margin-inline-start: 4px; }
.otp-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); opacity: .3; animation: dot 1.2s infinite; }
.otp-dots i:nth-child(2) { animation-delay: .2s; }
.otp-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.gw-cardrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; background: var(--alt); border: 1px solid var(--border); border-radius: var(--r-md); font-size: .85rem; }
.gw-cardrow i { color: var(--primary); }

.gw-txn { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: start; margin-bottom: 10px; background: var(--alt); border: 1px solid var(--border); border-radius: var(--r-md); padding: 7px 10px; }
.gw-txn > div { display: flex; flex-direction: column; gap: 2px; }
.gw-txn span { font-size: .68rem; color: var(--muted); }
.gw-txn b { font-size: .88rem; }

.otp-icon { width: 40px; height: 40px; margin: 2px auto 6px; border-radius: 50%; background: var(--blush); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* OTP boxes */
.otp-boxes { display: flex; gap: 8px; justify-content: center; margin: 12px 0 6px; direction: ltr; }
.otp-boxes.is-error .otp-box { border-color: var(--sale); background: #fdf3f4; }
.otp-boxes.shake { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.otp-box { width: 42px; height: 48px; text-align: center; font-size: 1.3rem; font-weight: 700; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.otp-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(184, 138, 131, .18); background: #fff; }
.otp-box.filled { border-color: var(--primary); transform: translateY(-2px); }
.otp-hint { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.otp-err { font-size: .82rem; color: var(--sale); margin: 8px 0 0; }
.otp-submit { margin-top: 10px; }
.otp-submit:disabled { opacity: .55; cursor: not-allowed; }

.otp-resend { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; width: 100%; max-width: 280px; margin: 10px auto 0; font-size: .82rem; color: var(--muted); }
.otp-resend-btn { background: none; border: 0; color: var(--primary); font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; padding: 4px 8px; }
.otp-resend-btn:disabled { color: var(--muted); cursor: not-allowed; }
.otp-back { display: inline-flex; align-items: center; gap: 6px; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font-family: inherit; font-size: .82rem; cursor: pointer; padding: 6px; }
.otp-back:hover { color: var(--primary); }

.gw-foot { padding: 8px 18px; background: var(--alt); border-top: 1px solid var(--border); font-size: .74rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.gw-foot i { color: var(--sage); }

/* processing screen (card-box gw-await) */
.gw-await { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 42px 28px; }
.gw-await .gw-progress { width: 100%; max-width: 320px; margin: 14px 0; }
.gw-await h3 { font-size: 1.35rem; margin: 8px 0 0; }
.gw-await.is-approved .otp-spinner { animation: none; border-top-color: var(--sage); border-color: var(--sage-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cart-wrap { grid-template-columns: 1fr; gap: 20px; }
  .cart-wrap .summary { position: static; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .billing-list { grid-template-columns: 1fr; }
  .gw-txn { grid-template-columns: 1fr; }
  .otp-box { width: 38px; height: 46px; font-size: 1.25rem; }
  .otp-boxes { gap: 7px; }
}
