/* ============================================================
   BIONIC STORE — Design System
   Palette: Gold #C9A017 | Gray #5C5C5C | White #FFFFFF
   ============================================================ */

:root {
  --gold:        #C9A017;
  --gold-dark:   #A07E10;
  --gold-light:  #E8C84A;
  --gold-pale:   #FDF5DC;
  --gray-dark:   #3A3A3A;
  --gray:        #6B6B6B;
  --gray-mid:    #9B9B9B;
  --gray-light:  #F4F4F4;
  --gray-border: #E0E0E0;
  --white:       #FFFFFF;
  --text:        #2D2D2D;
  --text-muted:  #7A7A7A;
  --success:     #28A745;
  --danger:      #DC3545;
  --warning:     #FFC107;
  --info:        #17A2B8;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow:      0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  all 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #FAFAFA;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--gray-dark); }
.text-gold   { color: var(--gold) !important; }
.text-gray   { color: var(--gray) !important; }
.text-muted  { color: var(--text-muted) !important; }
.fw-600      { font-weight: 600; }

/* ---- Buttons ---- */
.btn-gold {
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  padding: .55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: var(--transition);
  text-decoration: none;
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: .55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-gray {
  background: var(--gray-dark);
  color: #fff;
  border: 2px solid var(--gray-dark);
  padding: .55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: var(--transition);
  text-decoration: none;
}
.btn-gray:hover { background: var(--gray); border-color: var(--gray); color: #fff; }
.btn-sm { padding: .35rem .9rem; font-size: .82rem; }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---- Top Bar ---- */
.topbar {
  background: var(--gray-dark);
  color: #ccc;
  font-size: .8rem;
  padding: .4rem 0;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--gold-light); }

/* ---- Navbar ---- */
.navbar-main {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand img { height: 52px; }
.nav-search-wrap { flex: 1; max-width: 520px; position: relative; }
.nav-search-wrap input {
  width: 100%;
  border: 2px solid var(--gray-border);
  border-radius: 30px;
  padding: .5rem 1.2rem .5rem 1.2rem;
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
}
.nav-search-wrap input:focus { border-color: var(--gold); }
.nav-search-wrap button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: pointer;
}
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-icon-btn {
  position: relative;
  color: var(--gray-dark);
  font-size: 1.2rem;
  padding: .3rem;
  transition: var(--transition);
}
.nav-icon-btn:hover { color: var(--gold); }
.nav-icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--gold);
  color: #fff;
  font-size: .65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---- Category Nav ---- */
.category-nav {
  background: var(--gray-dark);
  padding: 0;
  position: relative;
  z-index: 100;
}
.category-nav .nav-list { list-style: none; display: flex; margin: 0; padding: 0; }
.category-nav .nav-item { position: relative; }
.category-nav .nav-item > a {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #ddd;
  padding: .7rem 1.1rem;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
}
.category-nav .nav-item > a:hover,
.category-nav .nav-item:hover > a,
.category-nav .nav-item > a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,.05);
}
.category-nav .has-sub > a::after {
  content: '▾';
  font-size: .7rem;
  margin-left: .2rem;
  opacity: .7;
}
/* Sub-menu */
.category-nav .sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  min-width: 230px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 3px solid var(--gold);
  padding: .4rem 0;
  list-style: none;
  margin: 0;
  transition: opacity .18s ease, visibility .18s ease;
}
.category-nav .nav-item:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.category-nav .sub-menu li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .52rem 1.2rem;
  color: var(--text);
  font-size: .87rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.category-nav .sub-menu li a:hover { background: var(--gold-pale); color: var(--gold-dark); }
.category-nav .sub-menu li a i { width: 16px; text-align: center; color: var(--gold); }
.category-nav .sub-menu .sub-divider { height: 1px; background: #f0f0f0; margin: .3rem 0; }
.category-nav .sub-menu .sub-all a { font-weight: 700; color: var(--gold-dark); }

/* ---- Hero Banner ---- */
.hero {
  background: linear-gradient(135deg, var(--gray-dark) 0%, #2a2a2a 50%, #1a1a1a 100%);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,160,23,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-subtitle { color: var(--gold-light); font-weight: 600; font-size: .9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .5rem; }
.hero h1 { font-size: 2.8rem; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.1rem; color: #bbb; margin-bottom: 2rem; max-width: 550px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-img { position: relative; text-align: center; }
.hero-img img { max-height: 380px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }

/* ---- Trust Badges ---- */
.trust-bar {
  background: var(--gold-pale);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem 1rem;
}
.trust-item i { font-size: 1.6rem; color: var(--gold); }
.trust-item h6 { margin: 0; font-size: .9rem; font-weight: 700; color: var(--gray-dark); }
.trust-item p { margin: 0; font-size: .78rem; color: var(--gray); }

/* ---- Section ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--gray-light); }
.section-title { font-size: 1.7rem; font-weight: 800; margin-bottom: .4rem; }
.section-title span { color: var(--gold); }
.section-subtitle { color: var(--text-muted); margin-bottom: 2.5rem; font-size: .95rem; }
.section-divider { width: 50px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: .8rem; }

/* ---- Category Cards ---- */
.cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.cat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); color: var(--text); }
.cat-card i { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.cat-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.cat-card p { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* ---- Product Card ---- */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--gray-light);
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .3rem; }
.badge-promo { background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px; }
.badge-new { background: var(--gray-dark); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px; }
.badge-stock-low { background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px; }
.product-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.product-cat-label { font-size: .75rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem; }
.product-name { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.3; color: var(--gray-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price-wrap { margin-top: auto; }
.product-price-ht { font-size: .75rem; color: var(--text-muted); }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--gold-dark); }
.product-price-old { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.product-stock { font-size: .75rem; margin-top: .3rem; }
.product-stock.in-stock { color: var(--success); }
.product-stock.low-stock { color: var(--warning); }
.product-stock.out-stock { color: var(--danger); }
.product-card-actions { padding: .8rem 1.2rem 1.2rem; display: flex; gap: .5rem; }
.product-card-actions .btn-gold { flex: 1; justify-content: center; font-size: .82rem; padding: .5rem .8rem; }
.product-card-actions .btn-outline-gold { padding: .5rem .7rem; }

/* ---- Wishlist btn ---- */
.btn-wishlist {
  background: none;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  color: var(--gray-mid);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.btn-wishlist:hover, .btn-wishlist.active { border-color: var(--danger); color: var(--danger); }

/* ---- Breadcrumb ---- */
.breadcrumb-wrap {
  background: var(--gray-light);
  padding: .8rem 0;
  border-bottom: 1px solid var(--gray-border);
}
.breadcrumb { margin: 0; background: none; padding: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-mid); content: '›'; }
.breadcrumb-item a { color: var(--gold-dark); font-size: .85rem; }
.breadcrumb-item.active { color: var(--gray); font-size: .85rem; }

/* ---- Filters Sidebar ---- */
.filter-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.filter-card h6 { font-size: .9rem; font-weight: 700; color: var(--gray-dark); border-bottom: 2px solid var(--gold); padding-bottom: .5rem; margin-bottom: 1rem; }
.filter-item { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .88rem; cursor: pointer; }
.filter-item input[type=checkbox] { accent-color: var(--gold); width: 15px; height: 15px; }
.price-range { display: flex; gap: .5rem; align-items: center; }
.price-range input { width: 80px; border: 1px solid var(--gray-border); border-radius: 6px; padding: .3rem .6rem; font-size: .85rem; }

/* ---- Catalogue grid ---- */
.catalogue-toolbar {
  background: #fff;
  border-radius: var(--radius);
  padding: .8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: .5rem;
}
.sort-select {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: .35rem .8rem;
  font-size: .85rem;
  color: var(--text);
  outline: none;
}
.sort-select:focus { border-color: var(--gold); }
.view-toggle { display: flex; gap: .3rem; }
.view-toggle button {
  background: none;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: .35rem .6rem;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}
.view-toggle button.active, .view-toggle button:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---- Product Detail ---- */
.product-gallery { position: sticky; top: 90px; }
.gallery-main {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .7rem;
}
.gallery-main img { max-height: 380px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 68px;
  height: 68px;
  background: #fff;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  padding: .3rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); }
.product-detail-price { font-size: 1.8rem; font-weight: 900; color: var(--gold-dark); }
.product-detail-price-ht { color: var(--text-muted); font-size: .9rem; }
.product-qty-wrap { display: flex; align-items: center; gap: .5rem; }
.product-qty-wrap button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--gray-border);
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.product-qty-wrap button:hover { border-color: var(--gold); color: var(--gold); }
.product-qty-wrap input {
  width: 60px;
  text-align: center;
  border: 2px solid var(--gray-border);
  border-radius: 8px;
  padding: .3rem;
  font-size: .95rem;
}
.specs-table { width: 100%; }
.specs-table tr:nth-child(even) { background: var(--gray-light); }
.specs-table td { padding: .6rem .8rem; font-size: .88rem; border-bottom: 1px solid var(--gray-border); }
.specs-table td:first-child { font-weight: 600; color: var(--gray); width: 45%; }
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--gray-border); margin-bottom: 1.5rem; }
.tab-btn { background: none; border: none; padding: .7rem 1.3rem; font-size: .9rem; font-weight: 600; color: var(--gray); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; }

/* ---- Cart ---- */
.cart-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: .8rem;
}
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius); background: var(--gray-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: .92rem; margin-bottom: .2rem; }
.cart-item-price { color: var(--gold-dark); font-weight: 700; font-size: .95rem; }
.cart-summary {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; font-size: .9rem; }
.cart-summary-row.total { border-top: 2px solid var(--gold); margin-top: .5rem; padding-top: 1rem; font-size: 1.1rem; font-weight: 800; color: var(--gold-dark); }
.coupon-input { display: flex; gap: .5rem; margin-top: .8rem; }
.coupon-input input { flex: 1; border: 2px solid var(--gray-border); border-radius: var(--radius); padding: .45rem .8rem; font-size: .88rem; outline: none; }
.coupon-input input:focus { border-color: var(--gold); }

/* ---- Checkout Steps ---- */
.checkout-steps { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step::before { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--gray-border); z-index: 0; }
.step:last-child::before { display: none; }
.step-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--gray-border); color: var(--gray); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; z-index: 1; transition: var(--transition); }
.step.active .step-circle { background: var(--gold); color: #fff; box-shadow: 0 0 0 4px var(--gold-pale); }
.step.done .step-circle { background: var(--success); color: #fff; }
.step-label { font-size: .75rem; margin-top: .4rem; color: var(--gray); font-weight: 600; text-align: center; }
.step.active .step-label { color: var(--gold); }

/* ---- Form Controls ---- */
.form-label { font-size: .88rem; font-weight: 600; color: var(--gray-dark); margin-bottom: .3rem; }
.form-control {
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  padding: .5rem .8rem;
  font-size: .9rem;
  transition: var(--transition);
  color: var(--text);
  width: 100%;
}
.form-control:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,160,23,.15); }
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { color: var(--danger); font-size: .78rem; margin-top: .25rem; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }

/* ---- Payment Method Cards ---- */
.payment-option {
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: .6rem;
}
.payment-option:hover, .payment-option.selected { border-color: var(--gold); background: var(--gold-pale); }
.payment-option input[type=radio] { accent-color: var(--gold); }

/* ---- Auth Pages ---- */
.auth-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--gray-dark), #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img { height: 55px; }
.auth-title { text-align: center; font-size: 1.4rem; font-weight: 800; margin-bottom: .3rem; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: .88rem; margin-bottom: 2rem; }
.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--gray-mid); font-size: .82rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-border); }

/* ---- Alert ---- */
.alert-gold { background: var(--gold-pale); border-left: 4px solid var(--gold); color: var(--gray-dark); padding: .8rem 1rem; border-radius: var(--radius); font-size: .88rem; margin-bottom: 1rem; }
.alert-success-bs { background: #d4edda; border-left: 4px solid var(--success); color: #155724; padding: .8rem 1rem; border-radius: var(--radius); font-size: .88rem; margin-bottom: 1rem; }
.alert-danger-bs { background: #f8d7da; border-left: 4px solid var(--danger); color: #721c24; padding: .8rem 1rem; border-radius: var(--radius); font-size: .88rem; margin-bottom: 1rem; }

/* ---- Footer ---- */
.footer-main {
  background: var(--gray-dark);
  color: #bbb;
  padding: 4rem 0 0;
}
.footer-main h5 { color: var(--gold-light); font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-main a { color: #bbb; font-size: .88rem; display: block; margin-bottom: .5rem; }
.footer-main a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-logo img { height: 50px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: .8rem; }
.footer-desc { font-size: .85rem; line-height: 1.7; }
.footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem;
  padding: 1.2rem 0;
  font-size: .82rem;
  text-align: center;
  color: #888;
}
.footer-payments { display: flex; gap: .6rem; align-items: center; justify-content: center; margin-top: .5rem; font-size: 1.4rem; color: #666; }

/* ---- Client Dashboard ---- */
.client-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.client-sidebar-header {
  background: linear-gradient(135deg, var(--gray-dark), #444);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}
.client-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 auto .8rem; }
.client-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1.2rem;
  color: var(--gray);
  font-size: .88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.client-sidebar-nav a:hover, .client-sidebar-nav a.active { color: var(--gold-dark); background: var(--gold-pale); border-left-color: var(--gold); }
.client-sidebar-nav a i { width: 18px; text-align: center; }
.status-badge { display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 30px; font-size: .75rem; font-weight: 700; }
.status-en_attente { background: #fff3cd; color: #856404; }
.status-payee { background: #d4edda; color: #155724; }
.status-livree { background: #cce5ff; color: #004085; }
.status-annulee { background: #f8d7da; color: #721c24; }
.status-en_preparation { background: #e2e3e5; color: #383d41; }
.status-expediee { background: #d1ecf1; color: #0c5460; }

/* ---- Pagination ---- */
.pagination-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.page-btn { width: 38px; height: 38px; border-radius: 8px; border: 2px solid var(--gray-border); background: #fff; color: var(--gray); display: flex; align-items: center; justify-content: center; cursor: pointer; margin: 0 3px; font-size: .88rem; transition: var(--transition); text-decoration: none; font-weight: 600; }
.page-btn:hover, .page-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---- Toast Notifications ---- */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast-item { background: var(--gray-dark); color: #fff; padding: .8rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem; font-size: .88rem; min-width: 260px; animation: slideIn .3s ease; }
.toast-item.success { border-left: 4px solid var(--success); }
.toast-item.error { border-left: 4px solid var(--danger); }
.toast-item.info { border-left: 4px solid var(--gold); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  font-size: 1rem;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero h1 { font-size: 2rem; }
  .hero-img { display: none; }
  .category-nav { display: none; }
  .filter-card { display: none; }
  .filter-card.show { display: block; }
}
@media (max-width: 767px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 1.6rem; }
  .nav-search-wrap { display: none; }
  .section { padding: 2.5rem 0; }
  .cart-item { flex-wrap: wrap; }
  .checkout-steps .step-label { display: none; }
}
@media (max-width: 575px) {
  .auth-card { padding: 1.5rem; }
  .product-detail-price { font-size: 1.4rem; }
}

/* ---- Utility ---- */
.gap-1 { gap: .4rem; }
.gap-2 { gap: .8rem; }
.gap-3 { gap: 1.2rem; }
.bg-gold-pale { background: var(--gold-pale); }
.border-gold { border-color: var(--gold) !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.shadow-card { box-shadow: var(--shadow-sm); }
.divider { height: 1px; background: var(--gray-border); margin: 1.2rem 0; }

/* ---- Spinner ---- */
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(201,160,23,.3); border-radius: 50%; border-top-color: var(--gold); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 4rem; color: var(--gray-border); margin-bottom: 1rem; }
.empty-state h4 { color: var(--gray); margin-bottom: .5rem; }
.empty-state p { color: var(--text-muted); font-size: .9rem; }

/* ---- Promo Banner ---- */
.promo-banner {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #fff;
  text-align: center;
  padding: .6rem;
  font-size: .88rem;
  font-weight: 600;
}

/* ---- Loading Overlay ---- */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}
.loading-overlay .spinner { width: 48px; height: 48px; border-width: 4px; }

/* ---- Quote Form ---- */
.quote-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

/* ---- Stats cards (client + admin) ---- */
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-icon.gold { background: var(--gold-pale); color: var(--gold); }
.stat-icon.gray { background: #f0f0f0; color: var(--gray); }
.stat-icon.success { background: #d4edda; color: var(--success); }
.stat-icon.danger { background: #f8d7da; color: var(--danger); }
.stat-value { font-size: 1.5rem; font-weight: 900; line-height: 1; color: var(--gray-dark); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }
