/* =========================================
   365Med Theme - Main Stylesheet
   NHS-Aligned Pharmacy Website
   ========================================= */

/* ---- Variables ---- */
:root {
  --nhs-blue: #005EB8;
  --nhs-blue-dark: #003D78;
  --nhs-blue-light: #4C9ED9;
  --nhs-green: #007F3B;
  --white: #FFFFFF;
  --light-grey: #F0F4F5;
  --mid-grey: #D8DDE0;
  --dark-grey: #231F20;
  --text: #333333;
  --text-muted: #666666;
  --border: #D8DDE0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,94,184,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Inter', Arial, sans-serif;
  --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nhs-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--nhs-blue-dark); text-decoration: underline; }
ul { list-style: none; }

/* ---- Layout ---- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--nhs-blue); color: var(--white); border-color: var(--nhs-blue); }
.btn-primary:hover { background: var(--nhs-blue-dark); border-color: var(--nhs-blue-dark); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--nhs-blue); border-color: var(--nhs-blue); }
.btn-outline:hover { background: var(--nhs-blue); color: var(--white); text-decoration: none; }
.btn-white { background: var(--white); color: var(--nhs-blue); border-color: var(--white); }
.btn-white:hover { background: var(--light-grey); color: var(--nhs-blue-dark); text-decoration: none; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn:disabled,
.btn[disabled] {
  background: #b0bec5;
  border-color: #b0bec5;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
  transform: translateY(2px);
  pointer-events: none;
}

/* ---- Header Top Bar ---- */
.header-top {
  background: var(--nhs-blue-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}
.header-top-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.header-top-left a { color: var(--white); }
.header-top-left a:hover { text-decoration: underline; }
.gphc-badge { background: var(--nhs-green); color: var(--white); padding: 3px 10px; border-radius: 20px; font-weight: 600; font-size: 12px; }
.header-icon { margin-right: 4px; }

/* ---- Header Main ---- */
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-main { padding: 16px 0; }
.header-inner { display: flex; align-items: center; gap: 0; }

/* ---- Logo ---- */
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; transition: opacity 0.2s; }
.site-logo:hover { text-decoration: none; opacity: 0.85; }
.logo-badge { display: block; flex-shrink: 0; }
.logo-wordmark { display: flex; flex-direction: column; gap: 2px; }
.logo-name { display: flex; align-items: baseline; line-height: 1; }
.logo-365 {
  font-size: 30px;
  font-weight: 800;
  color: var(--nhs-blue);
  letter-spacing: -0.75px;
}
.logo-med {
  font-size: 30px;
  font-weight: 300;
  color: var(--dark-grey);
  letter-spacing: 0.5px;
}
.logo-tagline {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1;
}

/* Footer logo variant */
.site-logo--footer .logo-365 { color: var(--white); }
.site-logo--footer .logo-med { color: rgba(255,255,255,0.7); }
.site-logo--footer .logo-tagline { color: rgba(255,255,255,0.45); }

/* ---- Navigation ---- */
.primary-nav { flex: 1; min-width: 0; padding: 0 16px; }
.nav-menu { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.nav-menu li a {
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--dark-grey);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
  background: var(--light-grey);
  color: var(--nhs-blue);
  text-decoration: none;
}
/* ── Header cart widget ── */
.med-cart-widget--header {
  margin-left: auto;
  padding-left: 28px;
  border-left: 1px solid var(--mid-grey);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark-grey); transition: all var(--transition); border-radius: 2px; }

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--nhs-blue) 0%, var(--nhs-blue-dark) 100%);
  color: var(--white);
  padding: 36px 0 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 480px; height: 480px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}

/* Split hero layout */
.hero-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero p { font-size: 17px; opacity: 0.88; margin-bottom: 32px; max-width: 520px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-outline { border: 2px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; border-color: rgba(255,255,255,0.8); }
.hero-trust { margin-top: 40px; display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; opacity: 0.82; font-weight: 500; }
.trust-item::before { content: "✓"; font-weight: 700; font-size: 14px; opacity: 1; }

/* Hero visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.hero-emblem { opacity: 0.5; }
.hero-card-float {
  position: absolute;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap;
  animation: hero-float 3s ease-in-out infinite;
}
.hero-float-icon { font-size: 18px; }
.hero-card-float--1 { top: 10px; left: 0; animation-delay: 0s; }
.hero-card-float--2 { bottom: 30px; right: 0; animation-delay: 1s; }
.hero-card-float--3 { bottom: 0; left: 10px; animation-delay: 2s; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Stats Bar ---- */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.stats-grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 8px 40px; flex: 1; min-width: 140px; }
.stat-number { display: block; font-size: 22px; font-weight: 800; color: var(--nhs-blue); line-height: 1.1; }
.stat-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }
@media (max-width: 600px) { .stat-divider { display: none; } .stat-item { padding: 8px 16px; } }

/* ---- Section Styles ---- */
.section { padding: 48px 0; }
.section-alt { background: var(--light-grey); }
.section-blue { background: var(--nhs-blue); color: var(--white); }
.section-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; color: var(--dark-grey); margin-bottom: 12px; }
.section-subtitle { font-size: 17px; color: var(--text-muted); max-width: 600px; margin-bottom: 48px; }
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }
.section-blue .section-title { color: var(--white); }
.section-blue .section-subtitle { color: rgba(255,255,255,0.8); }

/* ---- Services Grid ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.services-grid--3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.service-card--link { text-decoration: none; color: inherit; cursor: pointer; }
.service-card--link:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); text-decoration: none; color: inherit; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.service-icon--blue   { background: #EBF4FF; }
.service-icon--green  { background: #EDFAF3; }
.service-icon--purple { background: #F3EEFF; }
.service-icon--pink   { background: #FFF0F6; }
.service-icon--orange { background: #FFF5EB; }
.service-icon--teal   { background: #E6F7F7; }
.service-card h3 { font-size: 17px; font-weight: 700; color: var(--dark-grey); margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.service-link { color: var(--nhs-blue); font-weight: 600; font-size: 13px; margin-top: auto; }

/* ---- About Us Section ---- */
.about-layout { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.about-points { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 32px; }
.about-point { display: flex; gap: 16px; align-items: flex-start; }
.about-point-icon { font-size: 24px; flex-shrink: 0; width: 44px; height: 44px; background: var(--light-grey); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.about-point strong { display: block; font-size: 15px; font-weight: 600; color: var(--dark-grey); margin-bottom: 4px; }
.about-point p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.about-card-stack { display: flex; flex-direction: column; gap: 16px; }
.about-reg-card {
  background: var(--light-grey);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  border-left: 4px solid var(--nhs-blue);
}
.about-reg-card--nhs  { border-color: var(--nhs-green); }
.about-reg-card--contact { border-color: var(--nhs-blue-light); }
.about-reg-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.about-reg-card strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark-grey); margin-bottom: 4px; }
.about-reg-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.about-reg-card a { color: var(--nhs-blue); font-size: 13px; font-weight: 500; }

@media (max-width: 960px) {
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .services-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid--3 { grid-template-columns: 1fr; }
}

/* ---- How It Works ---- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-item { text-align: center; }
.step-number {
  width: 60px; height: 60px;
  background: var(--nhs-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  margin: 0 auto 20px;
}
.step-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step-item p { color: var(--text-muted); font-size: 15px; }

/* ---- Info Cards ---- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-left: 4px solid var(--nhs-blue);
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--nhs-blue); }
.info-card p { color: var(--text-muted); font-size: 15px; }

/* ---- CTA Banner ---- */
.cta-banner { background: var(--nhs-blue); color: var(--white); padding: 64px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; margin-bottom: 16px; }
.cta-banner p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--nhs-blue) 0%, var(--nhs-blue-dark) 100%);
  color: var(--white);
  padding: 56px 0;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 17px; opacity: 0.85; max-width: 600px; }
.breadcrumb { font-size: 13px; opacity: 0.7; margin-bottom: 16px; }
.breadcrumb a { color: var(--white); text-decoration: underline; }

/* ---- Content Pages ---- */
.page-content-section { padding: 64px 0; }
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.content-body h2 { font-size: 26px; font-weight: 700; color: var(--nhs-blue); margin: 36px 0 16px; }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-size: 20px; font-weight: 600; margin: 24px 0 12px; }
.content-body p { margin-bottom: 16px; line-height: 1.7; }
.content-body ul { margin: 0 0 16px 20px; list-style: disc; }
.content-body ul li { margin-bottom: 6px; }

/* ---- Sidebar Cards ---- */
.sidebar-card {
  background: var(--light-grey);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 { font-size: 16px; font-weight: 600; color: var(--nhs-blue); margin-bottom: 12px; }
.sidebar-card p, .sidebar-card address { font-size: 14px; color: var(--text-muted); font-style: normal; line-height: 1.7; }
.sidebar-card a { color: var(--nhs-blue); }

/* ---- Contact Page ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 48px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--nhs-blue);
}
.contact-icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); font-size: 15px; }
.contact-card a { color: var(--nhs-blue); font-weight: 500; }

/* ---- Conditions List ---- */
.conditions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.condition-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 500;
  font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}

/* ---- Accordion (FAQ) ---- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  width: 100%; text-align: left;
  background: var(--white);
  border: none; cursor: pointer;
  padding: 20px 24px;
  font-size: 16px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
  font-family: var(--font);
}
.accordion-header:hover { background: var(--light-grey); }
.accordion-header.active { background: var(--light-grey); color: var(--nhs-blue); }
.accordion-icon { font-size: 20px; transition: transform var(--transition); }
.accordion-header.active .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 24px 20px; color: var(--text-muted); line-height: 1.7; }
.accordion-body.open { display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--dark-grey); color: var(--white); }
.footer-top { padding: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-gphc { background: var(--nhs-green); color: var(--white); }
.badge-nhs { background: var(--nhs-blue); color: var(--white); }
.footer-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-contact address { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.8; }
.footer-contact address p { margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact a:hover { color: var(--white); }

.footer-regulatory {
  background: rgba(0,0,0,0.25);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.regulatory-inner p { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 4px; }
.regulatory-inner a { color: rgba(255,255,255,0.7); text-decoration: underline; }

.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); text-align: center; }

/* ---- Legal Pages ---- */
.legal-page { padding: 64px 0; }
.legal-page .legal-body { max-width: 860px; }
.legal-page h2 { font-size: 22px; font-weight: 700; color: var(--nhs-blue); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--light-grey); }
.legal-page h2:first-child { margin-top: 0; }
.legal-page h3 { font-size: 17px; font-weight: 600; margin: 20px 0 10px; }
.legal-page p { margin-bottom: 14px; line-height: 1.75; }
.legal-page ul { margin: 0 0 16px 20px; list-style: disc; }
.legal-page ul li { margin-bottom: 6px; line-height: 1.6; }
.legal-page hr { border: none; border-top: 1px solid var(--light-grey); margin: 32px 0; }
.legal-page .private-rx-intro { font-size: 17px; line-height: 1.8; color: var(--dark-grey); border-left: 4px solid var(--nhs-blue); padding-left: 16px; margin-bottom: 32px; }
.legal-page .private-rx-cta { background: var(--light-grey); border-radius: var(--radius); padding: 20px 24px; margin-top: 8px; }
.legal-page .private-rx-cta p { margin: 0; }

/* ---- Shop Grid ---- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-image { background: var(--light-grey); height: 180px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.product-info p { font-size: 14px; color: var(--text-muted); }

/* ---- Health Hub ---- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.article-image { background: linear-gradient(135deg, var(--nhs-blue) 0%, var(--nhs-blue-light) 100%); height: 160px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.article-body { padding: 24px; }
.article-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--nhs-blue); letter-spacing: 0.05em; margin-bottom: 8px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.article-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---- Notice Box ---- */
.notice-box {
  background: #E8F0F8;
  border-left: 4px solid var(--nhs-blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.notice-box p { font-size: 15px; color: var(--dark-grey); margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { order: -1; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .header-top-inner { justify-content: center; }
  .header-top-right { display: none; }
  .header-inner { gap: 12px; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.1); padding: 16px; z-index: 999; padding-left: 16px; }
  .primary-nav.open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu li a { display: block; padding: 12px 16px; border-radius: 6px; }
  .header-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  .site-header { position: relative; }
  .header-main { position: relative; }
  .hero { padding: 48px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr 1fr; }
  .med-cart-widget { margin-left: 0; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}


/* ── Responsive header overrides ── */
@media (max-width: 1200px) {
  .nav-menu li a { padding: 6px 8px; font-size: 14px; }
  .primary-nav { padding: 0 12px; }
}
@media (max-width: 1024px) {
  .nav-menu li a { padding: 5px 7px; font-size: 13px; }
  .primary-nav { padding: 0 8px; }
}

/* ── Shop Filter Tabs ──────────────────────────────────────────────── */
.shop-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}
.shop-filter-btn {
  background: #f0f4f5;
  border: 1px solid #ddd;
  color: #444;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.shop-filter-btn:hover,
.shop-filter-btn.active {
  background: var(--nhs-blue);
  border-color: var(--nhs-blue);
  color: #fff;
}

/* ── Small page hero variant ───────────────────────────────────────── */
.page-hero--sm { padding: 32px 0; }
.page-hero--sm h1 { font-size: 1.8rem; }

/* =========================================
   Age Gate / 18+ Verification Modal
   ========================================= */
.age-gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 50, 0.93);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.age-gate-overlay.active {
  display: flex;
}
.age-gate-box {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px 36px;
  max-width: 480px;
  width: 92%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: age-gate-in 0.25s ease;
}
@keyframes age-gate-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.age-gate-logo {
  margin-bottom: 12px;
}
.age-gate-badge {
  display: inline-block;
  background: #D0021B;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  line-height: 56px;
  margin: 0 auto 16px;
}
.age-gate-title {
  font-size: 22px;
  font-weight: 700;
  color: #005EB8;
  margin-bottom: 10px;
}
.age-gate-subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.6;
}
.age-gate-dob {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.age-gate-field {
  flex: 1;
  text-align: left;
}
.age-gate-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.age-gate-field select {
  width: 100%;
  padding: 10px 8px;
  border: 2px solid #D8DDE0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  appearance: auto;
  cursor: pointer;
  transition: border-color 0.2s;
}
.age-gate-field select:focus {
  outline: none;
  border-color: #005EB8;
}
.age-gate-error {
  color: #D0021B;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
  font-weight: 500;
}
.age-gate-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #005EB8;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 14px;
}
.age-gate-btn:hover {
  background: #003D78;
}
.age-gate-exit {
  display: block;
  font-size: 13px;
  color: #888;
  text-decoration: underline;
  margin-bottom: 20px;
}
.age-gate-exit:hover {
  color: #555;
}
.age-gate-legal {
  font-size: 11px;
  color: #aaa;
  line-height: 1.5;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .age-gate-box {
    padding: 36px 20px 28px;
  }
  .age-gate-dob {
    gap: 6px;
  }
}
