/* ==========================================================================
   Ebela Lifestyle — storefront styles
   ========================================================================== */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3efe9;
  --ink: #1f1d1a;
  --ink-2: #3d3934;
  --muted: #77716a;
  --line: #e9e4dc;
  --line-2: #d9d2c7;
  --accent: #b5654a;
  --accent-dark: #974f37;
  --accent-soft: #f6e9e3;
  --gold: #c9a45c;
  --success: #2f7d4f;
  --success-soft: #e8f4ec;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warning: #b7791f;
  --warning-soft: #fdf3e1;
  --info: #2c6aa0;
  --info-soft: #e8f1f9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(31, 29, 26, .07);
  --shadow-lg: 0 20px 50px rgba(31, 29, 26, .12);
  --font: 'Jost', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h4 { font-family: var(--font); font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.icon { flex-shrink: 0; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.right { text-align: right; }
.text-danger { color: var(--danger); display: block; }
.lead { font-size: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: .01em; line-height: 1.2;
  background: var(--surface-2); color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .1s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 8px 20px rgba(181, 101, 74, .25); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-danger-outline { color: var(--danger); border-color: #f0c4be; }
.btn-danger-outline:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 13px; text-decoration: underline; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); position: relative; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label, .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.input, .select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 29, 26, .06); }
textarea.input { resize: vertical; min-height: 80px; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231f1d1a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; margin-bottom: 8px; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }

/* ---------- Notices & flash ---------- */
.flash-wrap { position: fixed; top: 90px; right: 20px; z-index: 300; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.flash {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-lg); border-left: 4px solid var(--info); font-size: 15px;
  animation: slideIn .3s ease;
}
.flash span { flex: 1; }
.flash-success { border-color: var(--success); }
.flash-error { border-color: var(--danger); }
.flash-warning { border-color: var(--warning); }
.flash-close { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); padding: 0 2px; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.notice { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 15px; }
.notice a { text-decoration: underline; font-weight: 500; }
.notice-info { background: var(--info-soft); color: #1d4c75; }
.notice-error { background: var(--danger-soft); color: #8e2a1f; }
.notice-success { background: var(--success-soft); color: #1f5c38; }

/* ---------- Header ---------- */
.announce { background: var(--ink); color: #f1ece4; font-size: 13px; text-align: center; padding: 8px 0; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 245, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1; }
.logo-mark { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.logo-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .32em; color: var(--accent); font-weight: 600; }
.logo-light .logo-mark { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-drop > button {
  padding: 8px 14px; font-size: 15px; font-weight: 500; border-radius: 999px; background: none; border: 0;
  display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2);
}
.main-nav > a:hover, .nav-drop > button:hover, .main-nav .active { color: var(--ink); background: var(--surface-2); }
.nav-sale { color: var(--accent) !important; }
.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 240px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transition: all .2s; border: 1px solid var(--line);
}
.drop-menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop-menu a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 15px; }
.drop-menu a small { color: var(--muted); }
.drop-menu a:hover { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 2px; }
.main-nav + .header-actions { margin-left: 12px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; line-height: 1;
  transition: transform .2s;
}
.cart-count.is-empty { display: none; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-toggle { display: none; }
.search-bar { max-height: 0; overflow: hidden; transition: max-height .25s ease; border-top: 1px solid transparent; }
.search-bar.open { max-height: 90px; border-top-color: var(--line); }
.search-form { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; color: var(--muted); }
.search-form input { flex: 1; border: 0; background: transparent; font-size: 17px; padding: 6px 0; outline: none; color: var(--ink); }

/* Drawer */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: var(--surface); z-index: 220;
  transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 210; opacity: 0; visibility: hidden; transition: .3s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-search { display: flex; margin: 16px 20px; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.drawer-search input { flex: 1; border: 0; padding: 10px 16px; outline: none; background: transparent; min-width: 0; }
.drawer-search button { border: 0; background: none; padding: 0 14px; }
.drawer-nav { display: flex; flex-direction: column; padding: 0 12px; }
.drawer-nav a { padding: 12px; border-radius: var(--radius-sm); font-weight: 500; }
.drawer-nav a.sub { padding: 8px 12px 8px 24px; font-weight: 400; color: var(--ink-2); }
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 14px 12px 4px; }
.drawer-call { margin: auto 20px 24px; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface-2); border-radius: var(--radius-sm); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(440px, 64vh, 640px); overflow: hidden; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, 0) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content > * { max-width: 560px; }
.hero-content .eyebrow { color: #f2d3c6; }
.hero-title { color: #fff; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; margin: 10px 0 18px; }
.hero-content p { font-size: clamp(16px, 1.6vw, 19px); opacity: .92; margin-bottom: 30px; }
.hero-slide.active .hero-content > * { animation: rise .8s both; }
.hero-slide.active .hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero-slide.active .hero-content > *:nth-child(3) { animation-delay: .2s; }
.hero-slide.active .hero-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-nav { position: absolute; bottom: 20px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); transition: .2s; }
.hero-nav:hover { background: #fff; color: var(--ink); }
.hero-nav.prev { right: 82px; }
.hero-nav.next { right: 24px; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .5); padding: 0; transition: .3s; }
.hero-dots button.active { width: 30px; background: #fff; }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ---------- Features ---------- */
.features { background: var(--surface); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { display: flex; align-items: center; gap: 14px; padding: 26px 20px; color: var(--accent); }
.feature + .feature { border-left: 1px solid var(--line); }
.feature strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.feature span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.section-title { font-size: clamp(26px, 3vw, 36px); margin: 6px 0 0; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-info { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255, 255, 255, .94); border-radius: var(--radius-sm); padding: 9px 12px; text-align: center; }
.cat-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cat-info small { color: var(--muted); font-size: 12px; }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { position: relative; display: flex; flex-direction: column; }
.pc-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pc-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: #fff; color: var(--ink); }
.pc-badge.sale { background: var(--accent); color: #fff; }
.pc-badge.new { background: var(--ink); color: #fff; }
.pc-badge.out { background: #fff; color: var(--muted); }
.pc-wish {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06); transition: .2s;
}
.pc-wish:hover { transform: scale(1.08); color: var(--accent); }
.pc-wish.active, .btn-wish.active { color: var(--accent); }
.pc-wish.active svg, .btn-wish.active svg { fill: currentColor; }
.pc-body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.pc-title { font-family: var(--font); font-size: 16px; font-weight: 500; margin: 0 0 6px; line-height: 1.35; }
.pc-title a:hover { color: var(--accent); }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-weight: 600; font-size: 17px; color: var(--ink); }
.price-old { color: var(--muted); font-size: 14px; }
.pc-add {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; color: var(--ink); transition: .2s; flex-shrink: 0;
}
.pc-add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pc-add.disabled { opacity: .35; pointer-events: none; }
.pc-add.loading { opacity: .5; pointer-events: none; }

.stars { display: inline-flex; gap: 1px; color: #d8d1c6; vertical-align: middle; }
.star.on { color: var(--gold); }
.star.on svg { fill: currentColor; }
.star.half { color: var(--gold); }
.star.half svg { fill: url(#none); fill: rgba(201, 164, 92, .45); }

/* Promo */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promo { position: relative; border-radius: var(--radius); padding: 48px 40px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; overflow: hidden; }
.promo::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.promo-a { background: linear-gradient(135deg, #8a4b36, #c47a5e); }
.promo-b { background: linear-gradient(135deg, #2c3a36, #5c7a6e); }
.promo h3 { color: #fff; font-size: 34px; margin: 8px 0 8px; }
.promo p { opacity: .9; }
.promo .eyebrow { color: rgba(255, 255, 255, .8); }
.promo:hover { color: #fff; }
.promo:hover .btn-light { background: var(--ink); color: #fff; }

/* ---------- Page head / breadcrumb ---------- */
.page-head { padding: 44px 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head-sm { padding: 30px 0 24px; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.page-head p { margin: 10px 0 0; max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--ink-2); }
.breadcrumb-inline { padding: 22px 0 6px; margin: 0; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-bottom: 72px; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-head { display: none; }
.filter-block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.filter-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-2); font-size: 15px; }
.cat-list a span { color: var(--muted); font-size: 13px; }
.cat-list a.active { color: var(--accent); font-weight: 600; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.clear-link { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); text-decoration: underline; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shop-toolbar p { margin: 0; }
.sort-form .select { width: auto; padding-top: 9px; padding-bottom: 9px; font-size: 14px; border-radius: 999px; }
.filter-toggle { display: none; }
.filter-overlay { display: none; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-top: 16px; }
.empty-state .icon { margin: 0 auto; color: var(--line-2); }
.small-empty { padding: 40px 20px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; font-size: 15px; border: 1.5px solid var(--line); background: var(--surface); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 16px; padding-bottom: 56px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.pd-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.pd-badge { position: absolute; top: 16px; left: 16px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pd-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; transition: border-color .2s; }
.pd-thumbs button.active { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 600; }
.pd-title { font-size: clamp(28px, 3vw, 38px); margin: 8px 0 12px; }
.pd-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 18px; }
.pd-rating a { color: var(--muted); text-decoration: underline; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pd-price .price-now { font-size: 30px; }
.pd-price .price-old { font-size: 18px; }
.save-tag { background: var(--accent-soft); color: var(--accent-dark); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pd-short { color: var(--ink-2); font-size: 16px; }
.opt-group { margin-bottom: 20px; }
.opt-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.opt-selected { font-weight: 400; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { margin: 0; cursor: pointer; position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; min-width: 48px; text-align: center; padding: 9px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; background: var(--surface); transition: .15s; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.stock-line { margin-bottom: 16px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.stock.in { color: var(--success); }
.stock.low { color: var(--warning); }
.stock.out { color: var(--danger); }
.pd-buy { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.pd-buy .btn-primary { flex: 1; }
.btn-wish { width: 52px; height: 52px; border: 1.5px solid var(--line-2); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); height: 52px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { color: var(--accent); }
.qty input { width: 42px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 40px; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 34px; }
.pd-assure { list-style: none; padding: 20px; margin: 28px 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 16px; }
.pd-assure li { display: flex; gap: 14px; color: var(--accent); }
.pd-assure strong { display: block; color: var(--ink); font-size: 15px; }
.pd-assure span { color: var(--muted); font-size: 14px; }
.pd-assure a { text-decoration: underline; }
.pd-meta { list-style: none; padding: 0; margin: 0; font-size: 14px; display: grid; gap: 8px; }
.pd-meta li { display: flex; align-items: center; gap: 10px; }
.pd-meta li > span { width: 80px; color: var(--muted); }
.pd-meta a { display: inline-flex; }
.pd-tabs { padding-bottom: 40px; }
.tab-list { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tab-btn { background: none; border: 0; padding: 14px 18px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 16px; }
.tab-btn.active { color: var(--ink); border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.prose { max-width: 780px; color: var(--ink-2); }
.prose h2, .prose h3 { margin-top: 1.4em; font-size: 22px; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); text-decoration: underline; }
.static-page { margin-bottom: 30px; }
.reviews-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.review-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.review-summary > div { display: grid; gap: 4px; }
.big-rating { font-family: var(--font-display); font-size: 52px; font-weight: 600; line-height: 1; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-top { display: flex; justify-content: space-between; gap: 10px; }
.review-item p { margin: 8px 0 0; }
.review-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.review-form-wrap h3 { font-size: 20px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 0; }
.rating-input label { color: var(--line-2); cursor: pointer; margin: 0; transition: color .15s; }
.rating-input label svg { fill: currentColor; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--gold); }

/* ---------- Cart ---------- */
.free-ship { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.free-ship p { margin: 0 0 10px; font-size: 15px; }
.free-ship .bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.free-ship .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 3px; transition: width .4s; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 72px; }
.cart-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row { display: grid; grid-template-columns: 1fr 110px 130px 110px 48px; gap: 12px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.cart-row-head { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 14px; padding-bottom: 14px; }
.cart-prod { display: flex; gap: 16px; align-items: center; }
.cart-prod img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.cart-prod > div { display: grid; gap: 2px; }
.cart-name { font-weight: 500; }
.cart-total { font-weight: 600; }
.cart-remove { color: var(--muted); }
.cart-remove:hover { color: var(--danger); background: var(--danger-soft); }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card h3 { font-size: 22px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; }
.summary-row.discount { color: var(--success); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; margin-bottom: 18px; font-size: 19px; font-weight: 600; }
.inline-form { display: inline; margin-left: 6px; }
.coupon-form { display: flex; gap: 8px; margin: 12px 0; }
.coupon-form .input { padding: 10px 14px; text-transform: uppercase; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.secure-note a { text-decoration: underline; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; padding-bottom: 72px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head .card-title { margin: 0; }
.card-title { font-family: var(--font); font-size: 18px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; display: grid; place-items: center; }
.zone-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; margin: 0; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: grid; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: .15s; height: 100%; }
.radio-card strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.radio-card small { color: var(--muted); }
.radio-card input:checked + span { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card input:focus-visible + span { outline: 2px solid var(--accent); }
.pay-options { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-option { position: relative; display: flex; margin: 0; cursor: pointer; }
.pay-option input { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; accent-color: var(--ink); }
.pay-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 14px 50px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: .15s; flex-wrap: wrap; }
.pay-option input:checked + .pay-body { border-color: var(--ink); background: var(--surface-2); }
.pay-body small { color: var(--muted); font-weight: 400; }
.pay-logo { font-weight: 600; font-size: 15px; color: var(--ink); }
.pay-logo.pay-bkash { color: #d12053; }
.pay-logo.pay-nagad { color: #ec1c24; }
.pay-info { background: var(--warning-soft); border-radius: var(--radius-sm); padding: 14px 18px 4px; margin-bottom: 16px; font-size: 14px; }
.pay-info ol { margin: 0 0 10px; padding-left: 18px; }
.mini-items { list-style: none; padding: 0; margin: 0 0 16px; max-height: 340px; overflow-y: auto; }
.mini-items li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-img { position: relative; flex-shrink: 0; }
.mini-img img { width: 52px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.mini-img b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.mini-info { flex: 1; display: grid; line-height: 1.35; }
.mini-info strong { font-weight: 500; }

/* ---------- Order views ---------- */
.success-box { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 28px; margin: 40px 0 32px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.success-box h1 { font-size: clamp(26px, 3vw, 34px); }
.success-box p { max-width: 520px; margin-left: auto; margin-right: auto; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 16px; }
.order-view { margin-bottom: 48px; }
.order-view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.order-number { font-family: var(--font); font-size: 24px; font-weight: 600; margin: 2px 0; letter-spacing: .02em; }
.order-badges { display: flex; gap: 8px; }
.timeline { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.tl-step { position: relative; text-align: center; font-size: 13px; color: var(--muted); }
.tl-step::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.tl-step:first-child::before { display: none; }
.tl-step.done::before { background: var(--success); }
.tl-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto 8px; color: transparent; }
.tl-step.done .tl-dot { background: var(--success); border-color: var(--success); color: #fff; }
.tl-step.current .tl-dot { box-shadow: 0 0 0 5px var(--success-soft); }
.tl-step.done .tl-label { color: var(--ink); font-weight: 500; }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.order-side .card { margin-bottom: 16px; padding: 22px; }
.order-side .card-title { margin-bottom: 12px; font-size: 16px; }
.order-items { list-style: none; padding: 0; margin: 0; }
.order-items li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-items img { width: 56px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.oi-info { flex: 1; display: grid; line-height: 1.4; }
.oi-info a { font-weight: 500; }
.totals { padding-top: 12px; }
.totals > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.totals .discount { color: var(--success); }
.totals .grand { font-weight: 600; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.addr { line-height: 1.7; margin: 0; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.history li { display: grid; padding-left: 14px; border-left: 2px solid var(--line); }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.track-form .form-group { margin: 0; }
.track-form .btn { height: 48px; }
.cancel-form { margin-top: -24px; margin-bottom: 40px; }

/* Badges */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge-pending { background: var(--warning-soft); color: #8a5a12; }
.badge-confirmed, .badge-processing { background: var(--info-soft); color: #1d4c75; }
.badge-shipped { background: #efe9fb; color: #5b3b9a; }
.badge-delivered, .badge-paid { background: var(--success-soft); color: #1f5c38; }
.badge-cancelled, .badge-returned { background: var(--danger-soft); color: #8e2a1f; }
.badge-unpaid { background: var(--surface-2); color: var(--muted); }
.badge-refunded { background: #eceae6; color: var(--ink-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; padding-bottom: 72px; }
.account-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.account-user { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.account-user > div { display: grid; min-width: 0; }
.account-user small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 600; font-size: 18px; flex-shrink: 0; }
.account-nav nav { display: grid; gap: 2px; }
.account-nav nav a, .account-nav nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); font-size: 15px; background: none; border: 0; width: 100%; text-align: left; color: var(--ink-2); }
.account-nav nav a:hover, .account-nav nav button:hover { background: var(--surface-2); color: var(--ink); }
.account-nav nav a.active { background: var(--ink); color: #fff; }
.account-nav form { margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 2px; }
.stat-card span { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.stat-card small { color: var(--muted); }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 56px 20px 80px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; }
.auth-card .form { margin-top: 24px; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; padding-bottom: 72px; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--accent); }
.info-item > div { display: grid; color: var(--ink-2); }
.info-item strong { color: var(--ink); }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: 90px 20px 110px; }
.error-code { font-family: var(--font-display); font-size: 120px; line-height: 1; color: var(--accent-soft); font-weight: 700; display: block; -webkit-text-stroke: 1px var(--accent); }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Newsletter & footer ---------- */
.newsletter { background: var(--accent-soft); padding: 56px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter-inner > div { flex: 1 1 340px; min-width: 0; }
.newsletter h2 { font-size: 30px; margin-bottom: 6px; }
.newsletter p { margin: 0; color: var(--ink-2); }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 480px; min-width: 280px; }
.newsletter-form input { flex: 1; padding: 13px 20px; border-radius: 999px; border: 1.5px solid transparent; background: var(--surface); outline: none; min-width: 0; }
.newsletter-form input:focus { border-color: var(--ink); }
.site-footer { background: var(--ink); color: #b9b2a8; padding-top: 64px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin: 18px 0; max-width: 320px; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 4px; color: var(--gold); }
.footer-links-inline { display: flex !important; gap: 16px !important; margin-top: 18px !important; font-size: 14px; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #45403a; display: grid; place-items: center; transition: .2s; }
.social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid #36322d; font-size: 14px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge { padding: 5px 12px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; }
.pay-badge.pay-bkash { color: #d12053; }
.pay-badge.pay-nagad { color: #ec1c24; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* Toasts */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 400; display: grid; gap: 10px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 999px; font-size: 15px; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; }
.toast.error { background: var(--danger); }
.toast a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }
.toast.hide { opacity: 0; transform: translateY(10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav > a, .nav-drop > button { padding: 8px 10px; font-size: 14px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr 360px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; margin-left: -10px; }
  .main-nav { display: none; }
  .header-inner { gap: 8px; }
  .header-actions { margin-left: auto; }
  .logo { margin-right: auto; }
  .logo-mark { font-size: 26px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .shop-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); z-index: 220;
    padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s;
  }
  .shop-sidebar.open { transform: none; }
  .filter-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 210; opacity: 0; visibility: hidden; transition: .3s; }
  .filter-overlay.open { opacity: 1; visibility: visible; }
  .filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .filter-head h3 { margin: 0; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .pd-gallery { position: static; }
  .cart-layout, .checkout-layout, .account-layout, .contact-layout, .order-grid { grid-template-columns: 1fr; }
  .summary-card, .account-nav { position: static; }
  .reviews-layout { grid-template-columns: 1fr; gap: 32px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .hero-nav { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .hide-sm { display: none; }
  .product-grid, .product-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .pc-title { font-size: 14px; }
  .price-now { font-size: 15px; }
  .price-old { font-size: 12px; }
  .pc-add { width: 34px; height: 34px; }
  .pc-wish { width: 34px; height: 34px; top: 8px; right: 8px; }
  .pc-badges { top: 8px; left: 8px; }
  .pc-badge { font-size: 11px; padding: 3px 8px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo { padding: 36px 28px; min-height: 210px; }
  .form-row, .zone-options { grid-template-columns: 1fr; }
  .feature { padding: 18px 12px; gap: 10px; }
  .feature strong { font-size: 14px; }
  .feature span { font-size: 12px; }
  .hero { height: 500px; }
  .hero-slide { align-items: flex-end; padding-bottom: 64px; }
  .hero-bg { object-position: 78% center; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .05) 100%); }
  .hero-content p { margin-bottom: 22px; }
  .announce { font-size: 12px; }
  .shop-toolbar { flex-wrap: wrap; }
  .shop-toolbar p { order: 3; width: 100%; }
  .cart-row-head { display: none; }
  .cart-row { grid-template-columns: 1fr auto; grid-template-areas: "prod remove" "qty total"; padding: 16px; gap: 14px; }
  .cart-row > :nth-child(1) { grid-area: prod; }
  .cart-row > .cart-price { display: none; }
  .cart-row > :nth-child(3) { grid-area: qty; }
  .cart-row > .cart-total { grid-area: total; text-align: right; }
  .cart-row > :nth-child(5) { grid-area: remove; align-self: start; }
  .cart-prod img { width: 64px; height: 80px; }
  .summary-card, .card { padding: 20px; }
  .track-form { grid-template-columns: 1fr; }
  .timeline { font-size: 11px; }
  .tl-step { font-size: 11px; }
  .tl-dot { width: 26px; height: 26px; }
  .tl-step::before { top: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .newsletter-form { max-width: none; min-width: 0; width: 100%; }
  .newsletter-form .btn { flex-shrink: 0; padding-inline: 22px; }
  .newsletter h2 { font-size: 24px; }
  .auth-card { padding: 28px 22px; }
  .pd-buy { flex-wrap: wrap; }
  .pd-buy .btn-primary { order: 3; flex-basis: 100%; }
  .pd-buy .qty { flex: 1; justify-content: space-between; }
  .flash-wrap { top: 76px; right: 16px; left: 16px; max-width: none; }
  .table { font-size: 14px; }
  .table th:nth-child(4), .table td:nth-child(4) { display: none; }
}

/* ==========================================================================
   v2 — A-Z lifestyle store: header search, mega menu, category icons,
   flash sale, variants, live search, popup, floating buttons
   ========================================================================== */
.announce-inner { display: flex; justify-content: center; align-items: center; gap: 18px; }
.announce-call { display: inline-flex; align-items: center; gap: 5px; color: #f2d3c6; font-weight: 500; }
.announce-call:hover { color: #fff; }
.header-inner { gap: 28px; }
.logo { flex-shrink: 0; }
.logo-img { max-height: 46px; width: auto; }
.header-search { position: relative; flex: 1; max-width: 640px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 16px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.header-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 29, 26, .06); }
.header-search input { flex: 1; border: 0; background: transparent; outline: none; padding: 8px 4px; min-width: 0; font-size: 15px; color: var(--ink); }
.header-search .btn { padding: 9px 20px; }
.header-actions { margin-left: auto; }
.search-mobile { display: none; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 150; max-height: 70vh; overflow-y: auto; }
.sg-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sg-cat { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); color: var(--ink); }
.sg-item:hover { background: var(--surface-2); color: var(--ink); }
.sg-item img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.sg-item span { flex: 1; font-size: 14px; line-height: 1.35; }
.sg-item b { font-size: 14px; white-space: nowrap; }
.sg-all { display: block; text-align: center; padding: 10px; font-size: 14px; font-weight: 500; color: var(--accent); border-top: 1px solid var(--line); margin-top: 6px; }
.sg-empty { padding: 14px; text-align: center; color: var(--muted); margin: 0; }

.nav-bar { border-top: 1px solid var(--line); background: var(--surface); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 50px; }
.mega { position: relative; height: 100%; display: flex; align-items: center; }
.mega-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap; }
.mega-panel { position: absolute; top: 100%; left: 0; width: min(1080px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 24px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 120; }
.mega:hover .mega-panel, .mega:focus-within .mega-panel { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 24px; max-height: 64vh; overflow-y: auto; }
.mega-col { display: grid; gap: 4px; align-content: start; }
.mega-col a { font-size: 14px; color: var(--ink-2); padding: 2px 0; }
.mega-col a:hover { color: var(--accent); }
.mega-parent { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink) !important; margin-bottom: 4px; font-size: 14.5px !important; }
.mega-parent .icon { color: var(--accent); }
.mega-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; font-weight: 500; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { padding: 7px 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--ink); }

.drawer-nav a, .drawer-cat summary { display: flex; align-items: center; gap: 10px; }
.drawer-nav .icon { color: var(--muted); }
.drawer-cat summary { padding: 11px 12px; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; list-style: none; }
.drawer-cat summary::-webkit-details-marker { display: none; }
.drawer-cat summary .chev { margin-left: auto; transition: transform .2s; }
.drawer-cat[open] summary .chev { transform: rotate(180deg); }
.drawer-cat[open] summary { background: var(--surface-2); }

.section-tight { padding: 48px 0; }
.cat-icons { display: grid; grid-template-columns: repeat(10, 1fr); gap: 18px 10px; }
.cat-icon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6px 2px; color: var(--ink); }
.cat-icon:hover { color: var(--accent); }
.ci-circle { width: 74px; height: 74px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: transform .25s, background .25s, color .25s; flex-shrink: 0; }
.ci-circle.sm { width: 42px; height: 42px; }
.cat-icon:hover .ci-circle { transform: translateY(-4px); background: var(--accent); color: #fff; }
.cat-icon strong { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.cat-icon small { font-size: 12px; color: var(--muted); margin-top: -4px; }
.row-title { display: flex; align-items: center; gap: 12px; }
.row-title .section-title { margin: 0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; background: var(--surface); color: var(--ink-2); }
.chip span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.chip:hover, .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.active span, .chip:hover span { color: rgba(255, 255, 255, .7); }
.chips-head { margin-top: 18px; }

.product-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 26px 18px; }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pc-media { aspect-ratio: 1 / 1; }
.pd-main { aspect-ratio: 1 / 1; }
.pd-thumbs button { aspect-ratio: 1 / 1; }
.pc-badge.hot { background: var(--gold); color: #fff; }
.price-now small { font-size: 12px; font-weight: 500; color: var(--muted); }

.flash-section { background: linear-gradient(135deg, #1f1d1a, #3a2c25); color: #fff; }
.flash-section .section-title { color: #fff; margin: 0; }
.flash-section .link-arrow { color: #fff; }
.flash-section .pc-title a, .flash-section .price-now { color: #fff; }
.flash-section .pc-cat, .flash-section .price-old { color: rgba(255, 255, 255, .6); }
.flash-section .pc-add { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.flash-section .pc-add:hover { background: #fff; color: var(--ink); }
.flash-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.flash-title { display: flex; align-items: center; gap: 14px; }
.flash-title span:not(.flash-bolt) { color: rgba(255, 255, 255, .7); font-size: 14px; }
.flash-bolt { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(181, 101, 74, .6); } 50% { box-shadow: 0 0 0 10px rgba(181, 101, 74, 0); } }
.countdown { display: flex; gap: 8px; }
.countdown span { display: grid; place-items: center; min-width: 62px; padding: 8px 6px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.countdown b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }

.promo-grid.promo-3 { grid-template-columns: repeat(3, 1fr); }
.promo { background-size: cover; background-position: center; min-height: 220px; padding: 34px 30px; }
.promo h3 { font-size: 26px; max-width: 70%; }
.promo p { max-width: 65%; }

.brand-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-tile { display: grid; place-items: center; gap: 4px; padding: 22px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; transition: .2s; }
.brand-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.brand-tile span { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.brand-tile img { max-height: 40px; width: auto; }
.brand-tile small { color: var(--muted); font-size: 12px; }

.all-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding-bottom: 72px; }
.all-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.all-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.all-cat-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.all-cat-head h2 { font-size: 18px; margin: 0 0 2px; }
.all-cat-head small { color: var(--muted); }
.all-cat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.all-cat li a { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; font-size: 14.5px; color: var(--ink-2); }
.all-cat li a:hover { background: var(--surface-2); color: var(--accent); }
.all-cat li a span { color: var(--muted); font-size: 13px; }

.cat-sub { list-style: none; margin: 2px 0 6px 10px; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
.cat-sub a { font-size: 14px !important; padding: 4px 0 !important; }
.brand-checks { max-height: 220px; overflow-y: auto; }

.pd-top { display: flex; align-items: center; gap: 10px; }
.pd-countdown { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius-sm); background: #1f1d1a; color: #fff; font-size: 14px; margin-bottom: 18px; width: fit-content; flex-wrap: wrap; }
.pd-countdown .icon { color: var(--gold); }
.pd-countdown span { margin-right: 6px; opacity: .8; }
.pd-countdown b { font-size: 16px; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .12); border-radius: 4px; padding: 1px 6px; }
.opt.soldout span { opacity: .4; text-decoration: line-through; }
.pd-alt-order { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pd-alt-order .btn { font-size: 14px; padding: 11px 14px; white-space: normal; text-align: center; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.pd-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; margin-right: 4px; }
.link-icon { background: none; border: 0; padding: 0; display: inline-flex; color: var(--ink); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); padding: 10px 0; transform: translateY(110%); transition: transform .25s; display: none; }
.sticky-buy.show { transform: none; }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sticky-price { font-weight: 600; font-size: 19px; }

.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: transform .2s; }
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn.wa { background: #25d366; }
.float-btn.fb { background: #0084ff; }

.promo-popup { position: fixed; inset: 0; z-index: 500; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 20px; animation: fade .3s; }
.promo-popup[hidden] { display: none; }
.promo-card { position: relative; width: 100%; max-width: 400px; background: var(--surface); border-radius: 18px; padding: 36px 30px 28px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .4s ease; }
.promo-close { position: absolute; top: 10px; right: 10px; }
.promo-ic { width: 66px; height: 66px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.promo-card h3 { font-size: 24px; }
.promo-code { display: block; width: 100%; margin: 18px 0; padding: 14px; border: 2px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); font-size: 22px; font-weight: 700; letter-spacing: .12em; color: var(--accent-dark); }
.promo-code small { display: block; font-size: 11px; letter-spacing: .05em; font-weight: 500; color: var(--muted); }
.pay-title { margin-top: 24px !important; }
.muted-light { color: #8e877d; }
.pay-logo.pay-rocket, .pay-badge.pay-rocket { color: #8c3494; }

@media (max-width: 1200px) {
  .cat-icons { grid-template-columns: repeat(8, 1fr); }
  .product-grid-5 { grid-template-columns: repeat(4, 1fr); }
  .mega-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .brand-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .header-search { display: none; }
  .search-mobile { display: inline-grid; }
  .nav-bar { display: none; }
  .header-inner { gap: 8px; }
  .cat-icons { grid-template-columns: repeat(5, 1fr); }
  .product-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .promo-grid.promo-3 { grid-template-columns: 1fr 1fr; }
  .sticky-buy { display: block; }
  .float-actions { bottom: 76px; }
}
@media (max-width: 720px) {
  .announce-call { display: none; }
  .cat-icons { grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
  .ci-circle { width: 58px; height: 58px; }
  .ci-circle .icon { width: 22px; height: 22px; }
  .cat-icon strong { font-size: 12px; }
  .cat-icon small { display: none; }
  .product-grid-5, .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .promo-grid.promo-3 { grid-template-columns: 1fr; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .countdown span { min-width: 52px; }
  .countdown b { font-size: 19px; }
  .pd-alt-order { grid-template-columns: 1fr; }
  .section-tight { padding: 36px 0; }
  .float-btn { width: 48px; height: 48px; }
}

/* ---------- v3: OTP, stock alerts, size guide, cookie notice ---------- */
.otp-box { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.otp-box p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.otp-row { display: flex; gap: 10px; }
.otp-row .input { flex: 1; min-width: 0; letter-spacing: .15em; }
.stock-alert { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--accent-soft); }
.stock-alert p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.pd-perks { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.perk { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 13.5px; font-weight: 500; border: 0; }
.perk-btn { background: var(--surface-2); color: var(--ink); text-decoration: underline; cursor: pointer; }
.modal { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: 86vh; box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(0, 0, 0, .45); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal .prose { padding: 18px 20px 22px; max-width: none; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.size-table th { background: var(--surface-2); font-weight: 600; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 450; max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.cookie-bar p { margin: 0; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.cookie-bar a { text-decoration: underline; }
.cookie-bar div { display: flex; gap: 8px; }
.label-link { float: right; font-weight: 400; color: var(--accent); font-size: 13px; }
.order-actions { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
.order-actions form { margin: 0; }
.text-success { color: var(--success); }

/* ==========================================================================
   v4 — design refresh: light hero, cards, tiles, bottom navigation
   ========================================================================== */
:root { --bg: #f7f5f2; --radius: 14px; --shadow: 0 1px 2px rgba(31, 29, 26, .04), 0 8px 24px rgba(31, 29, 26, .06); --shadow-hover: 0 16px 36px rgba(31, 29, 26, .12); }
body { background: var(--bg); }

/* header */
.site-header { background: rgba(255, 255, 255, .94); }
.header-inner { height: 78px; }
.header-search { background: var(--surface-2); border-color: transparent; }
.header-search:focus-within { background: #fff; }
.hdr-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); padding-right: 6px; border-radius: 999px; }
.hdr-link:hover { background: var(--surface-2); color: var(--ink); }
.hdr-link .icon-btn { pointer-events: none; }
.hdr-text { display: grid; line-height: 1.15; }
.hdr-text small { font-size: 11.5px; color: var(--muted); }
.hdr-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.nav-bar { background: #fff; }

/* hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 16px; padding-top: 20px; }
.hero-grid.no-side { grid-template-columns: 1fr; }
.hero { height: 450px; border-radius: 22px; background: var(--surface-2); box-shadow: var(--shadow); }
.hero-slide { align-items: center; padding: 0; }
.hero-slide::after { background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .72) 36%, rgba(255, 255, 255, 0) 62%); }
.hero-bg { object-position: right center; }
.hero-content { position: relative; z-index: 2; padding: 0 52px; color: var(--ink); max-width: 600px; }
.hero-content > * { max-width: 470px; }
.hero-title { color: var(--ink); font-size: clamp(30px, 3.6vw, 50px); margin: 14px 0 14px; letter-spacing: -.01em; }
.hero-content p { color: var(--ink-2); font-size: 17px; margin-bottom: 26px; opacity: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.hero-controls { position: absolute; left: 52px; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.hero-nav { position: static; transform: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: grid; place-items: center; backdrop-filter: none; }
.hero-nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-dots { position: static; transform: none; }
.hero-dots button { background: var(--line-2); }
.hero-dots button.active { background: var(--accent); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.side-promo { position: relative; border-radius: 22px; overflow: hidden; min-height: 200px; display: flex; align-items: center; box-shadow: var(--shadow); background: var(--surface-2); }
.side-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .6s ease; }
.side-promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 75%); }
.side-promo:hover img { transform: scale(1.05); }
.side-promo-text { position: relative; z-index: 2; display: grid; gap: 4px; padding: 22px 24px; max-width: 70%; color: var(--ink); }
.side-promo-text strong { font-family: var(--font-display); font-size: 21px; line-height: 1.2; }
.side-promo-text small { color: var(--ink-2); font-size: 13.5px; }
.side-promo-text em { font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }

/* trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px; }
.trust { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.trust + .trust { border-left: 1px solid var(--line); }
.trust-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.trust strong { display: block; font-size: 14.5px; font-weight: 600; }
.trust span:not(.trust-ic) { color: var(--muted); font-size: 13px; }

/* section heads */
.section-head { align-items: center; margin-bottom: 24px; }
.section-title { font-size: clamp(22px, 2.4vw, 30px); }
.view-all { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 500; font-size: 14px; color: var(--ink); white-space: nowrap; transition: .2s; }
.view-all:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.view-all.light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.view-all.light:hover { background: #fff; color: var(--ink); }

/* category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.cat-tile { --tint: var(--accent-soft); --ink: var(--accent); background: var(--tint); border-radius: 18px; padding: 18px 10px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--ink); }
.ct-ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(31, 29, 26, .06); margin-bottom: 4px; }
.cat-tile strong { color: #1f1d1a; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cat-tile small { color: #77716a; font-size: 12px; }

/* product grid & card */
.product-grid { gap: 16px; }
.product-grid-5 { gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.pc-media { border-radius: 0; aspect-ratio: 1 / 1; }
.pc-img-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease, transform .6s ease; }
.product-card:hover .pc-img-alt { opacity: 1; }
.product-card.is-out .pc-img { filter: grayscale(.5); opacity: .8; }
.pc-badges { top: 10px; left: 10px; }
.pc-badge { font-size: 11.5px; padding: 3px 9px; }
.pc-ribbon { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(47, 125, 79, .92); color: #fff; font-size: 11.5px; font-weight: 600; }
.pc-wish { top: 10px; right: 10px; width: 36px; height: 36px; }
.pc-body { padding: 12px 14px 14px; gap: 2px; }
.pc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 18px; }
.pc-cat { font-size: 11px; letter-spacing: .1em; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink); margin: 0; flex-shrink: 0; }
.pc-rating .icon { color: var(--gold); fill: var(--gold); }
.pc-rating small { color: var(--muted); font-weight: 400; }
.pc-title { font-size: 14.5px; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-card .price { margin-bottom: 10px; gap: 4px 8px; }
.product-card .price-now { font-size: 17px; font-weight: 700; }
.price-save { font-size: 11.5px; font-weight: 600; color: var(--success); background: var(--success-soft); padding: 1px 7px; border-radius: 6px; }
.pc-stock { margin: -4px 0 8px; font-size: 12px; color: var(--warning); display: flex; align-items: center; gap: 4px; }
.pc-add { width: 100%; height: 40px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; font-size: 14px; margin-top: auto; transition: background .2s, color .2s; }
.pc-add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pc-add-muted { border-color: var(--line-2); color: var(--muted); }
.pc-add-muted:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }

/* flash sale */
.flash-box { background: radial-gradient(circle at 85% 0%, rgba(181, 101, 74, .45), transparent 45%), linear-gradient(135deg, #1f1d1a, #3a2a22); border-radius: 24px; padding: 26px; color: #fff; }
.flash-box .section-title { color: #fff; margin: 0; }
.flash-box .flash-title span:not(.flash-bolt) { color: rgba(255, 255, 255, .7); font-size: 14px; }
.flash-item { display: flex; flex-direction: column; gap: 8px; }
.flash-item .product-card { flex: 1; }
.sold-bar { position: relative; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sold-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; }
.sold-bar em { position: relative; font-style: normal; font-size: 11.5px; font-weight: 600; display: block; text-align: center; line-height: 22px; }

/* showcase rows */
.showcase { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.showcase.flip { grid-template-columns: minmax(0, 1fr) 300px; }
.showcase.flip .showcase-card { order: 2; }
.showcase-card { --tint: var(--accent-soft); --ink: var(--accent); position: relative; overflow: hidden; border-radius: 22px; background: var(--tint); padding: 26px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #1f1d1a; min-height: 100%; }
.showcase-card:hover { color: #1f1d1a; }
.showcase-card h2 { font-size: 26px; margin: 4px 0 0; position: relative; z-index: 1; }
.showcase-card p { color: #5f5a53; font-size: 14.5px; margin: 0; position: relative; z-index: 1; max-width: 90%; }
.showcase-card .chips { position: relative; z-index: 1; }
.showcase-card .chip { background: rgba(255, 255, 255, .7); border-color: transparent; font-size: 12.5px; padding: 4px 11px; }
.showcase-card .btn { position: relative; z-index: 1; margin-top: auto; }
.showcase-img { position: absolute; right: -36px; bottom: -36px; width: 190px; height: 190px; border-radius: 30px; mix-blend-mode: multiply; opacity: .55; transform: rotate(-8deg); transition: transform .5s; }
.showcase-card:hover .showcase-img { transform: rotate(-4deg) scale(1.05); }
.wide-promo { position: relative; display: flex; align-items: center; min-height: 230px; border-radius: 22px; overflow: hidden; background: var(--surface-2); }
.wide-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.wide-promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 70%); }
.wide-promo-text { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; padding: 30px 40px; color: var(--ink); }
.wide-promo-text strong { font-family: var(--font-display); font-size: 30px; line-height: 1.15; }
.wide-promo-text small { color: var(--ink-2); font-size: 15px; }
.wide-promo-text em { font-style: normal; margin-top: 8px; }

/* pill tabs */
.pill-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.pill-tabs .tab-btn { border: 0; margin: 0; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.pill-tabs .tab-btn.active { background: var(--ink); color: #fff; }
.center-cta { text-align: center; margin-top: 30px; }

/* brands */
.brand-tile { border-radius: 16px; }
.brand-tile span { font-size: 17px; }

/* why us */
.why-us { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.why-intro .section-title { margin-bottom: 8px; }
.why-intro p { margin: 0; }
.why-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-step { background: var(--surface-2); border-radius: 18px; padding: 20px; display: grid; gap: 6px; }
.why-step span { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.why-step strong { font-size: 15.5px; }
.why-step small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* newsletter */
.newsletter { background: linear-gradient(120deg, #2a211c, #5b3a2c); color: #fff; margin-top: 56px; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .78); }
.newsletter-form input { border-color: transparent; }

/* page heads */
.page-head { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 0; }

/* v4 fixes: flash layout, showcase image, wide promo, tiles */
@media (min-width: 1200px) { .cat-tiles { grid-template-columns: repeat(10, 1fr); } }
.flash-box { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; }
.flash-info { display: grid; gap: 10px; justify-items: start; align-content: center; }
.flash-info .section-title { font-size: 32px; }
.flash-info p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14.5px; }
.flash-ends { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-top: 6px; }
.flash-info .view-all { margin-top: 6px; }
.flash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.flash-grid > :only-child { max-width: 280px; }
.showcase-img { right: -24px; bottom: -24px; width: 170px; height: 170px; border-radius: 50%; mix-blend-mode: normal; opacity: 1; transform: none; box-shadow: 0 12px 30px rgba(31, 29, 26, .12); border: 6px solid rgba(255, 255, 255, .7); object-fit: cover; }
.showcase-card:hover .showcase-img { transform: scale(1.05); }
.showcase-card .chips { max-width: 75%; }
.wide-promo { background: linear-gradient(110deg, #fbf3ea, #f3e3cf); }
.wide-promo img { left: auto; right: 0; width: 48%; object-position: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.wide-promo::after { display: none; }
@media (max-width: 1100px) {
  .flash-box { grid-template-columns: 1fr; }
  .flash-info { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .flash-info .flash-bolt { grid-row: span 2; }
  .flash-info p, .flash-ends { grid-column: 1 / -1; }
  .flash-info .countdown, .flash-info .view-all { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .flash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flash-info .section-title { font-size: 26px; }
  .wide-promo img { width: 55%; opacity: .9; }
  .showcase-img { width: 120px; height: 120px; }
}

/* bottom navigation (mobile) */
.bottom-nav { display: none; }

@media (max-width: 1150px) {
  .hdr-text { display: none; }
  .hdr-link { padding-right: 0; }
}
@media (max-width: 1100px) {
  .showcase, .showcase.flip { grid-template-columns: 1fr; }
  .showcase.flip .showcase-card { order: 0; }
  .showcase-card { min-height: 200px; }
  .why-us { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .side-promo { min-height: 160px; }
  .hero { height: 400px; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust:nth-child(3) { border-left: 0; }
  .trust:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; height: 62px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(31, 29, 26, .06); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); background: none; border: 0; }
  .bottom-nav .active { color: var(--accent); }
  .bn-ic { position: relative; display: inline-flex; }
  .bn-ic .cart-count { top: -6px; right: -10px; }
  body { padding-bottom: 62px; }
  .sticky-buy { bottom: 62px; }
  .float-actions { bottom: 80px; }
  .page-product .float-actions { bottom: 140px; }
  .toast-wrap { bottom: 78px; }
  .cookie-bar { bottom: 74px; }
}
@media (max-width: 720px) {
  .header-inner { height: 64px; }
  .hdr-link:not(.hdr-cart) { display: none; }
  .announce { padding: 7px 0; }
  .announce-inner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .header-actions { gap: 0; }
  .hero-grid { padding-top: 12px; }
  .hero { height: 440px; border-radius: 18px; }
  .hero-slide { align-items: flex-end; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .85) 42%, rgba(255, 255, 255, 0) 72%); }
  .hero-bg { object-position: 72% center; }
  .hero-content { padding: 0 20px 78px; }
  .hero-content p { font-size: 15px; margin-bottom: 18px; }
  .hero-controls { left: 20px; bottom: 20px; }
  .hero-cta .btn-ghost { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .side-promo { min-height: 140px; border-radius: 18px; }
  .side-promo-text strong { font-size: 18px; }
  .trust { padding: 12px; gap: 10px; }
  .trust-ic { width: 36px; height: 36px; }
  .trust strong { font-size: 13px; }
  .trust span:not(.trust-ic) { font-size: 11.5px; }
  .cat-tiles { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 104px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tile { scroll-snap-align: start; padding: 14px 6px 12px; }
  .ct-ic { width: 46px; height: 46px; }
  .ct-ic .icon { width: 22px; height: 22px; }
  .cat-tile strong { font-size: 12px; }
  .flash-box { padding: 18px 14px; border-radius: 18px; margin: 0 -4px; }
  .product-grid, .product-grid-5 { gap: 10px; }
  .pc-body { padding: 10px 10px 12px; }
  .pc-title { font-size: 13.5px; }
  .product-card .price-now { font-size: 15.5px; }
  .price-save { display: none; }
  .pc-add { height: 36px; font-size: 13px; border-radius: 9px; }
  .pc-ribbon { font-size: 10.5px; }
  .section-head { flex-direction: row; align-items: flex-end; }
  .view-all { padding: 6px 12px; font-size: 13px; }
  .pill-tabs .tab-btn { padding: 7px 12px; font-size: 13px; }
  .section-head:has(.pill-tabs) { flex-direction: column; align-items: flex-start; }
  .why-us { padding: 20px; }
  .why-steps { grid-template-columns: 1fr; }
  .wide-promo-text { padding: 22px; }
  .wide-promo-text strong { font-size: 22px; }
  .showcase-card { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* scrolling panels never drag the page behind them */
.drawer, .shop-sidebar, .mini-items, .suggest, .mega-grid, .brand-checks { overscroll-behavior: contain; }

/* ==========================================================================
   Customer account (v5)
   ========================================================================== */
.acc { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 80px; }
.acc-main { min-width: 0; display: grid; gap: 22px; align-content: start; }
.acc-main > .notice { margin: 0; }

/* ---- sidebar ---- */
.acc-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.acc-profile { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 18px; border-radius: 18px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 100% 0%, rgba(201, 164, 92, .35), transparent 55%), linear-gradient(135deg, #2b231e, #46342a); }
.acc-avatar { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 21px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #d9926f); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.acc-who { min-width: 0; }
.acc-who strong { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-who small { display: block; color: rgba(255, 255, 255, .65); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-tier { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  color: #fff; background: color-mix(in srgb, var(--tier) 55%, transparent); border: 1px solid rgba(255, 255, 255, .2); }
.acc-tier:hover { color: #fff; filter: brightness(1.1); }

.acc-nav { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: grid; gap: 4px; }
.acc-group { display: grid; gap: 1px; padding: 4px 0; }
.acc-group + .acc-group { border-top: 1px solid var(--line); padding-top: 8px; }
.acc-group > small { padding: 4px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); position: relative; transition: background .15s, color .15s; }
.acc-nav a .icon { color: var(--muted); flex-shrink: 0; transition: color .15s; }
.acc-nav a span { flex: 1; min-width: 0; }
.acc-nav a:hover { background: var(--surface-2); color: var(--ink); }
.acc-nav a.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.acc-nav a.active .icon { color: var(--accent); }
.acc-nav a.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.acc-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.acc-badge.hot { background: var(--accent); color: #fff; }

.acc-help { padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.acc-help strong { display: block; font-size: 14.5px; }
.acc-help p { margin: 2px 0 12px; font-size: 13px; color: var(--muted); }
.acc-help-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-help-btns a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); white-space: nowrap; }
.acc-help-btns a:hover { border-color: var(--ink); }
.acc-help-btns .ah-wa { background: #1fae5b; border-color: #1fae5b; color: #fff; }
.acc-help-btns .ah-wa:hover { background: #17964d; color: #fff; }
.acc-logout { margin: 0; }
.acc-logout button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.acc-logout button:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }

/* ---- page heading ---- */
.acc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-head h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.acc-head p { margin: 6px 0 0; color: var(--muted); }
.acc-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-head-actions form { margin: 0; }
.acc-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.acc-crumbs a { color: var(--muted); }
.acc-crumbs a:hover { color: var(--ink); }
.acc-crumbs span { color: var(--ink-2); }

/* ---- cards ---- */
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 2px rgba(31, 29, 26, .03); min-width: 0; }
.acc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.acc-card-head h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.acc-card-head h2 .icon { color: var(--accent); }
.acc-section > .acc-card-head { margin-bottom: 14px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.acc-col { display: grid; gap: 22px; min-width: 0; }

/* ---- hero ---- */
.acc-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(181, 101, 74, .55), transparent 45%), radial-gradient(circle at 10% 120%, rgba(201, 164, 92, .35), transparent 50%), linear-gradient(120deg, #2b231e, #4a3528); }
.acc-hero::after { content: ''; position: absolute; right: -50px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 36px rgba(255, 255, 255, .03); pointer-events: none; }
.acc-hero h1 { font-family: var(--font-display); font-size: 30px; margin: 6px 0 4px; color: #fff; }
.acc-hero p { margin: 0; color: rgba(255, 255, 255, .75); }
.acc-hero p strong { color: #fff; }
.acc-hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #e6c7a4; font-weight: 600; }
.btn-light-on-dark { position: relative; z-index: 1; background: #fff; color: var(--ink); border-color: #fff; }
.btn-light-on-dark:hover { background: #f3efe9; color: var(--ink); }

/* ---- progress steps ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.steps li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: var(--muted); }
.steps li::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--success); }
.steps li > span { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface); border: 2px solid var(--line-2); color: var(--muted); }
.steps li.done > span { background: var(--success); border-color: var(--success); color: #fff; }
.steps li.now > span { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-soft); animation: acc-pulse 2s ease-in-out infinite; }
.steps li em { font-style: normal; font-weight: 500; }
.steps li.done em, .steps li.now em { color: var(--ink); }
.steps time { font-size: 11px; color: var(--muted); }
.steps-sm li > span { width: 24px; height: 24px; font-size: 11px; }
.steps-sm li::before { top: 11px; }
@keyframes acc-pulse { 50% { box-shadow: 0 0 0 9px rgba(181, 101, 74, .12); } }

/* ---- active order tracker ---- */
.acc-track { display: grid; gap: 22px; }
.at-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.at-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.at-top h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 6px 0 4px; flex-wrap: wrap; }
.at-top h2 a { color: var(--ink); }
.at-top p { margin: 0; font-size: 14px; }
.at-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.at-items { display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.at-items img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.at-pay { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.at-pay strong { color: var(--ink); font-size: 17px; margin-left: 4px; }
.at-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent-dark); }

/* ---- quick stats ---- */
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acc-stats a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.acc-stats a:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.as-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.acc-stats strong { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.acc-stats small { color: var(--muted); font-size: 13px; }

/* ---- order status pill ---- */
.ost { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ost::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ost-warn { background: var(--warning-soft); color: var(--warning); }
.ost-info { background: var(--info-soft); color: var(--info); }
.ost-violet { background: #efe9fb; color: #6b4fa8; }
.ost-ok { background: var(--success-soft); color: var(--success); }
.ost-bad { background: var(--danger-soft); color: var(--danger); }
.ost-muted { background: var(--surface-2); color: var(--muted); }

/* ---- order cards ---- */
.ocard-list { display: grid; gap: 14px; }
.ocard { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ocard:hover { border-color: var(--line-2); box-shadow: 0 8px 24px rgba(31, 29, 26, .06); }
.ocard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.ocard-no { font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.ocard-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; color: var(--ink); }
.ocard-body:hover { color: var(--ink); }
.ocard-thumbs { display: flex; }
.ocard-thumbs img, .ocard-more { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ocard-thumbs > * + * { margin-left: -14px; }
.ocard-more { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ocard-info { min-width: 0; }
.ocard-info strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard-info em { font-style: normal; font-weight: 400; color: var(--muted); }
.ocard-info small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ocard-eta { color: var(--success); font-weight: 600; }
.ocard-total { text-align: right; font-weight: 700; font-size: 17px; white-space: nowrap; }
.ocard-total small { display: block; font-size: 12px; font-weight: 500; color: var(--warning); }
.ocard-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 16px; }
.ocard-actions form { margin: 0; }

/* ---- level card ---- */
.acc-level { background: linear-gradient(160deg, color-mix(in srgb, var(--tier) 14%, var(--surface)), var(--surface) 60%); }
.al-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.al-medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tier), color-mix(in srgb, var(--tier) 60%, #fff)); box-shadow: 0 6px 16px color-mix(in srgb, var(--tier) 40%, transparent); }
.al-top small { display: block; font-size: 12px; color: var(--muted); }
.al-top strong { font-family: var(--font-display); font-size: 22px; }
.al-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.al-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--tier), color-mix(in srgb, var(--tier) 55%, #fff)); }
.acc-level p { font-size: 13.5px; margin: 10px 0 14px; }
.al-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.al-stats div { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.al-stats small { display: block; font-size: 11.5px; color: var(--muted); }
.al-stats b { font-size: 16px; }

/* ---- small lists ---- */
.rev-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rev-mini li { display: flex; align-items: center; gap: 12px; }
.rev-mini img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.rev-mini div { min-width: 0; }
.rev-mini strong { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars-link { color: var(--gold); letter-spacing: 2px; font-size: 17px; }
.stars-link:hover { color: var(--accent); }
.acc-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.acc-quick a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: var(--surface-2); }
.acc-quick a .icon { color: var(--accent); flex-shrink: 0; }
.acc-quick a:hover { color: var(--ink); background: var(--accent-soft); }

/* ---- coupons ---- */
.coupon-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.coupon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.coupon { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.coupon::before, .coupon::after { content: ''; position: absolute; right: 108px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.coupon::before { top: -10px; } .coupon::after { bottom: -10px; }
.cp-left { padding: 16px 18px; min-width: 0; border-right: 2px dashed var(--line-2); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 70%); }
.cp-left strong { display: block; font-family: var(--font-display); font-size: 21px; color: var(--accent-dark); line-height: 1.15; }
.cp-left span { display: block; font-size: 13.5px; margin-top: 3px; }
.cp-left small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.cp-code { width: 117px; display: grid; place-content: center; gap: 4px; border: 0; background: var(--surface); cursor: pointer; font: inherit; padding: 10px; text-align: center; }
.cp-code span { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 13px; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink); word-break: break-all; }
.cp-code em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.cp-code:hover span { background: var(--accent); color: #fff; }
.used-codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.used-codes li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.used-codes b { margin-left: auto; color: var(--success); }

/* ---- tabs + filter ---- */
.acc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.acc-tabs a b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; background: var(--surface-2); color: var(--ink-2); }
.acc-tabs a:hover { border-color: var(--line-2); color: var(--ink); }
.acc-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-tabs a.active b { background: rgba(255, 255, 255, .2); color: #fff; }
.acc-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.acc-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--muted); }
.acc-search:focus-within { border-color: var(--ink); }
.acc-search input { flex: 1; border: 0; outline: none; background: transparent; padding: 11px 0; font: inherit; min-width: 0; color: var(--ink); }
.acc-filter .select { width: auto; min-width: 130px; }

/* ---- empty state ---- */
.acc-empty { text-align: center; padding: 40px 24px; display: grid; justify-items: center; gap: 6px; }
.acc-empty > .icon { width: 64px; height: 64px; padding: 16px; box-sizing: border-box; border-radius: 20px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.acc-empty h3 { font-size: 18px; margin: 0; }
.acc-empty p { color: var(--muted); max-width: 420px; margin: 0 0 10px; font-size: 14px; }

/* ---- addresses ---- */
.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.addr-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.addr-card.is-default { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.addr-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.addr-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.addr-default { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent-dark); }
.addr-phone { font-size: 13.5px; color: var(--ink-2); }
.addr-card p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.addr-card footer { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.addr-card footer form { margin: 0; }
.addr-card footer a, .addr-card footer button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.addr-card footer a:hover, .addr-card footer button:hover { background: var(--surface-2); color: var(--ink); }
.addr-card footer .danger:hover { background: var(--danger-soft); color: var(--danger); }
.addr-add { place-content: center; justify-items: center; gap: 8px; min-height: 170px; border-style: dashed; border-width: 2px; color: var(--muted); font-weight: 500; }
.addr-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-pick label { cursor: pointer; }
.chip-pick input { position: absolute; opacity: 0; }
.chip-pick span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; }
.chip-pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

/* ---- reviews ---- */
.rev-list { display: grid; gap: 14px; }
.rev-card { display: grid; gap: 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.rev-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rev-prod { display: flex; gap: 14px; align-items: center; }
.rev-prod img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.rev-prod a { font-weight: 600; color: var(--ink); }
.rev-prod small { display: block; color: var(--muted); font-size: 12.5px; }
.star-input { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.star-hint { order: -1; margin-left: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rev-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rev-done { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
.rev-done img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.rev-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.rev-top a { font-weight: 600; color: var(--ink); }
.rev-stars { color: var(--gold); letter-spacing: 1px; }
.rev-stars i { font-style: normal; color: var(--line-2); }
.rev-done p { margin: 6px 0 4px; font-size: 14px; }

/* ---- returns / alerts ---- */
.ret-eligible ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ret-eligible li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.ret-eligible em { font-style: normal; color: var(--warning); font-weight: 600; }
.ret-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.ret-top small { display: block; }
.ret-card p { margin: 10px 0 0; font-size: 14px; }
.ret-note { padding: 10px 12px; border-radius: 10px; background: var(--info-soft); display: flex; gap: 8px; align-items: flex-start; }
.ret-items { display: grid; gap: 8px; }
.ret-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ret-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.alert-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; }
.alert-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.alert-card a { font-weight: 600; color: var(--ink); }
.alert-card small { display: block; font-size: 12.5px; color: var(--muted); }
.alert-card form { margin: 0; }

/* ---- profile ---- */
.prof-meter { display: flex; gap: 20px; align-items: center; background: linear-gradient(120deg, var(--accent-soft), var(--surface) 70%); }
.pm-ring { --p: 0; width: 74px; height: 74px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.pm-ring b { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 15px; }
.prof-meter p { margin: 2px 0 10px; }
.pm-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pm-list li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: var(--surface); border: 1px dashed var(--line-2); color: var(--muted); }
.pm-list li.ok { border-style: solid; border-color: var(--success-soft); background: var(--success-soft); color: var(--success); }
.verified { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--success); background: var(--success-soft); padding: 1px 7px; border-radius: 999px; }
.prefs-form { display: grid; gap: 4px; }
.pref { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pref:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.pref input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.pref b { display: block; font-size: 14.5px; }
.pref small { display: block; color: var(--muted); font-size: 13px; }
.prefs-form .btn { justify-self: start; }

/* ---- security ---- */
.sec-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sec-row > div { flex: 1; min-width: 180px; }
.sec-row strong, .sec-row small { display: block; }
.sec-row form { margin: 0; }
.sec-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); flex-shrink: 0; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover, .pw-eye.on { color: var(--ink); background: var(--surface-2); }
.pw-meter { height: 5px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.sec-danger { border-color: #f3d3ce; }
.sec-danger details { margin-top: 12px; }
.sec-danger summary { list-style: none; display: inline-flex; cursor: pointer; }
.sec-danger summary::-webkit-details-marker { display: none; }
.sec-danger details[open] summary { margin-bottom: 14px; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #a93226; color: #fff; }

/* ---- order detail ---- */
.od-status { display: grid; gap: 22px; }
.od-status-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.od-status-top p { margin: 8px 0 0; font-size: 14px; }
.od-courier { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--surface-2); font-size: 14px; flex-wrap: wrap; }
.od-courier span { display: inline-flex; align-items: center; gap: 6px; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.od-items { list-style: none; margin: 0; padding: 0; display: grid; }
.od-items li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.od-items li:first-child { padding-top: 0; }
.od-items img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.od-item-info { min-width: 0; display: grid; gap: 2px; }
.od-item-info > a, .od-item-info > span { font-weight: 600; color: var(--ink); }
.od-item-info small { color: var(--muted); font-size: 13px; }
.od-review { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-dark); justify-self: start; }
.od-reviewed { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; color: var(--success); justify-self: start; }
.od-totals { display: grid; gap: 8px; margin-top: 16px; font-size: 14.5px; }
.od-totals div { display: flex; justify-content: space-between; gap: 10px; }
.od-totals .od-save { color: var(--success); }
.od-grand { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.od-due { padding: 10px 12px; border-radius: 10px; background: var(--warning-soft); color: var(--warning); font-weight: 700; }
.od-addr { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.od-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.od-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.od-kv dt { color: var(--muted); }
.od-kv dd { margin: 0; font-weight: 500; text-align: right; word-break: break-word; }
.od-help { background: var(--surface-2); }
.od-help strong { display: block; }
.od-help p { margin: 4px 0 12px; font-size: 13.5px; color: var(--muted); }
.od-cancel { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.od-log { list-style: none; margin: 0; padding: 0; display: grid; }
.od-log li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; padding: 0 0 18px; }
.od-log li:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.od-log-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); margin-top: 3px; }
.od-log li:not(:first-child) .od-log-dot { border-color: var(--line-2); }
.od-log strong { display: block; font-size: 14px; }
.od-log small { display: block; color: var(--muted); font-size: 13px; }
.od-log time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---- checkout: saved addresses ---- */
.saved-addr { margin-bottom: 18px; }
.saved-addr .label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.sa-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.sa-chip { flex: 0 0 auto; width: 210px; display: grid; gap: 3px; text-align: left; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.sa-chip b { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.sa-chip small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-chip:hover { border-color: var(--ink); }
.sa-chip.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(181, 101, 74, .12); }
.sa-manage { width: 160px; border-style: dashed; color: var(--muted); }
.save-addr { margin-top: 4px; }
.save-addr[hidden] { display: none; }

/* ---- confirm dialog (storefront) ---- */
.sf-confirm { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(20, 17, 14, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s; }
.sf-confirm.show { opacity: 1; }
.sfc-box { width: 100%; max-width: 380px; background: var(--surface); border-radius: 18px; padding: 24px 22px 18px; box-shadow: var(--shadow-lg); transform: translateY(8px); transition: transform .18s; }
.sf-confirm.show .sfc-box { transform: none; }
.sfc-box p { margin: 0 0 18px; font-size: 16px; font-weight: 600; text-align: center; line-height: 1.45; }
.sfc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .acc-grid, .od-grid { grid-template-columns: 1fr; }
  .coupon-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .acc { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .acc-side { position: static; gap: 10px; }
  .acc-profile { padding: 14px 16px; }
  .acc-nav { display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; gap: 0; border-radius: 14px; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-group { display: flex; gap: 4px; padding: 0; }
  .acc-group + .acc-group { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 4px; margin-left: 4px; }
  .acc-group > small { display: none; }
  .acc-nav a { padding: 9px 12px; white-space: nowrap; font-size: 14px; gap: 8px; }
  .acc-nav a span { flex: none; }
  .acc-nav a.active::before { display: none; }
  .acc-help, .acc-logout { display: none; }
  .acc-head h1, .acc-hero h1 { font-size: 24px; }
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .acc-card { padding: 16px; border-radius: 16px; }
  .acc-hero { padding: 20px; }
  .acc-hero .btn { width: 100%; }
  .steps li { font-size: 10.5px; }
  .steps li > span { width: 26px; height: 26px; }
  .steps li::before { top: 12px; }
  .steps time { display: none; }
  .ocard-body { grid-template-columns: auto minmax(0, 1fr); }
  .ocard-total { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line); }
  .ocard-thumbs img, .ocard-more { width: 48px; height: 48px; }
  .ocard-actions .btn { flex: 1 1 auto; }
  .addr-grid, .coupon-grid, .coupon-row { grid-template-columns: 1fr; }
  .alert-card { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .alert-card > a.btn, .alert-card > .ost { grid-column: 2 / -1; justify-self: start; }
  .acc-stats a { padding: 12px 14px; }
  .as-ic { width: 36px; height: 36px; }
  .at-pay { margin-left: 0; width: 100%; }
  .od-items li { grid-template-columns: 56px minmax(0, 1fr); }
  .od-items li > strong { grid-column: 2; }
  .od-items img { width: 56px; height: 56px; }
  .od-log li { grid-template-columns: 14px minmax(0, 1fr); }
  .od-log time { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .steps li.now > span { animation: none; } }
/* lining numbers in display type (Playfair defaults to old-style figures) */
.acc h1, .acc h2, .acc-stats strong, .al-top strong, .cp-left strong, .ocard-total, .at-pay strong { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.at-top h2 { font-family: var(--font); font-weight: 700; }

/* product page: never wider than the screen; thumbnails scroll; tidy tags */
.product-detail > * { min-width: 0; }
.pd-thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs button { flex: 0 0 calc((100% - 40px) / 5); scroll-snap-align: start; min-width: 64px; }
.pd-meta li.pd-tags-row { align-items: flex-start; }
.pd-meta li.pd-tags-row > span { padding-top: 4px; flex-shrink: 0; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pd-tags .tag { white-space: nowrap; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); line-height: 1.3; }
.pd-tags .tag:hover { border-color: var(--ink); color: var(--ink); }
.pd-title { overflow-wrap: anywhere; }
@media (max-width: 640px) { .pd-thumbs button { flex-basis: 22%; } .pd-meta li > span { width: 64px; } }

/* language & currency switcher */
.announce-inner { justify-content: space-between; }
.announce-inner > span:first-child { flex: 1; text-align: center; }
.announce-right { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-sw { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; }
.lang-sw a { padding: 2px 10px; font-size: 12px; color: #d9d0c4; line-height: 1.6; white-space: nowrap; }
.lang-sw a.on { background: #f1ece4; color: var(--ink); font-weight: 600; }
.lang-sw a:not(.on):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.drawer-sw { padding: 4px 20px 12px; display: grid; gap: 8px; }
.drawer-sw .drawer-label { padding: 8px 0 0; }
.lang-sw-lg { border-color: var(--line-2); width: 100%; }
.lang-sw-lg a { flex: 1; text-align: center; padding: 8px 10px; font-size: 14px; color: var(--ink-2); }
.lang-sw-lg a.on { background: var(--ink); color: #fff; }
.usd-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 12px; }
@media (max-width: 720px) {
  .announce-inner { flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
  .announce-inner > span:first-child { flex-basis: 100%; }
  .announce-call { display: none; }
}

/* Bangla: Hind Siliguri reads better with a little more line height */
body.lang-bn { font-family: 'Hind Siliguri', 'Jost', system-ui, sans-serif; line-height: 1.65; }
body.lang-bn h1, body.lang-bn h2, body.lang-bn h3, body.lang-bn .pd-title, body.lang-bn .acc-head h1, body.lang-bn .acc-hero h1 { font-family: 'Hind Siliguri', var(--font-display); font-weight: 600; letter-spacing: 0; }
body.lang-bn .btn, body.lang-bn .tag, body.lang-bn .badge { letter-spacing: 0; }

/* v5 responsive polish: keep promo copy clear of artwork, roomier newsletter */
@media (max-width: 720px) {
  .side-promo { min-height: 150px; }
  .side-promo img { left: auto; width: 46%; object-position: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
  .side-promo::after { display: none; }
  .side-promo-text { max-width: 60%; padding: 18px 0 18px 20px; }
  .side-promo-text small { font-size: 12.5px; line-height: 1.45; }
  .showcase-card { padding-bottom: 26px; }
  .showcase-card p, .showcase-card .chips { max-width: 100%; }
  .showcase-card .chips { padding-right: 70px; }
  .showcase-img { width: 104px; height: 104px; right: -18px; bottom: -18px; }
  .newsletter { padding: 40px 0; }
  .newsletter-inner > div { flex: none; }
  .newsletter p { font-size: 14px; }
}
@media (max-width: 340px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}
/* notices: text + links flow as one paragraph (flex split them into columns) */
.notice { display: block; position: relative; line-height: 1.55; }
.notice > .icon:first-child { position: absolute; left: 16px; top: 16px; }
.notice:has(> .icon:first-child) { padding-left: 42px; }
.notice > .icon:first-child + span { display: inline; }
/* tablet hero: keep copy on the light side of the artwork */
@media (min-width: 721px) and (max-width: 1100px) {
  .hero-content { padding: 0 36px; max-width: 58%; }
  .hero-content > * { max-width: 100%; }
  .hero-content p { font-size: 15.5px; }
  .hero-slide::after { background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .85) 45%, rgba(255, 255, 255, 0) 70%); }
}
@media (min-width: 600px) and (max-width: 960px) {
  .pd-gallery { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 720px) {
  /* trust bar: icon on top so the Bangla copy gets the full cell width */
  .trust { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .trust strong { font-size: 13.5px; line-height: 1.35; }
  .trust span:not(.trust-ic) { line-height: 1.45; }
  /* flash sale: swipeable row instead of a grid with a hole */
  .flash-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 47%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding-bottom: 4px; }
  .flash-grid::-webkit-scrollbar { display: none; }
  .flash-grid > * { scroll-snap-align: start; min-width: 0; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .side-promo img { left: auto; width: 42%; object-position: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
  .side-promo::after { display: none; }
  .side-promo-text { max-width: 62%; }
  .side-promo-text small { font-size: 12.5px; }
}

/* blog */
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.blog-tags .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 30px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.bc-img { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; }
.bc-body { display: grid; gap: 8px; padding: 16px 18px 20px; }
.bc-body strong { font-family: var(--font-display); font-size: 19px; line-height: 1.3; }
.bc-body em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--accent-dark); display: inline-flex; gap: 4px; align-items: center; }
.blog-card.featured { grid-column: span 2; flex-direction: row; }
.blog-card.featured .bc-img { flex: 1.3; aspect-ratio: auto; min-height: 260px; }
.blog-card.featured .bc-body { flex: 1; align-content: center; padding: 26px; }
.blog-card.featured strong { font-size: 25px; }
.blog-article { padding-top: 24px; }
.ba-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 10px 0 8px; }
.ba-cover { width: 100%; height: auto; border-radius: 18px; margin: 14px 0 26px; aspect-ratio: 1200 / 630; object-fit: cover; }
.ba-body { max-width: none; font-size: 17px; line-height: 1.8; }
.ba-body img { max-width: 100%; height: auto; border-radius: 12px; }
.share-row { display: flex; gap: 12px; align-items: center; margin: 18px 0 8px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card.featured { grid-column: auto; flex-direction: column; }
  .blog-card.featured .bc-img { min-height: 0; aspect-ratio: 16 / 9; }
  .blog-card.featured .bc-body { padding: 16px 18px 20px; }
  .blog-card.featured strong { font-size: 20px; }
  .ba-body { font-size: 16px; }
}

/* product Q&A */
.qa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.qa-list li { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.qa-q, .qa-a { display: flex; gap: 10px; margin: 0; }
.qa-a { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.qa-q b, .qa-a b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--ink); color: #fff; }
.qa-a b { background: var(--accent); }
.qa-q span, .qa-a span { display: grid; gap: 2px; }

/* installable app */
.drawer-install { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 18px; background: var(--accent-soft); color: var(--accent-dark); border: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.drawer-install[hidden] { display: none; }
.app-banner { position: fixed; left: 12px; right: 12px; bottom: 74px; z-index: 140; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .4s both; }
.app-banner > div { flex: 1; min-width: 0; display: grid; }
.app-banner strong { font-size: 14.5px; }
.app-banner small { color: var(--muted); font-size: 12.5px; }
.ab-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent) url('../../app-icon/192.png') center / cover; }
.ab-x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 6px; cursor: pointer; }
@media (display-mode: standalone) { .app-banner, .drawer-install { display: none !important; } }

/* frequently bought together */
.fbt { margin-top: 36px; }
.fbt-box { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.fbt-items { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; flex: 1 1 520px; }
.fbt-item { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; width: 150px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: center; cursor: pointer; }
.fbt-item:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.fbt-item input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; accent-color: var(--accent); }
.fbt-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.fbt-name { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fbt-name a { color: inherit; }
.fbt-plus { align-self: center; font-size: 22px; color: var(--muted); }
.fbt-buy { display: grid; gap: 6px; justify-items: start; flex: 0 1 230px; }
.fbt-buy strong { font-size: 24px; }
.cart-suggest { padding-top: 10px; }
@media (max-width: 720px) {
  .fbt-box { padding: 14px; gap: 14px; }
  .fbt-items { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 6px; flex-basis: 100%; }
  .fbt-items::-webkit-scrollbar { display: none; }
  .fbt-item { width: 128px; flex: none; }
  .fbt-buy { flex-basis: 100%; grid-template-columns: 1fr auto; align-items: center; }
  .fbt-buy small:first-child { grid-column: 1 / -1; }
  .fbt-buy small:last-child:not(:first-child) { grid-column: 1 / -1; }
}

/* quantity offers */
.qty-offers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; color: var(--accent-dark); }
.qo-chip { background: var(--accent-soft); color: var(--accent-dark); border: 1px dashed var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.qo-applied { display: block; font-size: 12px; color: var(--success, #15803d); }
.qo-applied del { color: var(--muted); margin-right: 4px; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.review-photos img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* loyalty & referral */
.earn-points { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: 13.5px; color: #7e22ce; }
.points-row { cursor: pointer; } .points-row input { accent-color: var(--accent); margin-right: 6px; vertical-align: -2px; }
.ref-code { margin: 6px 0 12px; font-size: 13.5px; } .ref-code summary { cursor: pointer; color: var(--accent-dark); }
.ref-code .input { margin-top: 8px; width: 100%; }
.points-hero { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; padding: 22px 24px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #7e22ce, #c026d3 60%, #db2777); margin-bottom: 16px; }
.points-hero > div { display: grid; min-width: 160px; }
.points-hero small { opacity: .85; } .points-hero strong { font-size: 44px; line-height: 1.1; font-family: var(--font-display); } .points-hero span { opacity: .9; }
.points-hero ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; flex: 1 1 280px; font-size: 14px; }
.points-hero li { display: flex; gap: 8px; align-items: flex-start; }
.ref-card .copy-row { display: flex; gap: 8px; margin: 10px 0; } .ref-card .copy-row .input { flex: 1; min-width: 0; }
.ref-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.points-list { list-style: none; padding: 0; margin: 0; }
.points-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.points-list li span { display: grid; } .points-list b.plus { color: #15803d; } .points-list b.minus { color: #b91c1c; }
