/* ============================================================
   SNIKY PIÈCES DÉTACHÉES - Main Stylesheet
   Colors: Navy #0D1B5E | Red #CC0000 | Silver #B8C4CC | White
   ============================================================ */

:root {
  --navy: #0D1B5E;
  --navy-dark: #081240;
  --navy-light: #1a2f7a;
  --red: #CC0000;
  --red-dark: #990000;
  --red-light: #e61a1a;
  --silver: #B8C4CC;
  --silver-light: #E8EDF0;
  --silver-dark: #8A9BAA;
  --white: #FFFFFF;
  --bg: #F2F4F8;
  --text: #1a1a2e;
  --text-light: #5a6375;
  --success: #28a745;
  --warning: #ffc107;
  --border: #dde2ea;
  --shadow: 0 2px 16px rgba(13,27,94,0.10);
  --shadow-lg: 0 8px 40px rgba(13,27,94,0.15);
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, button, select, textarea { font-family: inherit; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   TOP BAR
============================================================ */
.topbar {
  background: var(--navy-dark);
  color: var(--silver);
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-left span, .topbar-right a { display: flex; align-items: center; gap: 5px; color: var(--silver); transition: var(--transition); }
.topbar-right a:hover { color: var(--white); }
.topbar i { color: var(--red-light); }
.topbar .fab.fa-whatsapp { color: #25D366; font-size: 14px; }
.separator { color: rgba(255,255,255,0.2); }

/* ============================================================
   HEADER
============================================================ */
.main-header {
  background: var(--navy);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 60px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(204,0,0,0.4)); transition: var(--transition); }
.logo-img:hover { transform: scale(1.03); }

.search-bar { flex: 1; }
.search-inner { display: flex; background: var(--white); border-radius: 8px; overflow: hidden; border: 2px solid transparent; transition: var(--transition); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.search-inner:focus-within { border-color: var(--red); }
.search-input { flex: 1; padding: 11px 16px; border: none; outline: none; font-size: 14px; color: var(--text); background: transparent; }
.search-btn { background: var(--red); color: var(--white); border: none; padding: 0 22px; cursor: pointer; font-size: 16px; transition: var(--transition); }
.search-btn:hover { background: var(--red-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.whatsapp-btn {
  display: flex; align-items: center; gap: 8px;
  background: #25D366; color: var(--white);
  padding: 10px 18px; border-radius: 8px;
  font-weight: 700; font-size: 13px;
  transition: var(--transition);
  white-space: nowrap;
}
.whatsapp-btn:hover { background: #1da855; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.whatsapp-btn i { font-size: 18px; }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  color: var(--white); padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.1); transition: var(--transition);
  white-space: nowrap; border: 1px solid rgba(255,255,255,0.15);
}
.cart-btn:hover { background: rgba(255,255,255,0.2); }
.cart-btn i { font-size: 18px; }
.cart-label { font-size: 13px; font-weight: 600; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: white;
  font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
}

.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-toggle span { width: 26px; height: 3px; background: white; border-radius: 3px; transition: var(--transition); display: block; }

/* ============================================================
   NAVIGATION
============================================================ */
.main-nav {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.nav-list { display: flex; align-items: stretch; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 7px;
  color: var(--white); padding: 13px 18px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.3px; transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link {
  background: rgba(0,0,0,0.15);
}
.nav-sell { background: rgba(0,0,0,0.2); margin-left: auto; }
.nav-sell:hover { background: rgba(0,0,0,0.35) !important; }
.nav-sell .fab { color: #25D366; }

/* Mega dropdown */
.mega-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; min-width: 680px;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-lg);
  z-index: 500; padding: 16px;
}
.nav-item:hover .mega-dropdown { display: block; animation: dropIn 0.2s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  transition: var(--transition); color: var(--text);
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item i { color: var(--red); font-size: 18px; width: 22px; text-align: center; }
.item-name { display: block; font-weight: 600; font-size: 13px; }
.item-count { display: block; font-size: 11px; color: var(--text-light); }

/* ============================================================
   HERO / BANNER
============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1a2f7a 100%);
  padding: 60px 0 50px;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(204,0,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: ''; position: absolute; bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,196,204,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-content { color: white; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(204,0,0,0.2); border: 1px solid rgba(204,0,0,0.4);
  color: #ff9999; padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: 16px; text-transform: uppercase;
}
.hero-title { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.hero-title span { color: var(--red-light); }
.hero-subtitle { font-size: 16px; color: var(--silver); margin-bottom: 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: white;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px; transition: var(--transition);
}
.btn-hero-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(204,0,0,0.4); }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px; transition: var(--transition);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); }

.hero-stats { display: flex; gap: 30px; margin-top: 32px; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--red-light); }
.stat-label { font-size: 12px; color: var(--silver); text-transform: uppercase; letter-spacing: 0.5px; }

.hero-image-side { display: flex; justify-content: center; align-items: center; }
.hero-logo-big { max-width: 420px; filter: drop-shadow(0 10px 40px rgba(204,0,0,0.3)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   TRUST BADGES
============================================================ */
.trust-bar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-items { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item i { font-size: 24px; color: var(--red); }
.trust-item-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); }
.trust-item-text span { font-size: 11.5px; color: var(--text-light); }

/* ============================================================
   SECTIONS
============================================================ */
.section { padding: 50px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.section-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--navy); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 50px; height: 3px; background: var(--red); border-radius: 2px; }
.section-title-white { color: white; }
.section-title-white::after { background: var(--red-light); }
.see-all { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 13px; transition: var(--transition); }
.see-all:hover { gap: 10px; }

/* ============================================================
   CATEGORY GRID
============================================================ */
.category-section { background: white; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.category-card {
  background: var(--bg); border-radius: var(--radius); padding: 20px 14px;
  text-align: center; transition: var(--transition); border: 2px solid transparent;
  cursor: pointer;
}
.category-card:hover { background: var(--navy); border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card:hover .cat-icon { color: var(--red-light); background: rgba(204,0,0,0.15); }
.category-card:hover .cat-name { color: white; }
.category-card:hover .cat-count { color: var(--silver); }
.cat-icon { font-size: 28px; color: var(--red); background: rgba(204,0,0,0.08); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; transition: var(--transition); }
.cat-name { font-weight: 700; font-size: 13px; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.cat-count { font-size: 11px; color: var(--text-light); }

/* ============================================================
   PRODUCT CARDS
============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
  position: relative; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.product-image-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--bg);
}
.product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
.badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-new { background: var(--success); color: white; }
.badge-used { background: var(--warning); color: #333; }
.badge-recond { background: var(--navy); color: white; }
.badge-promo { background: var(--red); color: white; }
.badge-featured { background: linear-gradient(135deg, #ff6b00, #ff9900); color: white; }

.product-actions-hover {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 20px 12px 12px;
  display: flex; gap: 8px;
  opacity: 0; transition: var(--transition);
}
.product-card:hover .product-actions-hover { opacity: 1; }
.btn-quick-wa {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #25D366; color: white; border: none; border-radius: 7px;
  padding: 9px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.btn-quick-wa:hover { background: #1da855; }
.btn-quick-cart {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: white; border: none; border-radius: 7px;
  padding: 9px 12px; cursor: pointer; transition: var(--transition);
}
.btn-quick-cart:hover { background: var(--red); }

.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-bottom: 4px; }
.product-name { font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-name:hover { color: var(--red); }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.product-price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--red); }
.product-old-price { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.product-discount { font-size: 11px; font-weight: 800; color: var(--success); }
.product-card-footer { display: flex; gap: 8px; }
.btn-wa-order {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #25D366; color: white; border-radius: 7px;
  padding: 9px 12px; font-size: 12px; font-weight: 700;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-wa-order:hover { background: #1da855; transform: translateY(-1px); }
.btn-add-cart {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--navy); border-radius: 7px;
  padding: 9px 12px; font-size: 14px;
  transition: var(--transition); border: 1px solid var(--border); cursor: pointer;
}
.btn-add-cart:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ============================================================
   PROMO BANNER
============================================================ */
.promo-section { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 50px 0; }
.promo-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.promo-content { color: white; }
.promo-label { font-size: 12px; color: var(--red-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 10px; }
.promo-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.promo-text { color: var(--silver); font-size: 15px; margin-bottom: 24px; }
.btn-promo { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: white; padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: var(--transition); }
.btn-promo:hover { background: #1da855; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.4); }
.promo-image { max-width: 300px; opacity: 0.9; filter: drop-shadow(0 10px 30px rgba(204,0,0,0.3)); }

/* ============================================================
   SEARCH PAGE / PRODUCTS PAGE
============================================================ */
.page-header { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 30px 0; color: white; }
.page-header h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.page-header p { color: var(--silver); margin-top: 6px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--silver); margin-bottom: 8px; }
.breadcrumb a { color: var(--silver-light); }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 30px 0; }
.sidebar { background: white; border-radius: var(--radius-lg); padding: 20px; height: fit-content; border: 1px solid var(--border); }
.sidebar-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.filter-group { margin-bottom: 20px; }
.filter-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 10px; }
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.filter-option input[type="checkbox"] { accent-color: var(--red); }
.cat-filter-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--text); transition: var(--transition); }
.cat-filter-link:hover, .cat-filter-link.active { background: var(--bg); color: var(--red); font-weight: 600; }

.products-main { flex: 1; }
.products-toolbar { display: flex; justify-content: space-between; align-items: center; background: white; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid var(--border); }
.results-count { font-size: 14px; color: var(--text-light); }
.results-count strong { color: var(--text); }
.sort-select { border: 1px solid var(--border); border-radius: 6px; padding: 7px 12px; font-size: 13px; outline: none; background: white; cursor: pointer; }

/* ============================================================
   PRODUCT DETAIL PAGE
============================================================ */
.product-detail { padding: 30px 0 50px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.main-image-wrap {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); margin-bottom: 12px;
}
.main-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 8px; }
.thumb-item { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); background: white; }
.thumb-item:hover, .thumb-item.active { border-color: var(--red); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { }
.product-detail-category { font-size: 12px; color: var(--red); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 8px; }
.product-detail-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.meta-item { display: flex; align-items: center; gap: 6px; background: var(--bg); padding: 6px 12px; border-radius: 20px; font-size: 13px; }
.meta-item i { color: var(--red); }
.product-detail-price { margin-bottom: 24px; }
.detail-price-main { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--red); }
.detail-price-old { font-size: 16px; color: var(--text-light); text-decoration: line-through; margin-left: 10px; }
.detail-discount-badge { background: var(--success); color: white; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-left: 8px; }

.quantity-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.quantity-label { font-weight: 700; font-size: 14px; }
.quantity-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { background: var(--bg); border: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: var(--transition); }
.qty-btn:hover { background: var(--navy); color: white; }
.qty-input { width: 50px; height: 38px; border: none; text-align: center; font-size: 15px; font-weight: 700; outline: none; }

.detail-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.btn-detail-wa {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #25D366; color: white; border: none;
  padding: 16px; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: var(--transition); width: 100%;
}
.btn-detail-wa:hover { background: #1da855; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
.btn-detail-cart {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--navy); color: white; border: none;
  padding: 16px; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: var(--transition); width: 100%;
}
.btn-detail-cart:hover { background: var(--red); }

.product-detail-tabs { margin-top: 16px; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 12px 20px; background: none; border: none; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text-light); position: relative; transition: var(--transition); }
.tab-btn.active { color: var(--red); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--red); }
.tab-content { display: none; font-size: 14px; line-height: 1.8; color: var(--text-light); }
.tab-content.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   CART
============================================================ */
.cart-page { padding: 30px 0 50px; }
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
.cart-table { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.cart-table table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--navy); color: white; padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 700; }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-brand { font-size: 12px; color: var(--text-light); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty input { width: 50px; text-align: center; border: 1px solid var(--border); border-radius: 6px; padding: 6px; }
.cart-remove { background: none; border: none; color: var(--red); cursor: pointer; font-size: 18px; }

.cart-summary { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); position: sticky; top: 90px; }
.summary-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 2px solid var(--border); font-weight: 800; font-size: 18px; color: var(--navy); margin-top: 4px; }
.total-price { color: var(--red); }
.btn-checkout-wa {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: white; border: none;
  padding: 16px; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: var(--transition); margin-top: 20px;
}
.btn-checkout-wa:hover { background: #1da855; transform: translateY(-2px); }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 60px; color: var(--silver); margin-bottom: 16px; }
.cart-empty h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.cart-empty p { color: var(--text-light); margin-bottom: 24px; }

/* ============================================================
   ADMIN PANEL
============================================================ */
.admin-body { background: #F0F2F5; min-height: 100vh; font-family: var(--font-body); }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 20px; }
.login-card { background: white; border-radius: 20px; padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo img { height: 80px; }
.login-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 6px; }
.login-subtitle { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none;
  transition: var(--transition); background: var(--bg);
}
.form-control:focus { border-color: var(--red); background: white; }
.btn-login { width: 100%; padding: 14px; background: var(--red); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); font-family: inherit; }
.btn-login:hover { background: var(--red-dark); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.alert-error { background: #fff0f0; border: 1px solid #ffcccc; color: var(--red-dark); }
.alert-success { background: #f0fff4; border: 1px solid #c3e6cb; color: #155724; }

/* Admin layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--navy-dark); position: fixed;
  top: 0; left: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; z-index: 100;
}
.sidebar-brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand img { height: 50px; }
.sidebar-brand span { display: block; font-size: 10px; color: var(--silver); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-section { padding: 0 16px; margin-bottom: 6px; }
.sidebar-section-title { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; padding: 8px 10px 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7); padding: 10px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; transition: var(--transition); margin-bottom: 2px;
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(204,0,0,0.2); color: white; }
.sidebar-link.active { background: var(--red); }
.sidebar-link i { width: 18px; font-size: 15px; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-user { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 12px; }
.user-avatar { width: 36px; height: 36px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; }

.admin-main { margin-left: 260px; flex: 1; }
.admin-topbar {
  background: white; padding: 14px 28px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
}
.admin-topbar h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.admin-content { padding: 24px 28px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 22px 20px; border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.red { background: rgba(204,0,0,0.1); color: var(--red); }
.stat-icon.navy { background: rgba(13,27,94,0.1); color: var(--navy); }
.stat-icon.green { background: rgba(40,167,69,0.1); color: var(--success); }
.stat-icon.orange { background: rgba(255,152,0,0.1); color: #ff9800; }
.stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-title { font-size: 12px; color: var(--text-light); margin-top: 3px; font-weight: 600; }

.admin-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 24px; }
.admin-card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.admin-card-body { padding: 22px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 10px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--bg); vertical-align: middle; font-size: 13px; }
.admin-table tr:hover td { background: var(--bg); }
.product-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; background: var(--bg); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); border: none; font-family: inherit; text-decoration: none; }
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--navy); color: white; }
.btn-secondary:hover { background: var(--navy-dark); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-control-admin { width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: var(--transition); }
.form-control-admin:focus { border-color: var(--red); }
select.form-control-admin { background: white; cursor: pointer; }
textarea.form-control-admin { resize: vertical; min-height: 110px; }
.image-upload-area {
  border: 2px dashed var(--border); border-radius: 12px; padding: 40px 20px;
  text-align: center; cursor: pointer; transition: var(--transition);
}
.image-upload-area:hover { border-color: var(--red); background: rgba(204,0,0,0.02); }
.image-upload-area i { font-size: 40px; color: var(--silver-dark); margin-bottom: 12px; }
.image-preview { max-width: 200px; border-radius: 10px; margin-top: 16px; }
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 24px; transition: var(--transition); }
.slider::before { position: absolute; content: ''; width: 18px; height: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: var(--transition); }
input:checked + .slider { background: var(--red); }
input:checked + .slider::before { transform: translateX(22px); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: white; cursor: pointer; font-size: 13px; font-weight: 600; transition: var(--transition); color: var(--text); text-decoration: none; }
.page-btn:hover, .page-btn.active { background: var(--red); color: white; border-color: var(--red); }

/* ============================================================
   FOOTER
============================================================ */
.main-footer { background: var(--navy-dark); color: var(--silver); margin-top: 0; }
.footer-top { padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-logo { height: 60px; margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 1.8; color: var(--silver-dark); margin-bottom: 20px; }
.footer-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 35px; height: 2px; background: var(--red); border-radius: 2px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { display: flex; align-items: center; gap: 8px; color: var(--silver-dark); font-size: 13px; transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-links i { color: var(--red); font-size: 12px; width: 14px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--transition); }
.social-link.whatsapp { background: #25D366; color: white; }
.social-link.facebook { background: #1877F2; color: white; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-link:hover { transform: translateY(-3px) scale(1.1); }
.contact-info { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.contact-item { display: flex; gap: 12px; }
.contact-item i { color: var(--red-light); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.contact-item strong { display: block; color: white; font-size: 13px; }
.contact-item span, .contact-item a { font-size: 13px; color: var(--silver-dark); }
.contact-item a:hover { color: white; }
.cta-whatsapp-footer { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: white; padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: var(--transition); }
.cta-whatsapp-footer:hover { background: #1da855; }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 16px 0; text-align: center; font-size: 12px; color: var(--silver-dark); border-top: 1px solid rgba(255,255,255,0.08); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; background: #25D366; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition); animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); background: #1da855; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.float-tooltip {
  position: absolute; right: 70px; background: rgba(0,0,0,0.8); color: white;
  padding: 6px 12px; border-radius: 6px; font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.whatsapp-float:hover .float-tooltip { opacity: 1; }

/* No image SVG fallback */
.no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--silver-dark); font-size: 40px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto auto; gap: 12px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image-side { display: none; }
  .hero-title { font-size: 2.2rem; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .promo-inner { grid-template-columns: 1fr; }
  .promo-image { display: none; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
}

@media (max-width: 768px) {
  .topbar .container { flex-direction: column; gap: 4px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-actions .whatsapp-btn span { display: none; }
  .cart-label { display: none; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .mega-dropdown { position: static; min-width: 0; border-radius: 0; box-shadow: none; background: rgba(0,0,0,0.1); }
  .dropdown-grid { grid-template-columns: 1fr; }
  .mobile-menu-toggle { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { justify-content: center; gap: 20px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
