/* ==========================================================================
   Double B Pharmacy — Main Stylesheet
   Clean, medical theme (white / green / blue) — WPConvert ready
   Fonts: Poppins (headings), Montserrat (subheadings/body)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 .5em;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: #0284c7; text-decoration: none; transition: color .2s; }
a:hover { color: #16a34a; }

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

/* ---------- Design Tokens ---------- */
:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #ecfdf5;
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-soft: #e0f2fe;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg-soft: #f8fafc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 4px 16px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub {
  font-family: 'Montserrat', sans-serif;
  text-align: center; color: var(--muted);
  max-width: 620px; margin: 0 auto 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500; font-size: .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-block { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: .85rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
}
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.25rem;
  color: var(--ink);
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
}

/* Search */
.search {
  display: flex; align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  max-width: 560px; width: 100%;
  margin: 0 auto;
}
.search input {
  flex: 1; border: 0; background: transparent;
  font-family: inherit; font-size: .95rem;
  outline: none;
}
.search button {
  background: var(--green); color: #fff;
  border: 0; border-radius: 999px;
  padding: 10px 18px; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 500;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 500; font-size: .9rem;
}
.icon-btn .badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--green); color: #fff;
  font-size: .7rem; font-weight: 700;
  border-radius: 999px; padding: 2px 6px; min-width: 18px;
  text-align: center;
}

/* ==========================================================================
   PRIMARY NAVIGATION — Classic responsive menu
   ========================================================================== */
.primary-nav {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 500; font-size: .92rem;
  padding: 14px 16px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible,
.nav-menu > li > a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

/* Caret indicator for submenu parents */
.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  transition: transform .2s ease;
}
.has-submenu.open > a .caret { transform: rotate(180deg); }

/* Submenu (desktop dropdown) */
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  min-width: 240px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.open > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--ink);
}
.submenu a:hover, .submenu a:focus-visible {
  background: var(--green-soft); color: var(--green-dark);
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.hamburger { position: relative; width: 20px; height: 14px; display: inline-block; }
.hamburger span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 6px; }
.hamburger span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--blue-soft) 100%);
  padding: 72px 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: #fff; color: var(--green-dark);
  font-size: .8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.hero h1 { color: var(--ink); }
.hero p.lead {
  font-size: 1.1rem; color: var(--muted); max-width: 520px;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px;
}
.hero-stats div strong {
  display: block;
  font-family: 'Poppins', sans-serif; font-size: 1.5rem; color: var(--ink);
}
.hero-stats div span { color: var(--muted); font-size: .85rem; }
.hero-image {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-image img { border-radius: 16px; }

/* ==========================================================================
   CATEGORIES GRID
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.category-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--green-soft);
  display: grid; place-items: center;
  font-size: 1.6rem;
}
.category-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: .95rem; margin: 0;
}

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-thumb {
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  position: relative;
}
.product-thumb img { width: 70%; }
.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--green); color: #fff;
  font-size: .7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.product-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 500; color: var(--ink);
  font-size: 1rem; margin: 0;
}
.product-rating { color: #f59e0b; font-size: .85rem; }
.product-footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
}
.product-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; color: var(--ink); font-size: 1.1rem;
}
.product-price small {
  color: var(--muted); text-decoration: line-through;
  font-weight: 400; font-size: .8rem; margin-left: 6px;
}
.product-add {
  background: var(--green-soft); color: var(--green-dark);
  border: 0; border-radius: 999px;
  width: 36px; height: 36px; cursor: pointer;
  font-size: 1.1rem;
  transition: background .2s, color .2s;
}
.product-add:hover { background: var(--green); color: #fff; }

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */
.promo {
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 20px;
  padding: 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 32px;
}
.promo h2 { color: #fff; }
.promo p { color: rgba(255,255,255,.9); margin-bottom: 24px; }
.promo .btn { background: #fff; color: var(--green-dark); }
.promo .btn:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   WHY CHOOSE US (Trust section)
   ========================================================================== */
.trust {
  background: var(--bg-soft);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.trust-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--blue-soft); color: var(--blue-dark);
  display: grid; place-items: center; font-size: 1.6rem;
}
.trust-card h4 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; margin-bottom: 6px; }
.trust-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial .stars { color: #f59e0b; margin-bottom: 12px; }
.testimonial p { font-style: italic; color: #334155; }
.testimonial .author {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
}
.testimonial .author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; font-weight: 600;
}
.testimonial .author strong { display: block; font-family: 'Poppins', sans-serif; }
.testimonial .author span { color: var(--muted); font-size: .85rem; }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter {
  background: var(--green-soft);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.newsletter h2 { margin-bottom: 8px; }
.newsletter p { color: var(--muted); margin-bottom: 24px; }
.newsletter-form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 12px 18px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; font-family: inherit; outline: none;
}
.newsletter-form input:focus { border-color: var(--green); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 64px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 {
  font-family: 'Poppins', sans-serif;
  color: #fff; font-size: 1rem; margin-bottom: 16px;
}
.footer-col a { display: block; color: #cbd5e1; padding: 4px 0; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #94a3b8; font-size: .9rem; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: #fff;
}
.social a:hover { background: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #94a3b8;
  flex-wrap: wrap; gap: 12px;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.breadcrumb {
  font-size: .85rem; color: var(--muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 24px 0 64px;
}
.gallery-main {
  background: var(--bg-soft);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  padding: 32px;
}
.gallery-main img { max-height: 100%; width: auto; }
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px;
}
.gallery-thumbs button {
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px; cursor: pointer;
  aspect-ratio: 1 / 1;
}
.gallery-thumbs button.active,
.gallery-thumbs button:hover { border-color: var(--green); }
.gallery-thumbs img { max-height: 100%; margin: 0 auto; }

.pd-info h1 { font-size: 2rem; margin-bottom: 8px; }
.pd-meta { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.pd-price {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; font-weight: 600; color: var(--green-dark);
  margin: 16px 0;
}
.pd-price small {
  color: var(--muted); text-decoration: line-through;
  font-size: 1rem; font-weight: 400; margin-left: 10px;
}
.pd-desc { color: #334155; margin-bottom: 24px; }
.pd-qty {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.qty-box {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
}
.qty-box button {
  background: transparent; border: 0; cursor: pointer;
  width: 38px; height: 38px; font-size: 1.1rem;
}
.qty-box input {
  width: 40px; border: 0; text-align: center;
  font-family: inherit; outline: none; background: transparent;
}
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-trust {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  color: var(--muted); font-size: .85rem;
}
.pd-trust div { display: flex; align-items: center; gap: 8px; }
.pd-trust span { font-size: 1.1rem; }

/* ==========================================================================
   CATEGORY / LISTING PAGE
   ========================================================================== */
.listing-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  padding: 24px 0 64px;
}
.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
}
.sidebar h4 {
  font-family: 'Poppins', sans-serif; font-size: 1rem;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.sidebar ul { list-style: none; padding: 0; margin: 0 0 20px; }
.sidebar li { padding: 6px 0; }
.sidebar li a { color: var(--ink); font-size: .9rem; }
.sidebar li a:hover { color: var(--green); }

.listing-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.listing-header h1 { font-size: 1.75rem; margin: 0; }
.sort-select {
  padding: 10px 16px; border: 1px solid var(--line);
  border-radius: 999px; font-family: inherit; background: #fff;
  cursor: pointer;
}

.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 40px;
}
.pagination a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); font-weight: 500;
}
.pagination a:hover, .pagination a.active {
  background: var(--green); color: #fff; border-color: var(--green);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid  { grid-template-columns: repeat(3, 1fr); }
  .trust-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .listing-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .topbar-inner { font-size: .75rem; }

  /* Restructure header: row 1 = logo + account/cart, row 2 = centered menu button */
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 12px 0;
  }
  .header-actions { display: contents; }            /* lift children into header-inner flex */
  .icon-btn:first-of-type { margin-left: auto; }    /* push account+cart to the right */
  .search { display: none; }

  /* Classic top-right hamburger button */
  .menu-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: var(--green, #0B8E72);
    border: 0; border-radius: 10px;
    color: #fff; cursor: pointer;
    box-shadow: var(--shadow-sm);
    margin-left: auto;
    z-index: 1001;
    position: relative;
  }
  .menu-toggle .hamburger span { background: #fff; }

  /* Right-side slide-in panel */
  .primary-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 78%; max-width: 320px;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
    overflow-y: auto;
    border-top: 0;
    padding-top: 72px;
  }
  body.nav-open .primary-nav { transform: translateX(0); }

  /* Overlay backdrop */
  body.nav-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 999;
    animation: navFadeIn .3s ease;
  }
  @keyframes navFadeIn { from { opacity: 0; } to { opacity: 1; } }

  .nav-menu {
    display: flex;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 0;
  }
  .nav-menu > li { width: 100%; opacity: 0; transform: translateX(20px); }
  body.nav-open .nav-menu > li {
    animation: navItemIn .4s ease forwards;
  }
  body.nav-open .nav-menu > li:nth-child(1) { animation-delay: .08s; }
  body.nav-open .nav-menu > li:nth-child(2) { animation-delay: .14s; }
  body.nav-open .nav-menu > li:nth-child(3) { animation-delay: .20s; }
  body.nav-open .nav-menu > li:nth-child(4) { animation-delay: .26s; }
  body.nav-open .nav-menu > li:nth-child(5) { animation-delay: .32s; }
  body.nav-open .nav-menu > li:nth-child(6) { animation-delay: .38s; }
  @keyframes navItemIn {
    to { opacity: 1; transform: translateX(0); }
  }
  .nav-menu > li > a {
    width: 100%; padding: 16px 24px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }
  .nav-menu > li > a:hover,
  .nav-menu > li > a.active {
    background: var(--green-soft);
    color: var(--green-dark);
  }

  /* Submenu becomes inline accordion on mobile */
  .submenu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0;
    background: var(--green-soft);
    border-radius: 8px; margin: 6px 0 10px;
    padding: 6px;
    display: none;
    transition: none;
  }
  .has-submenu.open > .submenu { display: block; }

  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }

  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid  { grid-template-columns: repeat(2, 1fr); }
  .trust-grid    { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .promo { grid-template-columns: 1fr; padding: 32px; text-align: center; }
  .newsletter { padding: 32px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }

  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .pd-trust { grid-template-columns: 1fr; }

  .listing-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-grid    { grid-template-columns: 1fr; }
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--blue-soft) 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid #e5e7eb;
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: #475569; max-width: 720px; font-size: 1.05rem; }
.page-hero .breadcrumb { padding: 0 0 14px; }

/* ---------- Prose / Content Blocks ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; color: var(--green-dark); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1rem; }
.prose ul li, .prose ol li { margin-bottom: .4rem; }
.prose blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  margin: 1.5rem 0; padding: 16px 22px;
  border-radius: 0 10px 10px 0; font-style: italic; color: #334155;
}

/* ---------- Info Grid (about / services) ---------- */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; margin-top: 30px;
}
.info-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 28px 24px; transition: transform .2s, box-shadow .2s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.info-card .ic-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.info-card p { color: #64748b; font-size: .95rem; margin: 0; }

/* ---------- Stats Strip ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--green-dark); color: #fff;
  padding: 40px 30px; border-radius: 16px; text-align: center;
}
.stats-strip strong { display:block; font-size: 2.2rem; font-family:'Poppins'; }
.stats-strip span { opacity: .85; font-size: .95rem; }
@media (max-width: 768px){ .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Team ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 30px;
}
.team-card { text-align: center; background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:24px; }
.team-card img { width:110px; height:110px; border-radius:50%; object-fit:cover; margin:0 auto 14px; }
.team-card h4 { margin-bottom:4px; }
.team-card span { color: var(--green-dark); font-size:.9rem; font-weight:500; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start;
}
@media (max-width: 900px){ .contact-layout { grid-template-columns: 1fr; } }
.contact-info { background: var(--green-dark); color:#fff; padding: 36px; border-radius: 16px; }
.contact-info h3 { color:#fff; }
.contact-info .ci-item { display:flex; gap:14px; align-items:flex-start; margin-bottom:20px; }
.contact-info .ci-item span:first-child { font-size:1.4rem; }
.contact-info a { color:#fff; text-decoration:underline; }

.contact-form { background:#fff; border:1px solid #e5e7eb; padding:36px; border-radius:16px; box-shadow:0 4px 14px rgba(0,0,0,.04); }
.contact-form label { display:block; margin-bottom:6px; font-weight:500; font-size:.95rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width:100%; padding:12px 14px; border:1px solid #d1d5db; border-radius:10px;
  font-family:inherit; font-size:1rem; margin-bottom:16px; background:#fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline:2px solid var(--green); border-color:var(--green); }
.contact-form textarea { min-height:130px; resize:vertical; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  margin-bottom:14px; overflow:hidden;
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight:600; color:#0f172a;
  list-style:none; display:flex; justify-content:space-between; align-items:center;
  font-family:'Poppins';
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; font-size:1.4rem; color:var(--green-dark); transition:transform .2s; }
.faq-item[open] summary::after { content:'−'; }
.faq-item[open] summary { background: var(--green-soft); }
.faq-item p { padding: 4px 22px 20px; color:#475569; margin:0; }

/* ---------- Blog Grid ---------- */
.blog-grid {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:26px;
}
.blog-card { background:#fff; border:1px solid #e5e7eb; border-radius:14px; overflow:hidden; transition:transform .2s, box-shadow .2s; }
.blog-card:hover { transform:translateY(-4px); box-shadow:0 12px 30px rgba(0,0,0,.08); }
.blog-card img { width:100%; height:200px; object-fit:cover; }
.blog-body { padding:22px; }
.blog-meta { font-size:.85rem; color:#64748b; margin-bottom:8px; }
.blog-body h3 { font-size:1.15rem; margin-bottom:8px; }
.blog-body h3 a { color:#0f172a; }
.blog-body h3 a:hover { color: var(--green-dark); }
.blog-body p { color:#64748b; font-size:.95rem; margin-bottom:12px; }
.read-more { color:var(--green-dark); font-weight:600; font-size:.9rem; }

/* ---------- Product Tabs ---------- */
.pd-tabs { margin-top: 50px; border-top: 1px solid #e5e7eb; padding-top: 30px; }
.tabs-nav { display:flex; gap:30px; border-bottom:2px solid #e5e7eb; margin-bottom:24px; flex-wrap:wrap; }
.tab-btn {
  background:none; border:none; padding:14px 4px; cursor:pointer;
  font-family:'Poppins'; font-weight:600; color:#64748b; font-size:1rem;
  border-bottom:3px solid transparent; margin-bottom:-2px;
}
.tab-btn.active { color: var(--green-dark); border-color: var(--green); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* ---------- Spec Table ---------- */
.spec-table { width:100%; border-collapse: collapse; margin: 10px 0; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom:1px solid #e5e7eb; text-align:left; }
.spec-table th { background: var(--bg-soft); width: 35%; font-weight:600; }

/* ---------- Reviews ---------- */
.review-item { padding: 20px 0; border-bottom:1px solid #e5e7eb; }
.review-item:last-child { border-bottom:0; }
.review-head { display:flex; justify-content:space-between; margin-bottom:8px; }
.review-head strong { font-family:'Poppins'; }
.review-head .stars { color:#f59e0b; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  color:#fff; padding: 50px 40px; border-radius: 18px; text-align:center;
}
.cta-banner h2 { color:#fff; }
.cta-banner p { color:rgba(255,255,255,.9); max-width:600px; margin:0 auto 22px; }
.cta-banner .btn { background:#fff; color: var(--green-dark); }
.cta-banner .btn:hover { background: var(--bg-soft); }

/* ---------- Prescription Upload Modal ---------- */
.rx-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  padding: 16px; overflow-y: auto;
}
.rx-modal.open { display: flex; }
.rx-modal-card {
  background: #fff; width: 100%; max-width: 520px;
  border-radius: 18px; padding: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  position: relative; animation: rxFadeIn .25s ease;
  max-height: calc(100vh - 32px); overflow-y: auto;
}
@keyframes rxFadeIn { from { opacity:0; transform: translateY(15px); } to { opacity:1; transform:none; } }
.rx-modal-card h3 { margin: 0 0 6px; font-family:'Poppins'; }
.rx-modal-card p.rx-sub { color:#64748b; margin: 0 0 18px; font-size:.95rem; }
.rx-close {
  position:absolute; top:14px; right:14px; background:#f1f5f9; border:none;
  width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:1.1rem;
  display:flex; align-items:center; justify-content:center;
}
.rx-close:hover { background:#e2e8f0; }
.rx-drop {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 24px;
  text-align:center; cursor:pointer; transition:.2s; margin-bottom:14px;
  background: var(--bg-soft);
}
.rx-drop:hover, .rx-drop.drag { border-color: var(--green); background: #f0fdf4; }
.rx-drop .rx-icon { font-size: 2.2rem; }
.rx-drop strong { display:block; margin-top:6px; font-family:'Poppins'; }
.rx-drop small { color:#64748b; }
.rx-file-name { font-size:.9rem; color:var(--green-dark); margin-top:8px; font-weight:600; word-break:break-all; }
.rx-modal-card label { display:block; font-size:.85rem; font-weight:600; margin: 10px 0 4px; color:#334155; }
.rx-modal-card input[type=text], .rx-modal-card input[type=tel], .rx-modal-card textarea {
  width:100%; padding:10px 12px; border:1px solid #cbd5e1; border-radius:8px;
  font-family:inherit; font-size:.95rem;
}
.rx-modal-card textarea { min-height: 70px; resize: vertical; }
.rx-modal-card .btn { margin-top: 16px; width:100%; }
.rx-success { color: var(--green-dark); font-weight:600; margin-top: 12px; text-align:center; }

@media (max-width: 480px) {
  .rx-modal-card { padding: 22px 18px; border-radius: 14px; }
  .rx-drop { padding: 18px; }
}
