/* =========================================================
   USA MediHub — Unified Master Design System
   Palette: Pharmacy Red & White Theme
   WCAG AA / AAA Accessibility & Contrast Certified
   Coverage: All Pages (Home, About, Shop, Product, Cart, Legal)
   ========================================================= */

/* ---------------------------------------------------------
   1. ROOT VARIABLES & DESIGN TOKENS
   --------------------------------------------------------- */
:root {
  /* Primary Pharmacy Red Palette */
  --red-700: #A80F26; /* 8.01:1 contrast on white (WCAG AAA) */
  --red-600: #C8102E; /* 5.94:1 contrast on white (WCAG AA) */
  --red-500: #E11D3C;
  --red-light-accent: #FF4D6D; /* 5.43:1 contrast on dark #111113 (WCAG AA) */
  --red-100: #FDE8EB;
  --red-50:  #FFF6F7;

  /* Ink & Neutral Scale */
  --ink-900: #111113; /* 18.2:1 contrast on white (WCAG AAA) */
  --ink-700: #27272A; /* 13.5:1 contrast on white (WCAG AAA) */
  --ink-500: #4B4B52; /* 6.8:1 contrast on white (WCAG AA) */
  --ink-300: #C4C4C8; /* 9.8:1 contrast on dark #111113 (WCAG AAA) */
  --ink-100: #F1F1F3;
  --white:   #FFFFFF;

  /* Status & Rating Indicators */
  --green-700: #116932; /* 6.8:1 contrast on white (WCAG AA) */
  --green-600: #15803D; /* 5.58:1 contrast on white (WCAG AA) */
  --amber-700: #9E4A00; /* 6.1:1 contrast on white (WCAG AA) */

  /* Social Support Channels (WCAG AA Compliant on White Text) */
  --whatsapp: #0D7E3A; /* 5.05:1 contrast with white text */
  --whatsapp-hover: #09612C;
  --telegram: #005C8A; /* 5.25:1 contrast with white text */
  --telegram-hover: #00466A;

  /* Typography */
  --font-head: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Border Radii & Elevation Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17,17,19,0.06), 0 1px 3px rgba(17,17,19,0.08);
  --shadow-md: 0 8px 24px rgba(17,17,19,0.08);
  --shadow-lg: 0 20px 48px rgba(168,15,38,0.14);

  --container: 1180px;
}

/* ---------------------------------------------------------
   2. GLOBAL BASE & ACCESSIBILITY RESETS
   --------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* Placeholder Contrast Fix */
::placeholder {
  color: var(--ink-500);
  opacity: 1;
}

/* Screen Reader & Focus Utility Classes */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; background: var(--ink-900);
  color: var(--white); padding: 12px 20px; z-index: 10000; border-radius: var(--radius-sm);
  font-weight: 700; transition: top 0.2s ease; text-decoration: none;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   3. TYPOGRAPHY & SECTION HEADINGS
   --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-700); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--red-50); }

/* Layout Helper Utilities */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 8px; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--red-600) 50%, var(--white) 50%);
  border: 1.5px solid var(--red-600);
}

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-subtext { margin-top: 12px; color: var(--ink-700); }

/* Breadcrumb Navigation */
.breadcrumb { font-size: 0.88rem; color: var(--ink-500); padding: 20px 0; font-weight: 500; }
.breadcrumb a { text-decoration: none; color: var(--ink-700); }
.breadcrumb a:hover { color: var(--red-700); text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: var(--ink-300); }
/* =========================================
   MOBILE NAVIGATION
   ========================================= */

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    color: var(--ink-900);
    z-index: 1001;
}

@media (max-width: 768px) {

    .navbar .container {
        position: relative;
    }

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        background: #ffffff;
        border-top: 1px solid var(--ink-100);
        border-bottom: 1px solid var(--ink-100);

        padding: 0;
        margin: 0;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;

        transition:
            max-height 0.3s ease,
            opacity 0.2s ease,
            visibility 0.2s ease;

        z-index: 1000;
    }

    .nav-links.open {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 12px 20px;
    }

    .nav-links li {
        width: 100%;
        list-style: none;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 14px 10px;
        border-bottom: 1px solid #f1f1f3;
    }

    .nav-links li:last-child a {
        border-bottom: 0;
    }
}
/* ---------------------------------------------------------
   4. BUTTONS & ACTIONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; min-height: 48px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--red-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--white); color: var(--red-700); border-color: var(--red-600); }
.btn-outline:hover { background: var(--red-50); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink-900); }
.btn-ghost:hover { color: var(--red-600); }
.btn-sm { padding: 9px 18px; min-height: 40px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: var(--white); transform: translateY(-2px); }
.btn-telegram { background: var(--telegram); color: var(--white); }
.btn-telegram:hover { background: var(--telegram-hover); color: var(--white); transform: translateY(-2px); }

/* Support CTA Section */
.cta-desc { max-width: 540px; margin: 12px auto 28px; color: var(--ink-700); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------
   5. HEADER & NAVIGATION
   --------------------------------------------------------- */
.topbar { background: var(--ink-900); color: var(--white); font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; flex-wrap: wrap; gap: 10px; }
.topbar-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--red-100); text-decoration: underline; }

.navbar {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-100);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }


.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink-700); position: relative; padding: 6px 0; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--red-700); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 3px;
  background: var(--red-600); border-radius: var(--radius-pill);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; background: var(--ink-100);
  border: none; color: var(--ink-900); transition: background .15s ease; text-decoration: none;
}
.icon-btn:hover { background: var(--red-100); color: var(--red-700); }
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--red-600); color: var(--white);
  font-size: 0.72rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle {
  display: none; background: var(--ink-100); border: none; width: 44px; height: 44px;
  border-radius: var(--radius-pill); font-size: 1.3rem; color: var(--ink-900); cursor: pointer;
}

/* ---------------------------------------------------------
   6. HERO & HOMEPAGE BANNERS
   --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: 76px 0 100px;
  background: radial-gradient(circle at 82% 12%, var(--red-50) 0%, var(--white) 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-desc { font-size: 1.1rem; max-width: 520px; margin-top: 16px; color: var(--ink-700); }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 32px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--ink-300); font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow-sm); color: var(--ink-900);
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: auto; /* Removes fixed aspect ratio constraint */
  height: auto;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: block; /* Removes flex centering distortion */
}
.hero-capsule {
  width: 62%; height: 26%; border-radius: var(--radius-pill); background: var(--white);
  position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: floaty 5s ease-in-out infinite;
}
.hero-capsule::before {
  content: ""; position: absolute; left: 0; top: 0; width: 50%; height: 100%;
  background: var(--red-600); border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-8deg);} 50% { transform: translateY(-14px) rotate(-8deg);} }

.hero-stat-card {
  position: absolute; background: var(--white); border-radius: var(--radius-md); padding: 16px 20px;
  box-shadow: var(--shadow-md); border: 1px solid var(--ink-100);
}
.hero-stat-card.a { top: 10%; left: -4%; }
.hero-stat-card.b { bottom: 8%; right: -4%; }
.hero-stat-card b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--red-700); }
.hero-stat-card span { font-size: 0.82rem; color: var(--ink-500); font-weight: 600; }

/* Trust Strip Banner */
.trust-strip {
  background: var(--red-50);
  border-top: 1px solid var(--red-100);
  border-bottom: 1px solid var(--red-100);
  padding: 24px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--red-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.trust-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-900);
}
.trust-text p {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin: 0;
}

/* Stat Banner */
.stat-banner {
  background: var(--ink-900); /* #111113 */
  color: var(--white);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-strip b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red-light-accent); /* #FF4D6D — 5.43:1 contrast on dark background */
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-strip span {
  font-size: 0.95rem;
  color: var(--white); /* #FFFFFF — 18.2:1 AAA contrast on dark background */
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
}

/* ---------------------------------------------------------
   7. CARDS & GRID SYSTEMS
   --------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Category Cards */
.category-card {
  background: var(--white);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-600);
}
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 14px;
}
.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--ink-900);
}
.category-card p {
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* Feature Cards */
.feature-card {
  background: var(--white); border: 1px solid var(--ink-300); border-radius: var(--radius-md);
  padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column; height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--red-600); }
.feature-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--red-100); color: var(--red-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.93rem; color: var(--ink-700); }

/* Step Cards */
.step-card {
  background: var(--white); border: 1px solid var(--ink-300); border-radius: var(--radius-md);
  padding: 28px; position: relative; height: 100%; display: flex; flex-direction: column;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red-600); color: var(--white);
  font-family: var(--font-head); font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; font-size: 1.1rem;
}

/* ---------------------------------------------------------
   8. REDESIGNED PRODUCT CARDS & SHOP LAYOUT
   --------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filter-box { background: var(--white); border: 1px solid var(--ink-300); border-radius: var(--radius-md); padding: 22px; position: static; top: 96px; }
.filter-group { margin-bottom: 22px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.92rem; cursor: pointer; color: var(--ink-700); }
.filter-option input { accent-color: var(--red-600); width: 18px; height: 18px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }

.search-input {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink-300); border-radius: var(--radius-pill);
  padding: 10px 18px; background: var(--white); min-width: 260px; min-height: 48px;
}
.search-input input { border: none; outline: none; flex: 1; background: transparent; }
.select-box { border: 1px solid var(--ink-300); border-radius: var(--radius-pill); padding: 10px 16px; background: var(--white); min-height: 48px; }

.shop-filter-heading { font-size: 1.1rem; margin-bottom: 14px; }
.result-count-text { margin-bottom: 16px; font-size: 0.9rem; color: var(--ink-500); font-weight: 600; }
.no-results-msg {
  grid-column: 1 / -1; padding: 36px; background: var(--red-50);
  border: 1px solid var(--red-100); border-radius: var(--radius-md);
  text-align: center; color: var(--ink-700); font-weight: 600;
}

/* Redesigned Clean Card Component */
.product-card {
  background: var(--white);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--red-600);
}

.product-thumb-clean {
  height: 190px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--ink-100);
  padding: 16px;
}
.product-thumb-clean img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-badge-rx {
  position: absolute; top: 12px; left: 12px;
  background: var(--red-600); color: var(--white);
  font-size: 0.7rem; font-weight: 800; padding: 4px 10px;
  border-radius: var(--radius-pill); text-transform: uppercase;
}
.card-badge-stock {
  position: absolute; top: 12px; right: 12px;
  background: var(--white); color: var(--green-700);
  font-size: 0.7rem; font-weight: 800; padding: 4px 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--ink-300);
  box-shadow: var(--shadow-sm);
}

.product-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red-700); }
.product-rating { font-size: 0.85rem; color: var(--amber-700); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.product-name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--ink-900); }
.product-desc { font-size: 0.88rem; color: var(--ink-700); flex: 1; }

.card-pack-hint {
  font-size: 0.8rem;
  color: var(--ink-500);
  background: var(--red-50);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}
.card-pack-hint strong { color: var(--ink-900); }

.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink-100); }
.product-price { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink-900); }

.product-icon-fallback { font-size: 3rem; display: flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------
   9. PILL QUANTITY SELECTION MODAL COMPONENT
   --------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 17, 19, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 32px;
  transform: translateY(20px);
  transition: transform .25s ease;
}
.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink-100); border: none;
  font-size: 1.4rem; color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.modal-close-btn:hover { background: var(--red-100); color: var(--red-700); }

.modal-product-header {
  display: flex; gap: 20px; align-items: center;
  padding-bottom: 20px; border-bottom: 1px solid var(--ink-100); margin-bottom: 16px;
}
.modal-product-thumb {
  width: 90px; height: 90px; background: var(--red-50);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--ink-100); overflow: hidden;
}
.modal-product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.modal-product-title h3 { font-size: 1.35rem; margin-bottom: 4px; }
.modal-product-title .active-ing { font-size: 0.88rem; color: var(--red-700); font-weight: 600; }

.modal-short-desc { font-size: 0.92rem; color: var(--ink-700); margin-bottom: 16px; }
.modal-pack-label { display: block; font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; color: var(--ink-900); margin-bottom: 12px; }

.modal-pill-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px;
}
.modal-pill-card {
  background: var(--white); border: 2px solid var(--ink-300);
  border-radius: var(--radius-md); padding: 14px; text-align: left;
  cursor: pointer; position: relative;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
.modal-pill-card:hover { border-color: var(--red-600); transform: translateY(-2px); }
.modal-pill-card.selected { border-color: var(--red-600); background: var(--red-50); box-shadow: var(--shadow-sm); }

.modal-pill-card .pill-qty { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--ink-900); }
.modal-pill-card .pill-total { font-size: 1.15rem; font-weight: 800; color: var(--red-700); margin-top: 2px; }
.modal-pill-card .pill-unit { font-size: 0.8rem; font-weight: 600; color: var(--ink-500); }

.pack-badge {
  position: absolute; top: -10px; right: 10px;
  font-size: 0.68rem; font-weight: 800; padding: 3px 8px;
  border-radius: var(--radius-pill); text-transform: uppercase;
}
.pack-badge.popular { background: var(--red-600); color: var(--white); }
.pack-badge.best { background: var(--green-700); color: var(--white); }

.modal-action-bar {
  background: var(--white); border: 1px solid var(--ink-300);
  border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.modal-price-box { display: flex; justify-content: space-between; align-items: center; }
.modal-price-label { font-size: 0.88rem; font-weight: 700; color: var(--ink-700); }
.modal-total-price { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--ink-900); }
.modal-unit-rate { font-size: 0.85rem; color: var(--ink-500); font-weight: 600; margin-left: 6px; }

.modal-direct-orders { display: flex; gap: 12px; margin-bottom: 14px; }
.modal-direct-orders .btn { flex: 1; text-align: center; }

.modal-detail-link { text-align: center; font-size: 0.88rem; font-weight: 700; }
.modal-detail-link a { color: var(--red-700); text-decoration: underline; }
.modal-detail-link a:hover { color: var(--red-600); }

/* ---------------------------------------------------------
   10. STANDALONE PRODUCT DETAIL PAGE (product.html)
   --------------------------------------------------------- */
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start;
}
.product-gallery-card {
  background: var(--white); border: 1px solid var(--ink-300);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
/* Product Detail Thumb & Floating Badges Fix */
.product-detail-thumb {
  aspect-ratio: 4/3;
  background: var(--red-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-100);
}

.product-detail-thumb .product-tag,
.product-detail-thumb .card-badge-rx {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--red-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.product-detail-thumb .product-stock,
.product-detail-thumb .card-badge-stock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: var(--white);
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-300);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  line-height: 1;
}

.product-detail-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 18px;
}
.product-icon-fallback-lg { font-size: 5rem; }

.product-guarantee-badges {
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--ink-100); padding-top: 20px;
}
.guarantee-item { display: flex; align-items: center; gap: 12px; }
.guarantee-item .g-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red-50);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.guarantee-item b { font-size: 0.9rem; color: var(--ink-900); display: block; }
.guarantee-item p { font-size: 0.8rem; color: var(--ink-500); margin: 0; }

.product-info-card { display: flex; flex-direction: column; gap: 14px; }
.active-ingredient { font-size: 1rem; color: var(--red-700); font-weight: 600; }
.product-rating-line { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.product-rating-line .stars { color: var(--amber-700); font-size: 1.1rem; }
.product-short-desc { font-size: 1rem; color: var(--ink-700); line-height: 1.6; }

.pill-pack-section {
  background: var(--red-50); border: 1px solid var(--red-100);
  border-radius: var(--radius-md); padding: 22px; margin: 10px 0;
}
.pack-section-label { display: block; font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; color: var(--ink-900); margin-bottom: 12px; }
.pill-pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pill-pack-btn {
  background: var(--white); border: 2px solid var(--ink-300);
  border-radius: var(--radius-md); padding: 14px; text-align: left;
  cursor: pointer; position: relative;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
.pill-pack-btn:hover { border-color: var(--red-600); transform: translateY(-2px); }
.pill-pack-btn.active { border-color: var(--red-600); background: var(--white); box-shadow: var(--shadow-sm); }

.pills-count { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--ink-900); }
.pills-price { font-size: 1.1rem; font-weight: 800; color: var(--red-700); margin-top: 2px; }
.pills-rate { font-size: 0.78rem; font-weight: 600; color: var(--ink-500); }

.product-price-bar {
  background: var(--white); border: 1px solid var(--ink-300);
  border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.total-price-label { font-size: 0.85rem; color: var(--ink-500); font-weight: 600; display: block; }
.detail-price { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--ink-900); }
.detail-rate-display { font-size: 0.9rem; color: var(--ink-500); margin-left: 6px; font-weight: 600; }

.direct-order-cta {
  background: var(--white); border: 1px solid var(--ink-300);
  border-radius: var(--radius-md); padding: 16px 20px; text-align: center;
}
.direct-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-700); display: block; margin-bottom: 10px; }

/* Product Detail Tab Styles */
.product-tabs-container {
  background: var(--white);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.product-tabs-container .tabs {
  display: flex;
  gap: 8px;
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: var(--radius-pill);
  padding: 6px;
  flex-wrap: wrap;
}

.product-tabs-container .tab-btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.product-tabs-container .tab-btn:hover {
  color: var(--red-700);
}

.product-tabs-container .tab-btn.active {
  background: var(--white);
  color: var(--red-700);
  box-shadow: var(--shadow-sm);
}
.product-tag {
  position: absolute; top: 12px; left: 12px; background: var(--red-600); color: var(--white);
  font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: var(--radius-pill); text-transform: uppercase;
}
.product-stock {
  position: absolute; top: 12px; right: 12px; background: var(--white); color: var(--green-700);
  font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--ink-300); box-shadow: var(--shadow-sm);
}
.tab-content {
  display: none;
  padding-top: 24px;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--ink-900);
}

.tab-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.product-not-found {
  text-align: center; padding: 64px 24px; background: var(--red-50);
  border-radius: var(--radius-lg); border: 1px solid var(--red-100);
}

/* ---------------------------------------------------------
   11. TESTIMONIALS, BLOG & ACCORDIONS
   --------------------------------------------------------- */
.testimonial-card {
  background: var(--white); border: 1px solid var(--ink-300);
  border-radius: var(--radius-md); padding: 26px; display: flex;
  flex-direction: column; justify-content: space-between;
}
.testimonial-stars { color: var(--amber-700); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-quote { font-size: 0.95rem; color: var(--ink-700); font-style: italic; margin-bottom: 18px; }
.testimonial-author b { display: block; font-size: 0.9rem; color: var(--ink-900); }
.testimonial-author span { font-size: 0.82rem; color: var(--green-700); font-weight: 700; }

.faq-accordion { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--ink-300); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  padding: 20px 24px; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--red-600); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { background: var(--red-50); border-bottom: 1px solid var(--ink-300); }
.faq-content { padding: 20px 24px; color: var(--ink-700); font-size: 0.95rem; line-height: 1.6; }

.blog-card { border: 1px solid var(--ink-300); border-radius: var(--radius-md); overflow: hidden; background: var(--white); transition: box-shadow .18s, transform .18s; display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--red-600); }
.blog-thumb { aspect-ratio: 16/9; background: var(--red-50); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: 0.8rem; color: var(--ink-500); margin-bottom: 8px; display: flex; gap: 10px; font-weight: 600; }
.blog-meta .tag { color: var(--red-700); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.blog-body h3 { margin-bottom: 8px; font-size: 1.1rem; color: var(--ink-900); }
.blog-body p { font-size: 0.9rem; color: var(--ink-700); }

/* ---------------------------------------------------------
   12. FORMS, INPUTS & TABS
   --------------------------------------------------------- */
.form-card { background: var(--white); border: 1px solid var(--ink-300); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-900); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; min-height: 48px; border: 1.5px solid var(--ink-300); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease; background: var(--white);
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red-600); box-shadow: 0 0 0 3px var(--red-100); }
.field .err { font-size: 0.8rem; color: var(--red-600); margin-top: 5px; display: none; font-weight: 700; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red-600); }
.field.invalid .err { display: block; }

.tabs { display: flex; gap: 6px; background: var(--ink-100); border-radius: var(--radius-pill); padding: 5px; width: fit-content; }
.tab-btn { border: none; background: transparent; padding: 10px 20px; min-height: 44px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.88rem; color: var(--ink-500); }
.tab-btn.active { background: var(--white); color: var(--red-700); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------
   13. LEGAL & POLICY DOCUMENT LAYOUTS
   --------------------------------------------------------- */
.legal-card {
  background: var(--white); border: 1px solid var(--ink-300);
  border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-sm);
  max-width: 920px; margin: 0 auto;
}
.legal-card h1 { margin-bottom: 8px; }
.legal-meta { font-size: 0.9rem; font-weight: 700; color: var(--red-700); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--ink-100); }
.legal-card h2 { font-size: 1.35rem; margin: 36px 0 14px; padding-top: 24px; border-top: 1px solid var(--ink-100); }
.legal-card h2:first-of-type { border-top: none; padding-top: 0; }
.legal-card h3 { font-size: 1.1rem; margin: 22px 0 10px; color: var(--ink-900); }
.legal-card p { font-size: 0.96rem; color: var(--ink-700); margin-bottom: 16px; line-height: 1.7; }
.legal-card ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; color: var(--ink-700); }
.legal-card li { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.6; }
.legal-card a { color: var(--red-700); font-weight: 600; text-decoration: underline; }
.legal-card a:hover { color: var(--red-600); }

.legal-table {
  width: 100%; border-collapse: collapse; margin: 24px 0 28px;
  font-size: 0.92rem; overflow-x: auto; display: table;
}
.legal-table th, .legal-table td { padding: 12px 16px; border: 1px solid var(--ink-300); text-align: left; }
.legal-table th { background: var(--red-50); font-family: var(--font-head); font-weight: 800; color: var(--ink-900); }
.legal-table td { color: var(--ink-700); }

.legal-note {
  background: var(--red-50); border-left: 4px solid var(--red-600);
  padding: 22px 26px; border-radius: var(--radius-sm); margin-top: 36px;
}
.legal-note p { margin-bottom: 0; font-size: 0.92rem; color: var(--ink-900); line-height: 1.65; }

/* ---------------------------------------------------------
   14. FOOTER & FLOATING ACTION BUTTONS
   --------------------------------------------------------- */
.site-footer {
  background: var(--ink-900); color: var(--ink-300);
  padding: 64px 0 28px; margin-top: 40px;
}
.site-footer p { color: var(--ink-300); font-size: 0.9rem; line-height: 1.6; }
.site-footer h4 { color: var(--white); font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.9rem; color: var(--ink-300); }
.site-footer a { color: var(--ink-300); transition: color .15s ease; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; margin-bottom: 14px; display: inline-block; text-decoration: none; }
.footer-logo span { color: var(--red-light-accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; color: var(--ink-300); }
.logo-icon {
          width: 125px;
          height: 70px;
          object-fit: contain;
          flex-shrink: 0;
        }
.fab-stack { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 14px; z-index: 200; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); color: var(--white); transition: transform .15s ease, box-shadow .15s ease;
  position: relative; text-decoration: none;
}
.fab:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); }
.fab-whatsapp { background: var(--whatsapp); }
.fab-telegram { background: var(--telegram); }
.fab svg { width: 28px; height: 28px; fill: currentColor; }

.fab .tooltip {
  position: absolute; right: 68px; background: var(--ink-900); color: var(--white);
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700;
  white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none; box-shadow: var(--shadow-sm);
}
.fab:hover .tooltip, .fab:focus-visible .tooltip { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .legal-card { padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery-card { position: static; }
}

/* Responsive Mobile Navigation CSS Rules */
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--ink-100);
    transform: translateY(-120%);
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
    box-shadow: var(--shadow-md);
    z-index: 999;
    
    /* Hide and disable pointer events when closed */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 700;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .topbar-links { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .modal-pill-grid, .pill-pack-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 24px; }
  .legal-table { display: block; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-stat-card.a { top: 4%; left: 2%; }
  .hero-stat-card.b { bottom: 4%; right: 2%; }
  .fab-stack { right: 16px; bottom: 16px; }
}

/* =========================================================
   TOAST NOTIFICATIONS & SHOPPING CART STYLES (cart.html)
   ========================================================= */

/* Toast Notification Component */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-left: 5px solid var(--green-600); }
.toast.error { border-left: 5px solid var(--red-600); }

/* Cart Page Grid Layout */
.cart-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.cart-items-card, .cart-summary-card, .empty-cart-card {
  background: var(--white);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.cart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 20px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 110px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-100);
}

.cart-item-thumb {
  width: 80px;
  height: 80px;
  background: var(--red-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-100);
  overflow: hidden;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-item-details h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.cart-item-pack {
  font-size: 0.88rem;
  color: var(--ink-700);
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--ink-500);
  font-weight: 600;
}

.cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red-50);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  width: fit-content;
}

.qty-btn {
  background: transparent;
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink-900);
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.qty-val {
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-total {
  text-align: right;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Cart Summary Card */
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
}

.summary-line.total-line {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink-900);
  border-bottom: none;
  padding-top: 18px;
}

.free-ship {
  color: var(--green-700);
}

.shipping-hint {
  font-size: 0.82rem;
  color: var(--ink-500);
  background: var(--red-50);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.cart-direct-order {
  border-top: 1px solid var(--ink-100);
  padding-top: 18px;
  text-align: center;
}

.direct-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-700);
}

@media (max-width: 980px) {
  .cart-layout-grid {
    grid-template-columns: 1fr;
  }
  .cart-item-row {
    grid-template-columns: 70px 1fr;
  }
  .cart-item-qty-controls, .cart-item-total {
    grid-column: span 2;
    justify-content: space-between;
  }
}
/* =========================================================
   CHECKOUT PAGE STYLES (checkout.html)
   ========================================================= */

.checkout-title {
  margin-bottom: 8px;
}
.checkout-subtitle {
  margin-bottom: 32px;
  color: var(--ink-700);
}
.empty-checkout-state {
  text-align: center;
  padding: 60px 20px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: flex-start;
}

.checkout-section-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.payment-section-title {
  font-size: 1.2rem;
  margin: 28px 0 16px;
}
.dob-hint {
  font-weight: 500;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.card-fields-box {
  margin-top: 18px;
}
.expiry-cvv-group {
  display: flex;
  gap: 10px;
}
.expiry-input {
  width: 60%;
}
.cvv-input {
  width: 40%;
}

.checkout-terms-row {
  margin-top: 18px;
}
.checkout-terms-row a {
  color: var(--red-700);
  text-decoration: underline;
}

.sticky-summary {
  position: sticky;
  top: 96px;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.summary-item-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  align-items: center;
}
.summary-item-info {
  display: flex;
  flex-direction: column;
}
.summary-item-pack {
  font-size: 0.78rem;
  color: var(--ink-500);
}

.summary-line-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink-900);
}

@media (max-width: 980px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .sticky-summary {
    position: static;
  }
}
/* ---------- Hero Section & Banner Layering ---------- */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--red-600), var(--red-700));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-art picture {
  display: block;
  width: 100%;
  height: auto;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* Floating Capsule Accent Overlay */
.hero-capsule {
  width: 62%;
  height: 26%;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: floaty 5s ease-in-out infinite;
  opacity: 0.85;
}

.hero-capsule::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--red-600);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(-8deg); }
}

/* Floating Stat Cards */
.hero-stat-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-100);
  z-index: 10; /* Ensures stat cards float above the banner image */
}

.hero-stat-card.a { top: 10%; left: -4%; }
.hero-stat-card.b { bottom: 8%; right: -4%; }
.hero-stat-card b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--red-700); }
.hero-stat-card span { font-size: 0.82rem; color: var(--ink-500); font-weight: 600; }

@media (max-width: 720px) {
  .hero-stat-card.a { top: 4%; left: 2%; }
  .hero-stat-card.b { bottom: 4%; right: 2%; }
}