/* ============================================================
   Bloomora — Storefront styles (premium 2026 design system)
   ============================================================ */
:root {
  --ink: #131722;
  --ink-2: #3d4356;
  --muted: #6b7280;
  --rose: #e0447c;
  --rose-dark: #c22f65;
  --rose-soft: #fdf0f5;
  --rose-line: #f6cddd;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --line: #e8eaf0;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(19, 23, 34, 0.06);
  --shadow-md: 0 8px 24px rgba(19, 23, 34, 0.08);
  --shadow-lg: 0 16px 48px rgba(19, 23, 34, 0.14);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* mobile bottom nav */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.site-main { min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.text-success { color: var(--green); }
.text-danger { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 11px 22px;
  font-weight: 700; font-size: 14.5px; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s;
  text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff; box-shadow: 0 4px 14px rgba(224, 68, 124, .28); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(224, 68, 124, .4); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #232a3d; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-danger { background: none; border: none; color: var(--red); font-size: 13.5px; font-weight: 600; padding: 4px 0; }
.link-more { color: var(--rose); font-weight: 700; font-size: 14px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------- Flash messages & toast ---------- */
.flash-stack { margin-top: 16px; }
.flash { padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.flash-success { background: #e8f8ee; color: #14532d; }
.flash-error { background: #fee2e2; color: #7f1d1d; }
.flash-warning { background: #fef3c7; color: #78350f; }
.flash-info { background: #e0f2fe; color: #075985; }
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); z-index: 2000;
  opacity: 0; pointer-events: none; transition: all .25s ease; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #cfd3de; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a:hover { color: #fff; }
.header-main { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 900; }
.header-main-inner { display: flex; align-items: center; gap: 22px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.brand-logo { height: 40px; width: auto; }
.nav-burger { display: none; }

.search-box { position: relative; flex: 1; max-width: 560px; }
.search-box input {
  width: 100%; padding: 12px 52px 12px 18px; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--bg-soft); outline: none; transition: all .15s;
}
.search-box input:focus { border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px rgba(224, 68, 124, .08); }
.search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.search-mobile { display: none; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 1000; overflow: hidden;
}
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.suggest-item:hover { background: var(--rose-soft); }
.suggest-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }
.suggest-item .si-name { font-weight: 700; font-size: 14px; }
.suggest-item .si-meta { font-size: 12px; color: var(--muted); }
.suggest-item .si-price { margin-left: auto; font-weight: 800; color: var(--rose); font-size: 14px; white-space: nowrap; }
.suggest-item .si-price s { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.suggest-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.suggest-footer { display: block; padding: 10px 14px; background: var(--bg-soft); font-weight: 700; font-size: 13.5px; color: var(--rose); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 10px; color: var(--ink); }
.icon-link:hover { background: var(--rose-soft); color: var(--rose); }
.icon-label { font-size: 11px; font-weight: 600; }
.badge {
  position: absolute; top: 0; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--rose); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.badge:empty { display: none; }

/* Nav */
.main-nav { border-bottom: 1px solid var(--line); background: #fff; }
.main-nav-inner { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a, .nav-item > a {
  padding: 13px 16px; font-weight: 700; font-size: 14.5px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px; border-bottom: 2.5px solid transparent;
}
.nav-links > a:hover, .nav-item > a:hover, .nav-links > a.active { color: var(--rose); border-bottom-color: var(--rose); }
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 230px;
  border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease; z-index: 800; padding: 8px;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.dropdown a:hover { background: var(--rose-soft); color: var(--rose); }
.dropdown img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.nav-user { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.nav-user a:hover { color: var(--rose); }
.nav-close, .nav-head-mobile { display: none; }

/* Category chip scroll (mobile) */
.cat-scroll { display: none; }

/* ---------- Hero slider ---------- */
.hero { background: var(--bg-soft); }
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { display: none; position: relative; }
.hero-slide.is-active { display: block; animation: heroFade .55s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-img { width: 100%; aspect-ratio: 19/6; object-fit: cover; }
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 10px; padding: 20px;
  background: linear-gradient(90deg, rgba(19, 23, 34, .55) 0%, rgba(19, 23, 34, .15) 45%, transparent 70%);
  color: #fff;
}
.hero-badge {
  background: var(--rose); color: #fff; font-weight: 800; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; letter-spacing: .3px;
}
.hero-title { font-family: var(--display); font-size: clamp(22px, 4vw, 46px); line-height: 1.12; max-width: 560px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(13px, 1.4vw, 17px); max-width: 480px; opacity: .92; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border-radius: 50%; border: none; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 24px; line-height: 1; box-shadow: var(--shadow-md); z-index: 5; transition: all .15s;
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dot { width: 22px; height: 5px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .5); transition: all .2s; }
.hero-dot.is-active { background: #fff; width: 34px; }

/* ---------- Benefits ---------- */
.benefits { border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 20px; }
.benefit { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius); }
.benefit:hover { background: var(--bg-soft); }
.benefit-icon { font-size: 26px; }
.benefit strong { display: block; font-size: 14px; }
.benefit span:not(.benefit-icon) { font-size: 12.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.section-title { font-family: var(--display); font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.4px; }
.section-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.page-pad { padding-top: 26px; padding-bottom: 46px; }
.page-title { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.h-sub { font-size: 17px; margin: 26px 0 12px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; text-align: center; transition: all .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rose-line); }
.cat-card-img { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); margin-bottom: 10px; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-name { font-weight: 800; font-size: 14.5px; display: block; }
.cat-card-count { font-size: 12px; color: var(--muted); }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .2s ease; position: relative; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rose-line); }
.pc-media { position: relative; aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; }
.pc-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .pc-img { transform: scale(1.05); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge-sale { background: var(--rose); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px; }
.badge-flash { background: var(--ink); color: #ffd166; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px; }
.pc-actions {
  position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(8px); transition: all .2s ease;
}
.product-card:hover .pc-actions { opacity: 1; transform: translateX(0); }
.pc-action {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.pc-action:hover { background: var(--rose); color: #fff; }
.pc-action.wishlisted { background: var(--rose); color: #fff; }
.pc-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-name { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pc-name:hover { color: var(--rose); }
.pc-rating { display: flex; align-items: center; gap: 5px; }
.stars { display: inline-flex; gap: 1px; }
.star { color: #d8dbe2; }
.star.on { color: #f5a623; }
.star.half { color: #f5a623; opacity: .6; }
.pc-rating-count { font-size: 12px; color: var(--muted); }
.pc-price-row { display: flex; align-items: baseline; gap: 8px; }
.pc-price { font-weight: 800; font-size: 16.5px; color: var(--rose-dark); }
.pc-old-price { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.pc-stock { font-size: 12px; font-weight: 700; }
.pc-stock.in { color: var(--green); }
.pc-stock.out { color: var(--red); }
.btn-cart { padding: 8px 14px; font-size: 13px; border-radius: 9px; background: var(--ink); color: #fff; border: none; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.btn-cart:hover { background: var(--rose); }
.btn-cart:disabled { opacity: .45; }

/* ---------- Flash sale ---------- */
.flash-section { background: linear-gradient(135deg, #fff5f8 0%, #fff 60%); border-block: 1px solid var(--rose-line); }
.flash-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
.flash-title { color: var(--rose-dark); }
.flash-timer { display: flex; gap: 8px; }
.ft-box { background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 58px; }
.ft-box b { font-size: 20px; display: block; font-variant-numeric: tabular-nums; }
.ft-box small { font-size: 10.5px; color: #aab; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Promo banners ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promo-grid.single { grid-template-columns: 1fr; }
.promo-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; min-height: 220px; }
.promo-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform .35s; }
.promo-card:hover img { transform: scale(1.03); }
.promo-content { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: linear-gradient(90deg, rgba(19,23,34,.55), transparent 65%); color: #fff; }
.promo-badge { background: var(--rose); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; align-self: flex-start; }
.promo-content h3 { font-family: var(--display); font-size: clamp(19px, 2.2vw, 27px); }
.promo-content p { opacity: .9; font-size: 14px; max-width: 420px; }
.promo-content .btn { align-self: flex-start; margin-top: 6px; }

.wide-banner { position: relative; }
.wide-banner img { width: 100%; max-height: 340px; object-fit: cover; }
.wide-banner-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #fff; background: rgba(19,23,34,.35); padding: 20px; }
.wide-banner-content h3 { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); }

/* ---------- Brands ---------- */
.brand-row { display: flex; flex-wrap: wrap; gap: 14px; }
.brand-chip {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px 10px 10px; font-weight: 700; font-size: 14px; transition: all .18s;
}
.brand-chip:hover { border-color: var(--rose); color: var(--rose); box-shadow: var(--shadow-sm); }
.brand-chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.brand-chip span:not(.brand-chip-name) { width: 38px; height: 38px; border-radius: 50%; background: var(--rose-soft); color: var(--rose); display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- Reviews ---------- */
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.rc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rc-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--rose-soft); color: var(--rose-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.rc-avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.rc-head strong { display: block; font-size: 14px; }
.rc-verified { font-size: 11.5px; color: var(--green); font-weight: 700; }
.rc-stars { margin-left: auto; }
.rc-body { font-size: 14px; color: var(--ink-2); }
.rc-product { font-size: 12.5px; color: var(--rose); font-weight: 700; display: inline-block; margin-top: 8px; }

/* ---------- Listing / shop ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--rose); }
.breadcrumbs span { margin: 0 4px; }
.listing-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 90px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h3 { font-size: 16px; }
.filters-close { display: none; background: none; border: none; font-size: 26px; color: var(--muted); }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border: none; }
.filter-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-options.scroll-y { max-height: 220px; overflow-y: auto; }
.filter-check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.filter-check input { accent-color: var(--rose); width: 16px; height: 16px; }
.filter-check small { color: var(--muted); font-weight: 500; }
.filter-price { display: flex; align-items: center; gap: 8px; }
.filter-price input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 9px; }
.listing-toolbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.listing-title { font-family: var(--display); font-size: 26px; }
.listing-count { color: var(--muted); font-size: 13.5px; }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.toolbar-right select { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; }
.filters-open { display: none; }
.subcat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.listing-grid { grid-template-columns: repeat(3, 1fr); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-link { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; background: #fff; }
.page-link:hover { border-color: var(--rose); color: var(--rose); }
.page-link.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.page-gap { align-self: center; color: var(--muted); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; margin-bottom: 40px; }
.pd-main-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.pd-main-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s ease; cursor: zoom-in; }
.pd-main-wrap.zoomed img, .pd-main-img.zoomed img { transform: scale(1.7); cursor: zoom-out; }
.pd-sale-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 13px; padding: 6px 12px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumb { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: none; padding: 0; flex-shrink: 0; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--rose); }
.pd-brand { color: var(--rose); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.pd-title { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 6px 0 10px; }
.pd-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pd-rating a { color: var(--muted); }
.pd-rating a:hover { color: var(--rose); }
.pd-sku { font-size: 12.5px; color: var(--muted); }
.pd-price-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px; background: var(--rose-soft); border-radius: var(--radius); margin-bottom: 12px; }
.pd-price { font-size: 30px; font-weight: 800; color: var(--rose-dark); }
.pd-old-price { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pd-save { background: #fff; color: var(--green); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.pd-stock { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.pd-stock.in { color: var(--green); }
.pd-stock.out { color: var(--red); }
.pd-short { color: var(--ink-2); margin-bottom: 14px; }
.pd-variants { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.variant-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.variant-label { font-weight: 700; font-size: 13.5px; min-width: 56px; }
.variant-option input { display: none; }
.variant-option span {
  display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.variant-option input:checked + span { border-color: var(--rose); background: var(--rose-soft); color: var(--rose-dark); }
.variant-option input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.pd-buy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-bottom: 18px; }
.qty-selector { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-selector button { width: 42px; height: 48px; border: none; background: var(--bg-soft); font-size: 19px; font-weight: 700; color: var(--ink); }
.qty-selector button:hover { background: var(--rose-soft); color: var(--rose); }
.qty-selector input { width: 56px; text-align: center; border: none; outline: none; font-weight: 800; font-size: 15px; -moz-appearance: textfield; }
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; height: 36px; font-size: 16px; }
.qty-sm input { width: 44px; font-size: 14px; }
.pd-wish { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.pd-wish.wishlisted { color: var(--rose); border-color: var(--rose); background: var(--rose-soft); }
.pd-perks { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }

.pd-tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 36px; }
.pd-tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.pd-tab-btn { background: none; border: none; padding: 12px 18px; font-weight: 700; font-size: 14.5px; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.pd-tab-btn.active { color: var(--rose); border-bottom-color: var(--rose); }
.pd-tab-panel { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.pd-tab-panel h4 { color: var(--ink); margin: 14px 0 6px; }
.pd-tab-panel ul { padding-left: 20px; }
.spec-table { width: 100%; max-width: 560px; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.spec-table th { color: var(--muted); font-weight: 600; width: 40%; }
.tag { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; margin: 2px; }

.reviews-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.reviews-summary { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; text-align: center; align-self: start; }
.rs-avg { font-size: 42px; font-weight: 800; }
.rs-avg small { font-size: 16px; color: var(--muted); font-weight: 600; }
.rs-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 6px; }
.rs-bar { flex: 1; height: 7px; background: #e4e6ec; border-radius: 99px; overflow: hidden; }
.rs-bar i { display: block; height: 100%; background: #f5a623; border-radius: 99px; }
.review-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.ri-head { display: flex; gap: 10px; margin-bottom: 8px; }
.ri-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.review-form { margin-top: 22px; background: var(--bg-soft); padding: 20px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.star-input { display: flex; gap: 2px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input span { font-size: 26px; color: #d8dbe2; cursor: pointer; }
.star-input input:checked ~ span, .star-input span:hover, .star-input span:hover ~ span { color: #f5a623; }
.review-form textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; }
.review-cta { color: var(--muted); margin-top: 14px; }
.review-cta a { color: var(--rose); font-weight: 700; }

.pd-sticky-buy { display: none; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 20px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row:last-child { border: none; }
.cart-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.cart-name { font-weight: 700; font-size: 14.5px; display: block; }
.cart-name:hover { color: var(--rose); }
.cart-variant { font-size: 12.5px; color: var(--muted); display: block; }
.cart-unit { font-size: 13px; color: var(--muted); display: block; margin: 2px 0 8px; }
.cart-row-actions { display: flex; align-items: center; gap: 16px; }
.cart-line-total { font-weight: 800; font-size: 16px; color: var(--rose-dark); }
.cart-clear-row { text-align: right; padding: 12px 0; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 90px; }
.cart-summary h3, .panel h3 { font-size: 17px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14.5px; }
.sum-total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; }
.sum-total strong { color: var(--rose-dark); font-size: 20px; }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; text-transform: uppercase; }
.cart-summary .btn { margin-top: 8px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel { padding: 24px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: 13.5px; }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; outline: none; transition: border .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(224,68,124,.07); }
.form-field input:disabled { background: var(--bg-soft); color: var(--muted); }
.span-2 { grid-column: span 2; }
.address-picks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.address-pick { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; font-size: 13.5px; }
.address-pick input { accent-color: var(--rose); margin-top: 3px; }
.address-pick:has(input:checked) { border-color: var(--rose); background: var(--rose-soft); }
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-option { display: flex; gap: 14px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: all .15s; }
.pay-option:has(input:checked) { border-color: var(--rose); background: var(--rose-soft); box-shadow: 0 0 0 4px rgba(224,68,124,.06); }
.pay-option input { accent-color: var(--rose); width: 18px; height: 18px; }
.pay-option-body b { display: block; font-size: 15px; }
.pay-option-body small { color: var(--muted); }
.pay-logo { margin-left: auto; font-weight: 800; font-size: 12px; padding: 8px 12px; border-radius: 8px; }
.ssl-logo { background: #e8f0fe; color: #1a56db; }
.cod-logo { background: #e8f8ee; color: #15803d; }
.co-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.co-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.co-item img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; }
.co-item strong { margin-left: auto; white-space: nowrap; }
.co-name { font-weight: 700; display: block; }
.co-item small { color: var(--muted); }
.co-totals { margin-bottom: 14px; }
.secure-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Order success */
.order-success { display: flex; justify-content: center; }
.success-card { max-width: 640px; width: 100%; text-align: center; }
.success-icon { margin-bottom: 14px; }
.success-card h1 { font-family: var(--display); font-size: 27px; margin-bottom: 8px; }
.order-no-big { font-size: 30px; font-weight: 800; letter-spacing: 1px; background: var(--bg-soft); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 12px; margin: 10px 0 14px; }
.pay-status { font-weight: 700; margin-bottom: 18px; }
.pay-status.paid { color: var(--green); }
.pay-status.pending { color: var(--ink-2); }
.success-details { text-align: left; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- Track ---------- */
.track-page { max-width: 860px; margin: 0 auto; }
.track-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px; }
.track-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.track-form .form-field { flex: 1; min-width: 200px; }
.track-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.track-steps { display: flex; list-style: none; margin: 22px 0 28px; }
.track-step { flex: 1; text-align: center; position: relative; }
.track-step::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.track-step:first-child::before { display: none; }
.track-step.done::before { background: var(--green); }
.ts-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; position: relative; z-index: 1; color: var(--muted); }
.track-step.done .ts-dot { background: var(--green); border-color: var(--green); color: #fff; }
.track-step.current .ts-dot { background: #fff; border-color: var(--green); color: var(--green); box-shadow: 0 0 0 6px rgba(22,163,74,.12); }
.ts-label { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.track-step.done .ts-label, .track-step.current .ts-label { color: var(--ink); }
.track-history { list-style: none; }
.track-history li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.track-history li:last-child { border: none; }

/* Status pills */
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.st-pending { background: #fef3c7; color: #92400e; }
.st-confirmed { background: #e0f2fe; color: #075985; }
.st-processing { background: #ede9fe; color: #5b21b6; }
.st-packed { background: #fce7f3; color: #9d174d; }
.st-shipped { background: #e0e7ff; color: #3730a3; }
.st-delivered { background: #dcfce7; color: #166534; }
.st-cancelled { background: #fee2e2; color: #991b1b; }
.st-returned { background: #f3f4f6; color: #374151; }
.pay-paid { color: var(--green); font-weight: 700; }
.pay-failed, .pay-cancelled { color: var(--red); font-weight: 700; }
.pay-pending { color: var(--amber); font-weight: 700; }

/* ---------- Auth & account ---------- */
.auth-page { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-family: var(--display); font-size: 26px; margin-bottom: 4px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--rose); font-weight: 700; }
.blank-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-soft); }

.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 90px; }
.an-user { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.an-user small { display: block; color: var(--muted); font-size: 12px; }
.account-nav a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.account-nav a:hover { background: var(--bg-soft); }
.account-nav a.active { background: var(--rose-soft); color: var(--rose-dark); }
.account-nav a.logout { color: var(--red); margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; border-radius: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-cards.three { grid-template-columns: repeat(3, 1fr); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--rose-dark); }
.stat-label { font-size: 12.5px; color: var(--muted); }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: all .15s; }
.order-card:hover { border-color: var(--rose-line); box-shadow: var(--shadow-sm); }
.oc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.oc-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); align-items: center; }
.oc-meta strong { margin-left: auto; color: var(--ink); font-size: 15px; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.address-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.address-card.default { border-color: var(--rose); }
.ac-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.address-card p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { font-family: var(--display); font-size: 22px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; max-width: 420px; margin-inline: auto; }

/* ---------- Contact / static ---------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.contact-layout form { display: flex; flex-direction: column; gap: 12px; }
.static-page { max-width: 820px; }
.static-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.static-block:last-of-type { border: none; }
.static-block h3 { font-size: 16.5px; margin-bottom: 4px; }
.static-block p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 30px; background: var(--ink); color: #c9cedb; }
.newsletter { background: linear-gradient(120deg, var(--rose), var(--rose-dark)); color: #fff; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 20px; flex-wrap: wrap; }
.newsletter h3 { font-family: var(--display); font-size: 23px; }
.newsletter p { opacity: .92; font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter-form input { flex: 1; padding: 13px 18px; border-radius: 11px; border: none; outline: none; font-size: 14.5px; }
.newsletter-form .btn { background: var(--ink); box-shadow: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding: 44px 20px 30px; }
.footer-brand { font-family: var(--display); font-size: 24px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: #aab0c0; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 13.5px; line-height: 1.8; margin: 10px 0; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.socials a { border: 1px solid #3a4155; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.socials a:hover { border-color: var(--rose); color: #fff; background: rgba(224,68,124,.15); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badge { padding: 7px 12px; border-radius: 8px; font-weight: 800; font-size: 11.5px; letter-spacing: .3px; }
.pay-visa { background: #1a1f71; color: #fff; }
.pay-master { background: #eb001b; color: #fff; }
.pay-amex { background: #2e77bc; color: #fff; }
.pay-bkash { background: #e2136e; color: #fff; }
.pay-nagad { background: #f6921e; color: #fff; }
.pay-cod { background: #16a34a; color: #fff; }
.pay-note { margin-top: 10px; font-size: 12px; color: #8a90a2; }
.footer-bottom { border-top: 1px solid #262c3d; }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 16px 20px; font-size: 12.5px; color: #8a90a2; flex-wrap: wrap; gap: 6px; }

/* ---------- Mobile bottom nav ---------- */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 950; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(19,23,34,.07);
}
.mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--muted); position: relative; padding: 4px 0; }
.mobile-nav a.active { color: var(--rose); }
.mobile-nav .badge { position: absolute; top: -2px; right: calc(50% - 20px); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(19,23,34,.55); z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: #fff; border-radius: var(--radius-lg); max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: popIn .2s ease; }
@keyframes popIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--bg-soft); font-size: 22px; z-index: 5; }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.qv-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.qv-info { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.qv-info h3 { font-family: var(--display); font-size: 21px; }
.qv-short { color: var(--muted); font-size: 14px; }
.qv-info .pd-buy { margin-bottom: 4px; }

/* Skeleton loading */
.skeleton { position: relative; overflow: hidden; background: #eceef2; border-radius: 10px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .review-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-side { order: -1; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 1200; border-radius: 0; transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; }
  .filters.open { transform: translateX(0); }
  .filters-close { display: block; }
  .filters-open { display: inline-flex; }
}

@media (max-width: 767px) {
  body { padding-bottom: 70px; }
  .topbar-links span { display: none; }
  .header-main-inner { gap: 12px; padding: 10px 14px; }
  .nav-burger { display: flex; background: none; border: none; color: var(--ink); padding: 6px; }
  .search-box { display: none; }
  .search-mobile { display: flex; padding: 0 14px 12px; max-width: none; }
  .icon-label { display: none; }
  .icon-link { padding: 6px; }
  .brand-name { font-size: 20px; }

  .main-nav { position: fixed; top: 0; bottom: 0; left: 0; width: 300px; max-width: 85vw; background: #fff; z-index: 1300; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .main-nav.open { transform: translateX(0); }
  .main-nav-inner { flex-direction: column; align-items: stretch; padding: 18px; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links > a, .nav-item > a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 14px; display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-close { display: block; position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 28px; color: var(--muted); }
  .nav-head-mobile { display: block; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; width: 100%; }
  .nav-user { margin: 14px 0 0; }

  .cat-scroll { display: block; border-bottom: 1px solid var(--line); background: #fff; }
  .cat-scroll-inner { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
  .cat-scroll-inner::-webkit-scrollbar { display: none; }
  .cat-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--bg-soft); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; }
  .cat-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
  .subcat-row .cat-chip { background: var(--bg-soft); }

  .hero-img { aspect-ratio: 4/3.4; }
  .hero-content { background: linear-gradient(0deg, rgba(19,23,34,.65) 0%, transparent 65%); justify-content: flex-end; padding-bottom: 34px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 20px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 2px; padding: 12px; }
  .benefit { flex-direction: column; text-align: center; gap: 4px; padding: 12px 6px; }
  .section { padding: 30px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .promo-grid { grid-template-columns: 1fr; }
  .review-cards { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; gap: 22px; }
  .reviews-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .cart-row { grid-template-columns: 64px 1fr; }
  .cart-thumb img { width: 64px; height: 64px; }
  .cart-line-total { grid-column: 2; justify-self: start; }
  .track-steps { flex-wrap: wrap; gap: 14px; }
  .track-step { flex: 0 0 30%; }
  .track-step::before { display: none; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-img img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }

  .pd-sticky-buy {
    display: flex; position: fixed; bottom: 64px; left: 0; right: 0; z-index: 940;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center;
    box-shadow: 0 -6px 20px rgba(19,23,34,.08);
  }
  .pd-sticky-price { font-weight: 800; font-size: 18px; color: var(--rose-dark); }
  .pd-sticky-buy .btn { flex: 1; }
  body:has(.pd-sticky-buy) { padding-bottom: 130px; }
}

@media (max-width: 360px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-price { font-size: 15px; }
}
