/* =========================================================================
   NOOR MAHAL — storefront theme
   Luxury black / white / gold · Inter/Manrope-style stack
   ========================================================================= */
:root {
  --primary: #000000;
  --secondary: #ffffff;
  --accent: #d4af37;
  --accent-rgb: 212, 175, 55;
  --bg: #f8f8f8;
  --text: #141414;
  --muted: #6b6b6b;
  --border: #e7e7e7;
  --sale: #9a1c1c;
  --page: 1440px;
  --radius: 14px;
  --radius-lg: 22px;
  --btn-radius: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.32s;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.16);
  --font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; }
.muted { color: var(--muted); }
.overline { font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: clamp(48px, 7vw, 90px) 0; }
.center { text-align: center; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.9em; min-height: 48px; font-weight: 600; font-size: 0.92rem;
  background: var(--primary); color: var(--secondary); border: 1.5px solid var(--primary);
  border-radius: var(--btn-radius); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--gold { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: var(--secondary); }
.btn--sm { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.82rem; }
.btn--full { width: 100%; }
.link { position: relative; font-weight: 600; }
.link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Badges */
.badge { display: inline-flex; align-items: center; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35em 0.6em; border-radius: 999px; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--primary); color: #fff; }
.badge--gold { background: var(--accent); color: var(--primary); }
.badge--out { background: var(--muted); color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 0; }
.header__nav { display: flex; gap: 6px; }
.header__nav a { padding: 8px 12px; font-weight: 500; font-size: 0.94rem; }
.header__logo { justify-self: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.16em; text-transform: uppercase; }
.header__logo b { color: var(--accent); }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.iconbtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background var(--dur); }
.iconbtn:hover { background: rgba(0,0,0,0.06); }
.count { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; font-size: 0.64rem; font-weight: 700; background: var(--accent); color: var(--primary); border-radius: 999px; }
.announce { background: var(--primary); color: var(--accent); text-align: center; font-size: 0.78rem; letter-spacing: 0.06em; padding: 9px 0; }
.burger { display: none; }

/* Hero */
.hero { position: relative; min-height: 86vh; display: grid; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #0b0b0b, #1c1c1c 60%, #2a2317); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.6)); }
.hero__content { max-width: 640px; }
.hero__content h1 { color: #fff; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* Section head */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }

/* Product card */
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: #ece9e2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #efe9dd, #e3dccb); color: var(--accent); font-family: var(--font-head); font-weight: 800; letter-spacing: 0.2em; font-size: 1.1rem; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.card__wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,0.9); border-radius: 50%; transition: transform var(--dur); }
.card__wish:hover { transform: scale(1.1); }
.card__wish.on svg { fill: var(--sale); stroke: var(--sale); }
.card__quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; opacity: 0; transform: translateY(12px); transition: opacity var(--dur), transform var(--dur); }
.card:hover .card__quick { opacity: 1; transform: none; }
.card__info { padding-top: 12px; }
.card__title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.card__cat { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.price { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 600; margin-top: 4px; }
.price s { color: var(--muted); font-weight: 400; }
.price .now { color: var(--sale); }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border); box-shadow: inset 0 0 0 2px #fff; }

/* Collection tiles */
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; aspect-ratio: 4/5; }
.tile img, .tile .card__ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.6)); }
.tile__cap h3 { color: #fff; }

/* Editorial */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.editorial__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }

/* Lookbook — even grid of uniform tiles (no ragged masonry gap) */
.lookbook { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lookbook a { display: block; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 3/4; }
.lookbook img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.lookbook a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35)); opacity: 0; transition: opacity var(--dur); }
.lookbook a:hover img { transform: scale(1.05); }
.lookbook a:hover::after { opacity: 1; }
@media (max-width: 990px) { .lookbook { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 640px) { .lookbook { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Marquee USPs */
.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.usp svg { color: var(--accent); }

/* Filters + shop */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 90px; }
.fgroup { border-bottom: 1px solid var(--border); padding: 16px 0; }
.fgroup h4 { margin: 0 0 10px; font-size: 0.95rem; }
.chk { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.9rem; cursor: pointer; }
.chk input { accent-color: var(--primary); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.field { height: 46px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--btn-radius); background: #fff; transition: border-color var(--dur); }
.field:focus { border-color: var(--primary); outline: none; }
select.field { border-radius: 10px; }

/* Product detail */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.pdp__gallery { position: sticky; top: 90px; }
.gmain { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: #ece9e2; }
.gthumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gthumb { width: 70px; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; border: 1.5px solid transparent; }
.gthumb.on { border-color: var(--primary); }
.opt { margin: 18px 0; }
.opt__label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-width: 46px; height: 44px; padding: 0 14px; display: grid; place-items: center; border: 1.5px solid var(--border); border-radius: 8px; transition: all var(--dur); }
.chip.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip--color { width: 40px; padding: 0; border-radius: 50%; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; }
.qty button { width: 40px; height: 44px; display: grid; place-items: center; }
.qty input { width: 44px; text-align: center; border: 0; background: none; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.trust div { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; }
.acc details { border-top: 1px solid var(--border); }
.acc summary { display: flex; justify-content: space-between; padding: 18px 0; cursor: pointer; font-weight: 600; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc__body { padding-bottom: 18px; color: var(--muted); }

/* Cart */
.cartline { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cartline__img { border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; background: #ece9e2; }
.summary { position: sticky; top: 90px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.shipbar__track { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; margin: 8px 0 18px; }
.shipbar__fill { height: 100%; background: linear-gradient(90deg, var(--accent), #9a7b1e); transition: width 0.6s var(--ease); }

/* Footer */
.footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer li { margin-bottom: 9px; }
.footer__brand { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.14em; color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; transition: all var(--dur); }
.social a:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Brand sub-wordmark "Collections" */
.header__logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.header__logo-main { display: block; white-space: nowrap; } /* keep "NOOR MAHAL" on a single line */
.header__logo-sub { font-size: 0.5rem; letter-spacing: 0.42em; color: var(--accent); margin-top: 6px; text-indent: 0.42em; white-space: nowrap; }
.footer__brand-sub { display: block; font-family: var(--font); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.4em; color: var(--accent); margin-top: 6px; text-indent: 0.4em; text-transform: uppercase; }

/* "Visit our studio" — full-width section ABOVE the footer, with live map */
.locate { background: var(--secondary); border-top: 1px solid var(--border); padding: clamp(44px, 6vw, 72px) 0; }
.locate__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.locate__map { border-radius: var(--radius-lg); overflow: hidden; height: 340px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.locate__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 749px) { .locate__inner { grid-template-columns: 1fr; } .locate__map { height: 260px; } }

/* Toast + reveal */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 13px 20px; background: var(--primary); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lift); animation: pop 0.3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* Drawer (cart mini + mobile nav) */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; visibility: hidden; transition: opacity var(--dur); z-index: 60; }
.overlay.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 70; transform: translateX(100%); transition: transform var(--dur) var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lift); }
.drawer.on { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--border); }

/* =========================================================================
   Refinements
   ========================================================================= */
/* Product-card hover image swap */
.card__media a.card__link { position: absolute; inset: 0; display: block; z-index: 0; }
.card__media a.card__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__hover { opacity: 0; transition: opacity 0.55s var(--ease); }
.card:hover .card__hover { opacity: 1; }
.card__media { box-shadow: 0 1px 0 rgba(0,0,0,0.02); }

/* Hero Ken-Burns + scroll cue */
.hero__bg img { animation: kenburns 20s ease-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.13); } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: #fff; opacity: 0.85; animation: bob 1.8s ease-in-out infinite; z-index: 1; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Mobile nav drawer (from left) */
.drawer--left { left: 0; right: auto; transform: translateX(-100%); }
.drawer--left.on { transform: none; }
.mnav a { display: block; padding: 15px 2px; font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mnav a:last-child { border-bottom: 0; }

/* Back to top */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent); color: var(--primary); }

/* Skeleton cards */
.sk { position: relative; overflow: hidden; background: #ece9e2; border-radius: var(--radius); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); animation: shimmer 1.3s infinite; }
.sk--media { aspect-ratio: 3/4; }
.sk--line { height: 13px; border-radius: 6px; margin-top: 10px; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* PDP hover-zoom + lightbox */
.gmain { cursor: zoom-in; }
.gmain img { transition: transform 0.35s var(--ease); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 120; display: none; place-items: center; padding: 24px; }
.lightbox.on { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__btn { position: absolute; color: #fff; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255,255,255,0.12); border-radius: 50%; transition: background 0.2s; }
.lightbox__btn:hover { background: rgba(255,255,255,0.25); }
.lightbox__close { top: 22px; right: 24px; }
.lightbox__prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 20px; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 990px) {
  .g4 { grid-template-columns: repeat(3, 1fr); }
  .header__nav { display: none; }
  .header__bar { grid-template-columns: auto 1fr auto; }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; }
  .pdp, .editorial, .shop { grid-template-columns: 1fr; }
  .pdp__gallery, .filters, .summary { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .usps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .cart-wrap { grid-template-columns: 1fr !important; }
}

/* =========================================================================
   Ratings, reviews, payments, accounts & policies
   ========================================================================= */
/* Star ratings */
.stars { display: inline-block; position: relative; font-size: 0.9rem; line-height: 1; letter-spacing: 2px; vertical-align: middle; }
.stars::before { content: "★★★★★"; color: var(--border); }
.stars__on { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent); }
.stars__on::before { content: "★★★★★"; }
.stars__n { font-size: 0.78rem; color: var(--muted); margin-left: 6px; }
.card__rating { margin: 4px 0; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review:first-child { padding-top: 0; }
.verified { display: inline-block; margin-top: 8px; font-size: 0.72rem; color: #2e9e5b; font-weight: 600; }
.review-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 90px; }
.star-input { display: flex; gap: 4px; font-size: 1.6rem; margin-bottom: 14px; color: var(--border); }
.star-input button { color: inherit; line-height: 1; padding: 0; transition: color 0.15s; }
.star-input button.on { color: var(--accent); }
@media (max-width: 749px) { .reviews-grid { grid-template-columns: 1fr; } .review-form { position: static; } }

/* Payment badges + checkout */
.pay-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badge { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.sum-row { display: flex; justify-content: space-between; margin: 8px 0; }
.sum-row--total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.pay-select { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px; }
.pay-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s, background 0.2s; font-size: 0.92rem; }
.pay-opt input { accent-color: var(--primary); }
.pay-opt:has(input:checked) { border-color: var(--primary); background: #faf9f6; }

/* Account & auth */
.auth-card { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--bg); border-radius: 12px; padding: 5px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.auth-tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .field { width: 100%; }
.auth-err { color: var(--sale); font-size: 0.85rem; min-height: 18px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.account-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.account-stats { display: flex; gap: 14px; margin-top: 16px; }
.account-stats div { flex: 1; background: var(--bg); border-radius: 12px; padding: 14px; text-align: center; }
.account-stats strong { display: block; font-size: 1.3rem; font-family: var(--font-head); }
.account-stats span { font-size: 0.75rem; color: var(--muted); }
.orders-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.order-row:last-child { border-bottom: 0; }
@media (max-width: 749px) { .account-grid { grid-template-columns: 1fr; } }

/* Policy pages */
.policy { max-width: 760px; }
.policy h1 { margin-bottom: 6px; }
.policy h2 { margin-top: 32px; font-size: 1.25rem; }
.policy ul { margin: 10px 0; padding-left: 20px; list-style: disc; }
.policy li { margin-bottom: 8px; }
.policy-callout { background: #faf7ef; border: 1px solid var(--accent); border-left-width: 4px; border-radius: 10px; padding: 16px 18px; margin: 18px 0; }
.policy-callout--warn { background: #fdf3f3; border-color: var(--sale); }
.policy-help { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ===================== Account dashboard ===================== */
.wrap--narrow { max-width: 760px; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 92px; }
.account-hello { padding: 4px 4px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.account-hello strong { font-family: var(--font-head); font-size: 1.05rem; }
.account-hello .muted { font-size: 0.8rem; word-break: break-word; }
.acc-tab { text-align: left; background: transparent; border: 0; padding: 11px 12px; border-radius: 10px; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer; text-decoration: none; transition: background var(--dur); }
.acc-tab:hover { background: var(--bg); }
.acc-tab.on { background: var(--primary); color: #fff; }
.acc-tab--link { color: var(--muted); font-weight: 500; }
.account-nav .account-stats { margin-top: 14px; }
.account-nav .btn { margin-top: 8px; }
.account-main { min-width: 0; }
.account-main h4 { margin: 20px 0 8px; font-size: 1rem; }

/* Order cards */
.orders-list { display: flex; flex-direction: column; gap: 12px; border: 0; border-radius: 0; overflow: visible; }
.order-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.order-card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.order-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.order-card__foot .link { background: transparent; border: 0; font: inherit; cursor: pointer; }
.order-track { margin-top: 14px; }
.ret-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: #faf3e2; color: #8a6d16; border: 1px solid var(--accent); border-radius: 999px; padding: 4px 10px; }

/* Stage pills */
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--primary); border: 1px solid var(--border); }
.pill--placed, .pill--packed { background: #f1f1f1; color: #555; }
.pill--shipped, .pill--out_for_delivery { background: #faf3e2; color: #8a6d16; border-color: var(--accent); }
.pill--delivered { background: #e9f6ec; color: #1f7a3d; border-color: #b6e0c2; }

/* ===================== Tracking stepper ===================== */
.track-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.track-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; }
.track-meta > div { display: flex; flex-direction: column; }
.track-meta .muted { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.track-meta strong { font-family: var(--font-head); }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.stepper .step { flex: 1; text-align: center; position: relative; }
.stepper .step__dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--border); margin: 0 auto 8px; position: relative; z-index: 1; }
.stepper .step::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.stepper .step:first-child::before { display: none; }
.stepper .step__lbl { font-size: 0.72rem; color: var(--muted); line-height: 1.2; display: block; }
.stepper .step.is-done .step__dot, .stepper .step.is-current .step__dot { background: var(--accent); border-color: var(--accent); }
.stepper .step.is-done::before, .stepper .step.is-current::before { background: var(--accent); }
.stepper .step.is-current .step__lbl { color: var(--primary); font-weight: 700; }
.track-history { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); font-size: 0.85rem; }
.track-history li { padding: 3px 0; }

/* Track page + result */
.track-hero { text-align: center; margin-bottom: 22px; }
.track-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 8px; flex-wrap: wrap; }
.track-form .field { flex: 1; min-width: 150px; }
.track-form .btn { flex: 0 0 auto; }
.track-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-top: 22px; }
.track-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.track-items { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.track-item { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.9rem; }

/* Returns + profile forms */
.return-form, .profile-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 0.82rem; font-weight: 600; }
.fld textarea.field { height: auto; padding: 12px 14px; font: inherit; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-err { color: var(--sale, #b23); font-size: 0.85rem; min-height: 1em; }

@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .account-nav .account-hello { flex-basis: 100%; }
  .stepper .step__lbl { font-size: 0.66rem; }
  .grid-2 { grid-template-columns: 1fr; }
}
