/* =============================================================
   POLYBRAND DESIGN SYSTEM v2.0 — Premium Marketplace
   Fonts: Plus Jakarta Sans (display) + DM Sans (body)
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css');

:root {
  /* Polybrand Blue */
  --pb:       #2563EB;
  --pb-dk:    #1D4ED8;
  --pb-lt:    #EFF6FF;
  --pb-glow:  rgba(37,99,235,.12);
  /* BookSide Amber */
  --bs:       #D97706;
  --bs-dk:    #B45309;
  --bs-lt:    #FFFBEB;
  /* Neutrals */
  --g0:  #FFFFFF;
  --g05: #FAFAFA;
  --g1:  #F4F4F5;
  --g2:  #E4E4E7;
  --g3:  #D4D4D8;
  --g4:  #A1A1AA;
  --g5:  #71717A;
  --g6:  #52525B;
  --g7:  #3F3F46;
  --g8:  #27272A;
  --g9:  #18181B;
  /* Semantic */
  --green:  #10B981;
  --red:    #EF4444;
  --yellow: #F59E0B;
  --purple: #7C3AED;
  --orange: #F97316;
  /* Radius */
  --r:     12px;
  --r-sm:  8px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-full:50px;
  /* Shadow */
  --sh-xs:  0 1px 2px rgba(0,0,0,.04);
  --sh:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
  --sh-md:  0 4px 12px rgba(0,0,0,.07);
  --sh-lg:  0 10px 30px rgba(0,0,0,.1);
  --sh-xl:  0 20px 50px rgba(0,0,0,.14);
  /* Heights */
  --hdr:     56px;
  --bot-nav: 60px;
  /* Transitions */
  --ease:    cubic-bezier(.4,0,.2,1);
  --trans:   .2s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--g05);
  color: var(--g9);
  line-height: 1.6;
  min-height: 100dvh;
  padding-bottom: calc(var(--bot-nav) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1,h2,h3,h4,h5 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 800; line-height: 1.2; }

/* ── Utility ─────────────────────────────────────────────────── */
.clamp1 { display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden; }
.clamp2 { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 1rem; }
.page-content { padding: .75rem 0 2rem; }
.text-center { text-align: center; }
.muted { color: var(--g5); }

/* ── Header ──────────────────────────────────────────────────── */
.pb-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  height: var(--hdr);
}
.pb-header-inner {
  display: flex; align-items: center; gap: .65rem;
  max-width: 1320px; margin: 0 auto;
  height: 100%; padding: 0 1rem;
}
.pb-logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0; letter-spacing: -.02em;
}
.pb-logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--pb) 0%, #7C3AED 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.pb-logo-mark::before {
  content: ''; width: 12px; height: 12px;
  background: #fff; border-radius: 3px; transform: rotate(45deg);
}
.pb-search-wrap {
  flex: 1; max-width: 480px;
  display: flex; align-items: center;
  background: var(--g1); border: 1.5px solid transparent;
  border-radius: var(--r-full); padding: 0 .85rem; gap: .45rem;
  transition: all var(--trans);
}
.pb-search-wrap:focus-within {
  border-color: var(--pb); background: var(--g0);
  box-shadow: 0 0 0 4px var(--pb-glow);
}
.pb-search-wrap input {
  background: none; border: none; outline: none;
  flex: 1; font-size: .88rem; padding: .55rem 0;
  color: var(--g9);
}
.pb-search-wrap input::placeholder { color: var(--g4); }
.pb-search-icon { color: var(--g4); font-size: .88rem; flex-shrink: 0; }
.pb-header-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; margin-left: auto; }
.hdr-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); border: none; background: none;
  font-size: 1.15rem; color: var(--g7);
  position: relative; transition: all var(--trans);
}
.hdr-btn:hover { background: var(--g1); color: var(--g9); }
.hdr-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--pb); color: #fff;
  font-size: .6rem; font-weight: 700;
  border-radius: var(--r-full); border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
}
.hdr-btn-login {
  padding: .45rem 1.1rem; background: var(--g9); color: #fff;
  border-radius: var(--r-full); font-size: .82rem; font-weight: 700;
  border: none; transition: all var(--trans);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.hdr-btn-login:hover { background: var(--g8); transform: translateY(-1px); }

/* ── Bottom Nav ──────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bot-nav); background: var(--g0);
  border-top: 1px solid var(--g2);
  display: flex; align-items: stretch;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  font-size: .62rem; font-weight: 600;
  color: var(--g4); position: relative;
  transition: color var(--trans);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.bottom-nav a .nav-icon { font-size: 1.25rem; line-height: 1; }
.bottom-nav a.active { color: var(--g9); }
.bottom-nav a .nav-dot {
  position: absolute; top: 8px; right: calc(50% - 14px);
  min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--pb); color: #fff;
  font-size: .55rem; font-weight: 700; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--g0);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: var(--r-full);
  font-weight: 700; font-size: .88rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: none; transition: all var(--trans);
  white-space: nowrap; cursor: pointer;
}
.btn-primary   { background: var(--g9);  color: #fff; }
.btn-primary:hover { background: var(--g8); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-blue      { background: var(--pb);  color: #fff; }
.btn-blue:hover{ background: var(--pb-dk); transform: translateY(-1px); }
.btn-amber     { background: var(--bs);  color: #fff; }
.btn-amber:hover{ background: var(--bs-dk); }
.btn-outline   { background: transparent; color: var(--g7); border: 1.5px solid var(--g3); }
.btn-outline:hover { border-color: var(--g9); color: var(--g9); }
.btn-ghost     { background: var(--g1); color: var(--g7); }
.btn-ghost:hover { background: var(--g2); }
.btn-sm        { padding: .4rem 1rem; font-size: .8rem; }
.btn-lg        { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-block     { width: 100%; }
.btn-icon      { width: 40px; height: 40px; padding: 0; border-radius: var(--r); }

/* ── Inputs ──────────────────────────────────────────────────── */
.input {
  width: 100%; padding: .65rem 1rem;
  border: 1.5px solid var(--g2);
  border-radius: var(--r);
  font-size: .92rem; background: var(--g0);
  color: var(--g9); transition: all var(--trans); outline: none;
}
.input:focus { border-color: var(--pb); box-shadow: 0 0 0 4px var(--pb-glow); }
.input-sm { padding: .48rem .8rem; font-size: .85rem; }
label.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--g6); margin-bottom: .35rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.form-group { margin-bottom: 1rem; }
.form-hint  { font-size: .75rem; color: var(--g5); margin-top: .3rem; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--g0); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs); overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
}
.card-body { padding: 1.25rem; }

/* ── Pill Badges ─────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; padding: .22rem .7rem; border-radius: var(--r-full); font-size: .7rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.pill-blue   { background: var(--pb-lt); color: var(--pb); }
.pill-amber  { background: var(--bs-lt); color: var(--bs-dk); }
.pill-gray   { background: var(--g1);    color: var(--g5); }
.pill-green  { background: #ECFDF5;      color: #059669; }
.pill-red    { background: #FEF2F2;      color: #DC2626; }
.pill-purple { background: #F5F3FF;      color: #7C3AED; }

/* ── Product Card ────────────────────────────────────────────── */
.product-grid { display: grid; gap: .65rem; grid-template-columns: repeat(2, 1fr); }
@media(min-width:480px)  { .product-grid { grid-template-columns: repeat(3,1fr); gap: .75rem; } }
@media(min-width:768px)  { .product-grid { grid-template-columns: repeat(4,1fr); gap: .85rem; } }
@media(min-width:1024px) { .product-grid { grid-template-columns: repeat(5,1fr); } }
@media(min-width:1280px) { .product-grid { grid-template-columns: repeat(6,1fr); } }

.product-card {
  background: var(--g0); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer; border: 1px solid rgba(0,0,0,.04);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.product-img {
  width: 100%; aspect-ratio: 1;
  background: var(--g1); overflow: hidden;
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img .no-img { font-size: 2.5rem; color: var(--g3); }
.product-body { padding: .65rem .75rem .85rem; flex: 1; display: flex; flex-direction: column; }
.product-brand {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--g4); margin-bottom: .2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.product-name { font-weight: 600; font-size: .85rem; line-height: 1.35; flex: 1; margin-bottom: .4rem; color: var(--g8); }
.product-price { font-weight: 800; font-size: .95rem; color: var(--g9); font-family: 'Plus Jakarta Sans', sans-serif; }
.product-compare { font-size: .78rem; color: var(--g4); text-decoration: line-through; margin-right: .3rem; }
.fav-btn {
  position: absolute; top: .55rem; right: .55rem;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.92); border-radius: var(--r-full);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--g5); backdrop-filter: blur(8px);
  transition: all var(--trans); cursor: pointer; z-index: 2;
}
.fav-btn:hover, .fav-btn.active { color: #EF4444; background: #FEF2F2; }
.product-badge {
  position: absolute; top: .55rem; left: .55rem;
  padding: .2rem .6rem; border-radius: var(--r-full);
  font-size: .62rem; font-weight: 700; z-index: 2;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.badge-flash  { background: var(--red); color: #fff; }
.badge-new    { background: var(--g9); color: #fff; }
.badge-sale   { background: var(--orange); color: #fff; }
.badge-used   { background: var(--g7); color: #fff; }
.badge-promo  { background: var(--green); color: #fff; }

/* ── Section Headers ─────────────────────────────────────────── */
.section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .85rem; padding: 0 .15rem;
}
.section-hdr h2 {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em;
}
.section-hdr a {
  font-size: .8rem; font-weight: 600; color: var(--g5);
  display: flex; align-items: center; gap: .25rem;
  transition: color var(--trans);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.section-hdr a:hover { color: var(--g9); }

/* ── Brand Tabs / Chips ──────────────────────────────────────── */
.brand-tabs {
  display: flex; gap: .4rem; padding: .65rem 1rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.brand-tabs::-webkit-scrollbar { display: none; }
.brand-tab {
  flex-shrink: 0; padding: .42rem 1rem; border-radius: var(--r-full);
  font-size: .82rem; font-weight: 600; border: 1.5px solid var(--g2);
  background: var(--g0); color: var(--g5); transition: all var(--trans);
  cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
}
.brand-tab:hover { border-color: var(--g4); color: var(--g8); }
.brand-tab.active { background: var(--g9); border-color: var(--g9); color: #fff; }
.brand-tab.active-pb { background: var(--pb); border-color: var(--pb); color: #fff; }
.brand-tab.active-bs { background: var(--bs); border-color: var(--bs); color: #fff; }

/* ── Category pills (scrollable) ─────────────────────────────── */
.cat-scroll {
  display: flex; gap: .4rem; padding: .5rem 1rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: .38rem .85rem; border-radius: var(--r-full);
  font-size: .78rem; font-weight: 600; color: var(--g5);
  background: var(--g0); border: 1px solid var(--g2);
  transition: all var(--trans); cursor: pointer;
  display: flex; align-items: center; gap: .3rem;
}
.cat-pill:hover { border-color: var(--g4); color: var(--g8); }
.cat-pill.active { background: var(--g9); border-color: var(--g9); color: #fff; }

/* ── Flash Sale Banner ───────────────────────────────────────── */
.flash-banner {
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.flash-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(239,68,68,.2), transparent 60%);
}
.flash-banner > * { position: relative; z-index: 1; }
.flash-label {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--red);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.flash-name { font-weight: 800; font-size: 1rem; }
.flash-timer { display: flex; gap: .3rem; margin-left: auto; }
.flash-timer span {
  background: rgba(255,255,255,.12); border-radius: var(--r-sm);
  padding: .2rem .45rem; font-weight: 800; font-size: 1rem;
  min-width: 34px; text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.flash-sep { font-weight: 800; font-size: 1rem; line-height: 1.8; opacity: .4; }
.flash-btn {
  padding: .5rem 1rem; background: #fff; color: var(--g9);
  border-radius: var(--r-full); font-weight: 700; font-size: .82rem;
  border: none; cursor: pointer; transition: all var(--trans);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.flash-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 40%, #1E3A8A 100%);
  padding: 2rem 1rem 1.75rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(37,99,235,.25), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(217,119,6,.15), transparent 50%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.4rem,5vw,2.2rem); font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: .6rem; letter-spacing: -.02em;
}
.hero h1 em { color: #FCD34D; font-style: normal; }
.hero p { color: rgba(255,255,255,.55); margin-bottom: 1.25rem; font-size: .9rem; }
.hero-search {
  display: flex; background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border-radius: var(--r-full); overflow: hidden;
  max-width: 420px; margin: 0 auto 1.25rem;
  transition: all var(--trans);
}
.hero-search:focus-within { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.hero-search input {
  flex: 1; padding: .7rem 1.15rem; border: none; outline: none;
  font-size: .88rem; background: none; color: #fff;
}
.hero-search input::placeholder { color: rgba(255,255,255,.4); }
.hero-search button {
  padding: .7rem 1.25rem; background: #fff; color: var(--g9);
  border: none; font-weight: 700; font-size: .85rem; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all var(--trans);
}
.hero-search button:hover { background: #F4F4F5; }
.hero-pills { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.hero-pill {
  padding: .35rem .85rem; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); background: rgba(255,255,255,.06);
  transition: all var(--trans);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.hero-pill:hover { background: #fff; color: var(--g9); border-color: #fff; }

/* ── Brand Entry Cards ───────────────────────────────────────── */
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.brand-entry {
  border-radius: var(--r-lg); overflow: hidden;
  position: relative; min-height: 130px;
  display: flex; align-items: flex-end;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand-entry:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); }
.brand-entry .bg { position: absolute; inset: 0; }
.brand-entry .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.05) 60%); }
.brand-entry .info { position: relative; z-index: 2; padding: .85rem 1rem; }
.brand-entry .info h3 { color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: .05rem; }
.brand-entry .info p { color: rgba(255,255,255,.6); font-size: .72rem; margin: 0; }
.brand-entry .info .cta {
  display: inline-flex; align-items: center; gap: .3rem; color: #fff;
  font-size: .72rem; font-weight: 700; margin-top: .35rem; opacity: .85;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
@media(max-width:380px) { .brand-cards { grid-template-columns: 1fr; } }

/* ── Promo Strip ─────────────────────────────────────────────── */
.promo-strip {
  background: var(--g9); color: #fff;
  padding: .45rem 1rem; text-align: center;
  font-size: .72rem; font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .02em;
}
.promo-strip a { color: var(--yellow); text-decoration: underline; }

/* ── Toast ────────────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; top: calc(var(--hdr) + 12px); right: 1rem; left: 1rem;
  z-index: 9999; display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none; align-items: flex-end;
}
.toast {
  background: var(--g0); border-radius: var(--r); padding: .85rem 1.1rem;
  box-shadow: var(--sh-lg); pointer-events: all;
  display: flex; align-items: flex-start; gap: .65rem;
  min-width: 260px; max-width: 360px;
  animation: toastIn .3s var(--ease) forwards;
  border: 1px solid rgba(0,0,0,.06);
}
@keyframes toastIn { from { opacity:0; transform:translateY(-8px) scale(.97);} to {opacity:1;transform:translateY(0) scale(1);} }
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-info    { border-left: 3px solid var(--pb); }

/* ── Dropdown ────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--g0); border-radius: var(--r); box-shadow: var(--sh-lg);
  border: 1px solid rgba(0,0,0,.06); min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98);
  transition: all .15s var(--ease); z-index: 200;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem 1rem; font-size: .85rem; font-weight: 500;
  color: var(--g7); transition: background var(--trans);
}
.dropdown-item:hover { background: var(--g1); }
.dropdown-item.danger { color: var(--red); }
.dropdown-divider { border: none; border-top: 1px solid var(--g1); margin: .3rem 0; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1.5rem;
}
.empty-state .icon { font-size: 3rem; margin-bottom: .75rem; }
.empty-state h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.empty-state p { color: var(--g5); font-size: .88rem; }

/* ── Skeleton ────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg,var(--g1) 25%,var(--g05) 50%,var(--g1) 75%); background-size: 200% 100%; animation: skel 1.2s ease infinite; border-radius: var(--r); }
@keyframes skel { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Scrollbar ───────────────────────────────────────────────── */
.no-scroll::-webkit-scrollbar { display: none; }
.no-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Responsive ──────────────────────────────────────────────── */
.desktop-only { display: none !important; }
@media(min-width:768px) {
  .desktop-only { display: flex !important; }
  .mobile-only  { display: none !important; }
  .pb-header-inner { padding: 0 1.5rem; }
  .container { padding: 0 1.5rem; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  :root { --hdr: 64px; }
}
@media(min-width:1024px) {
  .hero { padding: 3rem 2rem 2.5rem; }
  .hero h1 { font-size: 2.4rem; }
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--g05); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card { border: 1px solid var(--g2); }
.auth-card .card-body { padding: 2rem 1.75rem; }
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo h2 { font-size: 1.3rem; margin-top: .75rem; }
.auth-logo p { color: var(--g5); font-size: .88rem; margin-top: .25rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--g4); font-size: .82rem; }
.auth-divider::before,.auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--g2); }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .85rem; color: var(--g5); }
.auth-footer a { color: var(--pb); font-weight: 600; }

/* ── Cart Page ───────────────────────────────────────────────── */
.cart-item {
  display: flex; gap: .85rem; padding: 1rem;
  border-bottom: 1px solid var(--g1);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--g1); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .88rem; margin-bottom: .15rem; }
.cart-item-brand { font-size: .72rem; color: var(--g5); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.cart-item-price { font-weight: 800; font-size: .95rem; margin-top: .35rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.cart-item-actions { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.qty-control {
  display: flex; align-items: center; border: 1.5px solid var(--g2);
  border-radius: var(--r-sm); overflow: hidden;
}
.qty-control button {
  width: 30px; height: 30px; border: none; background: none;
  font-size: .9rem; color: var(--g6); display: flex;
  align-items: center; justify-content: center;
  transition: background var(--trans);
}
.qty-control button:hover { background: var(--g1); }
.qty-control span { padding: 0 .5rem; font-weight: 700; font-size: .85rem; min-width: 26px; text-align: center; }
.cart-remove { background: none; border: none; color: var(--g4); font-size: .85rem; padding: .25rem; transition: color var(--trans); }
.cart-remove:hover { color: var(--red); }

/* ── Checkout Summary ────────────────────────────────────────── */
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .88rem; }
.summary-row.total { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--g2); padding-top: .75rem; margin-top: .5rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.summary-row .label { color: var(--g5); }

/* ── Product Detail ──────────────────────────────────────────── */
.pd-gallery { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.pd-gallery::-webkit-scrollbar { display: none; }
.pd-gallery-item { flex: 0 0 min(80vw, 400px); scroll-snap-align: start; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--g1); }
.pd-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 1rem 0; }
.pd-breadcrumb { font-size: .75rem; color: var(--g5); margin-bottom: .5rem; display: flex; gap: .35rem; align-items: center; }
.pd-breadcrumb a { color: var(--g5); }
.pd-breadcrumb a:hover { color: var(--pb); }
.pd-title { font-size: 1.3rem; margin-bottom: .3rem; }
.pd-brand  { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--g4); margin-bottom: .65rem; }
.pd-price-row { display: flex; align-items: baseline; gap: .65rem; margin-bottom: 1rem; }
.pd-price { font-size: 1.5rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.pd-old-price { font-size: 1rem; color: var(--g4); text-decoration: line-through; }
.pd-discount { font-size: .78rem; font-weight: 700; color: var(--red); background: #FEF2F2; padding: .2rem .6rem; border-radius: var(--r-full); }
.pd-desc { color: var(--g6); font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.pd-meta { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.pd-meta-item { display: flex; gap: .5rem; font-size: .85rem; }
.pd-meta-item .label { color: var(--g5); min-width: 100px; }
.pd-meta-item .value { font-weight: 600; }
.pd-actions { display: flex; gap: .5rem; position: sticky; bottom: calc(var(--bot-nav) + 12px); z-index: 10; }
@media(min-width:768px) {
  .pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
  .pd-gallery { flex-direction: column; }
  .pd-gallery-item { flex: none; width: 100%; }
  .pd-actions { bottom: 1.5rem; }
}

/* ── Order Success ───────────────────────────────────────────── */
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  background: #ECFDF5; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--green);
}

/* ── Account Pages ───────────────────────────────────────────── */
.account-nav { display: flex; gap: .25rem; overflow-x: auto; margin-bottom: 1.25rem; padding-bottom: 2px; border-bottom: 2px solid var(--g2); }
.account-nav a { padding: .6rem .85rem; font-size: .85rem; font-weight: 600; color: var(--g5); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all var(--trans); }
.account-nav a.active { color: var(--g9); border-bottom-color: var(--g9); }

/* ── Order Card ──────────────────────────────────────────────── */
.order-card { background: var(--g0); border-radius: var(--r-lg); padding: 1rem; margin-bottom: .65rem; border: 1px solid rgba(0,0,0,.04); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; flex-wrap: wrap; gap: .5rem; }
.order-number { font-weight: 800; font-size: .88rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.order-date { font-size: .75rem; color: var(--g5); }
.order-items-preview { display: flex; gap: .5rem; overflow-x: auto; margin-bottom: .75rem; }
.order-items-preview .thumb { width: 50px; height: 50px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--g1); }
.order-items-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 0; flex-wrap: wrap;
}
.filter-bar .search-mini {
  display: flex; align-items: center; gap: .35rem;
  background: var(--g0); border: 1.5px solid var(--g2);
  border-radius: var(--r-full); padding: 0 .75rem; flex: 1; min-width: 160px;
}
.filter-bar .search-mini input { border: none; background: none; outline: none; font-size: .85rem; padding: .45rem 0; flex: 1; width: 100%; }
.filter-bar .search-mini i { color: var(--g4); font-size: .85rem; }
.filter-sort {
  padding: .45rem .8rem; border-radius: var(--r-full);
  font-size: .82rem; font-weight: 600; border: 1.5px solid var(--g2);
  background: var(--g0); color: var(--g7); cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
