/* ============================================================================
   SANTÉ PLUS — FEUILLE DE STYLE PRINCIPALE (HTML + CSS + JS + PHP + SQL)
   Palette Botanique Verte : #0D3B26, #15803D, #22C55E, #F8FAF7, #ECFDF5
   ============================================================================ */

:root {
  --emerald-deep: #0D3B26;
  --emerald-mid: #124B30;
  --emerald-primary: #15803D;
  --emerald-bright: #22C55E;
  --bg-alabaster: #F8FAF7;
  --bg-mint: #ECFDF5;
  --bg-white: #FFFFFF;
  --text-dark: #111827;
  --text-muted: #4B5563;
  --border-soft: #D1FAE5;
  --border-medium: #A7F3D0;
  --amber-accent: #D97706;
  --shadow-xs: 0 2px 8px rgba(13, 59, 38, 0.05);
  --shadow-md: 0 10px 28px rgba(13, 59, 38, 0.10);
  --shadow-xl: 0 20px 50px rgba(13, 59, 38, 0.18);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-alabaster);
  color: var(--text-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================================
   TOP BAR & STICKY HEADER
   ============================================================================ */
.top-bar {
  background: var(--emerald-deep);
  color: #ECFDF5;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(167, 243, 208, 0.15);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.top-bar-wa {
  color: #6EE7B7;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-wa:hover {
  color: #FFFFFF;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-primary));
  color: #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-xs);
}

.brand-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-deep);
  display: block;
  line-height: 1.05;
}

.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-primary);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald-deep);
}

.main-nav a:hover {
  color: var(--emerald-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-wa-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-mint);
  border: 1px solid var(--border-medium);
  color: var(--emerald-primary);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-wa-outline:hover {
  background: #D1FAE5;
}

.btn-cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--emerald-deep);
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cart-trigger:hover {
  background: var(--emerald-primary);
}

.cart-badge {
  background: var(--emerald-bright);
  color: #052E16;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald-mid) 55%, var(--emerald-primary) 100%);
  color: #FFFFFF;
  padding: 52px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.7);
  border: 1px solid rgba(110, 231, 183, 0.3);
  color: #A7F3D0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-title span {
  color: #6EE7B7;
}

.hero-desc {
  font-size: 16px;
  color: rgba(236, 253, 245, 0.92);
  max-width: 620px;
  margin-bottom: 24px;
}

.hero-search-form {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 7px;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(110, 231, 183, 0.45);
  max-width: 640px;
  margin-bottom: 22px;
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  background: transparent;
}

.hero-search-btn {
  background: var(--emerald-primary);
  color: #FFFFFF;
  border: none;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.hero-search-btn:hover {
  background: var(--emerald-deep);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-wa-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--emerald-bright);
  color: #052E16;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}

.btn-wa-hero:hover {
  transform: translateY(-2px);
  background: #4ADE80;
}

.btn-glass-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
}

.btn-glass-hero:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 4px solid rgba(110, 231, 183, 0.28);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
  background: #064E3B;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(13, 59, 38, 0.95), rgba(13, 59, 38, 0.6), transparent);
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

/* ============================================================================
   TRUST BAR
   ============================================================================ */
.trust-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-alabaster);
  border: 1px solid var(--border-soft);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-mint);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald-deep);
  margin: 0 0 2px;
}

.trust-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================================
   CATALOGUE WITH LATERAL SIDEBAR FILTER MENU
   ============================================================================ */
.catalogue-section {
  padding: 46px 0 20px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-primary);
  display: block;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--emerald-deep);
  margin: 4px 0 0;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar-filters {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 90px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-header h3 {
  font-size: 16px;
  color: var(--emerald-deep);
  margin: 0;
}

.sidebar-reset {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-primary);
}

.sidebar-group {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-deep);
  margin-bottom: 10px;
}

.sidebar-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-alabaster);
  font-size: 13px;
  outline: none;
}

.sidebar-input:focus {
  background: #FFFFFF;
  border-color: var(--emerald-primary);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-deep);
  transition: background 0.15s;
}

.sidebar-link:hover {
  background: var(--bg-mint);
}

.sidebar-link.active {
  background: var(--emerald-primary);
  color: #FFFFFF;
}

.sidebar-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-mint);
  color: var(--emerald-deep);
}

.sidebar-link.active .sidebar-count {
  background: rgba(13, 59, 38, 0.45);
  color: #FFFFFF;
}

.sidebar-diseases-scroll {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.mobile-filter-toggle {
  display: none;
  padding: 9px 14px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--emerald-deep);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ============================================================================
   PRODUCTS GRID & CARDS
   ============================================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s, box-shadow 0.22s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ECFDF5;
  overflow: hidden;
  display: block;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.04);
}

.badge-form {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 59, 38, 0.88);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.badge-photos {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.62);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.disease-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.disease-pill {
  background: var(--bg-mint);
  color: var(--emerald-primary);
  border: 1px solid var(--border-medium);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.product-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-title:hover {
  color: var(--emerald-primary);
}

.product-card-plants {
  font-size: 12px;
  color: #065F46;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-box {
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  margin-bottom: 14px;
}

.price-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.price-eur {
  font-size: 20px;
  font-weight: 800;
  color: var(--emerald-deep);
}

.weight-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-primary);
  background: var(--bg-mint);
  padding: 2px 8px;
  border-radius: 8px;
}

.price-equivalents {
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  margin-top: 2px;
}

.card-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-select-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  background: var(--bg-alabaster);
  border-radius: 11px;
  padding: 0 8px;
  height: 42px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.qty-select-box select {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  color: var(--emerald-deep);
  margin-left: 4px;
  outline: none;
  cursor: pointer;
}

.btn-add-cart {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 11px;
  background: var(--emerald-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add-cart:hover {
  background: var(--emerald-deep);
}

.btn-add-cart.added {
  background: var(--emerald-bright);
  color: #052E16;
}

.btn-details {
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--border-medium);
  color: var(--emerald-deep);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-details:hover {
  background: var(--bg-mint);
}

/* ============================================================================
   113 PATHOLOGIES DIRECTORY SECTION
   ============================================================================ */
.directory-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 34px;
  margin-top: 48px;
  box-shadow: var(--shadow-xs);
}

.directory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.directory-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 11px;
  background: var(--bg-alabaster);
  border: 1px solid var(--border-medium);
  color: var(--emerald-deep);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.directory-badge:hover, .directory-badge.active {
  background: var(--emerald-deep);
  color: #FFFFFF;
  border-color: var(--emerald-deep);
}

/* ============================================================================
   PRODUCT DETAIL PAGE (produit.php)
   ============================================================================ */
.detail-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  box-shadow: var(--shadow-xs);
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-alabaster);
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb-btn {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-soft);
  padding: 0;
  cursor: pointer;
  background: #FFFFFF;
}

.gallery-thumb-btn.active {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-box {
  background: var(--bg-mint);
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  padding: 20px;
  margin-top: 20px;
}

.clinical-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.clinical-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 22px;
}

/* ============================================================================
   CHECKOUT & CONFIRMATION PAGES (commander.php & commande-confirmee.php)
   ============================================================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.panel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 6px;
}

.field-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  background: var(--bg-alabaster);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.field-control:focus {
  background: #FFFFFF;
  border-color: var(--emerald-primary);
}

.payment-option-active {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid var(--emerald-primary);
  background: var(--bg-mint);
  margin-bottom: 12px;
}

/* Paiement par carte de crédit grisé et désactivé */
.payment-option-disabled {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #D1D5DB;
  background: #F3F4F6;
  color: #6B7280;
  opacity: 0.55;
  filter: grayscale(100%);
  cursor: not-allowed;
  user-select: none;
}

.btn-submit-order {
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--emerald-primary);
  color: #FFFFFF;
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: var(--shadow-md);
}

.btn-submit-order:hover {
  background: var(--emerald-deep);
}

/* ============================================================================
   SLIDE-OVER CART DRAWER & FLOATING WHATSAPP BUTTON
   ============================================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  display: none;
  justify-content: flex-end;
}

.cart-overlay.open {
  display: flex;
}

.cart-drawer {
  width: 100%;
  max-width: 430px;
  background: #FFFFFF;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.cart-drawer-header {
  background: var(--emerald-deep);
  color: #FFFFFF;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-mint);
}

.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--emerald-primary);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid rgba(167, 243, 208, 0.7);
  box-shadow: 0 12px 28px rgba(13, 59, 38, 0.35);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s, background 0.2s;
}

.floating-whatsapp:hover {
  background: var(--emerald-deep);
  transform: scale(1.04);
}

/* ============================================================================
   ADMIN DASHBOARD (tableu-de-bord.php)
   ============================================================================ */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  background: var(--bg-mint);
  color: var(--emerald-deep);
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  vertical-align: middle;
}

.slots-10-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.slot-box {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 2px dashed var(--border-medium);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-size: 11px;
  color: var(--text-muted);
}

.slot-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  background: var(--emerald-deep);
  color: #D1FAE5;
  margin-top: 64px;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(167, 243, 208, 0.15);
}

.footer-bottom {
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(167, 243, 208, 0.75);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width: 1024px) {
  .catalogue-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-filters {
    position: static;
    display: none;
  }
  .sidebar-filters.mobile-open {
    display: block;
  }
  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid, .detail-card, .checkout-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .main-nav, .btn-wa-outline {
    display: none;
  }
  .products-grid, .trust-grid, .clinical-cards, .form-grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  .slots-10-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
