/* ========== CLASSIC CSS for e-commerce ========== */
:root {
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --primary-light: #f0fdfa;
  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
}

/* Promo bar */
.promo-bar {
  background: linear-gradient(90deg, #0f766e, #115e59);
  animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Header */
.header-shadow {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Search */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 600px;
}

/* Cart badge */
.cart-btn {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Hero carousel */
.hero-slide {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
}
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.hero-slide:hover .hero-bg {
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  color: #fff;
}
.hero-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 420px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  width: fit-content;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-hero:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Category cards */
.cat-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  height: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover img {
  transform: scale(1.08);
}
.cat-card .cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

/* Product card */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.product-card .p-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gray-50);
}
.product-card .p-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-card .p-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .p-body .btn-add {
  margin-top: auto;
}
.product-card .p-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.product-card .p-name {
  font-weight: 600;
  color: var(--gray-900);
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.product-card .p-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
}
.product-card .p-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
}
.product-card .p-unit {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Modern buttons */
.btn-add {
  width: 100%;
  height: 40px;
  padding: 0 8px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}
.btn-add:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-add.added {
  background: var(--gray-900);
}
.btn-add.added:hover {
  background: var(--gray-700);
  transform: none;
}

button { cursor: pointer; }

/* Bottom Nav (Mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 4px 0;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}
@media (min-width: 1024px) {
  .bottom-nav { display: none; }
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block !important; }
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
  cursor: pointer;
  background: none;
  border: none;
}
.bottom-nav-item i {
  font-size: 18px;
}
.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #14b8a6;
}
body {
  padding-bottom: 60px;
  background: #fafafa;
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

/* Social icons centering */
.footer .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer .social-icon i {
  line-height: 1;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #cbd5e1;
}
.footer h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 8px;
}
.footer a:hover {
  color: var(--primary);
}
.footer-newsletter input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #334155;
  border-radius: 8px 0 0 8px;
  background: #1e293b;
  color: #fff;
  outline: none;
}
.footer-newsletter input:focus {
  border-color: var(--primary);
}
.footer-newsletter button {
  padding: 10px 20px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.footer-newsletter button:hover {
  background: var(--primary-dark);
}

/* Sidebar Rayons */
.rayons-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.rayons-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.rayons-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #fff;
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}
.rayons-sidebar.active {
  transform: translateX(0);
}
.rayons-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--primary);
  color: #fff;
  min-height: 60px;
}
.rayons-header h2 {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 700;
}
.rayons-back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.rayons-back:hover {
  background: rgba(255,255,255,0.35);
}
.rayons-back.hidden {
  display: none;
}
.rayons-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.rayons-close:hover {
  background: rgba(255,255,255,0.35);
}
.rayons-stage {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.rayons-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}
.rayons-panel.slide-out {
  transform: translateX(-100%);
}
.rayons-panel.slide-out-right {
  transform: translateX(100%);
}
.rayons-panel.slide-in {
  transform: translateX(0);
}
.rayons-panel.slide-in-left {
  transform: translateX(-100%);
}
.rayons-list {
  padding: 8px 0;
}
.rayons-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 0.95rem;
}
.rayons-list a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.rayons-list a i:first-child {
  width: 20px;
  color: var(--primary);
  text-align: center;
}
.rayon-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.rayons-trigger {
  cursor: pointer;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 16px !important;
  font-weight: 700;
  white-space: nowrap;
}
.rayons-trigger:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}
.rayons-trigger i:first-child {
  color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-slide { height: 280px; }
  .hero-content { padding: 0 30px; }
  .hero-content h2 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.9rem; }
  .cat-card { height: 140px; }
  .search-wrapper { max-width: 100%; }
  .mobile-menu-btn { display: block; }
}
@media (min-width: 769px) {
  .mobile-menu-btn { display: none; }
}

/* ========================================
   Category Page
   ======================================== */
.cat-hero-pattern {
  background-image: url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'white\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/svg%3E');
}

/* ========================================
   Home Page
   ======================================== */
.hero-bg-home {
  background-image: url('https://images.unsplash.com/photo-1550989460-0adf9ea622e2?w=1400&q=80');
}

.cat-card-gradient {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.promo-banner {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.promo-banner-pattern {
  background-image: url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'white\' fill-opacity=\'0.15\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/svg%3E');
}

/* ========================================
   Password Strength Meter
   ======================================== */
.pw-bar { width: 0; }

.pw-bar-weak { width: 25%; background: #ef4444; }
.pw-bar-medium { width: 50%; background: #14b8a6; }
.pw-bar-strong { width: 75%; background: #14b8a6; }
.pw-bar-very-strong { width: 100%; background: #22c55e; }

.pw-label-weak { color: #ef4444; }
.pw-label-medium { color: #14b8a6; }
.pw-label-strong { color: #14b8a6; }
.pw-label-very-strong { color: #22c55e; }

/* ========================================
   Scrollbar
   ======================================== */
.scrollbar-thin::-webkit-scrollbar { height: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* ========================================
   Product Description Styles (Bacola-style)
   ======================================== */
.product-info {
  --primary: #0d9488;
  --primary-soft: #f0fdfa;
  --primary-border: #ccfbf1;
  --text: #202435;
  --text-light: #5a5e6a;
  --line: #edeff2;
  --card-bg: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --danger: #d51243;
  --danger-soft: #fff2f4;
}

.product-info {
  display: grid;
  grid-auto-flow: row;
  gap: 15px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
  margin-top: 20px;
}

.product-info .card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 15px;
}

.product-info .card > h2 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin: -15px -15px 12px;
  padding: 10px 15px;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--primary-border);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.product-info .card > p,
.product-info .card > ul {
  margin-bottom: 8px;
  color: var(--text-light);
}

.product-info .card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.product-info .card li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  color: var(--text);
}

.product-info .card li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2em;
  position: absolute;
  left: 4px;
  top: -2px;
}

.product-info .card table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.product-info .card table thead th {
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.product-info .card table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-light);
}

.product-info .card table th,
.product-info .card table td {
  border-right: none;
}

.product-info .card table tr:last-child td {
  border-bottom: none;
}

.product-info .card table tr:nth-child(even) td {
  background: #fbfbfd;
}

.product-info .card p[style*="color: red"] {
  font-size: 13px;
  font-weight: 600;
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: var(--danger) !important;
  padding: 10px 12px;
  border-radius: 4px;
  margin-top: 10px;
}

.product-info h2:not(.card > h2) {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px 0;
  padding: 8px 0 8px 12px;
  background: transparent;
  border-left: 3px solid var(--primary);
  border-radius: 0;
  color: var(--text);
}

@media (max-width: 768px) {
  .product-info { gap: 12px; margin-top: 15px; }
  .product-info .card { padding: 12px; }
  .product-info .card > h2 {
    margin: -12px -12px 10px;
    padding: 8px 12px;
  }
}

/* ========================================
   Category Page Sidebar & Loader
   ======================================== */
.category-sidebar .sticky {
  position: sticky;
  top: 6rem;
}
.category-sidebar input[type="radio"]:checked,
.category-sidebar input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.173 10.984l-3.577-3.577L1.41 8.593l4.763 4.764 8-8-1.186-1.186z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.category-sidebar input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle fill='white' cx='8' cy='8' r='4'/%3E%3C/svg%3E");
  background-size: 8px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Loading overlay */
#products-loader {
  backdrop-filter: blur(2px);
}
#products-loader .animate-spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================
   Product Card (global)
   ============================ */
.product-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card.rupture { opacity: .7; }

.card-img {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  height: 180px; background: #fff;
}
.card-img img { max-height: 100%; max-width: 100%; object-fit: contain; }

.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.badge-promo { background: #ef4444; color: #fff; }
.badge-new { background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff; }
.badge-rupture { background: rgba(0,0,0,.7); color: #fff; backdrop-filter: blur(4px); }
.badge-bio { background: #16a34a; color: #fff; left: auto; right: 8px; }
.badge-origin { background: #f59e0b; color: #fff; left: auto; right: 8px; top: 8px; }
.card-img:has(.badge-bio) .badge-origin { top: 34px; }
.badge-nutriscore { background: #e5e7eb; color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; padding: 0; text-align: center; left: 8px; right: auto; bottom: 8px; top: auto; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.badge-nutriscore-a { background: #1a7d3a; }
.badge-nutriscore-b { background: #62b82e; }
.badge-nutriscore-c { background: #ffc107; color: #333; }
.badge-nutriscore-d { background: #f18b00; }
.badge-nutriscore-e { background: #e53935; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 6px; background: #f3f4f6; }
.card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #14b8a6; margin-bottom: 4px; }
.card-title { font-size: 14px; font-weight: 600; color: #111827; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; margin-bottom: 8px; flex: 1; }
.card-title:hover { color: #14b8a6; }
.card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-actions { display: flex; align-items: center; gap: 4px; }
.card-price strong { font-size: 18px; font-weight: 800; color: #111827; }
.card-price small { font-size: 12px; color: #9ca3af; text-decoration: line-through; }

.btn-add {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: #14b8a6; color: #fff; border: none; border-radius: 8px;
  font-size: 14px; cursor: pointer; transition: all .2s;
}
.btn-add:hover { background: #0d9488; }
.btn-add:disabled { background: #d1d5db; cursor: not-allowed; }
.btn-fav {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: transparent; color: #9ca3af; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 14px; cursor: pointer; transition: all .2s;
}
.btn-fav:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.btn-fav.favori { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

.subcat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
@media (min-width: 768px) { .subcat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .subcat-grid { grid-template-columns: repeat(4, 1fr); } }

.subcat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, border-color .15s; }
.subcat-card:hover { border-color: #d1d5db; box-shadow: 0 4px 12px rgba(0,0,0,.06); }

.subcat-name { font-size: 16px; font-weight: 700; color: #111827; text-decoration: none; }
.subcat-name:hover { color: #14b8a6; }

.subcat-children { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.subcat-children li { font-size: 13px; color: #6b7280; line-height: 1.4; }
.subcat-child-link { color: #6b7280; text-decoration: none; transition: color .15s; }
.subcat-child-link:hover { color: #14b8a6; }

.subcat-voir { font-size: 12px; font-weight: 600; color: #14b8a6; text-decoration: none; margin-top: auto; padding-top: 4px; }
.subcat-voir:hover { text-decoration: underline; }

.grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .grille { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .grille { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* Toast notification (global) */
#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: #111827; color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; z-index: 200;
  opacity: 0; pointer-events: none; transition: all .25s;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 1024px) { #toast { bottom: 30px; } }

.show-layout { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .show-layout { flex-direction: row; align-items: flex-start; } }
.show-galerie { flex: 1 1 58%; min-width: 0; }
.show-infos { flex: 1 1 42%; min-width: 0; }

.sous-rayons {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.sr-scroll {
  display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
  flex: 1; scrollbar-width: none;
}
.sr-scroll::-webkit-scrollbar { display: none; }
.sr-chip {
  flex-shrink: 0; padding: 6px 16px; border-radius: 999px;
  background: #fff; color: #374151; font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap; transition: background .15s;
  border: 1px solid #d1d5db;
}
.sr-chip:hover { background: #f3f4f6; }
.sr-chevron {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #e5e7eb; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; font-size: 12px; transition: all .15s;
}
.sr-chevron:hover { border-color: #d1d5db; color: #111827; }

/* ========================================
   Zone Modal
   ======================================== */
.zone-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.zone-overlay.active { opacity: 1; pointer-events: auto; }

.zone-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.92);
  width: 480px; max-width: calc(100vw - 32px); max-height: calc(100vh - 64px);
  background: #fff; border-radius: 20px; z-index: 201;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.zone-modal.active { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.zone-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px 16px; border-bottom: 1px solid #e5e7eb;
}
.zone-modal-header h2 {
  flex: 1; font-size: 17px; font-weight: 700; color: #111827;
}
.zone-modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: #f3f4f6; color: #6b7280;
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.zone-modal-close:hover { background: #e5e7eb; color: #111827; }

.zone-modal-body {
  padding: 20px 24px; overflow-y: auto; flex: 1;
}
.zone-modal-desc {
  color: #6b7280; font-size: 14px; line-height: 1.5; margin-bottom: 16px;
}
.zone-search-wrapper {
  position: relative; margin-bottom: 12px;
}
.zone-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #9ca3af; font-size: 14px; pointer-events: none;
}
.zone-search-input {
  width: 100%; padding: 12px 40px 12px 40px;
  border: 2px solid #e5e7eb; border-radius: 12px;
  outline: none; font-size: 15px; transition: all 0.25s;
  background: #f9fafb; color: #111827;
}
.zone-search-input:focus {
  border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(20,184,166,0.1);
  background: #fff;
}
.zone-search-input::placeholder { color: #9ca3af; }
.zone-spinner {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: #14b8a6; font-size: 16px; display: none;
}
.zone-spinner.hidden { display: none; }
.zone-spinner:not(.hidden) { display: block; }

.zone-results { margin-top: 4px; }
.zone-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  cursor: pointer; transition: all 0.2s;
  border: 1px solid transparent; margin-bottom: 4px;
}
.zone-result-item:hover {
  background: #f0fdfa; border-color: #99f6e4;
}
.zone-result-left {
  width: 36px; height: 36px; border-radius: 10px;
  background: #f0fdfa; color: #14b8a6;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.zone-result-mid { flex: 1; min-width: 0; }
.zone-result-city {
  font-weight: 600; font-size: 14px; color: #111827;
}
.zone-result-code {
  font-size: 12px; color: #6b7280; margin-top: 1px;
}
.zone-result-right { text-align: right; flex-shrink: 0; }
.zone-result-fee {
  font-size: 13px; font-weight: 600; color: #16a34a;
}
.zone-result-min {
  font-size: 11px; color: #9ca3af; margin-top: 1px;
}

.zone-no-results {
  text-align: center; padding: 24px 0; color: #9ca3af; font-size: 14px;
}
.zone-no-results.hidden { display: none; }

.zone-modal-footer {
  padding: 12px 24px 20px; display: flex; justify-content: flex-end;
}
.zone-btn-secondary {
  padding: 10px 24px; border-radius: 10px;
  border: 1px solid #d1d5db; background: #fff;
  color: #374151; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.zone-btn-secondary:hover { background: #f3f4f6; }

/* Zone trigger in header */
.zone-trigger {
  padding: 4px 10px 4px 6px; border-radius: 999px;
  border: 1px solid #e5e7eb; transition: all 0.2s;
}
.zone-trigger:hover {
  border-color: #14b8a6; background: #f0fdfa;
}

@media (max-width: 640px) {
  .zone-modal { border-radius: 16px; max-height: calc(100vh - 48px); }
  .zone-modal-header { padding: 16px 18px 12px; }
  .zone-modal-body { padding: 16px 18px; }
  .zone-modal-footer { padding: 8px 18px 16px; }
  .zone-result-item { padding: 10px 12px; }
}

.adresse-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}
.adresse-item:last-child { border-bottom: none; }
.adresse-item-info { flex: 1; min-width: 0; }
.adresse-item-city { font-weight: 600; font-size: 14px; color: #111827; }
.adresse-item-line { font-size: 13px; color: #4b5563; margin-top: 2px; }
.adresse-item-name { font-size: 12px; color: #9ca3af; margin-top: 1px; }
.adresse-item-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #14b8a6;
    background: #ccfbf1;
    padding: 2px 8px;
    border-radius: 999px;
}
.adresse-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.adresse-btn-choose, .adresse-btn-edit {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .15s;
}
.adresse-btn-choose { background: #14b8a6; color: #fff; }
.adresse-btn-choose:hover { background: #0d9488; }
.adresse-btn-edit { background: #f3f4f6; color: #374151; }
.adresse-btn-edit:hover { background: #e5e7eb; color: #111827; }

/* ========================================
   Search Autocomplete Suggestions
   ======================================== */
.search-wrapper {
  position: relative;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap input {
  width: 100%;
  padding: 10px 48px 10px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  background: var(--gray-50);
}
.search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}
.search-input-wrap .search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-input-wrap .search-btn:hover {
  background: var(--primary-dark);
}

.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 300;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.suggestions-dropdown.hidden {
  display: none;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background: #f0fdfa;
}
.suggestion-item.highlighted {
  background: #ccfbf1;
}
.suggestion-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #f9fafb;
  flex-shrink: 0;
}
.suggestion-info {
  flex: 1;
  min-width: 0;
}
.suggestion-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.suggestion-category {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.suggestion-price {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  flex-shrink: 0;
  white-space: nowrap;
}
.suggestion-price .old {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 4px;
}
.suggestion-no-results {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.suggestion-item {
  position: relative;
}
.suggestion-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  pointer-events: none;
}
.adresse-btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: #f0fdfa;
    color: #14b8a6;
    border: 1px dashed #7dd3fc;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}
.adresse-btn-add:hover { background: #ccfbf1; }

/* ========================================
   Checkout page
   ======================================== */
.checkout-layout { display: flex; flex-direction: column; gap: 24px; }
.checkout-left { flex: 1; min-width: 0; }
.checkout-addresses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 767px) { .checkout-addresses-grid { grid-template-columns: 1fr; } }
.checkout-card { padding: 24px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.checkout-card-mb { padding: 24px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; margin-bottom: 20px; }
.checkout-summary-card { padding: 24px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; position: sticky; top: 88px; }
.checkout-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.checkout-card-actions { display: flex; gap: 12px; }
.checkout-card-title { font-size: 16px; font-weight: 700; color: #111827; margin: 0; }
.checkout-card-title-mb { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 16px; }
.checkout-summary-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 20px; }
.checkout-text-body { font-size: 14px; color: #111827; line-height: 1.6; }
.checkout-text-muted { font-size: 14px; color: #9ca3af; }
.checkout-text-gray { color: #6b7280; }
.checkout-text-semibold { font-weight: 600; }
.checkout-text-xs { font-size: 12px; color: #9ca3af; }
.checkout-text-error { font-size: 14px; color: #dc2626; }
.checkout-link-btn { font-size: 13px; font-weight: 600; color: #14b8a6; background: none; border: none; cursor: pointer; padding: 0; }
.checkout-link-btn-ml { font-size: 13px; font-weight: 600; color: #14b8a6; background: none; border: none; cursor: pointer; padding: 0; margin-left: 4px; }
.checkout-btn-primary { width: 100%; padding: 12px; background: #111827; color: #fff; border: none; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.checkout-btn-save { width: 100%; padding: 12px; background: #14b8a6; color: #fff; border: none; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.checkout-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #374151; cursor: pointer; margin-bottom: 12px; }
.checkout-cgv-label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #374151; cursor: pointer; margin-bottom: 16px; line-height: 1.4; }
.checkout-product-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.checkout-product-img { width: 48px; height: 48px; border-radius: 6px; object-fit: contain; background: #f9fafb; flex-shrink: 0; }
.checkout-product-info { flex: 1; min-width: 0; }
.checkout-product-name { font-size: 13px; font-weight: 600; color: #111827; }
.checkout-product-price { font-size: 14px; font-weight: 700; color: #111827; text-align: right; }
.checkout-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.checkout-summary-savings { display: flex; justify-content: space-between; font-size: 13px; color: #16a34a; font-weight: 600; margin-bottom: 8px; }
.checkout-summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 20px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.checkout-payment-section { margin-bottom: 16px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; }
.checkout-payment-title { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 14px; }
.checkout-payment-methods { margin-bottom: 12px; }
.checkout-payment-label { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.checkout-card-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; margin-bottom: 4px; cursor: pointer; }
.checkout-radio { width: 14px; height: 14px; accent-color: #111827; flex-shrink: 0; }
.checkout-card-icon { font-size: 16px; flex-shrink: 0; }
.checkout-card-last4 { font-size: 12px; color: #111827; font-weight: 500; }
.checkout-card-exp { font-size: 11px; color: #6b7280; }
.checkout-new-card-divider { border-top: 1px solid #e5e7eb; padding-top: 10px; margin-bottom: 10px; }
.checkout-new-card-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid #e5e7eb; border-radius: 8px; cursor: pointer; }
.checkout-new-card-text { font-size: 12px; color: #374151; }
.checkout-card-element { padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; transition: border-color .15s; }
.checkout-save-card-label { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: #374151; cursor: pointer; }
.checkout-card-errors { font-size: 12px; color: #dc2626; margin-top: 6px; display: none; }
.checkout-slot-reserved { font-size: 11px; color: #14b8a6; text-align: center; margin-bottom: 12px; }
.checkout-payer-btn { opacity: 0.5; cursor: not-allowed; }
.checkout-condition-msg { display: none; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 12px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.checkout-condition-msg-flex { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 6px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.checkout-back-link-wrap { text-align: center; margin-top: 12px; }
.checkout-back-link { font-size: 13px; color: #6b7280; text-decoration: underline; }
.checkout-summary { width: 100%; flex-shrink: 0; }
.checkout-address-body { font-size: 14px; color: #111827; line-height: 1.6; }
.checkout-modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; }
.checkout-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.checkout-modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; border-radius: 16px; padding: 28px; width: 480px; max-width: 90vw; max-height: 80vh; overflow-y: auto; box-shadow: 0 24px 48px rgba(0,0,0,.15); }
.checkout-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.checkout-modal-title { font-size: 18px; font-weight: 700; color: #111827; margin: 0; }
.checkout-modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: #f3f4f6; color: #111827; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.checkout-address-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.checkout-address-option { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 10px; cursor: pointer; transition: border .15s; }
.checkout-radio-mt { margin-top: 3px; }
.checkout-address-name { font-size: 14px; font-weight: 600; color: #111827; }
.checkout-address-detail { font-size: 13px; color: #6b7280; }
.checkout-address-badge { font-size: 11px; font-weight: 600; color: #14b8a6; background: #ccfbf1; padding: 2px 8px; border-radius: 999px; display: inline-block; margin-top: 4px; }
.checkout-empty-state { font-size: 14px; color: #9ca3af; text-align: center; padding: 20px 0; }
.checkout-select-label { font-size: 13px; font-weight: 600; color: #374151; display: block; margin-bottom: 6px; }
.checkout-select { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; outline: none; background: #fff; cursor: pointer; }
.checkout-slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; min-height: 60px; }
@media (max-width: 480px) { .checkout-slots-grid { grid-template-columns: 1fr; } }
.checkout-slot-btn { width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; text-align: center; }
.checkout-empty-icon { font-size: 24px; display: block; margin-bottom: 8px; }
.checkout-cgv-checkbox { margin-top: 2px; flex-shrink: 0; }
.checkout-link { color: #14b8a6; text-decoration: underline; }
.checkout-select-wrap { margin-bottom: 16px; }
.checkout-error-icon { color: #dc2626; }

/* ========================================
   Cart / Panier Page
   ======================================== */
.cart-empty-wrapper { text-align: center; padding: 60px 20px; }
.cart-empty-icon { font-size: 48px; color: #d1d5db; }
.cart-empty-title { margin-top: 16px; font-size: 18px; color: #374151; }
.cart-empty-text { color: #9ca3af; margin: 4px 0 16px; }
.cart-layout { display: flex; flex-direction: column; gap: 24px; }
.cart-products { flex: 1; min-width: 0; }
.cart-product-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item-inner { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
@media (max-width: 420px) { .cart-item-inner { flex-wrap: wrap; gap: 8px; padding: 12px; } .cart-item-image { width: 60px; height: 60px; } .cart-item-total { min-width: auto; } }
.cart-item-image { flex-shrink: 0; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: #f9fafb; display: flex; align-items: center; justify-content: center; }
.cart-item-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; color: #111827; text-decoration: none; display: block; margin-bottom: 2px; }
.cart-item-sku { font-size: 11px; color: #9ca3af; }
.cart-discount-label { font-size: 11px; color: #dc2626; font-weight: 600; margin-top: 2px; }
.cart-qty-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-qty-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.cart-qty-value { font-weight: 700; font-size: 15px; min-width: 22px; text-align: center; }
.cart-item-total { text-align: right; min-width: 80px; flex-shrink: 0; }
.cart-line-total { font-weight: 700; font-size: 15px; color: #111827; }
.cart-unit-price { font-size: 11px; color: #9ca3af; }
.cart-remove-btn { flex-shrink: 0; width: 30px; height: 30px; border: none; background: transparent; cursor: pointer; color: #9ca3af; font-size: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cart-summary-wrapper { width: 100%; flex-shrink: 0; }
.cart-summary-card { padding: 24px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; position: sticky; top: 88px; }
.cart-summary-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.cart-savings-row { justify-content: space-between; font-size: 13px; color: #16a34a; font-weight: 600; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.cart-promo-section { margin-bottom: 16px; }
.cart-promo-label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.cart-promo-input-row { display: flex; gap: 8px; }
.cart-promo-input { flex: 1; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; text-transform: uppercase; }
.cart-promo-btn { padding: 10px 16px; background: #111827; color: #fff; border: none; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cart-promo-error { font-size: 12px; color: #dc2626; margin-top: 4px; }
.cart-promo-applied { align-items: center; justify-content: space-between; padding: 10px 12px; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; }
.cart-promo-applied-title { font-size: 13px; font-weight: 600; color: #16a34a; }
.cart-promo-applied-name { font-size: 12px; color: #374151; }
.cart-promo-remove-btn { border: none; background: none; color: #dc2626; cursor: pointer; font-size: 13px; font-weight: 600; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 20px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.cart-min-order-msg { align-items: flex-start; gap: 8px; padding: 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; margin-bottom: 12px; font-size: 13px; color: #991b1b; }
.cart-min-order-icon { flex-shrink: 0; margin-top: 1px; color: #dc2626; }
.cart-continue-link { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: #6b7280; text-decoration: none; }

/* ========================================
   Panier Sidebar (migrated from inline styles)
   ======================================== */
.main-content {
  position: relative;
  padding-bottom: 32px;
}

.panier-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  display: none;
}

.panier-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}

.panier-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.panier-sidebar-title {
  font-weight: 700;
  font-size: 17px;
  color: #111827;
}

.panier-sidebar-count {
  color: #9ca3af;
  font-weight: 400;
}

.panier-sidebar-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panier-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.panier-sidebar-empty {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
}

.panier-sidebar-spinner {
  font-size: 24px;
}

.panier-sidebar-footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px;
  display: none;
}

.panier-min-order-msg {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
  line-height: 1.4;
}

.panier-min-order-msg.panier-alert-free {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.panier-sidebar-sub {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.panier-sidebar-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.panier-sidebar-savings {
  color: #dc2626;
}

.panier-sidebar-loyalty {
  color: #0d9488;
}

.panier-sidebar-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
  margin-bottom: 12px;
}

.panier-sidebar-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}

/* ========================================
   User Orders (migrated from inline styles)
   ======================================== */

/* order-show */
.order-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.order-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.order-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.order-step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: 50%;
}

.order-step-number {
  font-size: 12px;
  font-weight: 600;
}

.order-step-label {
  font-size: 11px;
  line-height: 1.2;
}

.order-connector-wrapper {
  flex: 0 0 16px;
  padding-top: 18px;
}

.order-connector {
  height: 2px;
}

.order-status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
}

.order-banner-icon {
  font-size: 16px;
}

.order-banner-title {
  font-weight: 600;
  font-size: 13px;
}

.order-banner-date {
  font-size: 12px;
  opacity: .8;
}

.order-step-icon {
  font-size: 14px;
}

/* cards */
.cards-visa {
  color: #1a1f71;
}

.cards-mastercard {
  color: #eb001b;
}

.cards-default-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #065f46;
  background: #f0fdfa;
  margin-left: 8px;
}

.cards-inline {
  display: inline;
}

/* orders */
.orders-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.orders-pagination {
  margin-top: 24px;
}

/* favorites */
.fav-pagination {
  margin-top: 24px;
}

/* Store credit checkout */
.checkout-store-credit-row { font-size:13px;color:#374151; }

/* Adresse empty message */
.adresse-empty-msg {
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  padding: 24px 0;
}

/* Address form buttons */
.adr-save-btn {
  flex: 1;
  padding: 12px;
  background: #14b8a6;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.adr-cancel-btn {
  padding: 12px 20px;
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* ========================================
   Payment Status (success / cancel)
   ======================================== */
.payment-status-card {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.success-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0fdfa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-check-icon {
  font-size: 28px;
  color: #16a34a;
}
.payment-status-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}
.payment-status-text {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}
.payment-status-details-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}
.payment-status-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #6b7280;
}
.payment-status-detail-value {
  font-weight: 700;
  color: #111827;
}
.payment-status-detail-value-semibold {
  font-weight: 600;
  color: #111827;
}
.success-status-badge {
  font-weight: 600;
  color: #16a34a;
}
.payment-status-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.payment-status-actions-row {
  display: flex;
  gap: 12px;
}
.payment-status-actions-row a {
  flex: 1;
}
.payment-status-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.payment-status-btn-primary:hover { background: #374151; }
.payment-status-btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #111827;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.payment-status-btn-secondary:hover { background: #f9fafb; }
.cancel-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.cancel-xmark-icon {
  font-size: 28px;
  color: #dc2626;
}
.cancel-link-secondary {
  display: block;
  font-size: 14px;
  color: #6b7280;
  text-decoration: underline;
}

/* ========================================
   Address Form Fields
   ======================================== */
.addr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.addr-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 4px;
}
.addr-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.addr-field-group {
  margin-bottom: 12px;
}
.addr-grid-city {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.addr-field-group-lg {
  margin-bottom: 16px;
}
.addr-housing {
  margin-bottom: 12px;
}
.addr-housing-radios {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.addr-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: all .15s;
  flex: 1;
  justify-content: center;
}
.addr-radio-label input[type="radio"] {
  display: none;
}
.addr-radio-label.active,
.addr-radio-label:has(input:checked) {
  border-color: #0ea5e9;
  background: #f0f9ff;
  color: #0ea5e9;
}
.addr-radio-label i {
  font-size: 18px;
}
.addr-housing-detail {
  margin-bottom: 12px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.addr-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}

.card-promo-tag { background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; display: inline-block; width: fit-content; margin: 4px 0 1px; }

.livraison-icon-1 { color: #14b8a6; }
.livraison-icon-2 { color: #14b8a6; }
.livraison-icon-3 { color: #14b8a6; }
.livraison-icon-4 { color: #e11d48; }

/* ========================================
   Panier Sidebar / Loading States
   ======================================== */
.panier-loading { text-align:center;padding:40px 0;color:#9ca3af; }
.panier-spinner { font-size:24px; }
.panier-empty { text-align:center;padding:40px 0;color:#9ca3af; }
.panier-empty-icon { font-size:36px;display:block;margin-bottom:12px; }

/* ========================================
   Address Suggestions
   ======================================== */
.addr-suggestion-title { font-weight:600;color:#111827; }
.addr-suggestion-sub { font-size:11px;color:#6b7280; }

/* ========================================
   Suggestion Image Placeholder
   ======================================== */
.suggestion-img-placeholder { background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-size:18px;color:#d1d5db; }

/* ========================================
   Toast Check Icon
   ======================================== */
.toast-check { color:#22c55e; }

/* ========================================
   Address form buttons row
   ======================================== */
.addr-flex { display:flex;gap:8px; }

/* ========================================
   Product Show Page (migrated from inline styles)
   ======================================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6b7280; flex-wrap: wrap; margin-bottom: 24px; }
.breadcrumb a { color: #9ca3af; transition: color .15s; }
.breadcrumb a:hover { color: #14b8a6; }
.breadcrumb i { font-size: 10px; color: #d1d5db; }
.breadcrumb strong { color: #111827; }

.galerie-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; }
.galerie-main { position: relative; background: #fff; overflow: hidden; cursor: pointer; }
.galerie-img { width: 100%; max-height: 420px; object-fit: contain; }
.galerie-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; color: #fff; }
.galerie-badge.promo { background: #ef4444; }
.galerie-badge.new { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.galerie-badge.bio { background: #16a34a; left: auto; right: 12px; }
.galerie-badge.origin { background: #f59e0b; left: auto; right: 12px; top: 12px; }
.galerie-main:has(.galerie-badge.bio) .galerie-badge.origin { top: 40px; }
.galerie-badge.nutriscore { background: #e5e7eb; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; padding: 0; left: 12px; right: auto; bottom: 12px; top: auto; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.galerie-badge.nutriscore-a { background: #1a7d3a; }
.galerie-badge.nutriscore-b { background: #62b82e; }
.galerie-badge.nutriscore-c { background: #ffc107; color: #333; }
.galerie-badge.nutriscore-d { background: #f18b00; }
.galerie-badge.nutriscore-e { background: #e53935; }
.loupe { position: absolute; pointer-events: none; border: 2px solid rgba(20,184,166,.35); background: rgba(20,184,166,.08); border-radius: 4px; }
.zoom-result { position: absolute; top: 0; left: calc(100% + 12px); width: 100%; height: 100%; z-index: 10; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
@media (max-width: 1023px) { .loupe, .zoom-result { display: none !important; } }
.galerie-miniatures { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.miniature { width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px; border: 2px solid transparent; overflow: hidden; cursor: pointer; transition: border-color .2s; background: #fff; }
.miniature:hover { border-color: #5eead4; }
.miniature.active { border-color: #14b8a6; box-shadow: 0 4px 12px rgba(20,184,166,.2); }
.miniature img { width: 100%; height: 100%; object-fit: cover; }

.infos-sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.infos-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.infos-tags a { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #0d9488; background: #f0fdfa; padding: 3px 10px; border-radius: 6px; text-decoration: none; transition: background .15s; }
.infos-tags a:hover { background: #e0f2fe; }
.infos-titre { font-size: 22px; font-weight: 800; color: #111827; line-height: 1.25; margin: 0; }
@media (min-width: 768px) { .infos-titre { font-size: 26px; } }
.infos-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: #6b7280; }
.stock-ok { color: #16a34a; font-weight: 600; }
.stock-nok { color: #dc2626; font-weight: 600; }
.stock-ok em, .stock-nok em { font-style: normal; color: #ea580c; font-weight: 400; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; position: relative; }
.dot-vert { background: #22c55e; }
.dot-vert::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #22c55e; opacity: .3; animation: pulse 2s infinite; }
.dot-rouge { background: #dc2626; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }

.infos-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 12px 0; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; }
.infos-prix strong { font-size: 32px; font-weight: 800; color: #111827; }
.infos-prix s { font-size: 16px; color: #9ca3af; }
.promo-badge { font-size: 11px; font-weight: 700; color: #fff; background: #ef4444; padding: 3px 10px; border-radius: 999px; }

.infos-desc { font-size: 15px; color: #4b5563; line-height: 1.6; margin: 0; }

.infos-attribut { display: flex; align-items: center; gap: 8px; }
.infos-attribut span:first-child { font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; min-width: 90px; }
.infos-attribut span:last-child { font-size: 14px; font-weight: 600; color: #111827; }

.infos-cta { display: flex; gap: 10px; margin-top: 4px; }
.qte { display: flex; border: 1px solid #e5e7eb; border-radius: 999px; overflow: hidden; }
.qte button { width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; color: #111827; display: flex; align-items: center; justify-content: center; transition: background .15s; font-size: 13px; }
.qte button:hover { background: #f3f4f6; }
.qte input { width: 44px; height: 42px; text-align: center; border: none; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; font-size: 15px; font-weight: 700; color: #111827; background: #fff; outline: none; -moz-appearance: textfield; }
.qte input::-webkit-outer-spin-button, .qte input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-panier {
    flex: 1; height: 42px; padding: 0 20px;
    background: #14b8a6; color: #fff; border: none; border-radius: 999px;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-panier:hover { background: #0d9488; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20,184,166,.3); }
.btn-panier:disabled { background: #d1d5db; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-panier.added { background: #10b981; }
.btn-panier.added:hover { background: #059669; transform: none; }

.btn-fav-show {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e5e7eb;
  background: #fff; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: #9ca3af; font-size: 16px; flex-shrink: 0;
  transition: all .15s;
}
.btn-fav-show:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.btn-fav-show.favori { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

.garanties { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
@media (min-width: 640px) { .garanties { grid-template-columns: repeat(3, 1fr); } }
.garantie { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.garantie i { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; color: #14b8a6; font-size: 13px; flex-shrink: 0; }
.garantie div { display: flex; flex-direction: column; line-height: 1.2; }
.garantie strong { font-size: 12px; color: #111827; }
.garantie span { font-size: 11px; color: #6b7280; }

.onglets { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; }
.onglets-header { display: flex; border-bottom: 1px solid #e5e7eb; overflow-x: auto; }
.onglet { padding: 12px 20px; font-size: 14px; font-weight: 600; color: #6b7280; background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all .15s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.onglet:hover { color: #14b8a6; }
.onglet.active { color: #14b8a6; border-bottom-color: #14b8a6; }
.onglet i { font-size: 12px; }
.onglets-body { padding: 24px; }
.onglet-contenu { display: none; }
.onglet-contenu.active { display: block; }

.prose { color: #374151; font-size: 15px; line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { color: #111827; font-weight: 800; margin: 1.5em 0 .5em; }
.prose h2 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid #f3f4f6; }
.prose h3 { font-size: 1.1rem; }
.prose p { margin: .6em 0; }
.prose ul, .prose ol { padding-left: 1.5em; margin: .6em 0; }
.prose li { margin: .3em 0; }
.prose a { color: #14b8a6; text-decoration: none; font-weight: 600; transition: color .15s; }
.prose a:hover { color: #0d9488; text-decoration: underline; }
.prose img { max-width: 100%; border-radius: 12px; margin: 1em 0; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid #e5e7eb; text-align: left; }
.prose th { background: #f0fdfa; font-weight: 700; color: #0d9488; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.prose tr:nth-child(even) td { background: #fafbfc; }

.attrs-table { width: 100%; border-collapse: collapse; }
.attrs-table td { padding: 10px 12px; border-bottom: 1px dashed #e5e7eb; font-size: 14px; }
.attrs-table td:first-child { font-weight: 600; color: #6b7280; text-transform: uppercase; font-size: 12px; letter-spacing: .02em; width: 40%; }
.attrs-table td:last-child { font-weight: 600; color: #111827; }
.attrs-table tr:last-child td { border-bottom: none; }

.livraison-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.livraison-card { padding: 20px; border: 1px solid #f1f5f9; border-radius: 12px; }
.livraison-card i { font-size: 22px; margin-bottom: 10px; }
.livraison-card h4 { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.livraison-card p { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.5; }

.voir-plus { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #14b8a6; text-decoration: none; transition: color .15s; }
.voir-plus:hover { color: #0d9488; }

.barre-mobile {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
@media (min-width: 1024px) { .barre-mobile { display: none; } }
.barre-mobile-infos { flex: 1; min-width: 0; }
.barre-mobile-infos strong { font-size: 20px; font-weight: 800; color: #111827; display: block; }
.barre-mobile-infos small { font-size: 12px; color: #9ca3af; text-decoration: line-through; }
.btn-barre-mobile {
    flex: 1; max-width: 200px; height: 44px;
    background: #14b8a6; color: #fff; border: none; border-radius: 999px;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-barre-mobile:hover { background: #0d9488; }
.btn-barre-mobile:disabled { background: #d1d5db; }

.modal-img {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  padding: 40px;
}
.modal-img.open { opacity: 1; pointer-events: auto; }
.modal-img img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.3); }

/* ========================================
   Filters, Toolbar, Drawer (shared: search & category pages)
   ======================================== */
.layout-produits { display: flex; gap: 32px; }
.sidebar-desktop { width: 260px; flex-shrink: 0; display: none; }
@media (min-width: 1024px) { .sidebar-desktop { display: block; } }
.sidebar-sticky { position: sticky; top: 88px; }

.contenu-produits { flex: 1; min-width: 0; }

.loader {
    position: fixed; inset: 0; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.6); backdrop-filter: blur(2px);
}
.loader.hidden { display: none; }
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #e0f2fe; border-top-color: #14b8a6;
    border-radius: 50%; animation: spin .8s linear infinite;
}

.filtres-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.filtres-section { padding: 16px; border-bottom: 1px solid #f3f4f6; }
.filtres-section:last-child { border-bottom: none; }
.filtres-label { display: block; font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.filtres-input {
    width: 100%; height: 38px; font-size: 14px;
    border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 32px 0 36px;
    outline: none; transition: border-color .2s; box-sizing: border-box;
}
.filtres-input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.1); }
.filtres-input + i { top: 0; bottom: 0; display: flex; align-items: center; left: 12px; pointer-events: none; }
.filtres-list { display: flex; flex-direction: column; gap: 2px; }
.filtres-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 6px;
    font-size: 14px; font-weight: 500; color: #4b5563;
    text-decoration: none; transition: all .15s;
}
.filtres-link:hover { background: #f0fdfa; color: #14b8a6; }
.filtres-link::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; transition: background .15s; }
.filtres-link:hover::before { background: #14b8a6; }

.filtres-radios, .filtres-checkboxes { display: flex; flex-direction: column; gap: 2px; }
.filtres-radio, .filtres-checkbox {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; color: #4b5563; transition: background .15s;
}
.filtres-radio:hover, .filtres-checkbox:hover { background: #f9fafb; }
.filtres-radio input[type="radio"], .filtres-checkbox input[type="checkbox"] {
    appearance: none; width: 16px; height: 16px; flex-shrink: 0;
    border: 2px solid #d1d5db; border-radius: 50%; cursor: pointer; transition: all .15s;
}
.filtres-checkbox input[type="checkbox"] { border-radius: 4px; }
.filtres-radio input[type="radio"]:checked {
    border-color: #14b8a6; background: #14b8a6; box-shadow: inset 0 0 0 3px #fff;
}
.filtres-checkbox input[type="checkbox"]:checked {
    border-color: #14b8a6; background: #14b8a6;
}
.filtres-checkbox input[type="checkbox"]:checked::after {
    content: ''; display: block; width: 4px; height: 8px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
    margin: 1px auto;
}
.filtres-radio span, .filtres-checkbox span { line-height: 1.2; }

.filtres-reset {
    width: 100%; height: 40px; font-size: 14px; font-weight: 600; color: #6b7280;
    background: #f9fafb; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .15s;
}
.filtres-reset:hover { background: #f3f4f6; }

.toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 16px;
}
.toolbar-compte { font-size: 14px; color: #6b7280; margin: 0; }
.toolbar-compte strong { color: #111827; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }

.btn-filtre-mobile {
    display: inline-flex; align-items: center; gap: 6px; height: 34px;
    padding: 0 14px; background: #f3f4f6; border: none; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #111827; cursor: pointer; transition: background .15s;
}
.btn-filtre-mobile:hover { background: #e5e7eb; }

.tri-select { position: relative; }
.tri-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 34px;
    padding: 0 14px; background: #f3f4f6; border: none; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #111827; cursor: pointer; transition: background .15s; white-space: nowrap;
}
.tri-btn:hover { background: #e5e7eb; }
.tri-btn .fa-chevron-down { font-size: 10px; transition: transform .2s; }
.tri-btn .fa-chevron-down.rotate { transform: rotate(180deg); }
.tri-menu {
    position: absolute; right: 0; top: calc(100% + 4px);
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1); z-index: 30; min-width: 180px;
}
.tri-menu.hidden { display: none; }
.tri-option {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 12px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: #111827; background: transparent;
    cursor: pointer; transition: all .15s;
}
.tri-option:hover { background: #f0fdfa; color: #14b8a6; }
.tri-option.actif { background: #f0fdfa; color: #14b8a6; font-weight: 600; }
.tri-option i { width: 16px; text-align: center; font-size: 12px; }

.filtres-actifs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px;
}
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px; border: 1px solid #5eead4;
    background: #f0fdfa; color: #0d9488; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.chip:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.chip i { font-size: 10px; }
.chip-effacer {
    font-size: 12px; font-weight: 500; color: #9ca3af; background: none; border: none;
    cursor: pointer; transition: color .15s; display: inline-flex; align-items: center; gap: 4px;
}
.chip-effacer:hover { color: #ef4444; }

.empty {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
}
.empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, #f0fdfa, #e0f2fe); font-size: 24px; color: #38bdf8; margin-bottom: 12px;
}
.empty h3 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.empty p { font-size: 14px; color: #6b7280; margin: 0 0 16px; }
.btn-reinit {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 20px;
    background: #14b8a6; color: #fff; font-size: 13px; font-weight: 600; border: none; border-radius: 999px; cursor: pointer; transition: background .15s;
}
.btn-reinit:hover { background: #0d9488; }

.sentinel { height: 1px; }

.drawer-overlay {
    position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.4);
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
    width: 320px; max-width: 85vw;
    background: #fff; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -4px 0 24px rgba(0,0,0,.1);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
    display: flex; align-items: center; gap: 8px; padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
}
.drawer-header h2 { flex: 1; font-size: 16px; font-weight: 700; color: #111827; margin: 0; }
.drawer-close {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: #f3f4f6; color: #111827; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.drawer-close:hover { background: #e5e7eb; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-footer {
    display: flex; gap: 8px; padding: 12px 20px; padding-bottom: max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb; flex-shrink: 0;
}
.drawer-footer .btn-sec {
    flex: 1; height: 40px; border-radius: 999px; border: 1px solid #e5e7eb;
    background: #fff; color: #6b7280; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.drawer-footer .btn-sec:hover { background: #f3f4f6; }
.drawer-footer .btn-prim {
    flex: 1; height: 40px; border-radius: 999px; border: none;
    background: #14b8a6; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.drawer-footer .btn-prim:hover { background: #0d9488; }

/* ========================================
   Category Page (migrated from inline styles)
   ======================================== */
.cat-titre-bar { width: 100%; background: #f9fafb; border-bottom: 1px solid #e5e7eb; padding: 20px 0; margin-bottom: 24px; }
.cat-titre { font-size: 28px; font-weight: 800; margin: 0; color: #111827; }

/* ========================================
   Panier Page (migrated from inline styles)
   ======================================== */
.commander-btn {
    display: block; text-align: center; width: 100%; padding: 14px;
    background: #111827; color: #fff; border: none; border-radius: 999px;
    font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
    transition: background .15s;
}
.commander-btn:hover { background: #374151; }
@media (min-width: 1024px) {
    ._panier-layout { flex-direction: row !important; }
    ._panier-summary { width: 320px !important; margin-left: 32px; }
}
@media (min-width: 1280px) {
    ._panier-summary { width: 384px !important; }
}

/* ========================================
   Checkout Page (migrated from inline styles)
   ======================================== */
.payer-btn {
    width: 100%; padding: 14px; background: #111827; color: #fff;
    border: none; border-radius: 999px; font-weight: 700; font-size: 15px;
    cursor: pointer; transition: background .15s;
}
.payer-btn:hover { background: #374151; }
@media (min-width: 1024px) {
    ._checkout-layout { flex-direction: row !important; }
    ._checkout-summary { width: 360px !important; margin-left: 32px; }
}

/* ========================================
   FAQ Page (migrated from inline styles)
   ======================================== */
details.faq-item summary::marker,
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item summary {
    user-select: none;
}

/* ========================================
   Promotions Page (migrated from inline styles)
   ======================================== */
.promotions-page .breadcrumb a:hover { color: #0ea5e9; }
.promotions-page .spinner { border-top-color: #0ea5e9; }
.promotions-page .tri-option:hover { background: #f0f9ff; color: #0ea5e9; }
.promotions-page .tri-option.actif { background: #f0f9ff; color: #0ea5e9; font-weight: 600; }
.promotions-page .empty-icon { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.promotions-page .btn-reinit { background: #0ea5e9; }
.promotions-page .btn-reinit:hover { background: #0284c7; }
.promotions-page .filtres-link:hover { background: #f0f9ff; color: #0ea5e9; }
.promotions-page .filtres-link:hover::before { background: #0ea5e9; }
.promotions-page .filtres-input:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.promotions-page .filtres-radio input[type="radio"]:checked { border-color: #0ea5e9; background: #0ea5e9; }
.promotions-page .filtres-checkbox input[type="checkbox"]:checked { border-color: #0ea5e9; background: #0ea5e9; }
