/* ════════════════════════════════════════════════════════
   VOGUE — Premium Fashion Marketplace
   main.css — Global stylesheet
   Fonts: Playfair Display (display) + Plus Jakarta Sans (body)
   ════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Plus+Jakarta+Sans:ital,opsz,wght@0,11..18,300;0,11..18,400;0,11..18,500;0,11..18,600;0,11..18,700;0,11..18,800&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Brand — Orange-first palette */
  --primary:       #f97316;
  --primary-dark:  #ea580c;
  --primary-light: #fb923c;
  --primary-bg:    rgba(249,115,22,.08);
  --primary-glow:  rgba(249,115,22,.18);

  /* Extended palette */
  --rose:   #f43f5e;  --rose-bg:   rgba(244,63,94,.08);
  --violet: #7c3aed;  --violet-bg: rgba(124,58,237,.08);
  --teal:   #14b8a6;  --teal-bg:   rgba(20,184,166,.08);
  --amber:  #f59e0b;  --amber-bg:  rgba(245,158,11,.08);
  --green:  #16a34a;  --green-bg:  rgba(22,163,74,.08);
  --sky:    #0ea5e9;  --indigo: #6366f1; --purple: #a855f7;
  --coral:  #fb7185;

  /* Surfaces */
  --bg:          #fafaf9;
  --bg-alt:      #f5f3f0;
  --surface:     #ffffff;
  --card:        #ffffff;
  --border:      #e8e4e0;
  --border-light:#f0ece8;

  /* Text */
  --text:   #1a1512;
  --text-2: #4b4440;
  --muted:  #9c948e;

  /* Shadows */
  --shadow:    rgba(26,21,18,.07);
  --shadow-lg: rgba(26,21,18,.13);

  /* Gradients */
  --grad-primary: linear-gradient(135deg,#f97316,#ea580c);
  --grad-rose:    linear-gradient(135deg,#f43f5e,#fb923c);
  --grad-violet:  linear-gradient(135deg,#7c3aed,#a855f7);
  --grad-teal:    linear-gradient(135deg,#14b8a6,#0ea5e9);
  --grad-warm:    linear-gradient(135deg,#f59e0b,#ef4444);
  --grad-dark:    linear-gradient(135deg,#1a1512,#2d1f1a);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Easing */
  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);

  /* Header heights — set by layout.php */
  --hdr-h:  68px;
  --ann-h:  34px;
  --total-hdr: calc(var(--hdr-h) + var(--ann-h));
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--total-hdr);
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--font-body); }
input, select, textarea { font-size: 16px; } /* Prevents iOS zoom */
button { cursor: pointer; border: none; background: none; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ── LAYOUT ── */
.container { max-width: 1380px; margin: 0 auto; padding: 0 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex        { display: flex; }
.items-center{ align-items: center; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.01em; }
.display { font-size: clamp(2.6rem,6vw,5rem); font-weight: 900; line-height: 1.0; }
.heading { font-size: clamp(1.75rem,3.5vw,2.75rem); font-weight: 800; }
.grad-primary  { background: var(--grad-primary);  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-rose     { background: var(--grad-rose);     -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-violet   { background: var(--grad-violet);   -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-teal     { background: var(--grad-teal);     -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-warm     { background: var(--grad-warm);     -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── SECTIONS ── */
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title    { font-family: var(--font-display); font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 800; color: var(--text); }
.section-subtitle { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.section-header   { margin-bottom: 2.5rem; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: .75rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; cursor: pointer; border: none;
  transition: all 220ms var(--spring); text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden; font-family: var(--font-body);
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow-lg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,.3); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(249,115,22,.4); }
.btn-rose    { background: var(--grad-rose); color: #fff; box-shadow: 0 4px 16px rgba(244,63,94,.3); }
.btn-violet  { background: var(--grad-violet); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  background: rgba(0,0,0,.04); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.btn-sm  { padding: .45rem 1rem; font-size: .8125rem; }
.btn-lg  { padding: 1rem 2.25rem; font-size: 1rem; border-radius: var(--radius); }
.btn-xl  { padding: 1.2rem 2.75rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; }

/* ── INPUTS ── */
.input, .select, .textarea {
  width: 100%; padding: .75rem 1.125rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 16px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow);
}
.input::placeholder { color: var(--muted); }
.textarea { resize: vertical; min-height: 80px; }
.input-group { position: relative; }
.input-group .input { padding-left: 3rem; }
.input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.form-label { font-size: .8125rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; display: block; }
.form-group { margin-bottom: 1.25rem; }
.form-error { font-size: .75rem; color: var(--rose); margin-top: .3rem; }

/* ── CARDS ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 12px var(--shadow); transition: all .3s var(--ease); }
.card:hover { box-shadow: 0 16px 48px var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }

/* ── BADGE PILLS ── */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .875rem; border-radius: 2rem; font-size: .75rem; font-weight: 700; }
.badge-primary { background: var(--primary-bg); color: var(--primary); border: 1px solid rgba(249,115,22,.2); }
.badge-rose    { background: var(--rose-bg); color: var(--rose); border: 1px solid rgba(244,63,94,.2); }
.badge-violet  { background: var(--violet-bg); color: var(--violet); border: 1px solid rgba(124,58,237,.18); }
.badge-teal    { background: var(--teal-bg); color: var(--teal); border: 1px solid rgba(20,184,166,.18); }
.badge-amber   { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(245,158,11,.2); }
.badge-green   { background: var(--green-bg); color: var(--green); border: 1px solid rgba(22,163,74,.2); }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .3s var(--spring); display: block; color: inherit;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 24px 56px var(--shadow-lg), 0 0 0 1.5px rgba(249,115,22,.2);
  border-color: rgba(249,115,22,.25);
}
.product-card .img-wrap {
  position: relative; overflow: hidden;
  padding-top: 120%; background: var(--bg-alt);
}
.product-card .img-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s var(--ease);
}
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .info { padding: 1rem 1.125rem 1.25rem; }
.product-card .name {
  font-weight: 700; font-size: .875rem; color: var(--text);
  margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card .shop { font-size: .72rem; color: var(--muted); margin-bottom: .4rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.product-card .price { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.product-card .og-price { font-size: .78rem; color: var(--muted); text-decoration: line-through; margin-left: .4rem; }
.product-card .discount { font-size: .72rem; font-weight: 700; color: var(--green); margin-left: .3rem; }
.product-card .badge-disc {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--rose); color: #fff;
  font-size: .62rem; font-weight: 800; padding: .2rem .6rem;
  border-radius: .4rem; letter-spacing: .04em;
}
.product-card .badge-new {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--grad-violet); color: #fff;
  font-size: .62rem; font-weight: 800; padding: .2rem .6rem;
  border-radius: .4rem; letter-spacing: .04em;
}
.product-card .badge { /* old compat */
  position: absolute; top: .75rem; left: .75rem;
  background: var(--rose); color: #fff;
  font-size: .62rem; font-weight: 800; padding: .2rem .6rem;
  border-radius: .4rem; letter-spacing: .04em;
  border: none;
}
.product-card .wish-btn {
  position: absolute; top: .75rem; right: .75rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem;
  transition: all .2s var(--spring);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.product-card .wish-btn:hover, .product-card .wish-btn.active { transform: scale(1.25); background: #fff; }
.product-card .quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--grad-primary); color: #fff; text-align: center;
  font-size: .8rem; font-weight: 700; padding: .7rem;
  transform: translateY(100%); transition: transform .28s var(--ease); letter-spacing: .03em;
}
.product-card:hover .quick-add { transform: translateY(0); }
.product-card .rating { display: flex; align-items: center; gap: .25rem; font-size: .7rem; color: var(--amber); font-weight: 600; margin-top: .35rem; }

/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 1.125rem; }

/* ── CATEGORY CARDS ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px,1fr)); gap: 1rem; }
.cat-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.375rem 1rem;
  text-align: center; cursor: pointer; text-decoration: none; color: inherit;
  transition: all .25s var(--spring); display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.cat-card:hover { transform: translateY(-5px) scale(1.03); border-color: var(--primary); box-shadow: 0 12px 32px var(--shadow-lg); }
.cat-card .icon { font-size: 2.1rem; transition: transform .3s var(--spring); }
.cat-card:hover .icon { transform: scale(1.18) rotate(-6deg); }
.cat-card .name { font-size: .78rem; font-weight: 700; color: var(--text-2); }

/* ── SHOP CARD ── */
.shop-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .3s var(--spring); display: block; color: inherit;
}
.shop-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px var(--shadow-lg); border-color: rgba(124,58,237,.2); }
.shop-card .banner { height: 130px; overflow: hidden; position: relative; }
.shop-card .banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shop-card:hover .banner img { transform: scale(1.07); }
.shop-card .logo-wrap {
  width: 3.75rem; height: 3.75rem; border-radius: 1rem; overflow: hidden;
  border: 3px solid var(--surface); box-shadow: 0 4px 12px var(--shadow);
  position: absolute; bottom: -1.625rem; left: 1.125rem; background: var(--surface);
}
.shop-card .body { padding: 2.25rem 1.25rem 1.375rem; }
.shop-card .body .sname { font-weight: 800; font-size: .95rem; }
.shop-card .body .scity { font-size: .74rem; color: var(--muted); margin-top: .2rem; }
.shop-card .body .sdesc { font-size: .8rem; color: var(--text-2); line-height: 1.55; margin-top: .625rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card .body .scta { margin-top: 1rem; display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--violet); }

/* ── REVIEW CARD ── */
.review-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: all .3s var(--ease); position: relative;
}
.review-card::before {
  content: '"'; position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--font-display); font-size: 4rem; font-weight: 900;
  color: rgba(249,115,22,.1); line-height: 1;
}
.review-card:hover { box-shadow: 0 16px 40px var(--shadow-lg); transform: translateY(-4px); }
.stars { color: var(--amber); letter-spacing: .1em; margin-bottom: .875rem; font-size: .95rem; }
.review-author { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.review-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 800; color: #fff;
}

/* ── FLASH SALE ── */
.flash-bar {
  background: var(--grad-dark); border-radius: var(--radius-lg);
  padding: 2.5rem; position: relative; overflow: hidden;
}
.flash-bar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%,rgba(249,115,22,.2),transparent 60%), radial-gradient(ellipse at 80% 50%,rgba(245,158,11,.12),transparent 60%);
  pointer-events: none;
}
.flash-timer { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.timer-block {
  background: rgba(249,115,22,.25); border: 1px solid rgba(249,115,22,.4);
  border-radius: .625rem; padding: .625rem .875rem; text-align: center; min-width: 3.5rem;
}
.timer-block .num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 900; color: #fb923c; line-height: 1; }
.timer-block .lbl { font-size: .6rem; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.45); margin-top: .1rem; }
.timer-sep { font-family: var(--font-display); font-size: 1.75rem; font-weight: 900; color: var(--primary); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.25} }

/* ── BANNER GRID ── */
.banner-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; height: 480px; }
.banner-grid .side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.25rem; height: 100%; }
.banner-hero { border-radius: var(--radius-xl); overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 8px 32px var(--shadow-lg); transition: transform .3s var(--ease); display: block; }
.banner-hero:hover { transform: scale(1.008); }
.banner-hero img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.6),transparent); display: flex; align-items: flex-end; padding: 2rem; }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: linear-gradient(135deg,#fff7ed,#fdf4ff);
  border-radius: var(--radius-xl); padding: 4rem; text-align: center;
  border: 1px solid rgba(249,115,22,.1); position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%,rgba(249,115,22,.05),transparent), radial-gradient(ellipse at 70% 50%,rgba(124,58,237,.04),transparent);
  pointer-events: none;
}

/* ── TOAST ── */
#toast-container {
  position: fixed; bottom: 5.5rem; right: 1.25rem;
  z-index: 9999; display: flex; flex-direction: column; gap: .5rem; pointer-events: none;
}
.toast {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: .875rem; padding: .875rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: .875rem; font-weight: 500; color: var(--text);
  box-shadow: 0 8px 32px var(--shadow-lg);
  animation: toastIn .35s var(--spring) both; min-width: 280px; max-width: 360px;
  pointer-events: all;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--rose); }
.toast-info    { border-left: 3px solid var(--sky); }
@keyframes toastIn { from{opacity:0;transform:translateX(50px)} to{opacity:1;transform:translateX(0)} }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeIn .2s both;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); padding: 2rem;
  max-width: 520px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  animation: slideUp .3s var(--spring) both;
  max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

/* ── AOS (Animate on Scroll) ── */
.page-fade { animation: pageFadeIn .5s var(--ease) both; }
@keyframes pageFadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.aos { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.aos.visible { opacity: 1; transform: translateY(0); }
.aos-left { opacity: 0; transform: translateX(-24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.aos-left.visible { opacity: 1; transform: translateX(0); }
.aos-scale { opacity: 0; transform: scale(.94); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.aos-scale.visible { opacity: 1; transform: scale(1); }
.delay-1{transition-delay:.08s}.delay-2{transition-delay:.16s}.delay-3{transition-delay:.24s}
.delay-4{transition-delay:.32s}.delay-5{transition-delay:.40s}.delay-6{transition-delay:.48s}

/* ── STATUS PILLS ── */
.status { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .75rem; border-radius: 2rem; font-size: .75rem; font-weight: 700; }
.status-pending    { background: var(--amber-bg); color: var(--amber); }
.status-processing { background: rgba(99,102,241,.1); color: var(--indigo); }
.status-shipped    { background: rgba(14,165,233,.1); color: var(--sky); }
.status-delivered  { background: var(--green-bg); color: var(--green); }
.status-cancelled  { background: var(--rose-bg); color: var(--rose); }
.status-refunded   { background: rgba(156,148,142,.1); color: var(--muted); }
.status-approved   { background: var(--green-bg); color: var(--green); }
.status-rejected   { background: var(--rose-bg); color: var(--rose); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .875rem 1.125rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
td { padding: .875rem 1.125rem; font-size: .875rem; color: var(--text-2); border-bottom: 1px solid var(--border-light); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(249,115,22,.02); }

/* ── DASHBOARD ── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-nav a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; color: var(--text-2); margin-bottom: .25rem; transition: all .18s; }
.dash-nav a:hover, .dash-nav a.active { color: var(--primary); background: var(--primary-bg); }
.dash-content { background: var(--bg-alt); padding: 2rem; min-height: 100vh; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.stat-card .stat-val { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-card .stat-lbl { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: .25rem; }

/* ── CART DRAWER ── */
.cart-drawer {
  position: fixed; top: 0; right: -100%; width: min(420px,100vw); height: 100vh;
  background: var(--surface); z-index: 1999;
  border-left: 1px solid var(--border);
  transition: right .35s var(--spring); display: flex; flex-direction: column;
  box-shadow: -8px 0 40px var(--shadow-lg);
}
.cart-drawer.open { right: 0; }
.cart-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-items  { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); }
.cart-item   { display: flex; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--border-light); }
.cart-item-img { width: 72px; height: 90px; border-radius: .75rem; overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-badge-icon {
  position: absolute; top: -6px; right: -8px;
  background: var(--primary); color: #fff; width: 18px; height: 18px;
  border-radius: 50%; font-size: .6rem; font-weight: 800;
  display: none; align-items: center; justify-content: center; border: 2px solid #fff;
}
.cart-badge-icon.show { display: flex; }

/* ── PRODUCT PAGE ── */
.main-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; background: var(--bg-alt); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: .625rem; flex-wrap: wrap; }
.thumb { width: 72px; height: 90px; border-radius: .75rem; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: all .2s; }
.thumb.active, .thumb:hover { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.size-btn { width: 2.75rem; height: 2.75rem; border-radius: .5rem; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; cursor: pointer; transition: all .2s; background: var(--surface); color: var(--text-2); }
.size-btn:hover, .size-btn.active { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.color-btn { width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all .2s; box-shadow: 0 2px 6px var(--shadow); }
.color-btn.active, .color-btn:hover { border-color: var(--primary); transform: scale(1.2); }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn { width: 2.25rem; height: 2.25rem; background: var(--bg-alt); border: none; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--text-2); transition: background .15s; }
.qty-btn:hover { background: var(--primary-bg); color: var(--primary); }
.qty-input { width: 3rem; height: 2.25rem; border: none; background: var(--surface); text-align: center; font-size: .875rem; font-weight: 700; color: var(--text); outline: none; }

/* ── MISC UTILITIES ── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--muted); }
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; opacity: .5; }
.skeleton { background: linear-gradient(90deg, var(--border) 0%, rgba(232,228,224,.5) 50%, var(--border) 100%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: .5rem; }
@keyframes skeleton { 0%{background-position:200% 0}100%{background-position:-200% 0} }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--primary); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}

/* Progress / tracking */
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--grad-primary); border-radius: 2px; transition: width .4s; }
.track-timeline { position: relative; padding-left: 2.5rem; }
.track-timeline::before { content: ''; position: absolute; left: .875rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.track-item { position: relative; padding-bottom: 2rem; }
.track-item::before { content: ''; position: absolute; left: -1.75rem; top: .2rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--border); border: 2px solid var(--surface); z-index: 1; }
.track-item.done::before   { background: var(--green); }
.track-item.active::before { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); animation: trackPulse 1.5s infinite; }
@keyframes trackPulse { 0%,100%{box-shadow:0 0 0 4px var(--primary-glow)}50%{box-shadow:0 0 0 8px rgba(249,115,22,.05)} }

/* Steps (checkout) */
.steps { display: flex; align-items: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 600; color: var(--muted); }
.step-num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; transition: all .2s; }
.step.active .step-num { background: var(--primary); color: #fff; }
.step.done .step-num   { background: var(--green); color: #fff; }
.step.active { color: var(--text); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .5rem; min-width: 2rem; }
.step.done + .step-line { background: var(--green); }

/* Filter sidebar */
.filter-sidebar { width: 260px; flex-shrink: 0; }
.filter-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.filter-title { font-weight: 700; font-size: .9rem; margin-bottom: 1rem; color: var(--text); }
.filter-check { display: flex; align-items: center; gap: .625rem; cursor: pointer; padding: .3rem 0; font-size: .875rem; color: var(--text-2); }
.filter-check input { accent-color: var(--primary); width: 1rem; height: 1rem; }
.range-slider { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--border); outline: none; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 2px 8px var(--primary-glow); }

/* Slider */
.slider-wrap { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform .5s var(--ease); }
.slider-track .slide { flex-shrink: 0; width: 100%; }
.slider-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: all .25s; }
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px var(--shadow); transition: all .2s var(--spring); color: var(--text); z-index: 2; }
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slider-prev { left: .875rem; } .slider-next { right: .875rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .filter-sidebar { display: none; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: relative; height: auto; }
  .banner-grid { grid-template-columns: 1fr; height: auto; }
  .banner-grid .side { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; height: 220px; }
}
@media (max-width: 768px) {
  .section    { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .newsletter-section { padding: 2.5rem 1.5rem; }
  .flash-bar { padding: 1.75rem 1.25rem; }
  .body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }
}
@media (max-width: 480px) {
  .container { padding: 0 .875rem; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2,1fr); gap: .75rem; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: .75rem; }
  .cat-grid { grid-template-columns: repeat(3,1fr); gap: .625rem; }
  .newsletter-section { padding: 2rem 1.125rem; }
  .modal { padding: 1.5rem 1.125rem; border-radius: var(--radius-lg); }
  .modal-overlay { padding: .625rem; }
  #toast-container { right: .875rem; left: .875rem; }
}
@media (max-width: 360px) {
  .cat-grid { grid-template-columns: repeat(3,1fr); gap: .5rem; }
  .cat-card { padding: 1rem .375rem; }
  .cat-card .icon { font-size: 1.75rem; }
  .cat-card .name { font-size: .7rem; }
}

/* ════════════════════════════════════════════════════════
   VOGUE — v3 Additions: No-Slide, OTP, Smart Delivery
   ════════════════════════════════════════════════════════ */

/* ── PAGE TRANSITIONS: Fade only, NO slide ── */
html { scroll-behavior: auto !important; } /* Disable smooth scroll jumping */
.page-enter { animation: pageFade .4s var(--ease) both; }
@keyframes pageFade { from{opacity:0} to{opacity:1} }

/* Prevent any unwanted horizontal slides on mobile */
body, html { overscroll-behavior-x: none; }
* { -webkit-overflow-scrolling: touch; }

/* ── PRODUCT IMAGES MULTI-UPLOAD ── */
.img-upload-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .625rem; margin-bottom: 1rem; }
.img-slot {
  aspect-ratio: 1; border: 2px dashed var(--border); border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; position: relative; overflow: hidden; background: var(--bg-alt);
  transition: all .2s;
}
.img-slot:hover { border-color: var(--rose); background: var(--rose-bg); }
.img-slot.has-img { border-style: solid; border-color: var(--green); }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-slot .rm-btn {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; border: none;
  font-size: .7rem; display: none; align-items: center; justify-content: center; cursor: pointer;
}
.img-slot.has-img .rm-btn { display: flex; }
.img-slot .slot-num { font-size: .65rem; font-weight: 700; color: var(--muted); margin-top: .25rem; }
.img-slot .slot-icon { font-size: 1.5rem; color: var(--muted); }

/* Main slot (larger) */
.img-slot.main-slot { grid-column: 1/3; grid-row: 1/3; aspect-ratio: auto; min-height: 180px; }
.img-slot.main-slot .slot-icon { font-size: 2.25rem; }

/* ── COLOR PICKER (logical) ── */
.color-palette-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cp-swatch {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; cursor: pointer;
  border: 2.5px solid transparent; transition: all .2s var(--spring); position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.cp-swatch.selected { border-color: #fff; box-shadow: 0 0 0 2.5px var(--text), 0 2px 8px rgba(0,0,0,.2); transform: scale(1.15); }
.cp-swatch:hover { transform: scale(1.1); }
.cp-swatch .cp-check { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: .7rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.cp-swatch.selected .cp-check { display: flex; }
.cp-tag {
  display: inline-flex; align-items: center; gap: .375rem; padding: .3rem .75rem .3rem .375rem;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 2rem; font-size: .78rem; font-weight: 600;
}
.cp-tag .cp-dot { width: 1rem; height: 1rem; border-radius: 50%; flex-shrink: 0; }
.cp-tag .cp-rm { cursor: pointer; font-size: .8rem; color: var(--muted); margin-left: .125rem; }
.cp-tag .cp-rm:hover { color: var(--rose); }

/* ── AI DESCRIPTION BUTTON ── */
.ai-desc-btn {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .45rem 1rem; background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; border-radius: var(--r-sm); font-size: .8rem; font-weight: 700;
  cursor: pointer; border: none; font-family: var(--font-body); transition: all .2s;
  box-shadow: 0 3px 12px rgba(124,58,237,.25);
}
.ai-desc-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(124,58,237,.35); }
.ai-desc-btn:disabled { opacity: .6; cursor: not-allowed; }
.ai-thinking { font-size: .72rem; color: var(--violet); font-weight: 600; margin-top: .3rem; display: none; }
.ai-thinking.show { display: block; }

/* ── NOTIFICATION BADGE ── */
.notif-dot {
  position: absolute; top: -4px; right: -4px; width: 10px; height: 10px;
  background: var(--rose); border-radius: 50%; border: 2px solid #fff;
  animation: notifPulse 1.5s infinite;
}
@keyframes notifPulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.3);background:#fb923c} }

/* ── DELIVERY NOTIFICATION POPUP ── */
.delivery-notif {
  position: fixed; top: calc(var(--hdr-h,68px) + 1rem); right: 1rem;
  width: min(380px, calc(100vw - 2rem));
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 16px 56px rgba(0,0,0,.18);
  border: 2px solid var(--primary); z-index: 3000;
  animation: notifSlideIn .4s var(--spring) both;
  overflow: hidden;
}
@keyframes notifSlideIn { from{opacity:0;transform:translateX(100%)} to{opacity:1;transform:translateX(0)} }
.delivery-notif-bar { background: var(--grad-primary); height: 4px; }
.delivery-notif-body { padding: 1.25rem; }
.delivery-notif-title { font-weight: 800; font-size: 1rem; margin-bottom: .375rem; }
.delivery-notif-actions { display: flex; gap: .625rem; margin-top: 1rem; }
.dn-accept { flex: 1; padding: .625rem; background: var(--green); color: #fff; border-radius: var(--r-sm); font-weight: 700; border: none; cursor: pointer; font-size: .875rem; }
.dn-reject { flex: 1; padding: .625rem; background: var(--bg-alt); color: var(--text-2); border-radius: var(--r-sm); font-weight: 600; border: 1px solid var(--border); cursor: pointer; font-size: .875rem; }
.dn-timer { text-align: center; font-size: .72rem; color: var(--muted); margin-top: .5rem; }

/* ── MOBILE BOTTOM NAV FIX ── */
@media (max-width: 768px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 2rem); }
}

/* ── SMOOTH SECTION ENTRY (no slide) ── */
.section-fade { animation: sectionFade .5s var(--ease) both; }
@keyframes sectionFade { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ── SIZE GRID (Myntra-style) ── */
.size-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.sz-btn {
  min-width: 3rem; height: 2.625rem; padding: 0 .625rem;
  border: 1.5px solid var(--border); border-radius: .5rem;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  background: var(--surface); color: var(--text-2); transition: all .18s;
  display: flex; align-items: center; justify-content: center;
}
.sz-btn:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-bg); }
.sz-btn.active { border-color: var(--rose); background: var(--rose); color: #fff; }
.sz-btn.oos { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.sz-btn.oos:hover { border-color: var(--border); color: var(--text-2); background: var(--surface); }

/* ── ORDER TRACKING MAP ── */
#tracking-map { width: 100%; height: 340px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--border); }
@media (max-width: 768px) { #tracking-map { height: 260px; } }

/* ── PAYMENT METHODS (professional) ── */
.pay-method {
  border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: .875rem; margin-bottom: .625rem;
}
.pay-method.selected { border-color: var(--rose); background: var(--rose-bg); }
.pay-method-icon { width: 2.5rem; height: 2.5rem; border-radius: .625rem; display: flex; align-items: center; justify-content: center; font-size: 1.375rem; background: var(--bg-alt); flex-shrink: 0; }
.pay-method-label { font-weight: 700; font-size: .9rem; }
.pay-method-sub { font-size: .75rem; color: var(--muted); margin-top: .1rem; }

/* ═══════════════════════════════════════════════════════════
   VOGUE — Global Mobile & Desktop Responsive Utilities (v4)
   ═══════════════════════════════════════════════════════════ */

/* ── Touch-friendly tap targets ── */
@media (max-width: 768px) {
  a, button { -webkit-tap-highlight-color: transparent; }
  input, select, textarea { font-size: 16px !important; } /* prevent iOS zoom */
}

/* ── Products grid responsive ── */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .75rem !important;
  }
  .product-card .info { padding: .625rem; }
  .product-card .name { font-size: .8rem; }
  .product-card .price { font-size: .875rem; }
}
@media (max-width: 360px) {
  .products-grid { gap: .5rem !important; }
}

/* ── Shop cards responsive ── */
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: .875rem; }
}
@media (max-width: 360px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: .5rem; }
}

/* ── Container padding ── */
@media (max-width: 480px) {
  .container { padding: 0 1rem !important; }
  .section-sm { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

/* ── Cards / sections ── */
@media (max-width: 480px) {
  .card { border-radius: 14px !important; }
  .card-body { padding: 1.125rem !important; }
  .modal { border-radius: 20px 20px 0 0 !important; }
}

/* ── Buttons full width on tiny screens ── */
@media (max-width: 360px) {
  .btn-full-xs { width: 100% !important; justify-content: center !important; }
}

/* ── Page headers ── */
@media (max-width: 600px) {
  .page-header-title { font-size: 1.5rem !important; }
  .page-header-sub   { font-size: .85rem !important; }
}

/* ── Dashboard common ── */
.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px);
}
@media (max-width: 1024px) {
  .dash-layout { grid-template-columns: 1fr; }
}

/* ── Table overflow ── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { min-width: 560px; }

/* ── Filter/tab bars scroll on mobile ── */
.tab-scroll {
  overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-scroll::-webkit-scrollbar { display: none; }

/* ── Utility spacers ── */
.mt-auto-mobile { margin-top: auto; }
@media (max-width: 600px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .flex-col-mobile { flex-direction: column !important; }
  .full-mobile { width: 100% !important; }
  .text-center-mobile { text-align: center !important; }
  .gap-sm-mobile { gap: .5rem !important; }
}
@media (min-width: 601px) {
  .show-mobile { display: none !important; }
  .hide-desktop { display: none !important; }
}

/* ── Safe area insets (notch phones) ── */
@supports (padding: max(0px)) {
  .bottom-safe { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
}

/* ── Smooth scrolling for anchor links ── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════
   V2 UPDATES — 3D Effects, Cream BG, Swiggy Cards
   ═══════════════════════════════════════════ */

/* Override BG to light cream */
:root {
  --bg: #faf7f2;
  --bg-alt: #f0ece5;
  --card: #ffffff;
}

/* Enhanced product card — Swiggy-style with 3D tilt */
.product-card {
  border-radius: 18px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: all .3s cubic-bezier(.34,1.56,.64,1) !important;
}
.product-card:hover {
  transform: translateY(-7px) rotateX(3deg) scale(1.015) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,.13), 0 0 0 1.5px rgba(249,115,22,.25) !important;
}
.product-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(160deg, rgba(249,115,22,.06) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.product-card:hover::after { opacity: 1; }
.product-card .img-wrap { border-radius: 18px 18px 0 0 !important; }

/* ── HOME PAGE CATEGORY RAIL ── */
.home-cat-rail {
  display: flex; gap: .75rem; overflow-x: auto; scrollbar-width: none;
  padding: .5rem 0 1rem;
}
.home-cat-rail::-webkit-scrollbar { display: none; }
.hcat-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: .375rem;
  padding: .875rem 1.125rem; background: #fff; border: 1.5px solid #e8e4e0;
  border-radius: 16px; cursor: pointer; transition: all .2s; white-space: nowrap;
  text-decoration: none; color: inherit; flex-shrink: 0; min-width: 80px;
}
.hcat-pill:hover, .hcat-pill.active {
  background: #fff7ed; border-color: #f97316; color: #f97316;
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(249,115,22,.15);
}
.hcat-pill .hcat-emo { font-size: 1.625rem; }
.hcat-pill .hcat-lbl { font-size: .7rem; font-weight: 700; }

/* ── HOT IN CITY BADGE ── */
.hot-city-badge {
  display: inline-flex; align-items: center; gap: .375rem;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  color: #fff; border-radius: 2rem; padding: .28rem .875rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.4); }
  50% { box-shadow: 0 0 0 6px rgba(249,115,22,0); }
}

/* ── FLOATING 3D SECTION HEADER ── */
.sec-3d-head {
  position: relative; display: inline-block;
}
.sec-3d-head::after {
  content: attr(data-text);
  position: absolute; left: 3px; top: 3px;
  color: rgba(249,115,22,.15);
  font-family: inherit; font-size: inherit; font-weight: inherit;
  z-index: -1;
}

/* ── PRODUCT QUICK VIEW OVERLAY ── */
.card-quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.97); padding: .625rem .75rem;
  display: flex; gap: .5rem;
  transform: translateY(100%); transition: transform .25s;
}
.product-card:hover .card-quick-add { transform: translateY(0); }
.quick-add-btn {
  flex: 1; padding: .5rem; background: #f97316; color: #fff;
  border: none; border-radius: 8px; font-weight: 800;
  font-size: .78rem; cursor: pointer; font-family: inherit; transition: .15s;
}
.quick-add-btn:hover { background: #ea580c; }
.quick-wish-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: #f5f3f0; border: 1.5px solid #e8e4e0;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; cursor: pointer; transition: .15s; flex-shrink: 0;
}
.quick-wish-btn:hover { background: #fef2f2; border-color: #fca5a5; }

/* ── GLASS CARD EFFECT ── */
.glass-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

/* ── SHINE HEADER OVERRIDE ── */
.site-header {
  position: relative;
  overflow: hidden;
}
.site-header-shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: headerShine 5s ease-in-out infinite;
}
@keyframes headerShine {
  0%,100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}
.site-header > * { position: relative; z-index: 1; }

/* Cream section backgrounds */
section, .section, .sec { background: var(--bg); }
.sec-alt { background: var(--bg-alt); }


/* ═══════════════════════════════════════════════════
   GLOBAL MOBILE RESPONSIVE FIXES + CREAM POLISH
   ═══════════════════════════════════════════════════ */

/* Force cream bg on body and all sections */
body { background: #faf7f2 !important; }
.section-sm, .section, main > section { background: var(--bg); }

/* Container responsive padding */
@media(max-width:480px) {
  .container { padding: 0 .875rem !important; }
}

/* ── HEADER MOBILE ── */
@media(max-width:640px) {
  .hdr-logo-text b { font-size: 1.05rem; }
  .hdr-actions { gap: .375rem; }
  .hdr-cart-btn, .hdr-wish-btn { width: 36px; height: 36px; font-size: .9rem; }
}

/* ── PRODUCT CARDS global mobile ── */
@media(max-width:480px) {
  .product-card .info { padding: .75rem .875rem 1rem; }
  .product-card .name { font-size: .82rem; }
  .product-card .price { font-size: .95rem; }
}

/* ── CART PAGE ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: flex-start; }
@media(max-width:960px) { .cart-layout { grid-template-columns: 1fr; } }

/* ── ORDERS PAGE ── */
@media(max-width:600px) {
  .order-card { border-radius: 14px; }
  .order-card .order-header { padding: .875rem 1rem; }
}

/* ── CHECKOUT MOBILE ── */
@media(max-width:480px) {
  .co-page { padding-top: calc(var(--hdr-h,64px) + var(--ann-h,36px)) !important; }
}

/* ── PRODUCT PAGE MOBILE ── */
@media(max-width:768px) {
  .prod-gallery { margin-bottom: 1.5rem; }
  .prod-thumbs { gap: .5rem; }
}

/* ── FOOTER MOBILE ── */
@media(max-width:640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
}
@media(max-width:380px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── ANNOUNCEMENT BAR polish ── */
.ann-bar { background: linear-gradient(90deg, #f97316, #ea580c, #f97316); background-size: 200%; animation: annBg 4s linear infinite, annScroll 32s linear infinite; }
.ann-track span::after { content: ' ✦ '; opacity: .6; }
@keyframes annBg { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

/* ── BUTTONS global ── */
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,.35); }
.btn-ghost:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }

/* ── FORM ELEMENTS ── */
input:focus, select:focus, textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,.1) !important;
}

/* ── MARKETPLACE sidebar filter hidden on mobile ── */
@media(max-width:900px) {
  .filter-sidebar { 
    position: fixed; top: 0; left: 0; bottom: 0; width: 280px; 
    background: #fff; z-index: 500; overflow-y: auto;
    transform: translateX(-100%); transition: transform .3s var(--ease);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }
  .filter-sidebar.open { transform: translateX(0); }
  #filter-btn { display: flex !important; }
  .marketplace-layout { display: block; }
}
#filter-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 499;
}

/* ── MARKETPLACE products grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.125rem;
}
@media(max-width:640px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: .75rem; }
}
@media(max-width:360px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: .5rem; }
}

/* ── CATEGORY CARDS ── */
.cat-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 18px;
  padding: 1.25rem 1rem; text-align: center; display: block; text-decoration: none;
  color: inherit; transition: all .25s var(--spring);
}
.cat-card:hover {
  background: var(--primary-bg); border-color: var(--primary);
  transform: translateY(-4px); box-shadow: 0 10px 24px rgba(249,115,22,.18);
}
.cat-card .icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
.cat-card .name { font-weight: 700; font-size: .82rem; color: var(--text); }

/* ── STAT CARDS (dashboard) ── */
.ssc { transition: all .25s var(--spring); }
.ssc:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.07); }

/* ── SCROLLBAR polish ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,.45); }

/* ── SELECTION color ── */
::selection { background: rgba(249,115,22,.2); color: var(--text); }

/* ── FOCUS VISIBLE ── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── SKELETON loading ── */
.skeleton { background: linear-gradient(90deg, var(--bg-alt) 25%, #fff 50%, var(--bg-alt) 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; }
@keyframes skeleton { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── TOAST styles (global) ── */
.site-toast {
  position: fixed; top: 1.25rem; right: 1.25rem; z-index: 9999;
  background: #1a1512; color: #fff; padding: .875rem 1.25rem;
  border-radius: 14px; font-size: .875rem; font-weight: 600;
  box-shadow: 0 10px 32px rgba(0,0,0,.2);
  animation: toastIn .3s ease; max-width: 320px; pointer-events: none;
}
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* ── MOBILE BOTTOM NAV polish ── */
.mobile-bottom-nav {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid var(--border) !important;
}

/* ── PRINT ── */
@media print {
  .site-header, .ann-bar, .mobile-bottom-nav, .cart-fab, .site-footer { display: none !important; }
}

