/* ============ Tunban design tokens ============ */
:root {
  --bg: #FFFFFF;
  --ink: #111111;
  --ink-2: #3D3D3D;
  --muted: #6E6E6E;
  --line: #E6E6E6;
  --soft: #F4F5F6;
  --slate: #A0ACB6;
  --slate-dark: #5C6873;
  --sand: #E9DCCB;
  --mist: #DDE2E6;
  --sale: #B0102A;
  --sale-soft: #FCEDEF;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--slate-dark); outline-offset: 2px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.mob { display: none !important; }

/* ============ Promo + header ============ */
.promo { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.header-bar { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }

.logo { font-family: "DM Serif Display", Georgia, serif; font-size: 38px; line-height: 1; white-space: nowrap; }
.logo span:nth-child(1) { color: #151515; }
.logo span:nth-child(2) { color: #2E2E2E; }
.logo span:nth-child(3) { color: #616161; }
.logo span:nth-child(4) { color: #7E7E7E; }
.logo span:nth-child(5) { color: #9C9C9C; }

.search { flex: 1; display: flex; height: 46px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; font: inherit; background: transparent; color: var(--ink); }
.search input:focus { outline: none; }
.search button { width: 64px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.search button .icon { width: 20px; height: 20px; stroke-width: 1.8; }

.header-actions { display: flex; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }
.badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.badge:empty { display: none; }

.dept { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dept-row { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.dept-row::-webkit-scrollbar { display: none; }
.dept-link { padding: 12px 0; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.dept-link:hover, .dept-link.is-on { border-color: var(--ink); }
.dept-link.sale { color: var(--sale); }

/* ============ Hero ============ */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; padding-top: 20px; }
.hero-main { min-height: 400px; background: var(--slate); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.hero-title { font-family: var(--serif); font-size: 60px; line-height: 1; }
.hero-sub { color: #1F272E; font-size: 16px; max-width: 40ch; }
.pill-btn { align-self: flex-start; background: var(--ink); color: #fff; padding: 13px 26px; border-radius: 999px; font-weight: 700; }
.hero-side { display: grid; gap: 12px; }
.hero-small { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 194px; }
.hero-small strong { font-size: 22px; }
.hero-small span { color: #4A3F33; }
.tone-sand { background: var(--sand); }
.tone-mist { background: var(--mist); }
.tone-mist span { color: #3A444D; }

/* ============ Sections ============ */
.section { margin-top: 32px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }

.circles { display: flex; gap: 22px; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
.circles::-webkit-scrollbar { display: none; }
.circle { flex: 0 0 auto; width: 100px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.circle-img { width: 96px; height: 96px; border-radius: 50%; background: #EEF0F2; border: 1px solid #E0E3E6; overflow: hidden; }
.circle:hover .circle-img, .circle.is-on .circle-img { border-color: var(--ink); }

/* Flash sale */
.flash { background: var(--sale-soft); border-radius: var(--radius); padding: 20px; }
.flash-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--sale); }
.timer { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4A3036; font-variant-numeric: tabular-nums; }
.timer b { background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 4px; }
.flash-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.flash-card { background: #fff; border-radius: 6px; overflow: hidden; text-align: start; display: flex; flex-direction: column; }
.flash-card .info { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.flash-card .now { color: var(--sale); font-weight: 700; font-size: 15px; }
.stock { height: 4px; background: #F1D3D8; border-radius: 2px; overflow: hidden; }
.stock i { display: block; height: 100%; background: var(--sale); }
.stock-txt { font-size: 12px; color: #5E5E5E; }

/* ============ Product grid ============ */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.shop-title { margin: 0; margin-inline-end: 16px; font-size: 24px; font-weight: 700; }
.chips { display: flex; gap: 8px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid #DADADA; background: #fff; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 500; }
.sort { margin-inline-start: auto; height: 36px; border: 1px solid #DADADA; border-radius: 999px; padding: 0 14px; font: inherit; background: #fff; color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 12px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; }
.card-img { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.off { position: absolute; inset-inline-start: 0; top: 10px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; }
.new-tag { position: absolute; inset-inline-start: 8px; bottom: 8px; background: #fff; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 4px; }
.heart { position: absolute; inset-inline-end: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; z-index: 1; }
.heart .icon { width: 16px; height: 16px; stroke-width: 1.6; }
.heart.is-on .icon { fill: var(--sale); stroke: var(--sale); }
.card-name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.prices { display: flex; gap: 8px; align-items: baseline; }
.prices b { color: var(--sale); font-size: 16px; }
.prices s { color: var(--muted); font-size: 13px; }
.card-row { display: flex; justify-content: space-between; align-items: center; }
.swatches { display: flex; gap: 5px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.add-btn { width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.add-btn .icon { width: 16px; height: 16px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--ink-2); }
.more { display: flex; justify-content: center; padding-top: 36px; }
.outline-btn { height: 46px; padding: 0 36px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 700; background: #fff; }
.solid-btn { height: 48px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }

/* ============ Footer ============ */
.footer { margin-top: 56px; background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 32px; color: #4A4A4A; }
.footer-grid div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid strong { color: var(--ink); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.copyright { padding-bottom: 32px; font-size: 13px; color: var(--muted); }

/* ============ Drawer, modal, toast ============ */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.show { opacity: 1; pointer-events: auto; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 50; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.show { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.ship { padding: 14px 20px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.ship-bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--slate-dark); transition: width .3s; }
.cart-lines { flex: 1; overflow-y: auto; padding: 0 20px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { border-radius: 6px; aspect-ratio: 3 / 4; object-fit: cover; }
.line p { margin: 0; }
.line .opt { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.line .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.qty button { width: 32px; height: 30px; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 13px; }
.line-end { display: grid; justify-items: end; align-content: space-between; }
.remove { font-size: 12px; color: var(--muted); text-decoration: underline; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer-foot:empty { display: none; }
.row { display: flex; justify-content: space-between; }
.row.total { font-size: 17px; font-weight: 700; }
.vat { font-size: 12px; color: var(--muted); }
.drawer-foot .solid-btn { width: 100%; margin-top: 6px; }
.cart-empty { text-align: center; padding: 64px 12px; color: var(--ink-2); display: grid; gap: 16px; justify-items: center; }

.modal { position: fixed; z-index: 50; left: 50%; top: 50%; width: min(880px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow-y: auto; background: #fff; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; pointer-events: none; transform: translate(-50%, -46%); transition: .25s; }
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.qv-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.qv-body { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.qv-body h2 { margin: 0; font-size: 22px; padding-inline-end: 40px; }
.qv-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.qv-price b { font-size: 24px; color: var(--sale); }
.opt-label { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.colors, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.colors button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); outline-offset: 3px; }
.colors button.is-on { outline: 2px solid var(--ink); }
.sizes button { min-width: 48px; height: 40px; padding: 0 10px; border: 1px solid #DADADA; border-radius: 6px; font-size: 13px; }
.sizes button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.err { color: var(--sale); font-size: 13px; min-height: 18px; margin: 0; }
.qv-actions { display: flex; gap: 10px; align-items: center; }
.qv-actions .qty { margin: 0; }
.qv-actions .solid-btn { flex: 1; }
.qv-note { margin: 0; font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; z-index: 60; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.tabbar { display: none; }

/* ============ Tablet ============ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flash-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flash-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .flash-card { flex: 0 0 150px; scroll-snap-align: start; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-small { min-height: 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal { grid-template-columns: 1fr; }
  .qv-img img { aspect-ratio: 4 / 3; }
}

/* ============ Mobile: app layout (Option 4) ============ */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .desk { display: none !important; }
  .mob { display: grid !important; }
  .promo { font-size: 12px; padding: 6px 12px; }

  .header-bar { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
  .logo { font-size: 34px; flex: 1; }
  .search { order: 3; flex-basis: 100%; border: 0; background: #F1F3F4; }
  .search button { width: 48px; background: transparent; color: var(--slate-dark); order: -1; }
  .search input { padding-block: 0; padding-inline: 0 12px; }

  .dept { border: 0; padding-bottom: 10px; }
  .dept-row { gap: 8px; }
  .dept-link { height: 36px; padding: 0 16px; border: 1px solid #DADDE0; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 400; }
  .dept-link.is-on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 500; }
  .dept-link.sale { border-color: #F1C4CB; }

  .hero { padding-top: 4px; }
  .hero-main { min-height: 176px; padding: 20px; border-radius: 14px; gap: 8px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 13px; }
  .pill-btn { display: none; }
  .hero-small { min-height: 104px; padding: 14px; border-radius: 12px; }
  .hero-small strong { font-size: 17px; }
  .hero-small span { font-size: 12px; }

  .section { margin-top: 24px; }
  .circles { gap: 14px; justify-content: flex-start; }
  .circle { width: 68px; font-size: 12px; }
  .circle-img { width: 64px; height: 64px; }

  .flash { padding: 14px; border-radius: 12px; }
  .flash-title { font-size: 18px; }
  .flash-card { flex-basis: 128px; }

  .toolbar { gap: 8px; }
  .shop-title { font-size: 18px; flex: 1; margin: 0; }
  .chips { order: 3; flex-basis: 100%; overflow-x: auto; }
  .sort { margin-inline-start: 0; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .card-img { border-radius: 10px; }
  .card-name { font-size: 13px; }
  .prices b { font-size: 15px; }
  .add-btn { display: none; }

  .footer { margin-top: 40px; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 28px; }

  .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }

  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid #E4E7EA; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11px; color: var(--slate-dark); }
  .tab.is-on { color: var(--ink); font-weight: 700; }
  .tab .badge { top: 4px; inset-inline-end: calc(50% - 22px); }

  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92%; border-radius: 16px 16px 0 0; transform: translateY(100%); }
  .modal.show { transform: none; }
}

/* ============ Panel: account, checkout, orders, help ============ */
body.lock { overflow: hidden; }
.sheet { display: block; width: min(560px, calc(100% - 32px)); }
.panel-head { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; gap: 4px; padding-block: 10px; padding-inline: 24px 10px; border-bottom: 1px solid var(--line); }
.panel-head .icon-btn:first-child { margin-inline-start: -14px; }
.panel-head h2 { flex: 1; margin: 0; font-size: 20px; }
.panel-head h2:focus { outline: none; }
.panel-body { padding: 20px 24px 28px; display: grid; gap: 16px; }
.panel-body p { margin: 0; }
.panel-body h3 { margin: 0; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { justify-self: center; }
.wide { width: 100%; }
.link-btn { text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.link-btn.danger, .danger-btn { color: var(--sale); border-color: var(--sale) !important; }
.outline-btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.solid-btn:disabled { background: #BDBDBD; cursor: not-allowed; }
.note { padding: 12px 14px; background: var(--soft); border-radius: var(--radius); font-size: 13px; color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.empty-state { text-align: center; padding: 32px 8px; display: grid; gap: 12px; justify-items: center; color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.grid2[hidden] { display: none; }
.grid2 > * { grid-column: 1 / -1; }
.grid2 > .half { grid-column: auto; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, legend { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea, .promo-form input { width: 100%; height: 46px; border: 1px solid #CFCFCF; border-radius: var(--radius); padding: 0 14px; font: inherit; color: var(--ink); background: #fff; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:disabled { background: var(--soft); color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus, .promo-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--sale); }
.field-err { color: var(--sale); font-size: 12px; }
.field-err:empty, .err:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
legend { padding: 0; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); }

.radio-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #DADADA; border-radius: var(--radius); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.radio-card input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); }
.radio-card span { flex: 1; display: grid; }
.radio-card small { color: var(--muted); font-size: 12px; }
.radio-card b { font-size: 13px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border-radius: 999px; padding: 4px; }
.seg button { height: 36px; border-radius: 999px; font-weight: 500; color: var(--ink-2); font-size: 13px; }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Checkout */
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.steps li { flex: 1; padding-top: 8px; border-top: 3px solid var(--line); }
.steps li.done, .steps li.now { border-color: var(--ink); color: var(--ink); }
.steps li.now { font-weight: 700; }
.block { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mini { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.mini img { width: 44px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.mini small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.sums { display: grid; gap: 6px; }
.sums .disc { color: #1F6B3A; }
.promo-form { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; width: auto; height: 36px; border-radius: 999px; }
.promo-form .field-err { flex-basis: 100%; }
.promo-on { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; background: #EAF4EC; color: #1F5130; border-radius: var(--radius); font-size: 13px; }
.done-hero { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 8px 0; }
.done-hero .tick { width: 56px; height: 56px; border-radius: 50%; background: #E3EFE6; color: #1F5130; display: grid; place-items: center; }
.done-hero .tick .icon { width: 28px; height: 28px; stroke-width: 2; }
.done-hero h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; }

/* Account */
.hello { display: flex; gap: 14px; align-items: center; }
.hello > div:last-child { display: grid; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; flex: none; }
.menu { display: grid; border-top: 1px solid var(--line); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); text-align: start; width: 100%; }
.menu-item > span { flex: 1; display: grid; }
.menu-item .muted { font-size: 13px; }
.menu-item .icon { width: 18px; height: 18px; color: var(--muted); }
.menu-item:hover strong { text-decoration: underline; }

/* Orders */
.order { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; }
.order-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.order-top > div { display: grid; }
.order-top .muted { font-size: 13px; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--mist); white-space: nowrap; }
.status.is-done { background: #E3EFE6; color: #1F5130; }
.status.is-bad { background: var(--sale-soft); color: var(--sale); }
.thumbs { display: flex; gap: 6px; overflow-x: auto; }
.thumbs img { width: 44px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; flex: none; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; padding: 0 0 18px; padding-inline-start: 28px; color: var(--muted); display: grid; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CFCFCF; background: #fff; z-index: 1; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 6px; top: 17px; bottom: -3px; width: 2px; background: #E0E0E0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.done:not(.now)::after { background: var(--ink); }
.timeline li.now span { font-weight: 700; }
.timeline small { font-size: 12px; color: var(--muted); }

/* Returns */
.ticks { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.ret-line { display: grid; grid-template-columns: 18px 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ret-line input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.ret-line img { width: 40px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.ret-line span { display: grid; }
.ret-line small { color: var(--muted); font-size: 12px; }
.ret-line.is-done { opacity: .55; cursor: default; }

/* Size guide, contact, notifications */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.tbl thead th { background: var(--soft); }
.contact-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-ways div { display: grid; gap: 2px; padding: 12px; background: var(--soft); border-radius: var(--radius); font-size: 13px; overflow-wrap: anywhere; }
.notes-list { display: grid; }
.note-item { position: relative; display: grid; gap: 2px; padding: 12px 0; padding-inline-start: 18px; border-bottom: 1px solid var(--line); text-align: start; width: 100%; color: var(--ink-2); }
.note-item strong { color: var(--ink); }
.note-item small { color: var(--muted); font-size: 12px; }
.note-item.unread::before { content: ""; position: absolute; inset-inline-start: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--sale); }

/* Quick view additions */
.stock-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.stock-note.low { color: var(--sale); font-weight: 500; }
.opt-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.opt-row .opt-label { margin: 0; }
.heart-btn { width: 48px; height: 48px; border: 1px solid #DADADA; border-radius: 50%; display: grid; place-items: center; flex: none; }
.heart-btn.is-on .icon { fill: var(--sale); stroke: var(--sale); }

@media (max-width: 640px) {
  .sheet { width: 100%; }
  .panel-head { padding-inline-start: 16px; }
  .panel-head .icon-btn:first-child { margin-inline-start: -10px; }
  .panel-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .grid2 > .half { grid-column: 1 / -1; }
  .contact-ways { grid-template-columns: 1fr; }
  .steps { font-size: 11px; }
}


/* ============ Languages and right-to-left (Arabic, Urdu) ============ */
html[lang="ar"] { --sans: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif; --serif: "IBM Plex Sans Arabic", Georgia, serif; }
html[lang="ur"] { --sans: "Noto Naskh Arabic", "Manrope", system-ui, sans-serif; --serif: "Noto Naskh Arabic", Georgia, serif; }
html[lang="ur"] body { line-height: 1.75; }
html[lang="ar"] .hero-title, html[lang="ur"] .hero-title { font-weight: 700; }
[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer.show { transform: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
[dir="rtl"] .search button .icon { transform: scaleX(-1); }
[dir="rtl"] input[dir="ltr"], [dir="rtl"] textarea[dir="ltr"] { text-align: right; }
[dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; }
.off.static { position: static; }
.new-tag.sold { inset-inline-start: auto; inset-inline-end: 8px; background: var(--ink); color: #fff; }

/* Country and language button */
.locale-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; margin-inline-end: 4px; }
.locale-btn .icon { width: 18px; height: 18px; }
.locale-btn:hover { background: var(--soft); }
.footer-grid .mt { margin-top: 10px; }
.noscript { margin: 0; padding: 12px 16px; background: var(--sale-soft); color: var(--sale); text-align: center; }

/* Bell ring when a new notification arrives */
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.ring .icon { animation: ring .9s ease; transform-origin: 50% 10%; }

/* Loading and misc */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 28px; height: 28px; margin: 32px auto; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.radio-card.is-off { opacity: .5; cursor: not-allowed; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 14px; }
.danger-zone summary { cursor: pointer; color: var(--sale); font-weight: 500; font-size: 13px; }
.danger-zone .form { margin-top: 12px; }
button:disabled { cursor: not-allowed; }
.outline-btn:disabled { opacity: .5; }

@media (max-width: 640px) {
  .header-actions .icon-btn:not(.desk) { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ================================================================
   Brand store redesign: announcement bar, mega menu, hero carousel,
   trust strip, tiles, payment band, newsletter, footer, pop-ups
   ================================================================ */
:root {
  --ivory: #FAF8F5;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-slate: #A3AFB9; --t-sand: #E8DAC7; --t-mist: #DCE3E8; --t-rose: #EBCFCB; --t-navy: #1E2A3A;
  --t-cocoa: #4E3326; --t-stone: #D3CCC2; --t-ink: #141414; --t-sage: #C9D3C1;
}
body { background: var(--bg); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
html[lang="ar"] .eyebrow, html[lang="ur"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.sec-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
html[lang="ar"] .sec-title, html[lang="ur"] .sec-title { font-family: var(--sans); font-weight: 700; font-size: 26px; }
.sec-head { align-items: flex-end; }

/* Announcement bar */
.announce { background: var(--ink); color: #fff; height: 36px; overflow: hidden; }
.announce-track { position: relative; height: 100%; max-width: 1360px; margin: 0 auto; }
html { overflow-x: clip; }
.announce-item { position: absolute; inset: 0; margin: 0; display: block; line-height: 36px; padding: 0 16px; font-size: 13px; letter-spacing: .02em; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.announce-item button { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.header { transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.header-bar { padding-top: 16px; padding-bottom: 16px; }
.search { border-width: 1px; height: 44px; background: var(--soft); border-color: transparent; transition: border-color .2s, background .2s; }
.search:focus-within { background: #fff; border-color: var(--ink); }
.search button { background: transparent; color: var(--ink); width: 52px; }
.dept { position: relative; border-bottom: 1px solid var(--line); }
.dept-link { font-size: 14px; letter-spacing: .01em; padding: 13px 0; }

/* Mega menu */
.mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.08); z-index: 31;
  animation: megaIn .22s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; padding-top: 28px; padding-bottom: 32px; }
.mega h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .mega h3, html[lang="ur"] .mega h3 { letter-spacing: 0; font-size: 13px; }
.mega-links { display: grid; gap: 10px; }
.mega-links button { text-align: start; font-size: 15px; width: fit-content; }
.mega-links button:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mega-card { border-radius: 10px; overflow: hidden; text-align: start; display: grid; gap: 8px; }
.mega-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; transition: transform .5s var(--ease); }
.mega-card:hover img { transform: scale(1.03); }
.mega-card span { font-size: 13px; font-weight: 600; }

/* Hero carousel */
.hero-wrap { max-width: 1360px; margin: 20px auto 0; padding: 0 32px; }
.carousel { position: relative; border-radius: 18px; overflow: hidden; background: var(--soft); }
.slides { position: relative; height: clamp(380px, 46vw, 560px); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide-copy { padding: 56px 64px; display: grid; gap: 16px; justify-items: start; z-index: 1; }
.slide-copy .eyebrow { color: inherit; opacity: .75; }
.slide-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.02em; }
html[lang="ar"] .slide-title, html[lang="ur"] .slide-title { font-family: var(--sans); font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.slide-text { margin: 0; font-size: 17px; max-width: 42ch; opacity: .85; }
.slide-art { position: relative; height: 100%; display: grid; place-items: end center; overflow: hidden; }
.slide-art img { height: 92%; width: auto; max-width: none; transform: translateY(18px) scale(.98); transition: transform 1.4s var(--ease); filter: drop-shadow(0 30px 40px rgba(0,0,0,.12)); }
.slide.is-on .slide-art img { transform: none; }
.slide-art .art-2 { position: absolute; height: 46%; inset-inline-start: 6%; bottom: 0; opacity: .5; filter: none; }
.slide.is-on .slide-art .art-2 { transition-delay: .15s; }
.slide-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.has-photo .slide-copy { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 65%); }
[dir="rtl"] .slide.has-photo::after { background: linear-gradient(-90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 65%); }
.slide-copy .cta { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; margin-top: 8px;
  transition: transform .2s, box-shadow .2s; }
.slide-copy .cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.slide-copy .cta .icon { width: 18px; height: 18px; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.08); opacity: 0; transition: opacity .25s; z-index: 2; }
.carousel:hover .car-arrow, .car-arrow:focus-visible { opacity: 1; }
.car-arrow.prev { inset-inline-start: 18px; }
.car-arrow.next { inset-inline-end: 18px; }
.car-dots { position: absolute; bottom: 20px; inset-inline-start: 64px; display: flex; gap: 8px; z-index: 2; }
.car-dots button { width: 28px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.18); overflow: hidden; position: relative; }
.car-dots button i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .car-dots button i { transform-origin: right; }
.car-dots button.is-on i { animation: dot var(--dur, 6s) linear forwards; }
.carousel.paused .car-dots button.is-on i { animation-play-state: paused; }
.carousel { color: #111; }
.carousel.on-light { color: #fff; }
.carousel.on-light .car-dots button { background: rgba(255,255,255,.35); }
@keyframes dot { to { transform: scaleX(1); } }
.slide.light, .tile.light { color: #fff; }
.slide.light .cta { background: #fff; color: var(--ink); }

.theme-slate { background: var(--t-slate); color: #12181D; }
.theme-sand { background: var(--t-sand); color: #2A1F14; }
.theme-mist { background: var(--t-mist); color: #18222B; }
.theme-rose { background: var(--t-rose); color: #2E1513; }
.theme-navy { background: var(--t-navy); color: #fff; }
.theme-cocoa { background: var(--t-cocoa); color: #fff; }
.theme-stone { background: var(--t-stone); color: #1F1B16; }
.theme-ink { background: var(--t-ink); color: #fff; }
.theme-sage { background: var(--t-sage); color: #1B2416; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.trust-item .icon { width: 28px; height: 28px; flex: none; stroke-width: 1.3; }
.trust-item div { display: grid; }
.trust-item strong { font-size: 14px; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

.section { margin-top: 48px; }
.circles { padding-top: 8px; }
.circle-img { transition: transform .35s var(--ease), border-color .2s; }
.circle:hover .circle-img { transform: translateY(-3px); }

/* Editorial tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; min-height: 340px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; text-align: start; isolation: isolate; }
.tile img.art { position: absolute; inset-inline-end: -6%; top: 6%; height: 78%; width: auto; max-width: none; z-index: -1; transition: transform .8s var(--ease); opacity: .95; }
.tile img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
html[lang="ar"] .tile strong, html[lang="ur"] .tile strong { font-family: var(--sans); font-weight: 700; font-size: 24px; }
.tile span { opacity: .8; margin-top: 4px; }
.tile .tile-cta { margin-top: 14px; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; opacity: 1; }

/* Flash sale */
.flash { background: var(--ivory); border: 1px solid #EFE7DD; border-radius: 18px; padding: 26px; }
.flash-title { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--sale); }
html[lang="ar"] .flash-title, html[lang="ur"] .flash-title { font-family: var(--sans); font-weight: 700; font-size: 26px; }
.timer b { border-radius: 6px; padding: 5px 9px; font-size: 15px; }
.flash-card { border: 1px solid #F0EBE4; transition: transform .3s var(--ease), box-shadow .3s; }
.flash-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }

/* Product cards */
.toolbar { margin-bottom: 22px; gap: 12px; }
.shop-title { font-size: 30px; }
.grid { gap: 32px 16px; }
.card-img { border-radius: 10px; background: var(--soft); }
.card-img .quick { position: absolute; inset-inline: 10px; bottom: 10px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.94); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease); }
.card:hover .card-img .quick { opacity: 1; transform: none; }
.card:hover .new-tag { opacity: 0; }
.card-name { font-size: 14px; }
.card .off { border-radius: 0 4px 4px 0; }
[dir="rtl"] .card .off { border-radius: 4px 0 0 4px; }
.card-cat { font-size: 12px; color: var(--muted); margin-bottom: -4px; }

/* Payment band */
.pay-band { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; padding: 34px 36px; border-radius: 18px; background: var(--soft); }
.pay-band p { margin: 8px 0 0; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pay-mark { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pay-marks.small { justify-content: flex-start; gap: 6px; }
.pay-marks.small .pay-mark { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.pm-MADA { color: #1B6FB5; } .pm-MADA::before { content: ""; width: 14px; height: 6px; border-radius: 2px; background: linear-gradient(#84B740 50%, #1B6FB5 50%); margin-inline-end: 8px; }
.pm-CARD { color: #1A1F71; }
.pm-APPLE_PAY { background: #000 !important; color: #fff; border-color: #000 !important; }
.pm-STC_PAY { color: #4F008C; }
.pm-TABBY { background: #3BFFC1 !important; color: #111; border-color: #3BFFC1 !important; }
.pm-TAMARA { background: linear-gradient(90deg, #F9D5A7, #F6B7C6, #C9B7F2) !important; color: #111; border-color: transparent !important; }
.pm-JAZZCASH { color: #C8102E; } .pm-JAZZCASH::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FFC20E; margin-inline-end: 8px; }
.pm-EASYPAISA { color: #1E8F3E; }
.pm-BANK_TRANSFER { color: #3D3D3D; }
.pm-COD { color: #111; }

/* Newsletter */
.newsletter { margin-top: 64px; background: var(--ivory); border-top: 1px solid #EFE7DD; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.newsletter h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; }
html[lang="ar"] .newsletter h2, html[lang="ur"] .newsletter h2 { font-family: var(--sans); font-weight: 700; font-size: 28px; }
.newsletter p { margin: 8px 0 0; color: var(--ink-2); }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.news-form input { flex: 1; min-width: 200px; height: 50px; border: 1px solid #CFCFCF; border-radius: 999px; padding: 0 20px; font: inherit; background: #fff; }
.news-form input:focus { outline: none; border-color: var(--ink); }
.news-form .solid-btn { height: 50px; }
.news-form .field-err, .news-ok { flex-basis: 100%; margin: 0; }
.news-ok { color: #1F6B3A; font-weight: 600; }

/* Footer */
.footer { margin-top: 0; background: var(--ink); color: #BDBDBD; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; color: #BDBDBD; padding-top: 56px; }
.footer-grid strong { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
html[lang="ar"] .footer-grid strong, html[lang="ur"] .footer-grid strong { letter-spacing: 0; text-transform: none; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin: 0; max-width: 34ch; font-size: 13.5px; line-height: 1.6; }
.logo.light { color: #fff; font-family: "DM Serif Display", Georgia, serif; font-size: 34px; }
.locale-btn.light { color: #fff; border-color: #3A3A3A; width: fit-content; margin-top: 8px; }
.locale-btn.light:hover { background: #222; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid #2A2A2A; }
.footer .copyright { padding: 0; color: #8A8A8A; }
.footer .pay-mark { background: #1E1E1E; border-color: #2E2E2E; }
.footer .pm-COD, .footer .pm-BANK_TRANSFER, .footer .pm-CARD, .footer .pm-MADA, .footer .pm-STC_PAY { color: #E6E6E6; }
.footer .pm-JAZZCASH { color: #FF6B7D; }
.footer .pm-EASYPAISA { color: #5BD07A; }

/* Welcome pop-up */
.popup { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(17,17,17,.55); opacity: 0; pointer-events: none; transition: opacity .35s; }
.popup.show { opacity: 1; pointer-events: auto; }
.popup-card { position: relative; width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: 20px; overflow: hidden;
  transform: translateY(16px) scale(.98); transition: transform .45s var(--ease); max-height: calc(100vh - 32px); }
.popup.show .popup-card { transform: none; }
.popup-art { position: relative; min-height: 420px; display: grid; place-items: end center; overflow: hidden; }
.popup-art img { height: 88%; width: auto; max-width: none; }
.popup-art .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.popup-body { padding: 44px 40px; display: grid; gap: 14px; align-content: center; overflow-y: auto; }
.popup-body h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
html[lang="ar"] .popup-body h2, html[lang="ur"] .popup-body h2 { font-family: var(--sans); font-weight: 700; font-size: 28px; line-height: 1.35; }
.popup-body p { margin: 0; color: var(--ink-2); }
.popup-body .form input { height: 50px; border-radius: 999px; padding: 0 20px; }
.popup-body .solid-btn { width: 100%; height: 50px; }
.popup-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(255,255,255,.9); }
.popup-skip { justify-self: center; font-size: 13px; color: var(--muted); text-decoration: underline; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px dashed var(--ink); border-radius: 12px; padding: 14px 18px; }
.code-box b { font-size: 22px; letter-spacing: .12em; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.copy-btn .icon { width: 16px; height: 16px; }
.fine { font-size: 11.5px; color: var(--muted); }

/* Cookie notice and back to top */
.cookie { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 65; width: min(420px, calc(100% - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12); padding: 16px 18px; display: flex; gap: 14px; align-items: center; animation: megaIn .4s var(--ease); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 13px; color: var(--ink-2); }
.solid-btn.sm { height: 38px; padding: 0 18px; font-size: 13px; flex: none; }
.to-top { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 34; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.to-top[hidden] { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-io .reveal { opacity: 1; transform: none; }

/* Checkout payment methods and bank transfer */
.pay-group { display: grid; gap: 8px; }
.pay-group h4 { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .pay-group h4, html[lang="ur"] .pay-group h4 { letter-spacing: 0; font-size: 13px; }
.radio-card .pay-mark { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.radio-card span.pay-mark { display: inline-flex; flex: none; width: fit-content; margin-bottom: 4px; }
.radio-card { transition: border-color .15s, box-shadow .15s, background .15s; }
.radio-card:has(input:checked) { background: #FCFCFC; }
.bnpl-note { display: block; margin-top: 2px; font-size: 12px; color: #1F6B3A; font-weight: 600; }
.bank-box { border: 2px solid var(--ink); border-radius: 14px; padding: 18px; display: grid; gap: 10px; }
.bank-box h3 { margin: 0; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bank-row:last-of-type { border-bottom: 0; }
.bank-row span { color: var(--muted); font-size: 13px; }
.bank-row b { font-size: 14px; }
.bank-row .copy-btn { color: var(--ink-2); }
.deadline { background: #FFF6E5; color: #7A5600; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.transfer-form { display: flex; gap: 8px; flex-wrap: wrap; }
.transfer-form input { flex: 1; min-width: 160px; height: 44px; border: 1px solid #CFCFCF; border-radius: var(--radius); padding: 0 14px; font: inherit; }
.transfer-form .field-err { flex-basis: 100%; }

/* Quick view: you may also like */
.also { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.also button { display: grid; gap: 4px; text-align: start; font-size: 12px; }
.also img { border-radius: 6px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.modal { border-radius: 16px; }

@media (max-width: 1100px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-inner { grid-template-columns: 1fr 1fr; }
  .mega-feature { display: none; }
}
@media (max-width: 860px) {
  .hero-wrap { padding: 0 20px; }
  .slide { grid-template-columns: 1fr; }
  .slide-copy { padding: 36px 28px 0; align-self: start; }
  .slide-art { position: absolute; inset-inline-end: 0; bottom: 0; width: 60%; height: 70%; }
  .car-dots { inset-inline-start: 28px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:first-child { grid-column: 1 / -1; }
  .pay-band, .newsletter-inner { grid-template-columns: 1fr; }
  .pay-marks { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .popup-card { grid-template-columns: 1fr; }
  .popup-art { min-height: 180px; max-height: 200px; }
  .popup-art img { height: 120%; }
}
@media (max-width: 640px) {
  .announce { height: 32px; }
  .announce-item { font-size: 12px; line-height: 32px; }
  .hero-wrap { padding: 0 16px; margin-top: 4px; }
  .carousel { border-radius: 14px; }
  .slides { height: 440px; }
  .slide-copy { padding: 28px 22px 0; gap: 10px; }
  .slide-title { font-size: 34px; }
  .slide-text { font-size: 14px; }
  .slide-copy .cta { height: 46px; padding: 0 22px; }
  .slide-art { width: 70%; height: 58%; }
  .car-arrow { display: none; }
  .car-dots { inset-inline-start: 22px; bottom: 16px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust-item { padding: 12px; gap: 10px; }
  .trust-item .icon { width: 22px; height: 22px; }
  .trust-item span { display: none; }
  .section { margin-top: 32px; }
  .sec-title, .shop-title { font-size: 24px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { min-height: 220px; padding: 20px; }
  .flash { padding: 16px; border-radius: 14px; }
  .pay-band { padding: 24px 20px; }
  .pay-mark { height: 38px; padding: 0 12px; font-size: 13px; }
  .newsletter { margin-top: 40px; }
  .newsletter-inner { padding-top: 32px; padding-bottom: 32px; }
  .newsletter h2 { font-size: 26px; }
  .footer-grid { padding-top: 36px; }
  .popup { align-items: end; padding: 0; }
  .popup-card { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .popup-body { padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .popup-body h2 { font-size: 28px; }
  .cookie { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 12px; width: calc(100% - 24px); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; width: 42px; height: 42px; }
  .card-img .quick { display: none; }
  .also { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .car-dots button.is-on i { animation: none; transform: scaleX(1); }
}
