/* ═══════════════════════════════════════════════════════════════
   GainSide — Stylesheet v2
   Palette : #FAFAF8 (fond), #FFFFFF (cards), #1C1C1C (dark),
             #E8593A (accent corail), #6B6B6B (texte secondaire)
═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Nouvelle palette officielle */
  --color-bg:           #FAFAF8;
  --color-bg-card:      #FFFFFF;
  --color-bg-dark:      #1C1C1C;
  --color-text:         #1C1C1C;
  --color-text-muted:   #6B6B6B;
  --color-accent:       #E8593A;
  --color-accent-hover: #D14828;
  --color-border:       #E8E8E4;
  --color-success:      #2D7D46;

  /* Aliases de compatibilité (utilisés dans le JS et le HTML) */
  --bg:            #FAFAF8;
  --surface:       #FFFFFF;
  --surface2:      #F3F3F0;
  --border:        #E8E8E4;
  --accent:        #E8593A;
  --accent-hover:  #D14828;
  --text:          #1C1C1C;
  --text-muted:    #6B6B6B;
  --text-secondary:#4A4A4A;
  --danger:        #DC2626;
  --success:       #2D7D46;
  --radius:        8px;
  --radius-lg:     16px;
  --shadow:        0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 8px 32px rgba(0,0,0,.12);
  --header-h:      72px;
  --font-main:     'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }

/* ─── Layout containers ─────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 4px 16px rgba(232,89,58,.3); }

.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-danger {
  background: transparent; color: var(--danger);
  border: 2px solid var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28,28,28,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}

.site-logo { flex-shrink: 0; }
.site-logo:hover { opacity: .85; }

.header-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; overflow: hidden;
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--accent); }

.search-input {
  flex: 1; padding: 10px 16px;
  background: transparent; border: none; outline: none;
  color: #fff; font-size: 0.9rem;
}
.search-input::placeholder { color: rgba(255,255,255,.45); }

.search-btn {
  padding: 10px 16px;
  color: rgba(255,255,255,.55); transition: color .2s;
}
.search-btn:hover { color: var(--accent); }

.main-nav ul { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: color .2s, background .2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--accent); border-radius: 2px;
}

.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  background: var(--accent); color: #fff;
  border-radius: 50%; font-size: 0.65rem; font-weight: 900;
  margin-left: 4px; vertical-align: middle;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; margin-left: auto;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: #1C1C1C;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block; padding: 12px 8px;
  font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
}
.mobile-nav a:hover { color: #fff; }
.mobile-search {
  display: flex; margin-top: 12px;
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  overflow: hidden;
}
.mobile-search input {
  flex: 1; padding: 10px 14px;
  background: transparent; border: none; outline: none;
  color: #fff;
}
.mobile-search input::placeholder { color: rgba(255,255,255,.4); }
.mobile-search button {
  padding: 10px 16px;
  background: var(--accent); color: #fff; font-weight: 700;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #1C1C1C;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 60px 24px 40px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-tagline { color: rgba(255,255,255,.45); font-size: 0.9rem; line-height: 1.7; }

.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col h4 {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: 0.9rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 24px;
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: 0.8rem;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FAFAF8 0%, #FDF0EB 60%, #FAFAF8 100%);
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(232,89,58,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; color: var(--text); }
.hero h1 span { color: var(--accent); }
.hero-sub {
  color: var(--text-secondary); font-size: 1.1rem;
  margin-bottom: 36px; max-width: 440px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 1;
}

/* ─── Section titles ─────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 span { color: var(--accent); }
.section-label {
  display: block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}

/* ─── Cards produit ──────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #D0D0CC;
  box-shadow: var(--shadow-md);
}

.product-card-img {
  background: var(--surface2);
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; position: relative;
}

.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(232,89,58,.1); color: var(--accent);
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(232,89,58,.2);
}
.badge-pro { background: rgba(155,89,182,.1); color: #9B59B6; border-color: rgba(155,89,182,.2); }
.badge-new { background: rgba(45,125,70,.1); color: var(--success); border-color: rgba(45,125,70,.2); }
.badge-pack { background: rgba(59,130,246,.1); color: #3B82F6; border-color: rgba(59,130,246,.2); }

.product-card-body {
  padding: 20px 20px 24px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.product-card-category {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.product-card-name {
  font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--text);
}
.product-card-desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
  flex: 1;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.product-price {
  font-size: 1.25rem; font-weight: 900; color: var(--accent);
}

/* ─── Category filters ───────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 0.85rem; font-weight: 600;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ─── Product Detail Page ────────────────────────────────────── */
.pdp-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
  padding: 48px 0;
}
.pdp-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px; display: flex;
  align-items: center; justify-content: center;
  min-height: 400px; position: relative;
}
.pdp-badge { position: absolute; top: 16px; right: 16px; }

.pdp-content { display: flex; flex-direction: column; gap: 20px; }
.pdp-category-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.pdp-title { margin: 0; }
.pdp-price {
  font-size: 2rem; font-weight: 900; color: var(--accent);
}
.pdp-description { color: var(--text-secondary); line-height: 1.7; }

.variant-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  display: block; margin-bottom: 10px;
}
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: transparent; color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600;
  transition: all .2s;
}
.variant-btn:hover { border-color: var(--accent); color: var(--accent); }
.variant-btn.selected {
  border-color: var(--accent); color: var(--accent);
  background: rgba(232,89,58,.06);
}

.qty-control {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-muted); transition: background .2s, color .2s;
}
.qty-btn:hover { background: var(--surface2); color: var(--accent); }
.qty-input {
  width: 56px; height: 44px;
  text-align: center; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1rem; font-weight: 700;
}
/* Chrome: remove arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; }

.add-to-cart-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}

.pdp-features {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.pdp-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.pdp-feature svg { color: var(--accent); flex-shrink: 0; }

/* ─── Cart ───────────────────────────────────────────────────── */
.cart-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 32px;
  padding: 48px 0; align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow);
}
.cart-item-img {
  background: var(--surface2); border-radius: var(--radius);
  padding: 12px; display: flex; align-items: center; justify-content: center;
  height: 100px;
}
.cart-item-info { display: flex; flex-direction: column; gap: 4px; }
.cart-item-name { font-size: 1rem; font-weight: 800; color: var(--text); }
.cart-item-variant { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-price { font-size: 1rem; color: var(--accent); font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cart-item-total { font-size: 1.1rem; font-weight: 900; color: var(--text); }
.cart-remove-btn {
  color: var(--text-muted); font-size: 0.8rem;
  display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.cart-remove-btn:hover { color: var(--danger); }

.cart-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.summary-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 20px; color: var(--text); }
.summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-secondary);
}
.summary-line:last-of-type { border-bottom: none; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 20px;
  font-weight: 900; font-size: 1.2rem; color: var(--text);
}
.summary-shipping-note {
  font-size: 0.75rem; color: var(--text-muted); text-align: center;
  margin-top: 12px;
}

.empty-cart {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.empty-cart svg { color: var(--text-muted); }
.empty-cart p { color: var(--text-muted); font-size: 1rem; }

/* ─── Checkout ───────────────────────────────────────────────── */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
  padding: 48px 0; align-items: start;
}

.checkout-steps {
  display: flex; gap: 0; margin-bottom: 40px;
}
.checkout-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.checkout-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 16px; left: calc(50% + 16px);
  width: calc(100% - 32px); height: 2px;
  background: var(--border);
}
.checkout-step.done::after, .checkout-step.active::after { background: var(--accent); }

.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900;
  color: var(--text-muted);
  background: var(--surface);
  position: relative; z-index: 1;
  transition: all .2s;
}
.checkout-step.active .step-circle {
  border-color: var(--accent); color: var(--accent);
  background: rgba(232,89,58,.06);
}
.checkout-step.done .step-circle {
  border-color: var(--accent); background: var(--accent); color: #fff;
}
.step-label {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  margin-top: 8px; text-align: center;
}
.checkout-step.active .step-label { color: var(--text); }

.checkout-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow);
}
.checkout-panel-title { font-size: 1.25rem; font-weight: 900; margin-bottom: 28px; color: var(--text); }
.checkout-panel.hidden { display: none; }

/* ─── Demo auto-fill button ──────────────────────────────────── */
.btn-demo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--accent); border-radius: var(--radius);
  background: transparent; color: var(--accent);
  font-size: 0.78rem; font-weight: 600;
  transition: background .2s, color .2s;
  margin-bottom: 20px;
}
.btn-demo:hover { background: var(--accent); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.form-input, .form-select {
  padding: 12px 16px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-size: 0.95rem;
  outline: none; transition: border-color .2s;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-select option { background: var(--surface); color: var(--text); }

.shipping-options { display: flex; flex-direction: column; gap: 12px; }
.shipping-option {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s;
}
.shipping-option:has(input:checked),
.shipping-option.selected { border-color: var(--accent); background: rgba(232,89,58,.03); }
.shipping-option input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
.shipping-option-info { flex: 1; }
.shipping-option-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.shipping-option-desc { font-size: 0.8rem; color: var(--text-muted); }
.shipping-option-price { font-weight: 900; color: var(--accent); }

.payment-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.payment-icons { display: flex; gap: 8px; margin-bottom: 20px; }
.payment-icon {
  padding: 4px 10px; background: var(--border); border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
}
.card-field {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 0.95rem; color: var(--text-muted);
  margin-bottom: 12px;
}

.checkout-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 16px; }
.btn-back {
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.btn-back:hover { color: var(--accent); }

/* ─── Order summary sidebar ──────────────────────────────────── */
.order-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.order-summary-title { font-size: 1rem; font-weight: 900; margin-bottom: 20px; color: var(--text); }
.order-summary-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.order-item {
  display: flex; gap: 12px; align-items: center;
}
.order-item-img {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--surface2); border-radius: var(--radius);
  padding: 6px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.order-item-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.order-item-meta { font-size: 0.75rem; color: var(--text-muted); }
.order-item-price { margin-left: auto; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; color: var(--text); }
.order-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ─── Confirmation ───────────────────────────────────────────── */
.confirmation-wrapper {
  max-width: 720px; margin: 0 auto; padding: 64px 24px;
  text-align: center;
}
.confirmation-icon {
  width: 80px; height: 80px;
  background: rgba(45,125,70,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.confirmation-order-id {
  display: inline-block;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 8px 20px;
  font-family: monospace; font-size: 1rem; letter-spacing: 0.05em;
  color: var(--accent); margin: 16px 0;
}
.confirmation-details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow);
  text-align: left; margin-top: 40px;
}
.conf-items { display: flex; flex-direction: column; gap: 12px; }
.conf-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.conf-item:last-child { border-bottom: none; }
.conf-item-info { display: flex; flex-direction: column; gap: 2px; }
.conf-item-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.conf-item-meta { font-size: 0.75rem; color: var(--text-muted); }
.conf-item-price { font-weight: 900; color: var(--accent); }
.conf-totals { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.conf-total-line {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; color: var(--text-muted);
}
.conf-total-final {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 900; color: var(--text);
  padding-top: 12px; border-top: 2px solid var(--border);
}

/* ─── Search page ────────────────────────────────────────────── */
.search-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.search-form-big {
  display: flex; gap: 12px; max-width: 640px;
  margin-top: 24px;
}
.search-input-big {
  flex: 1; padding: 16px 24px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 1rem;
  outline: none; transition: border-color .2s;
}
.search-input-big:focus { border-color: var(--accent); }
.search-results-info {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px;
}
.search-results-info strong { color: var(--accent); }
.no-results {
  text-align: center; padding: 60px 24px; color: var(--text-muted);
}
.no-results h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--text); }

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted); padding: 20px 0;
}
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); }

/* ─── Page header ────────────────────────────────────────────── */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-header-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.page-header h1 { margin-top: 8px; }

/* ─── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-md);
  animation: toastIn .3s ease, toastOut .3s ease 2.7s forwards;
  pointer-events: all;
}
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ─── Categories grid (homepage) ────────────────────────────── */
.categories-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.category-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.category-card:hover {
  transform: translateY(-4px); border-color: #D0D0CC; box-shadow: var(--shadow-md);
}
.category-card-visual {
  background: var(--surface2); padding: 40px;
  display: flex; align-items: center; justify-content: center; min-height: 180px;
}
.category-card-body { padding: 20px 24px 24px; }
.category-card-name { font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; color: var(--text); }
.category-card-count { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }

/* ─── Horizontal scroll cards (featured) ────────────────────── */
.featured-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ─── Banner strip ───────────────────────────────────────────── */
.banner-strip {
  background: var(--accent); color: #fff;
  padding: 12px 24px; text-align: center;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
}

/* ─── USP bar ────────────────────────────────────────────────── */
.usp-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.usp-bar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.usp-item {
  display: flex; align-items: center; gap: 12px;
}
.usp-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(232,89,58,.08); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.usp-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text); }
.usp-text span { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pdp-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(3,1fr); }
  .usp-bar-inner { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-steps { gap: 0; }
  .usp-bar-inner { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .usp-bar-inner { grid-template-columns: 1fr; }
}

/* ─── Misc utilities ─────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 32px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ─── Page transition ────────────────────────────────────────── */
body { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
