/* ==========================================================================
   Pharmacie Djellab - Dely Ibrahim, Alger
   Mobile-First & Clean Pharmacy Aesthetic
   Palette: Green (#2d9e7e), Turquoise / Teal (#4AABA0), White (#fff), Soft Neutral (#f4fafa)
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary: #4AABA0;          /* Turquoise / Teal */
  --primary-hover: #3b9188;
  --primary-light: #e6f6f5;
  --primary-dark: #1a4d47;

  --accent-green: #2d9e7e;     /* Medical / Pharmacy Green */
  --accent-green-light: #dcfce7;
  --accent-green-dark: #15803d;

  --accent-red: #e11d48;
  --accent-red-light: #ffe4e6;

  /* Neutrals */
  --bg-page: #f8fbfa;
  --bg-card: #ffffff;
  --bg-subtle: #eff7f6;
  --border-color: #dbebe9;
  --border-focus: #4AABA0;

  --text-main: #132a2f;
  --text-muted: #597378;
  --text-light: #8ba2a6;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(19, 42, 47, 0.05);
  --shadow-md: 0 4px 10px -1px rgba(19, 42, 47, 0.07), 0 2px 5px -2px rgba(19, 42, 47, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(19, 42, 47, 0.09);
  --shadow-drawer: 0 0 35px rgba(0, 0, 0, 0.25);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.16s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px; /* Space for mobile bottom bar */
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* View Sections */
.view-section {
  display: none;
  animation: fadeIn 0.22s ease forwards;
}

.view-section.active-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Common Typography & Badges */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-subtitle-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-link {
  font-weight: 600;
  color: var(--accent-green);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary) 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(45, 158, 126, 0.25);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: #d3efe9;
}

.btn-outline {
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-fast);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

.btn-large {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
}

.badge-chifa {
  background: #ecfdf5;
  color: var(--accent-green-dark);
  border: 1px solid #a7f3d0;
}

.badge-promo {
  background: var(--accent-red);
  color: #ffffff;
}

.badge-stock-in {
  color: var(--accent-green-dark);
  font-size: 0.775rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dot-in {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
}

.badge-stock-out {
  color: var(--accent-red);
  font-size: 0.775rem;
  font-weight: 600;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-announcement-bar {
  background: #112d28;
  color: #d1e7e4;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow: hidden;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.top-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-chifa-sub {
  display: none;
  font-size: 0.75rem;
  color: #c4deda;
}

@media (min-width: 640px) {
  .top-chifa-sub {
    display: inline;
  }
}

.badge-chifa-top {
  background: var(--accent-green);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.top-language-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 30px;
  padding: 0.15rem 0.3rem 0.15rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  background: #ffffff;
  color: #112d28;
  box-sizing: border-box;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  position: relative;
  z-index: 1000;
  visibility: visible !important;
  opacity: 1 !important;
}

.top-language-picker select {
  min-width: 94px;
  padding: 0.2rem 0.25rem;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: #112d28;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.top-language-picker select:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .top-announcement-inner {
    overflow: visible;
  }

  .top-phone,
  .top-right .divider {
    display: none;
  }

  .top-language-picker {
    display: inline-flex;
  }
}

.top-hours {
  display: none;
}

@media (min-width: 768px) {
  .top-hours {
    display: inline;
  }
}

.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #ffffff;
  font-weight: 600;
}

.top-phone:hover {
  text-decoration: underline;
}

.divider {
  opacity: 0.35;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.mobile-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  color: var(--text-main);
}

@media (min-width: 992px) {
  .mobile-menu-trigger {
    display: none;
  }
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}

@media (min-width: 992px) {
  .brand-identity {
    flex: none;
  }
}

.brand-logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .brand-name {
    font-size: 1.15rem;
  }
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

@media (min-width: 480px) {
  .brand-sub {
    display: block;
  }
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: block;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-tab-btn {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.nav-tab-btn.active {
  color: var(--primary-dark);
  background: var(--primary-light);
  font-weight: 700;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search-box {
  display: none;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  gap: 0.45rem;
  color: var(--text-muted);
  width: 180px;
}

@media (min-width: 768px) {
  .header-search-box {
    display: flex;
    width: 220px;
  }
}

.header-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
  color: var(--text-main);
}

.header-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.header-cart-btn:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-green);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-label {
  font-size: 0.85rem;
  font-weight: 700;
  display: none;
}

@media (min-width: 768px) {
  .cart-label {
    display: inline;
  }
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 210;
  box-shadow: var(--shadow-drawer);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--transition-normal), visibility var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.drawer-close-btn {
  font-size: 1.75rem;
  color: var(--text-muted);
  line-height: 1;
}

.drawer-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-item {
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: background var(--transition-fast);
}

.drawer-nav-item:hover, .drawer-nav-item:active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.drawer-contact-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-whatsapp-full {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  display: block;
}

.btn-outline-full {
  border: 1.5px solid var(--border-color);
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 1.5rem 0 2rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    padding: 1.5rem 0;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-pill-badge {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.1rem;
  }
}

.hero-highlight {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.15rem;
  }
}

.hero-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary,
  .hero-cta-group .btn-whatsapp {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .hero-cta-group {
    margin-bottom: 2rem;
  }
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-icon {
  color: var(--accent-green);
  font-weight: 800;
}

.hero-media {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid #ffffff;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #c8e8e4 0%, #dff5f2 100%);
}

@media (min-width: 992px) {
  .hero-image-card {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
  }
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.badge-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(45, 158, 126, 0.25);
}

/* ==========================================================================
   QUICK ACTIONS BAR
   ========================================================================== */
.quick-actions-bar {
  padding: 1rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: left;
  transition: all var(--transition-fast);
  min-height: 60px;
}

.quick-action-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.whatsapp-action:hover {
  border-color: #25d366;
  background: #f0fdf4;
}

.quick-action-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.quick-action-text {
  display: flex;
  flex-direction: column;
}

.quick-action-text strong {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.2;
}

@media (min-width: 480px) {
  .quick-action-text strong {
    font-size: 0.95rem;
  }
}

.quick-action-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .quick-action-text span {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.section-categories {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .section-categories {
    padding: 3rem 0;
  }
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}

@media (min-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  min-height: 64px;
}

@media (min-width: 768px) {
  .category-card {
    padding: 1rem;
    gap: 0.75rem;
  }
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.category-icon-box {
  width: 38px;
  height: 38px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .category-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }
}

.category-info {
  display: flex;
  flex-direction: column;
}

.category-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

@media (min-width: 640px) {
  .category-title {
    font-size: 0.85rem;
  }
}

.category-mini-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-top: 0.2rem;
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */
.section-featured {
  padding: 2rem 0 2.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .section-featured {
    padding: 2.5rem 0 3.5rem;
  }
}

.products-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.products-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.products-scroll-container::-webkit-scrollbar-thumb {
  background: #c3ddda;
  border-radius: 3px;
}

.products-scroll-container .product-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .products-scroll-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding-bottom: 0;
  }
  .products-scroll-container .product-card {
    flex: none;
  }
}

@media (min-width: 1024px) {
  .products-scroll-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .products-grid {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card-top {
  position: relative;
  background: #ffffff;
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f6f5;
}

.product-badge-stack {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}

.product-img-wrapper {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

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

.product-card-body {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 640px) {
  .product-card-body {
    padding: 0.85rem;
  }
}

.product-brand {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .product-title {
    font-size: 0.95rem;
  }
}

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

.product-desc-short {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
  /* Hide on very small screens to save space */
  display: none;
}

@media (min-width: 375px) {
  .product-desc-short {
    display: -webkit-box;
  }
}

.product-meta-row {
  margin-bottom: 0.65rem;
}

.product-price-row {
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

@media (min-width: 640px) {
  .price-current {
    font-size: 1.15rem;
  }
}

.price-original {
  font-size: 0.72rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

@media (max-width: 340px) {
  .product-actions {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.btn-card-details {
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.55rem 0.2rem;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
  min-height: 38px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-card-details:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-card-add {
  background: var(--accent-green);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.55rem 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all var(--transition-fast);
  min-height: 38px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-card-add span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-card-add:hover {
  background: #248469;
}

.btn-card-add:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* ==========================================================================
   PROMOTIONS TEASER & BANNER
   ========================================================================== */
.section-promos-teaser {
  padding: 3rem 0;
}

.promo-banner-card {
  background: linear-gradient(135deg, #184841 0%, #2a6860 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .promo-banner-card {
    grid-template-columns: 1.5fr 1fr;
    padding: 3rem;
  }
}

.badge-promo-flag {
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.promo-banner-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.promo-banner-content p {
  color: #c9e8e3;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.promo-banner-extra {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.promo-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  min-width: 120px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  color: #55ebd0;
  margin-bottom: 0.35rem;
}

.stat-lbl {
  font-size: 0.75rem;
  color: #e0f2f0;
  font-weight: 600;
}

/* ==========================================================================
   WHY US & PILLARS
   ========================================================================== */
.section-why-us {
  padding: 3.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-center-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.features-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   ABOUT TEASER
   ========================================================================== */
.section-about-teaser {
  padding: 3.5rem 0;
}

.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-teaser-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.about-teaser-text h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.about-teaser-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.mission-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.5rem;
}

.mission-box h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.mission-box p {
  color: var(--text-main);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0;
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-phone-link {
  font-weight: 700;
  color: var(--accent-green);
  font-size: 1.05rem;
}

.about-teaser-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.contact-mini-badge {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.badge-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.badge-address, .badge-phone, .badge-hours {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn-map-mini {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

/* ==========================================================================
   CATALOG PAGE (NOS PRODUITS)
   ========================================================================== */
.catalog-page-container {
  padding: 2.5rem 0 4rem;
}

.catalog-top-banner {
  margin-bottom: 1.5rem;
}

.legal-notice-chip {
  background: #fff8e6;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
}

.filters-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filters-row-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .filters-row-main {
    grid-template-columns: 1.2fr 1.2fr 1fr;
  }
}

.filter-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-select {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--border-focus);
  background: #ffffff;
}

.catalog-search-row {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .catalog-search-row {
    flex-direction: column;
  }
  .catalog-search-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

.catalog-search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  gap: 0.5rem;
  color: var(--text-muted);
}

.catalog-search-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  color: var(--text-main);
}

.products-count-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.empty-results-box {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.empty-results-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.empty-results-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   PROMOTIONS & ABOUT PAGES
   ========================================================================== */
.promos-page-container, .about-page-container, .contact-page-container, .cart-page-container {
  padding: 2.5rem 0 4rem;
}

.promos-page-head, .contact-header, .cart-page-head {
  margin-bottom: 2rem;
}

.about-hero-box {
  margin-bottom: 2.5rem;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
}

.about-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .about-details-grid {
    grid-template-columns: 1.4fr 0.8fr;
  }
}

.about-card-info {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.about-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-card-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.mission-highlight {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.mission-highlight h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.mission-highlight p {
  color: var(--text-main);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0;
}

.about-services-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .about-services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-services-list li {
  font-size: 0.875rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.about-services-list li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 800;
}

.about-card-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-box h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.sidebar-row {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hours-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hour-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.hour-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.btn-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   CONTACT PAGE & 3 MOBILE ACTION BUTTONS
   ========================================================================== */
.mobile-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mobile-btn-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.85rem;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.mobile-btn-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-phone {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-whatsapp-action {
  background: #25d366;
  color: #ffffff;
}

.btn-map-action {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.contact-card-info {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.contact-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-link {
  color: var(--primary);
  font-weight: 700;
}

.contact-link:hover {
  text-decoration: underline;
}

.sub-contact {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
}

.contact-card-map {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card-map h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.map-helper-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.map-embed-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   CART PAGE & DRAWER
   ========================================================================== */
.cart-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .cart-page-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.cart-page-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-summary-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 0.75rem;
  border-top: 1.5px dashed var(--border-color);
}

.summary-total-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.summary-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  background: var(--bg-subtle);
  padding: 0.75rem;
  border-radius: var(--radius-md);
}

.btn-clear-cart {
  color: var(--text-light);
  font-size: 0.825rem;
  font-weight: 600;
  text-align: center;
  padding: 0.4rem;
}

.btn-clear-cart:hover {
  color: var(--accent-red);
}

/* Cart Items inside Drawer & View */
.cart-item-row {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-brand {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.qty-selector button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-subtle);
  transition: background var(--transition-fast);
}

.qty-selector button:hover {
  background: #e1efed;
}

.qty-selector input, .qty-selector span {
  width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  outline: none;
  background: transparent;
}

.mini-qty button {
  width: 26px;
  height: 26px;
  font-size: 0.95rem;
}

.mini-qty span {
  width: 26px;
  font-size: 0.825rem;
}

.btn-remove-item {
  color: var(--text-light);
  padding: 4px;
  display: flex;
  align-items: center;
}

.btn-remove-item:hover {
  color: var(--accent-red);
}

.empty-cart-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-cart-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.empty-cart-state p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  z-index: 310;
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition-normal), visibility var(--transition-normal);
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .cart-drawer {
    width: 390px;
  }
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.drawer-close-btn {
  font-size: 1.75rem;
  color: var(--text-muted);
  line-height: 1;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.drawer-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.drawer-total-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.drawer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL & BOTTOM SHEET
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Bottom Sheet Style on Mobile */
.product-modal-window, .checkout-modal-window {
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  background: #ffffff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 2rem 1.25rem 1.5rem;
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-drawer);
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open .product-modal-window,
.modal-overlay.open .checkout-modal-window {
  transform: translateY(0);
}

/* Desktop Modal Style */
@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }

  .product-modal-window {
    max-width: 820px;
    border-radius: var(--radius-xl);
    transform: scale(0.95);
    padding: 2rem;
  }

  .checkout-modal-window {
    max-width: 520px;
    border-radius: var(--radius-xl);
    transform: scale(0.95);
    padding: 2rem;
  }

  .modal-overlay.open .product-modal-window,
  .modal-overlay.open .checkout-modal-window {
    transform: scale(1);
  }
}

.modal-close-icon {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  color: var(--text-muted);
  line-height: 1;
  z-index: 10;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .modal-content-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
  }
}

.modal-left-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img-container {
  width: 100%;
  aspect-ratio: 1;
  max-height: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .modal-img-container {
    max-height: none;
    padding: 1.5rem;
  }
}

.modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-badges-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.badge-brand {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.modal-stock-status {
  font-size: 0.825rem;
  margin-top: 0.25rem;
}

.modal-right-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-cat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .modal-title {
    font-size: 1.45rem;
  }
}

.modal-brand-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

.modal-current-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

@media (min-width: 768px) {
  .modal-current-price {
    font-size: 1.6rem;
  }
}

.modal-old-price {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.modal-savings-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-red-light);
  color: var(--accent-red);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  font-size: 0.825rem;
}

.spec-item strong {
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.spec-item span {
  color: var(--text-muted);
}

.notice-pharmacie {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fff8e6;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: #92400e;
}

.notice-pharmacie svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-actions-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
  /* Sticky at bottom on mobile inside scroll */
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border-color);
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .modal-actions-row {
    position: static;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    border-top: none;
  }
}

.btn-modal-add {
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   CHECKOUT MODAL (FORMULAIRE CLIENT WHATSAPP)
   ========================================================================== */
.checkout-modal-head {
  margin-bottom: 1.25rem;
}

.badge-modal-step {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #25d366;
  background: #f0fdf4;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.checkout-modal-head h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.checkout-modal-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--border-focus);
  background: #ffffff;
}

.radio-options-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .radio-options-row {
    flex-direction: row;
  }
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-pill:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.checkout-submit-row {
  margin-top: 1rem;
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 0.25rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 1.25rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 992px) {
  .toast-container {
    bottom: 1.5rem;
  }
}

.toast {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-green);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideIn 0.25s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #102623;
  color: #cde4e0;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.9fr 1.1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.1;
}

.footer-brand-sub {
  font-size: 0.75rem;
  color: #8da9a4;
}

.footer-desc {
  font-size: 0.85rem;
  color: #9ebdb7;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.footer-phone {
  font-size: 0.95rem;
  color: #ffffff;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list a {
  font-size: 0.85rem;
  color: #9ebdb7;
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-chifa-tag {
  color: #4ade80;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-legal-text {
  font-size: 0.75rem;
  color: #7b9c96;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.footer-whatsapp-btn {
  display: inline-block;
  background: #25d366;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.footer-whatsapp-btn:hover {
  background: #20ba59;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: #769690;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

/* ==========================================================================
   MOBILE BOTTOM APP BAR
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 150;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  /* Safe area inset for iPhone X+ */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  flex: 1;
  transition: color var(--transition-fast);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.mobile-cart-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-green);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.language-switch {
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.is-arabic {
  font-family: Tahoma, Arial, sans-serif;
}

[dir="rtl"] .header-actions,
[dir="rtl"] .hero-cta-group,
[dir="rtl"] .product-actions,
[dir="rtl"] .product-meta-row,
[dir="rtl"] .product-price-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-search-box input,
[dir="rtl"] .catalog-search-input,
[dir="rtl"] .product-card,
[dir="rtl"] .modal-content {
  text-align: right;
}
