/* ============================================================
   FTECH COMMERCE — Storefront Design System
   Mobile-first, professionals-quality UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --primary:        #FF6B35;
  --primary-dark:   #E85520;
  --primary-light:  color-mix(in srgb, var(--primary) 15%, white);
  --secondary:      #1A1A2E;
  --secondary-light:#2D2D44;
  --accent:         var(--accent-override, #FFD700);
  --bg:             #F5F5F0;
  --bg-card:        #FFFFFF;
  --text:           #1A1A2E;
  --text-muted:     #8A8A9A;
  --text-light:     #C8C8D8;
  --border:         #E8E8F0;
  --success:        #22C55E;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --shadow:         0 4px 20px rgba(26,26,46,0.08);
  --shadow-lg:      0 8px 40px rgba(26,26,46,0.15);
  --radius:         16px;
  --radius-sm:      10px;
  --radius-xs:      6px;
  --nav-height:     64px;
  --bottom-nav:     72px;
  --font-main:      'DM Sans', sans-serif;
  --font-display:   'Syne', sans-serif;
  /* Dynamic accent comes from inline style on :root */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-main); cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: var(--font-main); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p  { line-height: 1.6; }

/* ── TOPBAR (shared) ───────────────────────────────────── */
.sf-topbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg-card);
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  gap: 8px;
}
.sf-topbar-logo {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; color: var(--text); flex-shrink: 0; text-decoration: none;
}
.sf-topbar-logo img { height: 36px; width: auto; object-fit: contain; }
.sf-topbar-logo .logo-text { display: flex; align-items: center; }
.sf-topbar-logo .accent { color: var(--primary); }
/* Mobile: compact search that expands on focus */
.sf-topbar-search {
  flex: 1; min-width: 0; max-width: 420px;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 2px solid transparent;
  border-radius: var(--radius-sm); padding: 7px 10px;
  transition: border-color 0.2s, background 0.2s;
}
.sf-topbar-search:focus-within { border-color: var(--primary); background: #fff; }
.sf-topbar-search input {
  border: none; background: transparent;
  font-size: 14px; color: var(--text); flex: 1; outline: none;
  min-width: 0;
}
.sf-topbar-search i { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.sf-topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sf-icon-btn {
  position: relative; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 17px; transition: background 0.2s;
  text-decoration: none;
}
.sf-icon-btn:hover { background: var(--border); }
.sf-icon-btn .badge {
  position: absolute; top: 0; right: 0;
  background: var(--primary); color: #fff;
  font-size: 9px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-card);
}
.sf-cart-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: 40px;
  font-size: 13px; font-weight: 700;
  transition: all 0.2s; white-space: nowrap;
}
.sf-cart-pill:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* desktop nav links inside topbar */
.sf-topbar-nav {
  display: none;
  align-items: center; gap: 4px;
  flex: 1;
}
.sf-nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; transition: all 0.2s;
}
.sf-nav-link:hover  { color: var(--text); background: var(--bg); }
.sf-nav-link.active { color: var(--primary); font-weight: 600; }

/* ── BOTTOM NAV (mobile) ───────────────────────────────── */
.sf-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start;
  padding: 6px 0 calc(env(safe-area-inset-bottom) + 6px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.sf-bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  padding: 4px 2px 0; text-decoration: none; transition: color 0.2s;
}
.sf-bottom-nav-item i { font-size: 19px; line-height: 1; }
.sf-bottom-nav-item.active { color: var(--primary); }
.sf-bottom-nav-item.active i { transform: scale(1.1); }
.sf-bnav-cart-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; margin-top: -18px;
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
  flex-shrink: 0;
}

/* ── PAGE CONTAINER ────────────────────────────────────── */
.sf-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.sf-page {
  padding-bottom: calc(var(--bottom-nav) + 32px);
}

/* ── FOOTER ────────────────────────────────────────────── */
.sf-footer {
  background: var(--secondary, #1A1A2E);
  color: rgba(255,255,255,0.5);
  padding: 32px 20px;
  font-size: 13px;
  /* On mobile, push footer above the fixed bottom nav */
  padding-bottom: calc(var(--bottom-nav) + 32px);
}
@media (min-width: 768px) {
  .sf-footer { padding-bottom: 32px; }
}

/* ── BREADCRUMB ────────────────────────────────────────── */
.sf-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); margin-bottom: 20px;
  flex-wrap: wrap;
}
.sf-breadcrumb a { color: var(--primary); }
.sf-breadcrumb i { font-size: 9px; color: var(--text-light); }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,53,0.45); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-xs); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── CARDS ─────────────────────────────────────────────── */
.sf-card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}

/* ── PRODUCT CARD ──────────────────────────────────────── */
.sf-product-card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.sf-product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.sf-product-img {
  aspect-ratio: 1; position: relative; overflow: hidden;
  background: var(--bg);
}
.sf-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sf-product-card:hover .sf-product-img img { transform: scale(1.04); }
.sf-product-img .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--text-light);
}
.sf-product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; letter-spacing: 0.3px;
}
.sf-product-badge.sale { background: var(--danger); }
.sf-product-badge.new  { background: var(--success); }
.sf-product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sf-product-cat {
  font-size: 10px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.sf-product-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sf-product-price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px; }
.sf-price-main { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--primary); }
.sf-price-orig { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.sf-product-add {
  width: 100%; padding: 9px; margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sf-product-add:hover { filter: brightness(1.08); }
.sf-product-add.added { background: linear-gradient(135deg, var(--success), #16a34a); }
.sf-out-of-stock {
  font-size: 11px; color: var(--danger); font-weight: 600; margin-top: 4px;
}

/* ── FORMS ─────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 15px; color: var(--text);
  background: var(--bg-card); transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.form-control::placeholder { color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── SECTION HEADERS ───────────────────────────────────── */
.sf-section-hd { margin-bottom: 24px; }
.sf-section-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text);
}
.sf-section-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.sf-section-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}

/* ── ALERT ─────────────────────────────────────────────── */
.sf-alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.sf-alert-danger { background: #FEE2E2; color: #991B1B; }
.sf-alert-success { background: #DCFCE7; color: #166534; }

/* ── STATUS BADGE ──────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-processing { background: #DBEAFE; color: #1E40AF; }
.status-delivered  { background: #DCFCE7; color: #166534; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; }
.status-paid       { background: #DCFCE7; color: #166534; }
.status-unpaid     { background: #FEF3C7; color: #92400E; }

/* ── STOCK BADGE ───────────────────────────────────────── */
.stock-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.in-stock  { background: #DCFCE7; color: #166534; }
.out-stock { background: #FEE2E2; color: #991B1B; }

/* ── DIVIDER ───────────────────────────────────────────── */
.sf-divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ══════════════════════════════════════════════════════════
   HOMEPAGE SPECIFIC
══════════════════════════════════════════════════════════ */

/* Hero */
.sf-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2D1654 100%);
  color: #fff; padding: 60px 20px 48px; position: relative; overflow: hidden;
}
.sf-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 70% 50%, rgba(255,107,53,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.sf-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.sf-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.sf-hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--primary); flex-shrink: 0; }
.sf-hero h1 {
  font-size: clamp(32px, 6vw, 56px); font-weight: 800; line-height: 1.08;
  margin-bottom: 18px; letter-spacing: -1px;
}
.sf-hero h1 em { font-style: normal; color: var(--primary); }
.sf-hero-desc {
  color: rgba(255,255,255,0.65); font-size: 16px; max-width: 500px;
  line-height: 1.7; margin-bottom: 32px;
}
.sf-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sf-hero-badge-row {
  display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap;
}
.sf-hero-stat { text-align: center; }
.sf-hero-stat-num {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff;
}
.sf-hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); }

/* Category Strip */
.sf-cat-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sf-cat-strip::-webkit-scrollbar { display: none; }
.sf-cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0; width: 80px; padding: 14px 8px;
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 2px solid transparent;
  text-decoration: none; transition: all 0.2s;
}
.sf-cat-chip:hover, .sf-cat-chip.active {
  border-color: var(--primary); background: var(--primary-light);
}
.sf-cat-chip-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.sf-cat-chip-name { font-size: 10px; font-weight: 700; color: var(--text); text-align: center; line-height: 1.2; }

/* Promo Banner */
.sf-promo-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius); padding: 28px 24px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.sf-promo-banner h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.sf-promo-banner p { font-size: 13px; opacity: 0.8; }

/* ══════════════════════════════════════════════════════════
   SHOP PAGE
══════════════════════════════════════════════════════════ */
.sf-shop-layout {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
.sf-sidebar {
  display: none; /* mobile hidden, shown on desktop */
}
.sf-sidebar-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.sf-sidebar-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 12px;
}
.sf-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: var(--radius-xs);
  font-size: 14px; color: var(--text-muted); cursor: pointer;
  transition: all 0.15s; text-decoration: none;
}
.sf-cat-link:hover, .sf-cat-link.active {
  background: var(--primary); color: #fff;
}
.sf-filter-chip {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.sf-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-muted); cursor: pointer;
  transition: all 0.15s; background: var(--bg-card);
}
.sf-chip:hover, .sf-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.sf-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.sf-results-count { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.sf-sort-select {
  padding: 8px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--bg-card); cursor: pointer; outline: none;
  transition: border-color 0.2s;
}
.sf-sort-select:focus { border-color: var(--primary); }
.sf-product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.sf-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.sf-empty i { font-size: 48px; color: var(--text-light); margin-bottom: 16px; display: block; }
.sf-empty a { color: var(--primary); font-weight: 600; }

/* Pagination */
.sf-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.sf-page-btn {
  padding: 7px 14px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--bg-card); font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: all 0.2s;
}
.sf-page-btn:hover { border-color: var(--primary); color: var(--primary); }
.sf-page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Mobile filter drawer toggle */
.sf-filter-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: var(--bg-card); border-radius: var(--radius-sm);
  border: 2px solid var(--border); font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text); transition: all 0.2s;
}
.sf-filter-toggle:hover { border-color: var(--primary); color: var(--primary); }
/* Mobile filter drawer */
.sf-filter-drawer {
  position: fixed; inset: 0; z-index: 300;
  display: none; /* JS toggles */
}
.sf-filter-drawer.open { display: block; }
.sf-filter-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
}
.sf-filter-panel {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--bg-card); border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px calc(env(safe-area-inset-bottom) + 24px);
  max-height: 80vh; overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.sf-filter-panel-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.sf-filter-panel-hd h3 { font-size: 18px; font-weight: 700; }
.sf-filter-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-muted); cursor: pointer; border: none;
}

/* ══════════════════════════════════════════════════════════
   PRODUCT PAGE
══════════════════════════════════════════════════════════ */
.sf-product-gallery { position: relative; }
.sf-main-img {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); margin-bottom: 12px;
}
.sf-main-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-main-img .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--text-light); }
.sf-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-thumb {
  width: 60px; height: 60px; border-radius: var(--radius-xs); overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s;
}
.sf-thumb:hover, .sf-thumb.active { border-color: var(--primary); }
.sf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-product-detail-name { font-size: 24px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.sf-product-detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.sf-price-big { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--primary); }
.sf-price-old { font-size: 18px; color: var(--text-light); text-decoration: line-through; }
.sf-save-badge {
  font-size: 12px; font-weight: 700; color: var(--success);
  background: #DCFCE7; padding: 3px 10px; border-radius: 20px;
}
.sf-qty-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.sf-qty-btn {
  width: 40px; height: 40px; border-radius: var(--radius-xs);
  border: 2px solid var(--border); background: var(--bg-card);
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.sf-qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.sf-qty-num { font-family: var(--font-display); font-size: 20px; font-weight: 700; min-width: 36px; text-align: center; }
.sf-product-meta { font-size: 12px; color: var(--text-muted); margin-top: 16px; }
.sf-product-meta span { color: var(--text); font-weight: 600; }

/* Reviews */
.sf-reviews-section { margin-top: 28px; }
.sf-review {
  padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm);
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.sf-stars { color: var(--warning); font-size: 14px; }
.sf-review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.sf-review-name { font-size: 14px; font-weight: 700; }
.sf-review-date { font-size: 11px; color: var(--text-muted); }
.sf-review-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   CART PAGE
══════════════════════════════════════════════════════════ */
.sf-cart-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.sf-cart-item:last-child { border-bottom: none; }
.sf-cart-thumb {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.sf-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-cart-info { flex: 1; min-width: 0; }
.sf-cart-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); line-height: 1.3; }
.sf-cart-price { font-size: 13px; color: var(--primary); font-weight: 700; }
.sf-cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sf-cart-qty-btn {
  width: 28px; height: 28px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.sf-cart-qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.sf-cart-qty-num { font-weight: 700; font-size: 14px; min-width: 24px; text-align: center; }
.sf-cart-item-total { font-family: var(--font-display); font-size: 16px; font-weight: 700; flex-shrink: 0; }
.sf-remove-btn {
  background: none; border: none; color: var(--danger); font-size: 16px;
  cursor: pointer; padding: 4px; opacity: 0.6; transition: opacity 0.2s;
}
.sf-remove-btn:hover { opacity: 1; }

/* Order summary card */
.sf-order-summary { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sf-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; color: var(--text-muted); }
.sf-summary-row.total {
  font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text);
  padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--border);
}
.sf-summary-row.total span:last-child { color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   CHECKOUT PAGE
══════════════════════════════════════════════════════════ */
.sf-checkout-steps {
  display: flex; gap: 0; margin-bottom: 24px; background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.sf-step {
  flex: 1; padding: 14px 8px; text-align: center; font-size: 12px; font-weight: 700;
  color: var(--text-muted); position: relative;
}
.sf-step.active { color: var(--primary); background: var(--primary-light); }
.sf-step.done { color: var(--success); }
.sf-step-num {
  display: block; font-size: 16px; font-weight: 800; margin-bottom: 2px;
}

.sf-pay-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s; margin-bottom: 8px;
}
.sf-pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.sf-pay-option input { width: 16px; height: 16px; accent-color: var(--primary); }
.sf-pay-icon { font-size: 20px; }
.sf-pay-label { font-size: 14px; font-weight: 600; }
.sf-pay-desc { font-size: 11px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   ORDER STATUS PAGE
══════════════════════════════════════════════════════════ */
.sf-order-status-card {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px 24px; box-shadow: var(--shadow-lg);
}
.sf-order-icon { font-size: 64px; text-align: center; margin-bottom: 12px; }
.sf-order-number { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--primary); text-align: center; }
.sf-order-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.sf-order-table th { text-align: left; font-size: 11px; color: var(--text-muted); text-transform: uppercase; padding: 8px 0; border-bottom: 2px solid var(--border); }
.sf-order-table td { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.sf-order-table tr:last-child td { border-bottom: none; }
.sf-order-table .total-row td { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP
══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sf-bottom-nav { display: none; }
  .sf-page { padding-bottom: 60px; }
  .sf-topbar-search { display: flex; max-width: 420px; }
  .sf-topbar-nav { display: flex; }
  .sf-topbar { padding: 0 20px; gap: 12px; }
  .sf-topbar-logo { font-size: 20px; gap: 8px; }
  .sf-shop-layout { grid-template-columns: 240px 1fr; }
  .sf-sidebar { display: block; position: sticky; top: calc(var(--nav-height) + 16px); align-self: start; }
  .sf-filter-toggle { display: none; }
  .sf-product-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
  .sf-hero { padding: 80px 20px 70px; }
  .sf-hero h1 { font-size: 56px; }
  .sf-cat-strip { flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .sf-product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sf-product-card { animation: fadeUp 0.35s ease both; }
.sf-product-card:nth-child(2) { animation-delay: 0.05s; }
.sf-product-card:nth-child(3) { animation-delay: 0.10s; }
.sf-product-card:nth-child(4) { animation-delay: 0.15s; }
.sf-product-card:nth-child(5) { animation-delay: 0.20s; }
.sf-product-card:nth-child(6) { animation-delay: 0.25s; }
