/* =====================================================
   MotoPartes - Light Theme CSS
   ===================================================== */

/* ── Google Fonts are loaded in header.php ── */

:root {
  --primary:       #f97316;
  --primary-dark:  #ea6a05;
  --primary-light: #fff7ed;
  --secondary:     #1e293b;
  --accent:        #3b82f6;
  --bg:            #ffffff;
  --surface:       #f8fafc;
  --surface-2:     #f1f5f9;
  --border:        #e2e8f0;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --success:       #10b981;
  --danger:        #ef4444;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:        0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}

a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-secondary:hover { background: #334155; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--primary); }
.nav-logo i { color: var(--primary); font-size: 1.5rem; }

.nav-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.nav-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.8rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s;
  outline: none;
}
.nav-search input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.nav-search i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; }

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 0.5rem;
  overflow: hidden;
  display: none;
  z-index: 1100;
  border: 1px solid var(--border);
}
.search-results.active { display: block; }
.search-res-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--surface);
  cursor: pointer;
  transition: background 0.2s;
}
.search-res-item:hover { background: var(--surface); }
.search-res-item:last-child { border-bottom: none; }
.search-res-img { width: 40px; height: 30px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.search-res-info { flex: 1; min-width: 0; }
.search-res-name { font-size: 0.85rem; font-weight: 600; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-res-meta { font-size: 0.72rem; color: var(--text-muted); }
.search-res-price { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.search-res-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.cart-btn {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cart-count {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  font-size: 1.3rem;
  background: none;
  border: none;
  transition: color 0.15s ease;
}
.hamburger:hover {
  color: var(--primary);
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.mobile-menu.open { display: flex; flex-direction: column; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.mobile-menu-panel {
  position: relative;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: white;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideInLeft 0.25s ease;
}
@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mobile-menu-close { align-self: flex-end; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-links a { display: block; padding: 0.75rem 1rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; font-size: 1rem; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--primary); background: var(--primary-light); }
.mobile-search { width: 100%; padding: 0.65rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; outline: none; }
.mobile-search:focus { border-color: var(--primary); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1e293b 100%);
  color: white;
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(249,115,22,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249,115,22,0.2);
  color: var(--primary);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem; max-width: 480px; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-num { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--primary); display: block; }
.hero-stat-lbl { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-cards-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}
.hero-card:hover { transform: translateX(6px); }
.hero-card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.hero-card-text strong { display: block; color: white; font-size: 0.92rem; font-weight: 600; }
.hero-card-text span { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ── Section Titles ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ── Categories Grid ── */
.categories-section { padding: 5rem 0; background: var(--surface); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.category-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
  transform: translateY(-2px);
}
.category-card i { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 0.75rem; }
.category-card span { font-size: 0.88rem; font-weight: 600; color: var(--text); }

/* ── Product Cards ── */
.products-section { padding: 5rem 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.part-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.part-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #ddd; }
.part-card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--surface-2);
}
.part-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.part-card-img-wrapper { position: relative; }
.part-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.part-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}
.part-card-brand { font-size: 0.8rem; color: var(--text-muted); }
.part-card-name { font-size: 1rem; font-weight: 700; color: var(--secondary); line-height: 1.3; }
.part-card-compat {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.part-card-compat i { color: var(--primary); margin-right: 3px; }
.part-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.part-card-price { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--secondary); }
.part-card-price small { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.part-card-add {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.part-card-add:hover { background: var(--primary-dark); transform: scale(1.08); }
.part-card-add:disabled { background: var(--border); color: var(--text-light); cursor: not-allowed; transform: none; }

.stock-badge {
  font-size: 0.73rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}
.stock-badge.in-stock { background: #d1fae5; color: #059669; }
.stock-badge.out-stock { background: #fee2e2; color: var(--danger); }

/* ── Catalog Layout ── */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}
.catalog-sidebar {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.sidebar-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.15s;
  font-family: inherit;
  font-weight: 500;
}
.sidebar-item:hover { background: var(--surface); color: var(--primary); }
.sidebar-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-item .count { margin-left: auto; background: var(--surface-2); color: var(--text-muted); font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 999px; }
.sidebar-item.active .count { background: rgba(249,115,22,0.15); color: var(--primary); }

.catalog-main {}
.catalog-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.catalog-search-wrap { flex: 1; min-width: 200px; position: relative; }
.catalog-search {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  outline: none;
  color: var(--text);
  transition: all 0.2s;
  background: white;
}
.catalog-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.catalog-search-wrap i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.catalog-count { font-size: 0.88rem; color: var(--text-muted); white-space: nowrap; }

/* ── Skeleton ── */
.skeleton { border-radius: var(--radius-lg); overflow: hidden; background: white; border: 1.5px solid var(--border); }
.skeleton-img { height: 180px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.skeleton-line { height: 14px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200%; animation: shimmer 1.4s infinite; border-radius: 6px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Cart Sidebar ── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1500;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: white;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--secondary); }
.cart-close-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); padding: 0.25rem; border-radius: var(--radius-sm); transition: all 0.15s; }
.cart-close-btn:hover { background: var(--surface); color: var(--text); }

.cart-items-list { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: 1rem; }
.cart-empty i { font-size: 3rem; opacity: 0.3; }

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cart-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--surface); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.88rem; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.qty-btn { background: var(--surface); border: 1px solid var(--border); width: 24px; height: 24px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.qty-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.qty-num { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { background: none; border: none; color: var(--text-light); cursor: pointer; padding: 0.25rem; font-size: 0.85rem; border-radius: 4px; transition: all 0.15s; flex-shrink: 0; }
.cart-item-remove:hover { color: var(--danger); background: #fee2e2; }

.cart-drawer-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.75rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; }
.cart-total-row .label { font-size: 0.9rem; color: var(--text-muted); }
.cart-total-row .value { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--secondary); }

/* ── Features Banner ── */
.features-section { background: var(--surface); padding: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.feature-item { text-align: center; padding: 1.5rem; }
.feature-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.5rem; color: var(--primary); }
.feature-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }

/* ── Checkout ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; padding: 3rem 0 5rem; align-items: start; }
.checkout-form-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.checkout-form-card h2 { font-size: 1.2rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-control {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  transition: all 0.2s;
  outline: none;
  width: 100%;
  font-family: inherit;
  background: white;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }

.order-summary-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 90px; }
.order-summary-card h3 { font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.summary-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--surface); font-size: 0.88rem; }
.summary-item .name { color: var(--text); }
.summary-item .price { font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; margin-top: 0.5rem; border-top: 2px solid var(--secondary); }
.summary-total .label { font-weight: 700; font-size: 1rem; }
.summary-total .value { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* ── Footer ── */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .logo-text { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand .logo-text span { color: var(--primary); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: white; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-links  { display: none; }
  .hamburger  { display: block; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .hero { padding: 3.5rem 0 4rem; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .cart-drawer { max-width: 100%; right: -100%; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.3; }

/* ── Admin overrides (keep admin dark) ── */
body.admin-body { background: #0d1117; color: #e6edf3; }
