/* ============================================================
   DZIRIATTE COSMETIQUE — Luxury Catalog Styles
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #faf8f5;
  --surface:     #ffffff;
  --surface-2:   #f4f0eb;
  --primary:     #1a1a2e;
  --gold:        #b8953a;
  --gold-light:  #e8d5a0;
  --gold-pale:   #fdf6e3;
  --rose:        #c17f8a;
  --text:        #1c1c1e;
  --text-muted:  #6e6e73;
  --text-light:  #aeaeb2;
  --border:      #e5ddd4;
  --border-2:    #f0ebe4;
  --success:     #34c759;
  --error:       #ff3b30;
  --warning:     #ff9500;

  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', -apple-system, sans-serif;

  --shadow-xs:   0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 10px rgba(0,0,0,.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.14);
  --shadow-gold: 0 0 0 3px rgba(184,149,58,.20);

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  --nav-h:       84px;
  --sidebar-w:   270px;
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.navbar-logo-img {
  height: 72px;
  max-width: 200px;
  transition: height .25s ease;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .navbar-logo-img { height: 58px; max-width: 160px; }
}
.logo-star {
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
  animation: pulse-star 3s ease-in-out infinite;
}
@keyframes pulse-star {
  0%,100% { opacity: 1; }
  50% { opacity: .5; }
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .01em;
}
.logo-sub {
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 1px;
}

/* Search */
.navbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0 18px;
  height: 44px;
  transition: var(--transition);
}
.navbar-search:focus-within {
  border-color: var(--gold);
  background: white;
  box-shadow: var(--shadow-gold);
}
.navbar-search i { color: var(--text-muted); font-size: .85rem; }
.navbar-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: .9rem;
  color: var(--text);
}
.navbar-search input::placeholder { color: var(--text-light); }
.btn-clear-search {
  color: var(--text-muted);
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}
.btn-clear-search:hover { background: var(--border); color: var(--text); }

/* Actions */
.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.btn-icon:hover { background: var(--surface-2); }
.btn-icon i { font-size: .9rem; }
.btn-label { display: none; }

/* Cart button — bigger & animated when it has items */
.btn-cart {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 3px 12px rgba(26,26,46,.25);
}
.btn-cart i { font-size: 1.3rem; color: white; }
.btn-cart:hover { background: #0d0d1a; transform: scale(1.06); box-shadow: 0 5px 18px rgba(26,26,46,.35); }

/* Wiggle animation when cart has items */
@keyframes cart-wiggle {
  0%,100% { transform: rotate(0deg) scale(1); }
  15%      { transform: rotate(-14deg) scale(1.12); }
  30%      { transform: rotate(12deg) scale(1.12); }
  45%      { transform: rotate(-10deg) scale(1.08); }
  60%      { transform: rotate(8deg) scale(1.05); }
  75%      { transform: rotate(-4deg) scale(1.02); }
}
.btn-cart.has-items {
  background: var(--gold);
  box-shadow: 0 4px 16px rgba(184,149,58,.45);
}
.btn-cart.has-items:hover { background: #a07e2e; }
.btn-cart.wiggle {
  animation: cart-wiggle .7s ease-in-out;
}

/* Badge */
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ff3b30;
  color: white;
  font-size: .65rem;
  font-weight: 800;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid white;
  padding: 0 3px;
}

/* Mobile search under navbar */
.navbar-search-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-2);
  background: var(--surface);
}
.navbar-search-mobile i { color: var(--text-muted); font-size: .85rem; }
.navbar-search-mobile input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .9rem;
  background: none;
  color: var(--text);
}

/* ════════════════════════════════════════════════════════════
   SETUP BANNER
════════════════════════════════════════════════════════════ */
.setup-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: var(--primary);
  color: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 640px;
  width: calc(100% - 40px);
  animation: slide-up .4s ease;
}
@keyframes slide-up {
  from { transform: translateX(-50%) translateY(30px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.setup-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.setup-text { flex: 1; min-width: 160px; }
.setup-text strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.setup-text span { font-size: .78rem; opacity: .75; }
.setup-text code { background: rgba(255,255,255,.15); padding: 1px 5px; border-radius: 4px; font-size: .76rem; }
.btn-setup-info {
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
.btn-setup-info:hover { background: #a07e2a; }
.btn-close-banner {
  background: rgba(255,255,255,.12);
  color: white;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .8rem;
  transition: var(--transition);
}
.btn-close-banner:hover { background: rgba(255,255,255,.2); }

/* ════════════════════════════════════════════════════════════
   APP WRAPPER & LAYOUT
════════════════════════════════════════════════════════════ */
.app-wrapper {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: var(--nav-h);
  transition: padding-top .25s ease;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════
   FILTER SIDEBAR
════════════════════════════════════════════════════════════ */
.filter-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-2);
}
.filter-sidebar-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-sidebar-title i { color: var(--gold); font-size: 1rem; }
.btn-close-sidebar {
  display: none;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--r-sm);
  transition: var(--transition);
}
.btn-close-sidebar:hover { background: var(--surface-2); color: var(--text); }

.filter-search-mobile { display: none; }

/* Filter group */
.filter-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-2);
}
.filter-group:last-child { border-bottom: none; }
.filter-group-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Checkboxes */
.filter-checks { display: flex; flex-direction: column; gap: 6px; }
.filter-checks.scrollable { max-height: 200px; overflow-y: auto; }
.filter-check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: .87rem;
  color: var(--text);
  padding: 3px 4px;
  border-radius: var(--r-sm);
  transition: var(--transition);
  user-select: none;
}
.filter-check-label:hover { background: var(--surface-2); }
.filter-check-label input[type="checkbox"] { display: none; }
.check-box {
  width: 17px; height: 17px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: white;
}
.filter-check-label input:checked + .filter-check-inner .check-box,
.filter-check-label.checked .check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.filter-check-inner {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
}
.check-label { flex: 1; }
.check-count {
  font-size: .75rem;
  color: var(--text-light);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 10px;
}

/* Chip radio (genre) */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-radio { display: inline-flex; cursor: pointer; user-select: none; }
.chip-radio input { display: none; }
.chip-radio span {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: white;
  transition: var(--transition);
}
.chip-radio input:checked + span {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-pale);
  font-weight: 600;
}
.chip-radio:hover span { border-color: var(--gold-light); }

/* Brand search inside sidebar */
.filter-brand-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  margin-bottom: 10px;
}
.filter-brand-search i { color: var(--text-light); font-size: .8rem; }
.filter-brand-search input {
  border: none;
  background: none;
  outline: none;
  font-size: .84rem;
  color: var(--text);
  width: 100%;
}

/* Price range */
.price-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-input-wrap span { font-size: .72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }
.price-input-wrap input {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-size: .88rem;
  outline: none;
  background: white;
  transition: var(--transition);
  width: 100%;
}
.price-input-wrap input:focus { border-color: var(--gold); }
.price-dash { color: var(--text-light); font-size: 1.1rem; margin-top: 20px; }

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: .87rem;
  color: var(--text);
}
.toggle-switch-wrap { position: relative; }
.toggle-switch-wrap input { display: none; }
.toggle-track {
  width: 38px; height: 22px;
  background: var(--border);
  border-radius: 50px;
  position: relative;
  transition: var(--transition);
}
.toggle-track::after { content: ''; } /* needed for input:checked selector */
.toggle-switch-wrap input:checked ~ .toggle-track { background: var(--gold); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.toggle-switch-wrap input:checked ~ .toggle-track .toggle-thumb { transform: translateX(16px); }

/* Reset button */
.btn-reset-filters {
  margin-top: 6px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-reset-filters:hover { border-color: var(--error); color: var(--error); background: #fff5f5; }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 700;
  backdrop-filter: blur(2px);
}

/* ════════════════════════════════════════════════════════════
   PRODUCTS SECTION
════════════════════════════════════════════════════════════ */
.products-section {
  flex: 1;
  padding: 24px 28px;
  min-width: 0;
}

/* Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.products-count {
  font-size: .88rem;
  color: var(--text-muted);
}
.products-count strong { color: var(--text); font-weight: 600; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }

.rate-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: .8rem;
  color: #8a6d1a;
  cursor: default;
}
.rate-pill i { font-size: .75rem; }
.rate-pill strong { font-weight: 700; }

.sort-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sort-wrap select {
  appearance: none;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 36px 7px 14px;
  font-size: .84rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.sort-wrap select:focus { border-color: var(--gold); }
.sort-arrow {
  position: absolute;
  right: 12px;
  font-size: .7rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Active filter tags */
.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  padding: 4px 10px 4px 12px;
  font-size: .78rem;
  font-weight: 500;
  animation: pop-in .2s ease;
}
@keyframes pop-in {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.filter-tag button {
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  padding: 2px;
  border-radius: 50%;
  transition: var(--transition);
}
.filter-tag button:hover { color: white; background: rgba(255,255,255,.2); }

/* Loading */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: .9rem;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: .9rem; margin-bottom: 20px; }

/* ════════════════════════════════════════════════════════════
   PRODUCT GRID & CARDS
════════════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

/* Card */
.product-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

/* Image */
.card-image-wrap {
  position: relative;
  padding-top: 110%;
  overflow: hidden;
  background: var(--surface-2);
}
.card-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .card-image-wrap img { transform: scale(1.05); }

/* Image placeholder */
.card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--gold-pale) 100%);
  color: var(--gold);
}
.card-img-placeholder .placeholder-emoji { font-size: 2.5rem; }
.card-img-placeholder span { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

/* Badges */
.card-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 50px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-rupture {
  background: rgba(255,59,48,.9);
  color: white;
}
.badge-caaba {
  background: rgba(26,26,46,.88);
  color: #e8d5a0;
  backdrop-filter: blur(6px);
}
.badge-local {
  background: rgba(0,130,60,.88);
  color: white;
  backdrop-filter: blur(6px);
}
/* Local card — subtle green tint on border */
.card--local {
  border-color: #c8ead8;
}
.card--local:hover {
  border-color: #34c759;
  box-shadow: 0 6px 24px rgba(52,199,89,.12);
}

/* Wishlist btn */
.btn-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.btn-wishlist:hover, .btn-wishlist.active { color: #e91e63; }
.btn-wishlist.active i::before { content: "\f004"; } /* solid heart */

/* Out of stock overlay */
.card-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250,248,245,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.card-out-label {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* Card body */
.card-body {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.card-brand {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
}
.card-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.3;
}
.card-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 50px;
  padding: 3px 10px;
  width: fit-content;
  font-weight: 500;
}
.card-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prices */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card-prices {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 10px;
}
.price-eur {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.price-eur sup { font-size: .7em; font-weight: 500; vertical-align: super; }
.price-dzd {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #7a5c10;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: 50px;
  padding: 4px 12px;
  white-space: nowrap;
}
.price-dzd--pending {
  color: var(--text-light);
  background: var(--surface-2);
  border-color: var(--border);
  font-style: italic;
}

/* Local product — DZD only big price */
.card-prices--local {
  justify-content: flex-start;
}
.price-dzd--big {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a6e3c;
  background: #e8f5ee;
  border-color: #c8ead8;
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid #c8ead8;
}

/* Cart item type badge */
.cart-item-type-badge {
  font-size: .7rem;
  margin-left: 4px;
}
.cart-item-dzd {
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary);
}
.cart-item-eur-small {
  font-size: .73rem;
  color: var(--text-muted);
}

/* Add to cart button */
.btn-add-cart {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  background: var(--primary);
  color: white;
  border-radius: var(--r-md);
  font-size: .86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  letter-spacing: .02em;
}
.btn-add-cart:hover { background: #0d0d1a; transform: translateY(-1px); }
.btn-add-cart:active { transform: translateY(0); }
.btn-add-cart.disabled {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-add-cart.added {
  background: var(--success);
}

/* Variation chips */
.card-variations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.var-chip {
  padding: 4px 11px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.var-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.var-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--gold-light);
}
.var-chip.out {
  opacity: .5;
  text-decoration: line-through;
  cursor: default;
  pointer-events: none;
}
.var-chip-x {
  font-size: .6rem;
  opacity: .6;
}

/* Delivery / availability badge */
.card-delivery {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  background: #eef4ff;
  border: 1px solid #c5d9f7;
  font-size: .75rem;
  color: #1c5098;
  line-height: 1.4;
}
.card-delivery strong { font-weight: 700; }
.card-delivery--late {
  background: #fff8ec;
  border-color: #f5d89a;
  color: #8a5f00;
}
.card-delivery--reserve {
  background: #f0faf4;
  border-color: #6dcc95;
  color: #1a6e3c;
  font-weight: 500;
}

/* Reserve badge */
.badge-reserve {
  background: rgba(26,110,60,.88);
  color: white;
  backdrop-filter: blur(6px);
}

/* Reservable card — green accent */
.card--reservable { border-color: #b2e0c4; }
.card--reservable:hover { border-color: #34c759; box-shadow: 0 6px 24px rgba(52,199,89,.15); }

/* Reserve CTA button */
.btn-reserve-cta {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  background: linear-gradient(135deg, #1a6e3c, #34c759);
  color: white;
  border-radius: var(--r-md);
  font-size: .86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(52,199,89,.3);
}
.btn-reserve-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-reserve-cta:active { transform: translateY(0); }

/* Already in cart / reserved — confirmation state */
.btn-in-cart {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: var(--r-md);
  font-size: .86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: default;
  border: 2px dashed var(--border);
  letter-spacing: .02em;
}

/* Cart reserved item */
.cart-item--reserved { background: #f4fbf7; border-left: 3px solid #34c759; }
.cart-item-reserve {
  font-size: .72rem;
  color: #1a6e3c;
  font-weight: 600;
  margin-top: 2px;
}

/* Delivery method selector in cart */
.delivery-method-wrap {
  margin-bottom: 12px;
}
.delivery-method-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.delivery-method-chips {
  display: flex;
  gap: 8px;
}
.delivery-chip {
  flex: 1;
  cursor: pointer;
}
.delivery-chip input { display: none; }
.delivery-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.delivery-chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* Cart variation label */
.cart-item-var {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  background: var(--surface-2);
  border-radius: 50px;
  font-size: .7rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ════════════════════════════════════════════════════════════
   CART DRAWER
════════════════════════════════════════════════════════════ */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-head h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-head-count {
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 400;
}
.btn-close-cart {
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.btn-close-cart:hover { background: var(--surface-2); color: var(--text); }

/* Cart empty */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 40px;
  text-align: center;
}
.cart-empty-icon { font-size: 3rem; }
.cart-empty p { font-size: .9rem; }

/* Cart items list */
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-2);
  animation: pop-in .2s ease;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--r-md);
  flex-shrink: 0;
  background: var(--surface-2);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-brand { font-size: .7rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.cart-item-name { font-size: .9rem; font-weight: 500; color: var(--primary); margin: 2px 0 8px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; }
.qty-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.qty-btn:hover { background: var(--surface-2); color: var(--text); }
.qty-num { font-size: .88rem; font-weight: 600; color: var(--text); padding: 0 8px; min-width: 28px; text-align: center; }
.cart-item-price { text-align: right; }
.cart-item-eur { font-size: .95rem; font-weight: 600; color: var(--primary); }
.cart-item-dzd { font-size: .73rem; color: var(--gold); }
.btn-remove-item {
  color: var(--text-light);
  font-size: .8rem;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
  margin-top: 4px;
}
.btn-remove-item:hover { color: var(--error); background: #fff5f5; }

/* Cart footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
}
.cart-totals { background: white; border-radius: var(--r-md); padding: 16px; border: 1px solid var(--border-2); }
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.total-prices { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.total-eur { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--primary); }
.total-dzd { font-size: .85rem; color: var(--gold); font-weight: 600; }
.cart-note { font-size: .73rem; color: var(--text-muted); text-align: center; line-height: 1.4; }
.btn-order {
  width: 100%;
  padding: 14px;
  background: #25d366;
  color: white;
  border-radius: var(--r-md);
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  letter-spacing: .01em;
}
.btn-order:hover { transform: translateY(-1px); }
.btn-order i { font-size: 1.15rem; }

/* Two-button layout in cart footer */
.cart-order-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-order--wa {
  flex: 1;
  background: #25d366;
}
.btn-order--wa:hover { background: #1db954; box-shadow: 0 4px 20px rgba(37,211,102,.4); }
.btn-order--form {
  flex: 1.4;
  background: var(--primary);
}
.btn-order--form:hover { background: #0d0d1a; box-shadow: 0 4px 20px rgba(26,26,46,.25); }

/* ════════════════════════════════════════════════════════════
   MODALS
════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fade-in .2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: white;
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modal-in .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-in {
  from { transform: scale(.92) translateY(20px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}
.modal-setup { max-width: 520px; }
.modal-request { max-width: 540px; }

/* ── Floating request button ── */
.btn-request-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border-radius: 40px;
  font-size: .84rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(26,26,46,.25);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-request-float:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,26,46,.3); }
.btn-request-float i { font-size: .9rem; }
.btn-request-float span { transition: max-width .4s ease, opacity .4s ease; max-width: 200px; opacity: 1; overflow: hidden; }
.btn-request-float.fab--collapsed { padding: 12px; }
.btn-request-float.fab--collapsed span { max-width: 0; opacity: 0; }

/* ── Request modal ── */
.req-type-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.req-type-chip { cursor: pointer; }
.req-type-chip input { display: none; }
.req-type-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 40px;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.req-type-chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.req-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.req-cat-chip {
  padding: 7px 14px;
  border-radius: 40px;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.req-cat-chip.active, .req-cat-chip:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.req-price-wrap { display: flex; flex-direction: column; gap: 8px; }
.req-price-input-row { position: relative; }
.req-price-input-row .form-input { padding-right: 36px; }
.req-price-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}
.req-price-unknown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.req-estimate {
  margin-top: 4px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0faf4, #e8f5f0);
  border: 1.5px solid #6dcc95;
  border-radius: var(--r-md);
}
.req-estimate-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #1a6e3c;
  margin-bottom: 4px;
}
.req-estimate-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a6e3c;
  font-family: var(--font-serif);
  margin-bottom: 6px;
}
.req-estimate-note {
  font-size: .74rem;
  color: #2d7a50;
  line-height: 1.5;
}
.req-estimate-breakdown {
  font-size: .76rem;
  color: #2d7a50;
  margin-bottom: 8px;
  opacity: .85;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
}
.btn-close-modal {
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.btn-close-modal:hover { background: var(--surface-2); color: var(--text); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.modal-block { }
.modal-block-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.modal-block-title i { color: var(--gold); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--text);
  outline: none;
  background: white;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}

/* Order summary */
.order-summary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.order-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 10px 14px;
}
.order-summary-item img {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  background: white;
}
.order-summary-info { flex: 1; min-width: 0; }
.order-summary-name { font-size: .88rem; font-weight: 500; color: var(--primary); }
.order-summary-brand { font-size: .72rem; color: var(--text-muted); }
.order-summary-qty { font-size: .8rem; color: var(--text-muted); }
.order-summary-price { text-align: right; }
.order-summary-eur { font-size: .95rem; font-weight: 600; color: var(--primary); }
.order-summary-dzd { font-size: .73rem; color: var(--gold); }
.order-totals { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.order-total-row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.order-total-row strong { font-size: 1rem; font-weight: 700; color: var(--primary); }
.order-total-row.highlight strong { color: var(--gold); font-size: 1.1rem; }

/* Modal footer */
.modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-wrap: wrap;
}
.modal-order-btns {
  display: flex;
  gap: 10px;
  flex: 1;
}
.btn-secondary {
  padding: 11px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-muted);
  background: white;
  transition: var(--transition);
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  flex: 1;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: #0d0d1a; }
.btn-whatsapp {
  flex: 1;
  padding: 12px 20px;
  background: #25d366;
  color: white;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-whatsapp { flex: 1; }
.btn-whatsapp:hover { background: #1db954; box-shadow: 0 4px 16px rgba(37,211,102,.4); }

/* Google Form silent submit button */
.btn-form-order {
  flex: 2;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: .02em;
}
.btn-form-order:hover { background: #0d0d1a; box-shadow: 0 4px 16px rgba(26,26,46,.25); }
.btn-form-order:disabled { opacity: .7; cursor: not-allowed; }

/* Setup modal steps */
.setup-steps { display: flex; flex-direction: column; gap: 20px; }
.setup-step { display: flex; gap: 16px; }
.step-num {
  width: 28px; height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body { flex: 1; }
.step-body strong { display: block; font-size: .9rem; color: var(--primary); margin-bottom: 4px; }
.step-body p { font-size: .83rem; color: var(--text-muted); line-height: 1.5; }
.step-body em { color: var(--gold); font-style: normal; font-weight: 600; }
.code-block {
  display: block;
  background: var(--primary);
  color: #a8d8a8;
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: .78rem;
  font-family: 'Courier New', monospace;
  margin-top: 8px;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.6;
}
.code-block mark { background: rgba(255,215,0,.25); color: #ffd700; border-radius: 2px; }

/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: .86rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 360px;
  pointer-events: all;
  animation: toast-in .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes toast-in {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast.toast-success { background: #1a3a2a; border-left: 3px solid var(--success); }
.toast.toast-warning { background: #3a2a0a; border-left: 3px solid var(--warning); }
.toast.toast-error   { background: #3a0a0a; border-left: 3px solid var(--error); }
.toast i { font-size: 1rem; flex-shrink: 0; }
.toast.toast-success i { color: var(--success); }
.toast.toast-warning i { color: var(--warning); }
.toast.toast-error   i { color: var(--error); }
.toast.fade-out { animation: toast-out .3s ease forwards; }
@keyframes toast-out {
  to { transform: translateX(60px); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* Tablet */
@media (min-width: 900px) {
  .btn-label { display: inline; }
  .btn-filter-toggle { display: none; } /* sidebar always visible on desktop */
}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

/* Mobile / Tablet shared */
@media (max-width: 900px) {
  :root { --nav-h: 110px; }

  .navbar-search { display: none; }
  .navbar-search-mobile { display: flex; }
  .btn-clear-search { display: none !important; }

  .btn-filter-toggle { display: flex; }

  /* Sidebar becomes off-canvas */
  .filter-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 800;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    height: 100vh;
    top: 0;
    padding-top: 20px;
    padding-bottom: 120px;
    width: min(var(--sidebar-w), 90vw);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .filter-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
  .sidebar-overlay.visible { opacity: 1; pointer-events: all; }
  .btn-close-sidebar { display: flex; }
  .filter-search-mobile { display: flex; }

  .app-wrapper { padding-top: var(--nav-h); }
  .products-section { padding: 16px; }
  .products-toolbar { gap: 8px; }
  .rate-pill { display: none; }
}

@media (max-width: 900px) {
  /* ── Mobile navbar: filter | logo | cart ── */
  .navbar-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 14px;
    gap: 0;
  }

  .navbar-search { display: none !important; }

  /* Logo centered */
  .navbar-logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .navbar-logo-img { height: 58px !important; max-width: 160px; }

  /* Cart */
  .navbar-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0;
  }

  /* Filter button — now direct child of navbar-inner */
  .btn-filter-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: auto;
    height: auto;
    padding: 6px 10px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    color: var(--text);
    flex-shrink: 0;
  }
  .btn-filter-toggle i { font-size: 1rem; color: var(--primary); }
  .btn-filter-toggle .btn-label { display: inline; font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

  .logo-name { font-size: 1.1rem; }

  /* Compact navbar on scroll */
  .navbar--compact .navbar-inner { height: 44px; }
  .navbar--compact .navbar-logo-img { height: 28px !important; }
  .navbar--compact .btn-filter-toggle { padding: 3px 7px; }
  .navbar--compact .btn-filter-toggle i { font-size: .8rem; }
  .navbar--compact .btn-filter-toggle .btn-label { font-size: .48rem; }
  .navbar--compact .btn-cart { width: 34px; height: 34px; }
  .navbar--compact .btn-cart i { font-size: .9rem; }
  .navbar--compact .navbar-search-mobile { padding: 5px 14px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 90px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 1rem; }
  .price-eur { font-size: 1.2rem; }
  .price-dzd { font-size: .95rem; }
  .btn-add-cart { font-size: .8rem; padding: 9px; }

  .cart-drawer {
    width: 100vw;
    height: 100dvh; /* dynamic viewport height — excludes browser chrome */
  }
  .cart-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 16px));
  }

  .modal {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    margin-top: auto;
    max-height: 92dvh;
  }
  .modal-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 16px));
  }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .form-grid { grid-template-columns: 1fr; }

  .setup-banner-inner { flex-wrap: wrap; }

  .toast-container { right: 12px; left: 12px; bottom: 16px; }
  .toast { min-width: 0; width: 100%; }
}

@media (max-width: 500px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   HERO STRIPE (decorative top of products section)
════════════════════════════════════════════════════════════ */
.hero-stripe {
  background: linear-gradient(135deg, var(--primary) 0%, #2d2d4a 50%, var(--primary) 100%);
  color: white;
  padding: 28px 32px;
  border-radius: var(--r-xl);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.hero-stripe::before {
  content: '✦';
  position: absolute;
  right: 140px; top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: .05;
  color: var(--gold);
  pointer-events: none;
}
.hero-stripe::after {
  content: '✦';
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: .05;
  color: var(--gold);
  pointer-events: none;
}
.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.hero-text h1 em { font-style: italic; color: var(--gold-light); }
.hero-text p { font-size: .85rem; opacity: .7; }
.hero-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat span { font-size: .72rem; opacity: .6; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 700px) {
  .hero-stripe {
    padding: 22px 20px;
    border-radius: 0;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .hero-text h1 { font-size: 1.4rem; }
  .hero-text p { font-size: .8rem; }
  .hero-stats {
    display: flex;
    gap: 0;
    width: 100%;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .hero-stat strong { font-size: 1.2rem; }
  .hero-stat span { font-size: .64rem; }
}
