/* =====================================================
   FabNova – boutique.css
   Remappé sur style.css v7.0 (thème blanc/navy/teal)
   Variables utilisées :
     --bg-page --bg-alt --bg-card --bg-input
     --tx-h --tx-b --tx-m --tx-ph
     --tx-inv --tx-inv-2 --tx-inv-3
     --ac --ac-dark --ac-light --ac-bg --ac-bdr
     --btn-cy --btn-cy-sh
     --div-l --div-d
     --sh-xs --sh-sm --sh-md --sh-ac
     --r --r-lg --r-xl --pill
     --fh --fb --fm --ease --nh
   ===================================================== */

/* ─────────────────────────────────────────────────────
   VARIABLES BOUTIQUE (locales)
   Compatibles avec le thème clair v7.0
───────────────────────────────────────────────────── */
:root {
  /* Alias → ancien nom = nouvelle variable */
  --bg-mid        : var(--bg-alt);
  --bg-dark       : #071828;
  --border        : var(--div-l);
  --border-hover  : var(--ac-bdr);
  --text-primary  : var(--tx-h);
  --text-secondary: var(--tx-b);
  --text-dim      : var(--tx-m);
  --cyan          : var(--ac);
  --cyan-dim      : var(--ac-bg);
  --gradient      : var(--btn-cy);
  --font-heading  : var(--fh);
  --font-body     : var(--fb);
  --font-mono     : var(--fm);
  --radius        : var(--r);
  --radius-lg     : var(--r-lg);
  --transition    : var(--ease);
  --navbar-h      : var(--nh);
  --shadow-cyan   : var(--sh-ac);
  --shadow-card   : var(--sh-sm);
}

/* ─────────────────────────────────────────────────────
   SHOP GLOBAL
───────────────────────────────────────────────────── */
.shop-page { padding-top: var(--nh); background: var(--bg-page); }

/* ─────────────────────────────────────────────────────
   SHOP HERO
───────────────────────────────────────────────────── */
.shop-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--div-l);
  padding: 48px 0 40px;
}
.shop-hero-content h1 {
  font-size: clamp(1.8rem,3.5vw,2.4rem);
  font-family: var(--fh); font-weight: 800;
  color: var(--tx-h); margin-bottom: 8px;
}
.shop-hero-content p {
  color: var(--tx-b); font-size: 1rem;
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--tx-m);
  font-family: var(--fm); margin-bottom: 16px;
}
.breadcrumb a { color: var(--tx-b); transition: color .2s; }
.breadcrumb a:hover { color: var(--ac); }
.breadcrumb span { color: var(--div-l); 
}

/* ─────────────────────────────────────────────────────
   🛒 BOUTON PANIER FLOTTANT — cercle visible droite
───────────────────────────────────────────────────── */
.cart-fab {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;

  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--btn-cy);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 6px 28px var(--btn-cy-sh), 0 0 0 4px rgba(14,165,201,.15);
  transition: var(--ease);
  outline: none;
}
.cart-fab:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 36px var(--btn-cy-sh), 0 0 0 6px rgba(14,165,201,.20);
}
.cart-fab:active { transform: translateY(-50%) scale(.96); }

/* Badge nombre d'articles */
.cart-fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-family: var(--fm); font-size: .68rem; font-weight: 700;
  border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-page);
  line-height: 1;
  transition: var(--ease);
}
.cart-fab-badge.hidden { opacity: 0; transform: scale(0); }

/* Tooltip label au survol */
.cart-fab::before {
  content: 'Mon panier';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%; transform: translateY(-50%);
  background: var(--tx-h);
  color: #fff;
  font-family: var(--fb); font-size: .78rem; font-weight: 600;
  padding: 6px 12px; border-radius: var(--r);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.cart-fab:hover::before { opacity: 1; }

/* Petit bouton panier dans la navbar (desktop) */
.cart-nav-btn {
  position: relative;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.82);
  font-size: 1rem; cursor: pointer;
  transition: var(--ease);
}
.cart-nav-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--btn-cy);
  color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fm); line-height: 1;
  border: 2px solid var(--nav-bg);
}

/* ─────────────────────────────────────────────────────
   SHOP LAYOUT
───────────────────────────────────────────────────── */
.shop-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 100px;
  align-items: start;
}

/* ─────────────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────────────── */
.shop-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--div-l);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--nh) + 20px);
  box-shadow: var(--sh-xs);
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--div-l);
}
.sidebar-header h3 {
  font-size: 1rem; font-family: var(--fh); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--tx-h);
}
.sidebar-header h3 i { color: var(--ac); }

.clear-filters {
  font-size: .75rem; color: var(--tx-m);
  background: none; border: none; cursor: pointer;
  font-family: var(--fm); transition: color .2s;
}
.clear-filters:hover { color: var(--ac); }

.filter-block { margin-bottom: 24px; }
.filter-block h4 {
  font-size: .8rem; font-family: var(--fh); font-weight: 700;
  color: var(--tx-m); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 12px;
}

/* Search */
.search-input-wrap { position: relative; }
.search-input-wrap i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--tx-m); font-size: .85rem;
}
.search-input-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--div-l);
  border-radius: var(--r);
  padding: 10px 12px 10px 36px;
  color: var(--tx-h);
  font-family: var(--fb); font-size: .86rem;
  outline: none; transition: var(--ease);
}
.search-input-wrap input::placeholder { color: var(--tx-ph); }
.search-input-wrap input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(12,100,120,.10);
}

/* Categories */
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r);
  cursor: pointer; transition: var(--ease);
  color: var(--tx-b); font-size: .88rem; font-weight: 500;
}
.cat-item:hover, .cat-item.active {
  background: var(--ac-bg); color: var(--ac);
}
.cat-item i { width: 16px; text-align: center; font-size: .85rem; flex-shrink: 0; }
.cat-count {
  margin-left: auto;
  background: var(--bg-alt);
  border: 1px solid var(--div-l);
  border-radius: var(--pill);
  padding: 1px 8px;
  font-size: .72rem; font-family: var(--fm);
  color: var(--tx-m);
}
.cat-item.active .cat-count {
  background: var(--ac-bg); border-color: var(--ac-bdr);
  color: var(--ac);
}

/* Price Range */
.price-range input[type="range"] {
  width: 100%; accent-color: var(--ac);
  cursor: pointer; margin-bottom: 8px;
}
.price-labels {
  display: flex; justify-content: space-between;
  font-size: .78rem; color: var(--tx-m); font-family: var(--fm);
}

/* Checkbox */
.checkbox-item {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: .88rem; color: var(--tx-b);
  user-select: none;
}
.checkbox-item input { display: none; }
.checkmark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--div-l);
  border-radius: 4px; background: var(--bg-input);
  flex-shrink: 0; transition: var(--ease); position: relative;
}
.checkbox-item input:checked + .checkmark {
  background: var(--btn-cy); border-color: var(--ac);
}
.checkbox-item input:checked + .checkmark::after {
  content: '';
  position: absolute; top: 3px; left: 6px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* Promo banner */
.sidebar-promo {
  background: var(--ac-bg);
  border: 1px solid var(--ac-bdr);
  border-radius: var(--r);
  padding: 14px; text-align: center;
  font-size: .82rem; color: var(--tx-b);
}
.sidebar-promo i { color: var(--ac); font-size: 1rem; margin-bottom: 6px; display: block; }
.sidebar-promo strong { color: var(--tx-h); display: block; margin-bottom: 2px; font-weight: 700; }

/* ─────────────────────────────────────────────────────
   SHOP MAIN
───────────────────────────────────────────────────── */
.shop-main { min-width: 0; }

/* Toolbar */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--div-l);
  border-radius: var(--r);
  padding: 12px 20px; margin-bottom: 24px;
  gap: 16px; flex-wrap: wrap;
  box-shadow: var(--sh-xs);
}
.results-count {
  font-size: .85rem; color: var(--tx-b); font-family: var(--fm);
}
.results-count span { color: var(--ac); font-weight: 700; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }

.sort-select {
  background: var(--bg-input);
  border: 1px solid var(--div-l);
  border-radius: var(--r);
  padding: 8px 12px;
  color: var(--tx-b); font-family: var(--fb); font-size: .85rem;
  outline: none; cursor: pointer; transition: var(--ease);
}
.sort-select:focus { border-color: var(--ac); color: var(--tx-h); }
.sort-select option { background: var(--bg-card); color: var(--tx-h); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px;
  background: transparent; border: 1px solid var(--div-l);
  border-radius: 6px; color: var(--tx-m); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: var(--ease);
}
.view-btn.active, .view-btn:hover {
  background: var(--ac-bg); border-color: var(--ac-bdr); color: var(--ac);
}

.filter-toggle-btn {
  display: none; align-items: center; gap: 6px;
  background: var(--bg-input); border: 1px solid var(--div-l);
  border-radius: var(--r); padding: 8px 14px;
  color: var(--tx-b); font-size: .85rem; font-family: var(--fb);
  cursor: pointer; transition: var(--ease);
}
.filter-toggle-btn:hover { border-color: var(--ac); color: var(--ac); }

/* ─────────────────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; transition: var(--ease);
}
.products-grid.list-view { grid-template-columns: 1fr; }
.products-grid.list-view .product-card { flex-direction: row; max-height: 160px; }
.products-grid.list-view .product-img  { width: 160px; height: 100%; flex-shrink: 0; border-radius: var(--r) 0 0 var(--r); }
.products-grid.list-view .product-info { flex: 1; }
.products-grid.list-view .product-short-desc { display: block !important; }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--div-l);
  border-radius: var(--r-lg);
  overflow: hidden; transition: var(--ease);
  position: relative; display: flex; flex-direction: column;
  box-shadow: var(--sh-xs);
}
.product-card:hover {
  border-color: var(--ac-bdr);
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}

/* Badge produit */
.product-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: .68rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--pill); font-family: var(--fm);
  letter-spacing: 1px; text-transform: uppercase;
}
.badge-cyan   { background: var(--ac-bg);              color: var(--ac);    border: 1px solid var(--ac-bdr); }
.badge-orange { background: rgba(217,119,6,.12);        color: #b45309;      border: 1px solid rgba(217,119,6,.25); }
.badge-green  { background: rgba(22,163,74,.12);        color: #15803d;      border: 1px solid rgba(22,163,74,.25); }
.badge-red    { background: rgba(220,38,38,.10);        color: #b91c1c;      border: 1px solid rgba(220,38,38,.22); }

/* Product Image */
.product-img-link { display: block; }
.product-img {
  height: 200px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--prod-color, var(--ac)) 8%, var(--bg-alt)),
    var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; cursor: pointer;
  transition: var(--ease);
}
.product-card:hover .product-img { background: linear-gradient(135deg,
  color-mix(in srgb, var(--prod-color, var(--ac)) 14%, var(--bg-alt)),
  var(--bg-alt)); }

.product-img-icon {
  font-size: 3.5rem;
  color: var(--prod-color, var(--ac));
  opacity: .7; transition: var(--ease);
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--prod-color, var(--ac)) 60%, transparent));
}
.product-card:hover .product-img-icon { opacity: 1; transform: scale(1.08); }

.product-img-wrap { position: relative; display: block; }
.product-img-overlay {
  position: absolute; inset: 0;
  background: rgba(7,24,40,.68);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--ease); z-index: 2;
  pointer-events: none;
}
.product-card:hover .product-img-overlay { opacity: 1; pointer-events: all; }

.quick-view-btn {
  background: rgba(14,165,201,.18);
  border: 1px solid rgba(14,165,201,.45);
  color: #fff;
  padding: 9px 18px; border-radius: var(--r);
  font-size: .84rem; font-family: var(--fh); font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  transition: var(--ease);
}
.quick-view-btn:hover { background: rgba(14,165,201,.35); }

/* Product Info */
.product-info {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}

.product-cat-tag {
  display: inline-block;
  font-size: .68rem; font-family: var(--fm); letter-spacing: 1px;
  text-transform: uppercase; color: var(--ac);
  background: var(--ac-bg); border: 1px solid var(--ac-bdr);
  padding: 2px 9px; border-radius: 4px;
}

.product-name {
  font-size: .95rem; font-family: var(--fh); font-weight: 700;
  color: var(--tx-h); line-height: 1.3; transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-card:hover .product-name { color: var(--ac); }

.product-rating {
  display: flex; align-items: center; gap: 6px; font-size: .78rem;
}
.stars-wrap { color: #d97706; font-size: .75rem; letter-spacing: 1px; }
.rating-val { color: var(--tx-h); font-weight: 600; }
.reviews-count { color: var(--tx-m); }

.product-short-desc {
  font-size: .82rem; color: var(--tx-b); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  display: none;
}

.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; gap: 10px; flex-wrap: wrap;
}

.product-price-wrap { display: flex; align-items: baseline; gap: 8px; }
.product-price {
  font-size: 1.12rem; font-weight: 700; font-family: var(--fh);
  color: var(--ac);  /* teal foncé = 5.5:1 sur blanc ✓ */
}
.product-old-price {
  font-size: .82rem; color: var(--tx-m); text-decoration: line-through;
}

.product-stock {
  display: flex; align-items: center; gap: 4px;
  font-size: .72rem; font-family: var(--fm); font-weight: 600;
}
.in-stock  { color: #15803d; }
.low-stock { color: #b45309; }
.out-stock { color: #b91c1c; }

.product-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Bouton ajouter au panier */
.btn-add-cart {
  flex: 1;
  background: var(--ac-bg);
  border: 1.5px solid var(--ac-bdr);
  border-radius: var(--r);
  padding: 10px 14px;
  color: var(--ac);
  font-family: var(--fh); font-size: .88rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--ease);
}
.btn-add-cart:hover:not(:disabled) {
  background: var(--btn-cy); color: #fff; border-color: transparent;
  box-shadow: var(--sh-ac);
}
.btn-add-cart:disabled { opacity: .4; cursor: not-allowed; }
.btn-add-cart.adding {
  background: var(--btn-cy); color: #fff; border-color: transparent;
  animation: cartPop .3s ease;
}
@keyframes cartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(.95); }
  100% { transform: scale(1); }
}

.btn-view-detail {
  width: 40px; height: 40px;
  background: var(--bg-alt); border: 1px solid var(--div-l);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-m); font-size: .88rem;
  transition: var(--ease); flex-shrink: 0; text-decoration: none;
}
.btn-view-detail:hover { border-color: var(--ac-bdr); color: var(--ac); background: var(--ac-bg); }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--tx-m);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; display: block; color: var(--ac-bdr); }
.empty-state h3 { font-size: 1.3rem; color: var(--tx-h); margin-bottom: 8px; }
.empty-state p { font-size: .9rem; color: var(--tx-b); }
.link-btn { background: none; border: none; color: var(--ac); cursor: pointer; text-decoration: underline; font-weight: 600; }

/* ─────────────────────────────────────────────────────
   CART DRAWER
───────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px); z-index: 900;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: -440px; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--bg-page);
  border-left: 1px solid var(--div-l);
  z-index: 950; display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--div-l);
  background: var(--bg-card);
}
.cart-drawer-header h3 {
  font-family: var(--fh); font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; color: var(--tx-h);
}
.cart-drawer-header h3 i { color: var(--ac); }

.cart-close {
  width: 36px; height: 36px;
  background: var(--bg-alt); border: 1px solid var(--div-l);
  border-radius: var(--r); color: var(--tx-m);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.cart-close:hover { border-color: #ef4444; color: #ef4444; }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--tx-m); }
.cart-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; color: var(--ac-bdr); }
.cart-empty p { color: var(--tx-b); margin-bottom: 4px; }
.cart-empty span { font-size: .82rem; color: var(--tx-m); }

/* Cart Item */
.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--div-l);
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item:last-child { border-bottom: none; }

.cart-item-icon {
  width: 52px; height: 52px; border-radius: var(--r); flex-shrink: 0;
  background: var(--bg-alt); border: 1px solid var(--div-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--ac);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: .86rem; font-weight: 700; color: var(--tx-h);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.cart-item-qty-price { display: flex; align-items: center; gap: 10px; }
.cart-item-qty-ctrl  { display: flex; align-items: center; gap: 4px; }

.qty-mini-btn {
  width: 24px; height: 24px;
  background: var(--bg-alt); border: 1px solid var(--div-l);
  border-radius: 4px; color: var(--tx-m);
  font-size: .7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.qty-mini-btn:hover { border-color: var(--ac); color: var(--ac); }

.cart-item-qty {
  width: 28px; text-align: center;
  font-family: var(--fm); font-size: .84rem; color: var(--tx-h);
}
.cart-item-price {
  font-size: .9rem; font-weight: 700; font-family: var(--fh); color: var(--ac);
}
.cart-item-remove {
  background: none; border: none; color: var(--tx-m);
  cursor: pointer; font-size: .9rem; padding: 4px;
  transition: color .2s; flex-shrink: 0;
}
.cart-item-remove:hover { color: #ef4444; }

/* Cart Footer */
.cart-footer,
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--div-l);
  background: var(--bg-alt);
}
.cart-subtotal, .cart-shipping {
  display: flex; justify-content: space-between;
  font-size: .85rem; color: var(--tx-b); margin-bottom: 8px;
}
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 1.05rem; font-weight: 700; font-family: var(--fh);
  color: var(--tx-h); padding-top: 10px; margin-bottom: 16px;
  border-top: 1px solid var(--div-l);
}
.cart-total span:last-child { color: var(--ac); }

.btn-checkout, .btn-cart-checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px; margin-bottom: 10px;
  background: var(--btn-cy); color: #fff;
  border: none; border-radius: var(--pill);
  font-family: var(--fh); font-size: .95rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: var(--ease);
  box-shadow: var(--sh-ac);
}
.btn-checkout:hover, .btn-cart-checkout:hover {
  filter: brightness(1.08); transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--btn-cy-sh);
}

.btn-cart-continue {
  width: 100%; background: none; border: none; color: var(--tx-m);
  cursor: pointer; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: color .2s; font-family: var(--fb);
}
.btn-cart-continue:hover { color: var(--ac); }

/* ─────────────────────────────────────────────────────
   QUICK VIEW MODAL
───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px); z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.quick-view-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.92);
  width: 700px; max-width: calc(100vw - 40px);
  max-height: 88vh; overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--div-l);
  border-radius: var(--r-xl);
  z-index: 1001;
  opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
}
.quick-view-modal.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px;
  background: var(--bg-alt); border: 1px solid var(--div-l);
  border-radius: var(--r); cursor: pointer; color: var(--tx-m);
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.modal-close:hover { border-color: #ef4444; color: #ef4444; }
.modal-content { padding: 32px; }

/* Quick View Grid */
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.qv-img {
  height: 240px; border-radius: var(--r);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.qv-title { font-size: 1.2rem; font-family: var(--fh); font-weight: 700; color: var(--tx-h); margin-bottom: 8px; }
.qv-price { font-size: 1.4rem; font-weight: 700; font-family: var(--fh); color: var(--ac); margin-bottom: 12px; }
.qv-desc  { font-size: .86rem; color: var(--tx-b); margin-bottom: 16px; line-height: 1.65; }
.qv-specs { margin-bottom: 20px; }
.qv-spec-item {
  display: flex; gap: 8px; font-size: .8rem;
  padding: 5px 0; border-bottom: 1px solid var(--div-l);
}
.qv-spec-item span:first-child { color: var(--tx-m); width: 120px; flex-shrink: 0; }
.qv-spec-item span:last-child  { color: var(--tx-h); }

/* ─────────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid rgba(21,128,61,.30);
  border-radius: var(--r); padding: 12px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--tx-h);
  box-shadow: var(--sh-md);
  z-index: 2000; transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s;
  opacity: 0; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i { color: #15803d; font-size: 1.1rem; }

/* ─────────────────────────────────────────────────────
   PRODUCT DETAIL PAGE
───────────────────────────────────────────────────── */
.product-breadcrumb {
  padding: 20px 0;
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--tx-m); font-family: var(--fm);
}
.product-breadcrumb a { color: var(--tx-b); transition: color .2s; }
.product-breadcrumb a:hover { color: var(--ac); }

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start; padding-bottom: 60px; padding-top: 20px;
}

/* Gallery */
.product-gallery { position: sticky; top: calc(var(--nh) + 20px); }
.gallery-main {
  height: 400px; border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--div-l);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; margin-bottom: 16px; cursor: zoom-in;
}
.gallery-main-icon {
  font-size: 7rem;
  color: var(--prod-color, var(--ac));
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--prod-color, var(--ac)) 70%, transparent));
  transition: var(--ease);
}
.gallery-zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(7,24,40,.55); color: rgba(255,255,255,.70);
  padding: 5px 8px; border-radius: 6px; font-size: .75rem;
  display: flex; align-items: center; gap: 4px;
}
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb {
  flex: 1; height: 80px; border-radius: var(--r);
  background: var(--bg-alt); border: 2px solid var(--div-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--tx-m);
  cursor: pointer; transition: var(--ease);
}
.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--ac); background: var(--ac-bg);
}

/* Detail Right */
.product-sku { font-size: .75rem; color: var(--tx-m); font-family: var(--fm); }
.product-detail-title { font-size: 1.8rem; font-family: var(--fh); font-weight: 800; color: var(--tx-h); margin-bottom: 12px; }
.product-detail-desc  { font-size: .93rem; color: var(--tx-b); line-height: 1.75; margin-bottom: 20px; }

.product-detail-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.detail-price {
  font-size: 2rem; font-weight: 700; font-family: var(--fh); color: var(--ac);
}
.detail-old-price { font-size: 1.1rem; color: var(--tx-m); text-decoration: line-through; }
.detail-discount {
  background: rgba(217,119,6,.10); color: #b45309;
  border: 1px solid rgba(217,119,6,.22);
  padding: 3px 10px; border-radius: var(--pill);
  font-size: .78rem; font-family: var(--fm);
}

.meta-row {
  display: flex; gap: 12px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--div-l);
  font-size: .86rem;
}
.meta-label { color: var(--tx-m); width: 120px; flex-shrink: 0; }

.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.product-tag {
  font-family: var(--fm); font-size: .72rem; color: var(--tx-m);
  border: 1px solid var(--div-l); padding: 3px 10px; border-radius: 6px;
  background: var(--bg-alt); transition: var(--ease);
}
.product-tag:hover { color: var(--ac); border-color: var(--ac-bdr); }

/* Qty */
.product-add-section { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--div-l); border-radius: var(--r);
  overflow: hidden; background: var(--bg-input);
}
.qty-btn {
  width: 40px; height: 44px; background: transparent;
  border: none; color: var(--tx-m); cursor: pointer; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.qty-btn:hover { background: var(--ac-bg); color: var(--ac); }
#qtyInput {
  width: 50px; text-align: center; background: transparent;
  border: none; color: var(--tx-h); font-family: var(--fm); font-size: .95rem; outline: none;
}
.btn-add-cart-detail { flex: 1; justify-content: center; padding: 12px 20px; }

.btn-whatsapp-order {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(22,163,74,.10); border: 1px solid rgba(22,163,74,.28);
  border-radius: var(--r); padding: 12px 20px;
  color: #15803d; font-family: var(--fh); font-size: .95rem; font-weight: 700;
  transition: var(--ease); margin-bottom: 20px; cursor: pointer; text-decoration: none;
  display: flex;
}
.btn-whatsapp-order:hover { background: rgba(22,163,74,.18); }
.btn-whatsapp-order i { font-size: 1.2rem; }

.product-guarantees {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 16px; background: var(--bg-alt);
  border-radius: var(--r); border: 1px solid var(--div-l);
}
.guarantee-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--tx-b); }
.guarantee-item i { color: var(--ac); font-size: .85rem; }

/* ─────────────────────────────────────────────────────
   TABS
───────────────────────────────────────────────────── */
.product-tabs-section { padding: 48px 0; border-top: 1px solid var(--div-l); }
.tabs-header {
  display: flex; gap: 4px; border-bottom: 1px solid var(--div-l);
  margin-bottom: 32px; overflow-x: auto;
}
.tab-btn {
  padding: 12px 20px; background: none; border: none;
  border-bottom: 2px solid transparent;
  color: var(--tx-m); font-family: var(--fh); font-size: .95rem;
  cursor: pointer; white-space: nowrap; transition: var(--ease);
  margin-bottom: -1px; font-weight: 600;
}
.tab-btn:hover { color: var(--tx-h); }
.tab-btn.active { color: var(--ac); border-bottom-color: var(--ac); }

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-inner { font-size: .92rem; color: var(--tx-b); line-height: 1.82; max-width: 800px; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) td,
.specs-table tr:nth-child(even) th { background: var(--bg-alt); }
.specs-table th {
  width: 200px; text-align: left; padding: 12px 16px;
  color: var(--tx-m); font-weight: 600; font-size: .85rem;
  border-bottom: 1px solid var(--div-l);
}
.specs-table td {
  padding: 12px 16px; color: var(--tx-h); font-size: .85rem;
  border-bottom: 1px solid var(--div-l);
}

/* Delivery Cards */
.delivery-info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.delivery-card {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r); padding: 20px; box-shadow: var(--sh-xs);
}
.delivery-card i { font-size: 1.5rem; color: var(--ac); margin-bottom: 10px; display: block; }
.delivery-card h4 { font-size: .95rem; font-weight: 700; color: var(--tx-h); margin-bottom: 6px; }
.delivery-card p { font-size: .82rem; color: var(--tx-b); }
.price-delivery  { font-size: 1.1rem; font-weight: 700; color: var(--ac); font-family: var(--fh); margin: 6px 0 4px; }
.delivery-card small { font-size: .75rem; color: var(--tx-m); }

/* Reviews */
.reviews-summary {
  display: flex; gap: 40px; align-items: center;
  margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--div-l);
}
.score-big {
  display: block; font-size: 3.5rem; font-weight: 700;
  font-family: var(--fh); color: var(--ac);
}
.reviews-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: .78rem; }
.bar-row > span:first-child { width: 24px; color: var(--tx-m); text-align: right; flex-shrink: 0; }
.bar-row > span:last-child  { width: 32px; color: var(--tx-m); font-family: var(--fm); flex-shrink: 0; }
.bar { flex: 1; height: 6px; background: var(--div-l); border-radius: 3px; overflow: hidden; }
.bar div { height: 100%; background: var(--btn-cy); border-radius: 3px; }

.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r); padding: 20px; box-shadow: var(--sh-xs);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.reviewer-avatar {
  width: 38px; height: 38px; background: var(--btn-cy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.review-date { margin-left: auto; font-size: .75rem; color: var(--tx-m); font-family: var(--fm); }
.review-item > p { font-size: .88rem; color: var(--tx-b); line-height: 1.72; font-style: italic; }

/* ─────────────────────────────────────────────────────
   CHECKOUT / PANIER
───────────────────────────────────────────────────── */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 32px; align-items: start; padding-bottom: 80px;
}
.order-summary {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-lg); padding: 28px;
  position: sticky; top: calc(var(--nh) + 20px); box-shadow: var(--sh-xs);
}
.order-summary h3 {
  font-family: var(--fh); font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--tx-h);
}
.order-summary h3 i { color: var(--ac); }
.summary-line {
  display: flex; justify-content: space-between;
  font-size: .85rem; color: var(--tx-b);
  padding: 7px 0; border-bottom: 1px solid var(--div-l);
}
.summary-total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 700; font-family: var(--fh);
  color: var(--tx-h); padding: 14px 0; margin: 10px 0;
  border-top: 1px solid var(--div-l);
}
.summary-total span:last-child { color: var(--ac); }

.shipping-option {
  background: var(--bg-alt); border: 1.5px solid var(--div-l);
  border-radius: var(--r); padding: 12px 14px; cursor: pointer; transition: var(--ease);
  margin-bottom: 8px;
}
.shipping-option:has(input:checked) { border-color: var(--ac); background: var(--ac-bg); }
.shipping-name { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--tx-h); }
.shipping-name i { color: var(--ac); }
.shipping-price { font-size: .88rem; font-weight: 700; color: var(--ac); }
.shipping-option small { font-size: .75rem; color: var(--tx-m); font-family: var(--fm); }

.cart-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-xs);
}
.cart-table th {
  background: var(--bg-alt); padding: 14px 16px; text-align: left;
  font-size: .78rem; font-family: var(--fh); font-weight: 700;
  color: var(--tx-m); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--div-l);
}
.cart-table td {
  padding: 16px; font-size: .9rem; color: var(--tx-h);
  border-bottom: 1px solid var(--div-l); vertical-align: middle;
}
.cart-table tr:last-child td { border-bottom: none; }
.cart-table tr:hover td { background: var(--bg-alt); }

.ct-product-icon {
  width: 50px; height: 50px; border-radius: var(--r);
  background: var(--bg-alt); border: 1px solid var(--div-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--ac); flex-shrink: 0;
}
.ct-qty-btn {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--div-l);
  color: var(--tx-m); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; transition: var(--ease);
}
.ct-qty-btn:hover { border-color: var(--ac); color: var(--ac); }
.ct-remove { background: none; border: none; color: var(--tx-m); cursor: pointer; padding: 6px; font-size: 1rem; transition: color .2s; }
.ct-remove:hover { color: #ef4444; }
.ct-price-strong { font-weight: 700; font-family: var(--fh); color: var(--ac); font-size: 1rem; }

.coupon-input-wrap input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--div-l);
  border-radius: var(--r); padding: 10px 14px;
  color: var(--tx-h); font-family: var(--fb); font-size: .9rem; outline: none;
}
.coupon-input-wrap input:focus { border-color: var(--ac); }

/* Progress checkout */
.step-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--div-l); background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-m); font-size: 1rem; transition: var(--ease);
}
.progress-step.active .step-circle {
  border-color: var(--ac); background: var(--ac-bg); color: var(--ac);
  box-shadow: 0 0 16px var(--ac-bg);
}
.progress-step.done .step-circle { border-color: #15803d; background: rgba(21,128,61,.10); color: #15803d; }
.progress-step span { font-size: .75rem; font-family: var(--fm); color: var(--tx-m); }
.progress-step.active span { color: var(--ac); }
.progress-step.done span { color: #15803d; }
.progress-line { flex: 1; height: 2px; background: var(--div-l); margin-top: -20px; }
.progress-line.done { background: #15803d; }

/* Checkout section blocks */
.checkout-section {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; box-shadow: var(--sh-xs);
}
.checkout-section-title {
  font-family: var(--fh); font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; color: var(--tx-h);
}
.checkout-section-title i { color: var(--ac); }
.step-num {
  width: 26px; height: 26px; background: var(--btn-cy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Payment Options */
.payment-option {
  background: var(--bg-alt); border: 1.5px solid var(--div-l);
  border-radius: var(--r); padding: 14px 16px; cursor: pointer;
  transition: var(--ease); margin-bottom: 10px;
}
.payment-option:has(input:checked) { border-color: var(--ac); background: var(--ac-bg); }
.payment-content { display: flex; align-items: center; gap: 14px; }
.payment-content > i { font-size: 1.5rem; color: var(--tx-m); }
.payment-content strong { display: block; font-size: .9rem; color: var(--tx-h); margin-bottom: 2px; }
.payment-content small { font-size: .78rem; color: var(--tx-m); }

/* ─────────────────────────────────────────────────────
   CONFIRMATION PAGE
───────────────────────────────────────────────────── */
.confirmation-card {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-xl); padding: 48px; text-align: center; box-shadow: var(--sh-sm);
}
.confirm-anim i {
  font-size: 5rem; color: #15803d;
  animation: confirmPop .6s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes confirmPop {
  from { opacity: 0; transform: scale(.3); }
  to   { opacity: 1; transform: scale(1); }
}
.order-ref-number {
  font-size: 1.3rem; font-family: var(--fm); font-weight: 700; color: var(--ac);
}
.next-step {
  background: var(--bg-alt); border: 1px solid var(--div-l);
  border-radius: var(--r); padding: 20px;
}
.next-step i { font-size: 1.3rem; color: var(--ac); margin-bottom: 10px; display: block; }
.next-step h4 { font-size: .9rem; font-weight: 700; color: var(--tx-h); margin-bottom: 6px; }
.next-step p  { font-size: .82rem; color: var(--tx-b); line-height: 1.65; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */
/* ══════════════════════════════════════════
   RESPONSIVE MOBILE — Boutique & Produit
══════════════════════════════════════════ */

/* ── Tablette 1024px ── */
@media (max-width: 1024px) {
  .shop-container     { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed; top: 0; left: -320px; bottom: 0;
    width: 300px; z-index: 800; border-radius: 0;
    border-right: 1px solid var(--div-l); overflow-y: auto;
    transition: left .3s ease; padding-top: 70px;
  }
  .shop-sidebar.open  { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  .filter-toggle-btn  { display: flex; }
  .product-detail     { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery    { position: static; }
  .checkout-layout    { grid-template-columns: 1fr; }
  .order-summary      { position: static; }
  .cart-fab           { right: 16px; width: 54px; height: 54px; font-size: 1.2rem; }
  .panier-layout      { grid-template-columns: 1fr; }
  .summary-card       { position: static; }
}

/* ── Mobile 768px ── */
@media (max-width: 768px) {
  /* Navbar boutique */
  .nav-container      { padding: 0 14px; }

  /* Boutique — grille produits */
  .products-grid      { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card       { border-radius: 10px; }
  .product-img        { height: 160px; }
  .product-info       { padding: 12px; }
  .product-name       { font-size: .88rem; }
  .product-price      { font-size: 1rem; }
  .product-actions    { gap: 8px; }
  .btn-add-cart       { font-size: .8rem; padding: 8px 10px; }

  /* Produit detail */
  .product-detail     { grid-template-columns: 1fr; gap: 20px; padding: 0 14px; }
  .product-gallery    { position: static; }
  .gallery-main       { height: 280px; border-radius: 12px; }
  .gallery-thumbs     { gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .gallery-thumb      { width: 60px; height: 60px; flex-shrink: 0; }
  .product-detail-title { font-size: 1.4rem; }
  .product-detail-price { flex-wrap: wrap; gap: 8px; }
  .detail-price       { font-size: 1.6rem; }
  .product-add-section { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-add-cart-detail { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
  .qty-control        { justify-content: center; }
  .btn-whatsapp-order { justify-content: center; text-align: center; }
  .product-guarantees { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .guarantee-item     { flex-direction: column; gap: 4px; font-size: .75rem; text-align: center; }

  /* Tabs */
  .tabs-header        { gap: 6px; flex-wrap: wrap; }
  .tab-btn            { padding: 8px 14px; font-size: .82rem; flex-grow: 1; }
  .delivery-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .delivery-card      { padding: 16px; }

  /* Drawer panier — plein écran mobile */
  .cart-drawer        { width: 100%; right: -100%; }
  .cart-drawer.open   { right: 0; }
  .cart-drawer-header { padding: 16px 18px; }
  .cart-footer        { padding: 14px 18px; }
  .cart-item          { padding: 12px 16px; gap: 10px; }
  .cart-item-icon     { width: 44px; height: 44px; }

  /* FAB panier */
  .cart-fab           { top: auto; bottom: 24px; right: 50%; transform: translateX(50%); }
  .cart-fab:hover     { transform: translateX(50%) scale(1.08); }
  .cart-fab::before   { display: none; }

  /* Panier page */
  .panier-heading     { flex-direction: column; align-items: flex-start; gap: 8px; }
  .panier-heading h1  { font-size: 1.3rem; }
  .panier-layout      { grid-template-columns: 1fr; gap: 18px; }
  .checkout-steps     { padding: 14px 16px; gap: 8px; overflow-x: auto; }
  .cs-step-label      { display: none; }
  .cart-tbl th, .cart-tbl td { padding: 10px 10px; font-size: .82rem; }
  .td-product-icon    { width: 40px; height: 40px; }
  .td-product-name    { font-size: .82rem; }
  .qty-ctrl input     { width: 32px; }

  /* Confirmation / commande */
  .qv-grid            { grid-template-columns: 1fr; }
  .next-steps-grid    { grid-template-columns: 1fr; gap: 12px; }

  /* Breadcrumb */
  .product-breadcrumb { font-size: .78rem; padding: 10px 14px; flex-wrap: wrap; gap: 4px; }

  /* Related grid */
  .related-grid       { grid-template-columns: repeat(2,1fr); gap: 12px; }
}

/* ── Mobile 480px ── */
@media (max-width: 480px) {
  /* Boutique grille — 2 colonnes serrées */
  .products-grid      { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-img        { height: 140px; }
  .product-info       { padding: 10px; }
  .product-name       { font-size: .82rem; line-height: 1.3; }
  .product-cat-tag    { font-size: .65rem; }
  .product-price      { font-size: .95rem; }
  .btn-add-cart       { font-size: .75rem; padding: 7px 8px; gap: 4px; }
  .btn-view-detail    { width: 32px; height: 32px; font-size: .8rem; }

  /* Produit page */
  .gallery-main       { height: 240px; }
  .gallery-thumb      { width: 52px; height: 52px; }
  .product-detail-title { font-size: 1.25rem; }
  .product-guarantees { grid-template-columns: 1fr; gap: 6px; }
  .guarantee-item     { flex-direction: row; justify-content: center; }
  .product-tags       { gap: 6px; }
  .product-tag        { font-size: .72rem; padding: 3px 9px; }

  /* Produits similaires */
  .related-grid       { grid-template-columns: 1fr; }

  /* Panier page — masquer colonne prix unitaire sur très petit */
  .cart-tbl th:nth-child(3),
  .cart-tbl td:nth-child(3) { display: none; }

  /* Eviter zoom iOS sur inputs */
  input, textarea, select { font-size: 16px !important; }

  /* Commande */
  .commande-form-section { padding: 16px; }
}

/* ── Très petit 360px ── */
@media (max-width: 360px) {
  .products-grid      { grid-template-columns: 1fr; }
  .product-img        { height: 200px; }
  .related-grid       { grid-template-columns: 1fr; }
  .btn-add-cart-detail { font-size: .9rem; padding: 12px; }
  .tab-btn            { font-size: .75rem; padding: 7px 10px; }
  .cart-drawer-header h3 { font-size: 1rem; }
}