:root {
  --bg: #f6f1ea;
  --surface: #fffdf9;
  --ink: #1d1a17;
  --muted: #6f665d;
  --line: #e4dbcf;
  --accent: #c2562b;
  --accent-dark: #9e4220;
  --sage: #6f7f5c;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(40, 25, 10, 0.08);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* nothing may push the page sideways on phones */
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.icon { display: inline-flex; width: 20px; height: 20px; }
.icon svg { width: 100%; height: 100%; }

/* Announcement marquee */
.announce { background: var(--ink); color: #f6f1ea; font-size: 13px; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-flex; gap: 48px; padding: 8px 0; animation: marquee 30s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: rgba(246, 241, 234, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: -0.5px; white-space: nowrap; }
.logo::after { content: '.'; color: var(--accent); }
.search { flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 42px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); }
.search:focus-within { border-color: var(--ink); }
.header-social { display: flex; gap: 4px; }
.header-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; text-decoration: none; transition: background .2s; }
.header-social a:hover { background: var(--line); }
.header-social .icon { width: 18px; height: 18px; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; flex-shrink: 0; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Home page slider */
.slider { position: relative; max-width: 1200px; margin: 16px auto 0; padding: 0 16px; --gap: 0px; }
.slider-track { position: relative; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; min-width: 0; aspect-ratio: 21 / 9; scroll-snap-align: start; display: block; color: #fff; text-decoration: none; background: var(--line); overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 28px 26px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.slide-caption h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 4vw, 44px); line-height: 1.05; margin: 0 0 6px; }
.slide-caption p { margin: 0; max-width: 560px; font-size: 16px; opacity: .92; }
/* Portrait: 4:5 pictures (like Instagram posts), 3 in view on computers */
.slider-portrait { --gap: 12px; }
.slider-portrait .slider-track { border-radius: 0; }
.slider-portrait .slide { flex-basis: calc((100% - 2 * var(--gap)) / 3); aspect-ratio: 4 / 5; border-radius: var(--radius); }
.slider-portrait .slide-caption { padding: 40px 18px 34px; }
.slider-portrait .slide-caption h2 { font-size: clamp(20px, 2.4vw, 28px); }
.slider-portrait .slide-caption p { font-size: 14px; }
.slider.fits .slider-track { justify-content: center; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 1; }
.slider-arrow.prev { left: 28px; }
.slider-arrow.next { right: 28px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.slider-portrait .slider-dots { position: static; margin-top: 12px; }
.slider-dots button { pointer-events: auto; width: 9px; height: 9px; padding: 0; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .25s, background .25s; }
.slider-dots button.active { width: 24px; background: #fff; }
.slider-portrait .slider-dots button { background: var(--line); }
.slider-portrait .slider-dots button.active { background: var(--ink); }
@media (max-width: 980px) {
  .slider-portrait .slide { flex-basis: calc((100% - var(--gap)) / 2); }
}
.hero.has-slider .hero-art { display: none; }
.hero.has-slider .hero-grid { grid-template-columns: 1fr; }
.hero.has-slider { padding: 32px 0 16px; }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.5vw, 84px); line-height: 1; margin: 0 0 20px; letter-spacing: -1.5px; }
.hero h1 em { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 480px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; height: 440px; }
.hero-card { position: absolute; border-radius: 200px 200px var(--radius) var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.hero-card-a { width: 58%; height: 88%; left: 4%; top: 0; background-color: #d9b99b; }
.hero-card-b { width: 46%; height: 64%; right: 0; bottom: 0; background-color: #a8b596; border-radius: var(--radius) var(--radius) 200px 200px; }
.hero-stamp { position: absolute; right: 8%; top: 6%; width: 104px; height: 104px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 18px; line-height: 1.1; transform: rotate(-12deg); box-shadow: var(--shadow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s; background: transparent; }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Shop */
.shop { padding: 24px 0 64px; scroll-margin-top: 72px; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.shop-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin: 0; }
.shop-head select { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.sale { color: var(--accent); border-color: var(--accent); }
.chip.sale.active { background: var(--accent); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.card { display: block; width: 100%; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; align-self: start; }
.card-media { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card.sold .card-media img, .card.sold .placeholder { filter: grayscale(1) opacity(.6); }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 64px; color: rgba(255, 255, 255, .85); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.badge.sold { background: var(--ink); }
.badge.hot { background: var(--surface); color: var(--ink); }
.card-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 42px; border-radius: 999px; background: var(--surface); display: grid; place-items: center; font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(8px); transition: .25s; }
.card:hover .card-quick { opacity: 1; transform: none; }
.card-info { padding: 12px 4px 0; }
.card-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.card-name { font-weight: 600; margin: 2px 0 4px; }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price .now { font-weight: 700; }
.price .now.sale { color: var(--accent); }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Perks */
.perks { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.perks-grid div { display: flex; flex-direction: column; }
.perks-grid span { color: var(--muted); font-size: 14px; }

/* Footer */
.footer { background: var(--ink); color: #d9d2c8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1.2fr; gap: 32px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #d9d2c8; text-decoration: none; font-size: 15px; width: fit-content; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-address { margin: 0 0 12px; white-space: pre-line; }
.footer-map iframe { width: 100%; height: 160px; border: 0; border-radius: 12px; display: block; margin-bottom: 10px; filter: grayscale(.2); }
.map-link { color: #fff; font-weight: 600; font-size: 14px; }
.logo-light { color: #fff; margin-bottom: 8px; }
.footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 16px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid #3b3530; border-radius: 999px; text-decoration: none; color: #fff; font-size: 14px; transition: background .2s, border-color .2s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #3b3530; margin-top: 32px; padding-top: 20px; font-size: 13px; color: #8f877d; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 168, 85, .4); }
.wa-float .icon { width: 30px; height: 30px; }

/* Modal & drawer */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20, 15, 10, .5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; background: var(--surface); border-radius: 24px; width: 100%; max-width: 960px; max-height: 92vh; overflow: auto; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.gallery { padding: 16px; }
.gallery-main { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 64px; height: 80px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail { padding: 40px 32px 32px 16px; display: flex; flex-direction: column; gap: 16px; }
.detail h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0; }
.detail .price { font-size: 22px; }
.detail .desc { color: var(--muted); margin: 0; white-space: pre-line; }
.opt-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 48px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.opt.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 44px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.detail-actions { display: grid; gap: 10px; margin-top: 4px; }

.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--surface); display: flex; flex-direction: column; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
.drawer-head .modal-close { position: static; }
.drawer-items { flex: 1; overflow: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-img { width: 64px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--line); }
.line-img img, .line-img .placeholder { width: 100%; height: 100%; object-fit: cover; font-size: 24px; }
.line-name { font-weight: 600; font-size: 15px; }
.line-meta { font-size: 13px; color: var(--muted); }
.line-remove { border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.total-row { display: flex; justify-content: space-between; font-size: 18px; }
.note { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 60; font-weight: 600; font-size: 14px; }

/* Checkout */
.account-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; flex-shrink: 0; max-width: 170px; }
.account-btn:hover { border-color: var(--ink); }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-form { display: grid; gap: 14px; align-content: start; padding-top: 16px; padding-bottom: 20px; }
.checkout-form h3 { margin: 6px 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.checkout-form label, .form-stack label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.checkout-form label small, .form-stack label small { font-weight: 400; color: var(--muted); }
.checkout-form input:not([type=radio]), .checkout-form textarea, .form-stack input, .form-stack textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit; font-weight: 400; outline: none; resize: vertical; }
.checkout-form input:focus, .checkout-form textarea:focus, .form-stack input:focus, .form-stack textarea:focus { border-color: var(--ink); }
.checkout-form .invalid, .form-stack .invalid { border-color: var(--accent) !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.back-link { justify-self: start; border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-weight: 600; }
.pay-options { display: grid; gap: 8px; }
.pay-option { display: flex !important; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.pay-option input { margin-top: 4px; accent-color: var(--ink); }
.pay-option span { display: grid; }
.pay-option small { color: var(--muted); font-weight: 400; }
.form-error { color: var(--accent-dark); font-weight: 600; font-size: 14px; margin: 0; min-height: 1em; }
.modal-sm { max-width: 460px; }
.order-done { padding: 40px 28px 28px; display: grid; gap: 14px; text-align: center; }
.order-done h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0; }
.order-done p { margin: 0; color: var(--muted); }
.order-done .check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 28px; }
.order-done .check.warn { background: var(--accent); }
.order-summary { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; }
.order-summary div { display: flex; justify-content: space-between; gap: 12px; }
.order-summary .sum-total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }

/* Manual payment (bank / Easypaisa / JazzCash) */
.manual-pay { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg); }
.manual-help { margin: 0; font-size: 14px; }
.manual-accounts { display: grid; gap: 8px; }
.manual-account { display: flex !important; gap: 10px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 400 !important; }
.manual-account:has(input:checked) { border-color: var(--ink); }
.manual-account input { margin-top: 4px; accent-color: var(--ink); }
.manual-account .acc { display: grid; gap: 2px; font-size: 14px; flex: 1; min-width: 0; }
.acc-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.acc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acc-row code { font-family: inherit; font-weight: 700; word-break: break-all; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.copy-btn .icon { width: 12px; height: 12px; }
.acc-note { color: var(--muted); font-size: 13px; }
.login-hint { font-size: 14px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.login-hint:empty { display: none; }
.login-hint button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--accent-dark); }

/* Account modal */
.account-body { padding: 32px 24px 24px; display: grid; gap: 16px; }
.account-body h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; }
.account-body h3 { margin: 8px 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.account-body > p { margin: 0; color: var(--muted); }
.acc-tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; }
.acc-tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; font-weight: 700; cursor: pointer; color: var(--muted); }
.acc-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.form-stack { display: grid; gap: 12px; }
.my-orders { display: grid; gap: 8px; }
.my-order { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; font-size: 14px; }
.my-order .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.my-order .meta { color: var(--muted); font-size: 13px; }
.status-pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 999px; background: var(--bg); }
.my-details { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.my-details div { display: grid; gap: 1px; }
.my-details span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.my-details strong { font-weight: 600; overflow-wrap: anywhere; }
.my-details em { color: var(--muted); font-weight: 400; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-actions .btn { height: 44px; padding: 0 10px; font-size: 15px; white-space: nowrap; }
.logout-btn { height: 44px; border-color: var(--line); color: var(--muted); }
.back-btn { margin-bottom: -6px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; justify-self: start; }

/* Pages: About us, policies, Earn with us, size guide, tracking */
.modal-page { max-width: 720px; }
.page-body { padding: 36px 36px 32px; }
.page-body h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; margin: 0 48px 16px 0; }
.page-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.rich { color: var(--ink); line-height: 1.7; }
.rich p { margin: 0 0 14px; }
.rich ul { margin: 0 0 14px; padding-left: 20px; }
.rich li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
.rich table { border-collapse: collapse; width: 100%; font-size: 14px; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; white-space: nowrap; }
.rich th { background: var(--bg); font-weight: 700; }
.earn-form { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.earn-done { text-align: center; display: grid; gap: 12px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.earn-done .check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 28px; }
.track-result { margin-top: 16px; }
.guide-link { margin-left: 10px; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; text-decoration: underline; cursor: pointer; }
.opt { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex-shrink: 0; }

/* Order progress */
.tracker { list-style: none; margin: 10px 0 2px; padding: 0; display: grid; gap: 0; }
.tracker li { position: relative; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 5px 0; color: var(--muted); font-size: 13px; }
.tracker li::before { content: ''; position: absolute; left: 8px; top: -50%; height: 100%; width: 2px; background: var(--line); }
.tracker li:first-child::before { display: none; }
.tracker .dot { position: relative; z-index: 1; width: 12px; height: 12px; margin-left: 3px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.tracker li.done, .tracker li.current { color: var(--ink); }
.tracker li.done::before, .tracker li.current::before { background: var(--sage); }
.tracker li.done .dot { background: var(--sage); border-color: var(--sage); }
.tracker li.current .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(194, 86, 43, .18); }
.tracker li.current .t-label { font-weight: 700; }
.tracker .t-date { font-size: 12px; color: var(--muted); }
.tracker-stopped { margin-top: 6px; font-weight: 700; color: #b3261e; font-size: 13px; }

/* Collections on the home page */
.collection { padding: 32px 0 8px; }
.collection-desc { margin: 4px 0 0; color: var(--muted); }
.collection-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.collection-row .card { scroll-snap-align: start; }
.btn-sm-store { height: 38px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }

/* Ratings & reviews */
.stars { color: #e0a526; letter-spacing: 1px; }
.stars .off { color: var(--line); }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.reviews { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; display: grid; gap: 12px; }
.reviews h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.review p { margin: 4px 0; }
.review-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.verified { font-size: 11px; font-weight: 700; color: var(--sage); }
.review-date { font-size: 12px; color: var(--muted); }
.review-thanks { background: var(--bg); padding: 12px; border-radius: 12px; margin: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #e0a526; }
.star-input input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 4px; }

/* Delivery charges in the bag */
.sum-rows { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.sum-rows div { display: flex; justify-content: space-between; }
.free-hint { margin: 0; font-size: 13px; font-weight: 600; color: var(--sage); text-align: center; }

/* Offer popup */
.modal-popup { max-width: 440px; }
.popup-img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.popup-text { padding: 24px; text-align: center; display: grid; gap: 12px; }
.popup-text h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0; }
.popup-text p { margin: 0; color: var(--muted); }

/* Wishlist */
.wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 253, 249, .92); display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: transform .15s; }
.wish:hover { transform: scale(1.1); }
.wish.on { color: #d6336c; }
.wish-big { position: static; width: 44px; height: 44px; font-size: 24px; flex-shrink: 0; border: 1px solid var(--line); box-shadow: none; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wish-head { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 20px; flex-shrink: 0; display: grid; place-items: center; }
.wish-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #d6336c; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.wish-grid { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }

/* Filters */
.shop-tools { display: flex; gap: 8px; align-items: center; }
.filter-btn { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filter-btn[aria-expanded="true"] { border-color: var(--ink); }
.filter-count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; display: grid; gap: 14px; }
.filter-panel .opt { min-width: 0; height: 36px; font-size: 14px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 120px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; justify-self: start; }

/* Share, points */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row .btn { flex: 1; gap: 6px; }
.share-row .icon { width: 18px; height: 18px; color: var(--wa); }
.earn-points { font-size: 13px; font-weight: 700; color: #b7791f; }
.points-card { background: linear-gradient(135deg, #fff6e0, #fde8d8); border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.points-card > div b { font-size: 28px; font-family: var(--serif); font-weight: 400; }
.points-card > div span { color: var(--muted); font-size: 14px; }
.points-card p { margin: 0; font-size: 13px; color: var(--muted); }
.points-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.points-card li { display: flex; justify-content: space-between; gap: 8px; }
.points-card .plus { color: var(--sage); }
.points-card .minus { color: var(--accent); }
.points-use { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 12px; border: 1.5px dashed #e0a526; border-radius: 12px; background: #fff8e6; font-weight: 400; cursor: pointer; }
.points-use input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Addresses, account extras */
.my-addresses { display: grid; gap: 8px; }
.addr { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.addr > div:first-child { display: grid; gap: 2px; }
.addr span { color: var(--muted); }
.addr-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.saved-addresses .opts { margin-bottom: 4px; }
.forgot-link { justify-self: center; margin-top: 4px; }
.cancel-order { color: #b3261e; font-size: 13px; margin-top: 4px; }

/* Stock */
.badge.low { background: #b7791f; }
.stock-note { font-size: 14px; font-weight: 700; color: #b7791f; min-height: 0; }
.stock-note:empty { display: none; }
.stock-note.out { color: #b3261e; }
.opt.empty { opacity: .45; text-decoration: line-through; }

/* Coupon */
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; text-transform: uppercase; }
.coupon-row .btn { height: auto; padding: 0 16px; }
.coupon-msg { margin: 4px 0 0; font-size: 13px; font-weight: 600; }
.coupon-msg:empty { display: none; }
.coupon-msg.ok { color: var(--sage); }
.coupon-msg.bad { color: #b3261e; }

/* Courier tracking */
.courier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 13px; }

/* Install as an app */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.install-bar img { border-radius: 10px; flex-shrink: 0; }
.install-bar > div { flex: 1; display: grid; font-size: 13px; color: var(--muted); }
.install-bar strong { color: var(--ink); font-size: 15px; }
.install-close { border: 0; background: none; font-size: 16px; color: var(--muted); cursor: pointer; padding: 4px; }

/* Responsive */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .collection-row { grid-auto-columns: calc((100% - 40px) / 3); }
  .header-social { display: none; }
}
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { font-size: 22px; }
  .account-btn { margin-left: auto; height: 40px; padding: 0 10px; }
  .account-name { display: none; }
  .cart-btn { width: 40px; height: 40px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
  .hero { padding: 28px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-sub { font-size: 16px; }
  .hero-art { height: 280px; }
  .shop-head h2 { font-size: 26px; }
  .shop-head select { height: 36px; }
  /* 16px text in boxes stops iPhones from zooming in (and the page sliding sideways) when typing */
  input, select, textarea { font-size: 16px !important; }
  .slider { margin-top: 12px; padding: 0 12px; }
  /* Landscape on phones: 16:9, the middle of the picture */
  .slide { aspect-ratio: 16 / 9; }
  .slide-caption h2 { font-size: 22px; }
  /* Portrait on phones: one picture at a time, with the next one peeking in so people know to swipe */
  .slider-portrait { --gap: 10px; }
  .slider-portrait .slide { flex-basis: 86%; aspect-ratio: 4 / 5; }
  .slider-arrow { display: none; }
  .slide-caption { padding: 32px 16px 28px; }
  .slide-caption p { font-size: 14px; }
  .hero-stamp { width: 80px; height: 80px; font-size: 15px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .card-quick { display: none; }
  .card-name { font-size: 14px; }
  .badges { top: 8px; left: 8px; }
  .badge { font-size: 10px; padding: 3px 8px; }
  .perks-grid, .footer-grid { grid-template-columns: 1fr; }
  .page-body { padding: 24px 16px 28px; }
  .wish-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-head { flex-wrap: wrap; }
  .shop-tools { width: 100%; }
  .shop-tools select { flex: 1; }
  .wish-head { width: 40px; height: 40px; margin-left: auto; }
  .wish-head + .account-btn { margin-left: 0; }
  .wish { width: 32px; height: 32px; font-size: 18px; top: 8px; right: 8px; }
  .collection-row { grid-auto-columns: 42%; gap: 12px; }
  .collection { padding-top: 20px; }
  .modal-popup { border-radius: 24px 24px 0 0; }
  .page-body h2 { font-size: 28px; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 24px 24px 0 0; max-height: 94vh; }
  .modal-sm { max-width: none; }
  .modal-body { grid-template-columns: 1fr; }
  .gallery { padding: 12px 12px 0; }
  .gallery-main { aspect-ratio: 4 / 5; }
  .detail { padding: 20px 16px 24px; }
  .detail h2 { font-size: 28px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
