/* ============================================================
   BargainGoods.ca — Stylesheet v3
   Fonts:   Nunito (headings) + Lato (body) — warm, open, readable
   Spacing: Generous scale — nothing squished
   Modes:   Dark (default) + Light mode via [data-theme="light"]
   A11y:    WCAG 2.1 AAA contrast on all text/bg combos
   ============================================================ */

/* ── Google Fonts (add to header.php <head>) ────────────────
   These are imported in header.php. If loading here, uncomment:
   @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');
*/

/* ── Design Tokens — Dark Mode (default) ────────────────────*/
:root {
  /* Brand */
  --red:          #E8253A;
  --red-dark:     #B80014;
  --red-light:    #FF5066;
  --maple:        #FF6B35;
  --gold:         #F5A623;
  --green:        #2ECC71;
  --green-dark:   #1A9E55;
  --blue:         #4A9EDB;

  /* Dark theme surfaces */
  --bg:           #0D0D12;
  --bg-card:      #17171F;
  --bg-raised:    #1E1E28;
  --bg-surface:   #262632;
  --bg-input:     #1E1E28;

  /* Borders */
  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.13);
  --border-focus: var(--red);

  /* Text */
  --text-primary:   #F2F2F7;
  --text-secondary: #A8A8C0;
  --text-muted:     #6E6E88;
  --text-inverse:   #0D0D12;

  /* Shadows */
  --shadow-sm:  0 2px 8px  rgba(0,0,0,0.3);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.55);

  /* Typography */
  --font-head:  'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-body:  'Lato',   'Segoe UI', system-ui, sans-serif;

  /* Type Scale — fluid, readable */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   2.75rem;    /* 44px */

  /* Spacing Scale */
  --space-1:    0.25rem;   /* 4px  */
  --space-2:    0.5rem;    /* 8px  */
  --space-3:    0.75rem;   /* 12px */
  --space-4:    1rem;      /* 16px */
  --space-5:    1.25rem;   /* 20px */
  --space-6:    1.5rem;    /* 24px */
  --space-8:    2rem;      /* 32px */
  --space-10:   2.5rem;    /* 40px */
  --space-12:   3rem;      /* 48px */
  --space-16:   4rem;      /* 64px */
  --space-20:   5rem;      /* 80px */

  /* Radii */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-full:9999px;

  /* Transitions */
  --transition: 0.22s ease;

  /* Line heights */
  --leading-tight:  1.25;
  --leading-snug:   1.45;
  --leading-normal: 1.7;
  --leading-relaxed:1.85;
}

/* ── Light Mode ──────────────────────────────────────────────*/
[data-theme="light"] {
  --bg:           #F7F7FB;
  --bg-card:      #FFFFFF;
  --bg-raised:    #FFFFFF;
  --bg-surface:   #EEF0F5;
  --bg-input:     #FFFFFF;

  --border:       rgba(0,0,0,0.08);
  --border-2:     rgba(0,0,0,0.14);

  --text-primary:   #12121A;
  --text-secondary: #44445A;
  --text-muted:     #7878A0;
  --text-inverse:   #FFFFFF;

  --shadow-sm:  0 2px 8px  rgba(0,0,0,0.06);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.12);

  --gold:         #D4890A;
  --green:        #1A9E55;
}

/* ── Reset ───────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img  { max-width: 100%; display: block; height: auto; }
a    { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); font-size: var(--text-base); }
p    { max-width: 68ch; }  /* prevent overly long lines */

/* ── Accessibility ───────────────────────────────────────────*/
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--red-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout ──────────────────────────────────────────────────*/
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
main#main-content { min-height: 60vh; }

/* ── Dark/Light Mode Toggle Button ──────────────────────────*/
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-2);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-size: var(--text-lg);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-raised); transform: scale(1.08); }
/* Sun icon hidden in dark, moon icon visible. Flip in light. */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Top Bar ─────────────────────────────────────────────────*/
.top-bar {
  background: var(--red);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}

/* ── Header ──────────────────────────────────────────────────*/
.main-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-6);
  min-height: 72px;
}

/* Logo */
.logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.5px;
  transition: color var(--transition);
}
.logo span { color: var(--red); }
.logo sup  { font-size: 0.65em; color: var(--maple); vertical-align: super; }

/* Search */
.search-form {
  flex: 1;
  max-width: 680px;
  display: flex;
  position: relative;
}
.search-form input {
  width: 100%;
  padding: var(--space-3) 56px var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  border: 2px solid var(--border-2);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.search-form input:focus  { border-color: var(--red); }
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: var(--red);
  border: none;
  border-radius: var(--radius-full);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--red-light); }

/* Header action buttons */
.header-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  color: var(--text-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
  position: relative;
}
.header-btn:hover { background: var(--bg-surface); }
.header-btn .btn-lbl { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; letter-spacing: 0.3px; }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 0px; right: 4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--radius-full);
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Category Nav */
.cat-nav { background: var(--bg-raised); border-top: 1px solid var(--border); transition: background var(--transition); }
.cat-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--space-6);
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-link {
  padding: var(--space-3) var(--space-4);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  letter-spacing: 0.1px;
}
.cat-nav-link:hover, .cat-nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--red);
}
.deals-link      { color: var(--red-light) !important; }
.bargain-bin-link { color: var(--gold) !important; }
.bargain-bin-link.active { border-bottom-color: var(--gold); }

/* ── Flash Messages ──────────────────────────────────────────*/
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  gap: var(--space-4);
}
.flash-success { background: rgba(46,204,113,0.1); color: #5ddb8b; border-bottom: 1px solid rgba(46,204,113,0.2); }
.flash-error   { background: rgba(232,37,58,0.1);  color: #ff7080; border-bottom: 1px solid rgba(232,37,58,0.2); }
.flash-info    { background: rgba(74,158,219,0.1); color: #7bc0ed; border-bottom: 1px solid rgba(74,158,219,0.2); }
[data-theme="light"] .flash-success { color: #157a3d; background: rgba(46,204,113,0.08); }
[data-theme="light"] .flash-error   { color: #a80018; background: rgba(232,37,58,0.06); }
[data-theme="light"] .flash-info    { color: #1a5e8a; background: rgba(74,158,219,0.08); }
.flash-close { background: none; border: none; color: inherit; font-size: var(--text-xl); opacity: .6; cursor: pointer; padding: 0; }
.flash-close:hover { opacity: 1; }

/* ── Buttons ─────────────────────────────────────────────────*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.12s, box-shadow var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-light); box-shadow: 0 4px 16px rgba(232,37,58,0.35); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-2); }
.btn-outline:hover { background: var(--bg-surface); }
.btn-danger { background: transparent; color: var(--red-light); border: 1.5px solid rgba(232,37,58,0.35); }
.btn-danger:hover { background: rgba(232,37,58,0.08); }
.btn-lg  { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled=true] {
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Forms ───────────────────────────────────────────────────*/
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}
input[type=text], input[type=email], input[type=tel],
input[type=password], input[type=number], input[type=url],
select, textarea {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-2);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:disabled { background: var(--bg-surface); color: var(--text-muted); cursor: not-allowed; }
select option { background: var(--bg-input); color: var(--text-primary); }
textarea { resize: vertical; min-height: 110px; line-height: var(--leading-relaxed); }
small { font-size: var(--text-xs); color: var(--text-muted); line-height: var(--leading-normal); }
.form-row { display: grid; gap: var(--space-4); }
.form-row.two-col   { grid-template-columns: 1fr 1fr; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.form-section h2 {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-5);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 400;
}
.checkbox-label input { width: auto; }

/* ── Hero ────────────────────────────────────────────────────*/
.hero { padding: var(--space-8) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 280px 210px;
  gap: var(--space-4);
}
.hero-main {
  grid-row: span 2;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #0D0D12 0%, #1a0005 55%, #2d000a 100%);
  padding: var(--space-12) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}
.hero-main:hover { transform: scale(1.005); }
.hero-main::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(232,37,58,.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero-main::after {
  content: '🍁';
  position: absolute; bottom: 24px; right: 36px;
  font-size: 140px; opacity: .055; pointer-events: none;
}
.hero-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  width: fit-content;
}
.hero-main h1 {
  font-family: var(--font-head);
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  letter-spacing: -0.5px;
}
.hero-main h1 em { color: var(--red-light); font-style: normal; }
.hero-main p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 440px;
  line-height: var(--leading-relaxed);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--red);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 700;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  width: fit-content;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.hero-cta:hover { background: var(--red-light); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,37,58,.4); }
.hero-sub {
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.hero-sub:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hero-sub1 { background: linear-gradient(135deg, #0d2137, #1a3d5c); }
.hero-sub2 { background: linear-gradient(135deg, #1a1400, #2d2400); }
.sub-tag { font-size: var(--text-xs); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-2); }
.hero-sub h3 { font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-2); line-height: var(--leading-snug); }
.hero-sub p  { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }

/* ── Trust Bar ───────────────────────────────────────────────*/
.trust-bar { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background var(--transition); }
.trust-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
}
.trust-item { display: flex; align-items: center; gap: var(--space-3); }
.trust-icon { font-size: var(--text-2xl); line-height: 1; }
.trust-item strong { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.trust-item span   { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Section Headings ────────────────────────────────────────*/
.section { padding: var(--space-12) 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.section-title {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: var(--leading-tight);
}
.section-title span { color: var(--red); }
.view-all {
  color: var(--red-light);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition);
  letter-spacing: 0.3px;
}
.view-all:hover { gap: var(--space-3); }

/* ── Category Cards ──────────────────────────────────────────*/
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}
.cat-card:hover { border-color: var(--red-light); transform: translateY(-3px); background: var(--bg-raised); }
.cat-name { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); letter-spacing: 0.1px; }

/* ── Product Grid ────────────────────────────────────────────*/
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
}

/* ── Product Card ────────────────────────────────────────────*/
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeUp 0.45s ease both;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,37,58,.25);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-surface);
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.08); }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
}
.card-discount {
  position: absolute; top: 12px; right: 46px;
  background: var(--green);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}
.card-wishlist {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.45);
  border: none; border-radius: var(--radius-full);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.card-wishlist:hover { background: var(--red); }
.card-wishlist.active { color: var(--red); background: rgba(232,37,58,.18); }

.card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}
.card-cat {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}
.card-name { margin-bottom: var(--space-1); }
.card-name a {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-snug);
  text-decoration: none;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-name a:hover { color: var(--red-light); }

.card-stars { display: flex; align-items: center; gap: var(--space-2); }
.stars { color: var(--gold); font-size: var(--text-base); letter-spacing: -1px; }
.review-ct { font-size: var(--text-xs); color: var(--text-muted); }

.card-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}
.price-now  { font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 900; color: var(--red-light); line-height: 1; }
.price-orig { font-size: var(--text-sm); color: var(--text-muted); text-decoration: line-through; }

.card-sold  { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); }
.card-sold strong { color: var(--text-secondary); }

.card-add-btn {
  margin-top: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--red);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform 0.12s;
  letter-spacing: 0.1px;
}
.card-add-btn:hover  { background: var(--red-light); }
.card-add-btn:active { transform: scale(.97); }
.card-add-btn.added  { background: var(--green); }
.card-add-btn:disabled {
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ── Promo Banner ────────────────────────────────────────────*/
.promo-banner {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-12);
}
.promo-banner::before {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 400px;
  background: rgba(0,0,0,.12);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.promo-banner::after { content: '🍁'; position: absolute; right: 48px; font-size: 100px; opacity: .15; top: 50%; transform: translateY(-50%); }
.promo-text h2 { font-family: var(--font-head); font-size: var(--text-3xl); font-weight: 900; margin-bottom: var(--space-3); line-height: var(--leading-snug); }
.promo-text p  { font-size: var(--text-lg); opacity: .9; line-height: var(--leading-normal); }
.promo-cta {
  background: #fff; color: var(--red);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: var(--text-base);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition);
  position: relative; z-index: 1;
}
.promo-cta:hover { transform: scale(1.05); }

/* ── Newsletter ──────────────────────────────────────────────*/
.newsletter-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: var(--space-20) var(--space-6);
  text-align: center;
  margin-top: var(--space-12);
  transition: background var(--transition);
}
.newsletter-section h2 {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 900;
  margin-bottom: var(--space-3);
}
.newsletter-section p { color: var(--text-secondary); margin-bottom: var(--space-8); font-size: var(--text-lg); max-width: 50ch; margin-left: auto; margin-right: auto; }
.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input { flex: 1; padding: var(--space-4) var(--space-5); border-radius: var(--radius-full); }
.newsletter-form button {
  background: var(--red);
  color: #fff;
  border: none; border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base); font-weight: 700;
  cursor: pointer; transition: background var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--red-light); }

/* ── Products Listing Page ───────────────────────────────────*/
.products-page {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: var(--space-8);
  padding: var(--space-10) 0;
  align-items: start;
}
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  position: sticky;
  top: 90px;
  transition: background var(--transition);
}
.filters-sidebar h2 { font-family: var(--font-head); font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-6); }
.filter-group { margin-bottom: var(--space-6); }
.filter-group h3 {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: var(--space-3);
}
.filter-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  margin-bottom: 2px;
  line-height: var(--leading-normal);
}
.filter-link:hover { background: var(--bg-surface); color: var(--text-primary); }
.filter-link.active { background: rgba(232,37,58,.1); color: var(--red-light); font-weight: 700; }

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.products-heading { font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 800; }
.products-heading em { color: var(--red-light); font-style: normal; }
.result-count { font-size: var(--text-sm); color: var(--text-muted); }
.toolbar-right { display: flex; align-items: center; gap: var(--space-4); }
.sort-form select {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  width: auto;
}

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-12); flex-wrap: wrap; }
.page-link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}
.page-link:hover  { background: var(--bg-surface); border-color: var(--border-2); }
.page-link.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-ellipsis    { color: var(--text-muted); padding: 0 var(--space-1); }

/* ── Product Detail ──────────────────────────────────────────*/
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-6) 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb [aria-current] { color: var(--text-primary); font-weight: 500; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  padding-bottom: var(--space-16);
}
.product-images { position: sticky; top: 90px; }
.main-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
  aspect-ratio: 1;
  margin-bottom: var(--space-3);
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.image-thumbs { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.thumb-btn {
  width: 76px; height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
}
.thumb-btn.active { border-color: var(--red); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.discount-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 800;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.product-badge {
  display: inline-block;
  background: var(--bg-surface);
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  margin-left: var(--space-2);
}
.product-info h1 {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  font-weight: 900;
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
  letter-spacing: -0.3px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.rating-val  { font-weight: 700; font-size: var(--text-base); }
.rating-count{ color: var(--text-muted); font-size: var(--text-sm); }
.sold-count  {
  background: var(--bg-surface);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.product-price-block {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  transition: background var(--transition);
}
.original-price { font-size: var(--text-xl); color: var(--text-muted); text-decoration: line-through; display: block; margin-bottom: var(--space-1); }
.current-price  { font-family: var(--font-head); font-size: 2.8rem; font-weight: 900; color: var(--red-light); display: block; line-height: 1; margin-bottom: var(--space-2); }
.save-label     { font-size: var(--text-sm); color: var(--green); font-weight: 700; }
.shipping-note  { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-5); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.product-meta   { margin-bottom: var(--space-5); }
.product-meta p { font-size: var(--text-sm); margin-bottom: var(--space-2); color: var(--text-muted); line-height: var(--leading-normal); }
.product-meta strong { color: var(--text-primary); }
.in-stock    { color: var(--green); font-weight: 700; }
.out-of-stock{ color: var(--red-light); font-weight: 700; }
.product-description { margin: var(--space-5) 0; }
.product-description h2 { font-family: var(--font-head); font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-3); }
.product-description p  { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); }

.qty-row { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-5); }
.qty-row label { font-size: var(--text-base); font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-control button {
  background: var(--bg-surface);
  border: none;
  width: 44px; height: 44px;
  font-size: var(--text-xl); font-weight: 700;
  color: var(--text-primary);
  transition: background var(--transition);
}
.qty-control button:hover { background: var(--red); color: #fff; }
.qty-control input {
  width: 60px; height: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg-input);
  text-align: center;
  font-size: var(--text-base); font-weight: 700;
  border-radius: 0;
  padding: 0;
}
.cta-btns  { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-6); }
.btn-wish  { padding: var(--space-3) var(--space-5); background: var(--bg-surface); border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); font-size: var(--text-2xl); color: var(--text-primary); }
.btn-wish.active { background: rgba(232,37,58,.1); color: var(--red); border-color: var(--red); }

.trust-mini  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.trust-mini-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  transition: background var(--transition);
}
.trust-mini-item span strong { display: block; font-size: var(--text-sm); font-weight: 700; margin-bottom: 2px; }
.trust-mini-item span        { font-size: var(--text-xs); color: var(--text-muted); line-height: var(--leading-normal); }

/* ── Reviews ─────────────────────────────────────────────────*/
.reviews-section { border-top: 1px solid var(--border); padding: var(--space-12) 0; }
.reviews-section h2 { font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 900; margin-bottom: var(--space-8); }
.review-form-wrap {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  transition: background var(--transition);
}
.review-form-wrap h3 { font-family: var(--font-head); font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-5); }
.review-login-note { color: var(--text-muted); margin-bottom: var(--space-5); font-size: var(--text-base); }
.review-login-note a { color: var(--red-light); }
.review-item { padding: var(--space-6) 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); flex-wrap: wrap; }
.review-date  { font-size: var(--text-xs); color: var(--text-muted); }
.review-title { font-weight: 700; margin-bottom: var(--space-2); font-size: var(--text-base); }
.no-reviews   { color: var(--text-muted); font-size: var(--text-base); }
.related-section { padding: var(--space-10) 0; }

/* ── Cart Page ───────────────────────────────────────────────*/
.cart-page { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-8); align-items: start; padding: var(--space-10) 0; }
.cart-items-list { display: flex; flex-direction: column; }
.shipping-progress-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  font-weight: 500;
  line-height: var(--leading-normal);
}
.shipping-progress-bar.success { border-color: rgba(46,204,113,.3); background: rgba(46,204,113,.06); color: var(--green); }
.progress-bar { background: var(--bg-surface); border-radius: var(--radius-full); height: 7px; margin-top: var(--space-3); overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: var(--radius-full); transition: width .5s ease; }
.cart-item-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img img {
  width: 100px; height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}
.cart-item-name:hover { color: var(--red-light); }
.cart-item-price { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-3); }
.cart-qty-form { display: flex; align-items: center; gap: var(--space-2); }
.cart-qty-form button {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 32px; height: 32px;
  color: var(--text-primary);
  font-size: var(--text-lg); font-weight: 700;
}
.cart-qty-form button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cart-qty-form input {
  width: 54px; height: 32px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 700;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-input);
}
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); }
.cart-item-subtotal { font-family: var(--font-head); font-size: var(--text-xl); font-weight: 900; color: var(--red-light); white-space: nowrap; }
.cart-remove-btn { background: none; border: none; color: var(--text-muted); font-size: var(--text-sm); cursor: pointer; font-family: var(--font-body); }
.cart-remove-btn:hover { color: var(--red-light); }
.cart-actions-row { display: flex; justify-content: space-between; padding-top: var(--space-5); flex-wrap: wrap; gap: var(--space-3); }

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  position: sticky;
  top: 90px;
  transition: background var(--transition);
}
.cart-summary h2 { font-family: var(--font-head); font-size: var(--text-xl); font-weight: 900; margin-bottom: var(--space-6); }
.summary-row { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-3); }
.summary-total { display: flex; justify-content: space-between; font-size: var(--text-xl); font-weight: 800; color: var(--text-primary); margin: var(--space-5) 0; padding-top: var(--space-4); border-top: 1px solid var(--border); }
.free-tag   { color: var(--green); font-weight: 800; }
.secure-note{ text-align: center; font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-4); }

/* ── Checkout ────────────────────────────────────────────────*/
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: var(--space-8); align-items: start; padding: var(--space-8) 0; }
.checkout-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-8); position: sticky; top: 90px; transition: background var(--transition); }
.checkout-summary h2 { font-family: var(--font-head); font-size: var(--text-xl); font-weight: 900; margin-bottom: var(--space-6); }
.summary-items { margin-bottom: var(--space-6); max-height: 320px; overflow-y: auto; }
.summary-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.summary-item img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.summary-item-info { flex: 1; font-size: var(--text-sm); color: var(--text-muted); }
.summary-item-info span:first-child { color: var(--text-primary); display: block; margin-bottom: 2px; font-weight: 500; }
.ship-option {
  display: flex; align-items: flex-start; gap: var(--space-3);
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  transition: border-color var(--transition);
}
.ship-option:has(input:checked) { border-color: var(--red); background: rgba(232,37,58,.05); }
.pay-method-grid { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-5); }
.pay-opt {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: border-color var(--transition);
}
.pay-opt:has(input:checked) { border-color: var(--red); }
.payment-note { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); padding: var(--space-3); background: var(--bg-surface); border-radius: var(--radius-sm); line-height: var(--leading-normal); }
.payment-icons { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.pay-icon { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-3); font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); }

/* ── Order Confirmation ──────────────────────────────────────*/
.confirmation-wrap { max-width: 820px; margin: var(--space-12) auto; text-align: center; }
.confirmation-header { padding: var(--space-12) 0 var(--space-8); }
.confirm-icon { font-size: 80px; margin-bottom: var(--space-5); animation: pop .5s ease; }
@keyframes pop { from { transform: scale(0) } to { transform: scale(1) } }
.confirmation-header h1 { font-family: var(--font-head); font-size: var(--text-4xl); font-weight: 900; margin-bottom: var(--space-3); }
.confirmation-header p  { color: var(--text-secondary); font-size: var(--text-lg); max-width: 50ch; margin: 0 auto; line-height: var(--leading-relaxed); }
.order-detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-8); margin-bottom: var(--space-6); text-align: left; }
.order-meta-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-5); margin-bottom: var(--space-8); }
.order-meta-row div { display: flex; flex-direction: column; gap: var(--space-1); }
.order-meta-row strong { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.7px; font-weight: 700; }
.order-meta-row span   { font-size: var(--text-base); font-weight: 600; }
.order-detail-card h2  { font-family: var(--font-head); font-size: var(--text-xl); font-weight: 800; margin: 0 0 var(--space-5); }
.order-detail-card h3  { font-family: var(--font-head); font-size: var(--text-lg); font-weight: 700; margin: var(--space-8) 0 var(--space-4); }
.order-items-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-2); }
.order-items-table th, .order-items-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.order-items-table th { color: var(--text-muted); font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.5px; }
.order-items-table tfoot td { color: var(--text-muted); }
.order-items-table .total-row td { color: var(--text-primary); font-size: var(--text-base); border-top: 2px solid var(--border); }
.status-badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 800; text-transform: capitalize; letter-spacing: 0.3px; }
.status-pending    { background: rgba(245,166,35,.12);  color: #e8960a; }
.status-processing { background: rgba(74,158,219,.12);  color: #4a9edb; }
.status-shipped    { background: rgba(139,92,246,.12);  color: #9b59b6; }
.status-delivered  { background: rgba(46,204,113,.12);  color: var(--green); }
.status-cancelled  { background: rgba(232,37,58,.12);   color: var(--red-light); }
.status-paid       { background: rgba(46,204,113,.12);  color: var(--green); }
.shipping-address { font-style: normal; font-size: var(--text-base); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.confirm-actions { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

/* ── Auth Pages ──────────────────────────────────────────────*/
.auth-wrap { display: flex; justify-content: center; padding: var(--space-16) 0; }
.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  width: 100%; max-width: 500px;
  transition: background var(--transition);
}
.auth-box h1 { font-family: var(--font-head); font-size: var(--text-3xl); font-weight: 900; margin-bottom: var(--space-8); }
.auth-switch { margin-top: var(--space-6); text-align: center; font-size: var(--text-base); color: var(--text-muted); line-height: var(--leading-normal); }
.auth-switch a { color: var(--red-light); font-weight: 700; }

/* ── Account Page ────────────────────────────────────────────*/
.account-page { padding: var(--space-10) 0; }
.account-page h1 { font-family: var(--font-head); font-size: var(--text-4xl); font-weight: 900; margin-bottom: var(--space-8); }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-8); align-items: start; }
.account-nav { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; transition: background var(--transition); }
.acc-nav-link { display: block; padding: var(--space-3) var(--space-4); color: var(--text-secondary); text-decoration: none; font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); line-height: var(--leading-normal); }
.acc-nav-link:hover { background: var(--bg-surface); color: var(--text-primary); }
.acc-nav-link.active { background: rgba(232,37,58,.1); color: var(--red-light); font-weight: 700; }
.acc-nav-link .badge { background: var(--bg-surface); color: var(--text-muted); font-size: var(--text-xs); padding: 1px 8px; border-radius: var(--radius-full); margin-left: var(--space-2); }
.logout-link { margin-top: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-4); border-radius: 0; }
.acc-tab { display: none; }
.acc-tab.active { display: block; }
.acc-tab h2 { font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 900; margin-bottom: var(--space-6); }

/* Orders */
.orders-list { display: flex; flex-direction: column; gap: var(--space-4); }
.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5) var(--space-6); transition: background var(--transition); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); flex-wrap: wrap; gap: var(--space-3); }
.order-date { font-size: var(--text-xs); color: var(--text-muted); margin-left: var(--space-3); }
.order-card-right { display: flex; align-items: center; gap: var(--space-3); }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.ship-to { font-size: var(--text-sm); color: var(--text-muted); }

/* ── Empty States ────────────────────────────────────────────*/
.empty-state { text-align: center; padding: var(--space-20) var(--space-6); }
.empty-state.small { padding: var(--space-10) 0; }
.empty-icon { font-size: 64px; margin-bottom: var(--space-5); line-height: 1; }
.empty-state h2 { font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-3); }
.empty-state p  { color: var(--text-muted); margin-bottom: var(--space-6); font-size: var(--text-base); max-width: 40ch; margin-left: auto; margin-right: auto; line-height: var(--leading-relaxed); }

/* ── Footer ──────────────────────────────────────────────────*/
.main-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 0;
  margin-top: var(--space-16);
  transition: background var(--transition);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-12); padding-bottom: var(--space-12); }
.footer-brand p { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); margin-top: var(--space-4); max-width: 28ch; }
.footer-col h4  { font-weight: 800; font-size: var(--text-sm); margin-bottom: var(--space-5); letter-spacing: 0.3px; }
.footer-col a   { display: block; color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); margin-bottom: var(--space-3); transition: color var(--transition); line-height: var(--leading-normal); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: var(--space-6) 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom p { color: var(--text-muted); font-size: var(--text-xs); }

/* ── Responsive ──────────────────────────────────────────────*/
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-main { min-height: 340px; }
  .hero-sub  { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 1024px) {
  .products-page   { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .product-detail  { grid-template-columns: 1fr; gap: var(--space-8); }
  .product-images  { position: static; }
  .cart-page       { grid-template-columns: 1fr; }
  .cart-summary    { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary{ position: static; }
  .account-layout  { grid-template-columns: 1fr; }
  .account-nav     { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
  .header-inner { padding: var(--space-3) var(--space-4); min-height: 60px; }
  .hero-main { padding: var(--space-8) var(--space-6); }
  .hero-main h1 { font-size: var(--text-3xl); }
  .promo-banner { padding: var(--space-8) var(--space-6); }
  .promo-text h2 { font-size: var(--text-2xl); }
  .form-row.two-col, .form-row.three-col { grid-template-columns: 1fr; }
  .trust-mini   { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .section { padding: var(--space-8) 0; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .header-btn .btn-lbl { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .card-body { padding: var(--space-4); }
  .price-now { font-size: var(--text-xl); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-main h1 { font-size: var(--text-2xl); }
  .auth-box { padding: var(--space-8) var(--space-5); }
}
