:root {
  --clinical-blue: #1F6FEB;
  --pharmacy-teal: #1AAE9F;
  --soft-green: #BFE38B;
  --graphite: #263238;
  --light-panel: #F4F8FB;
  --white: #FFFFFF;
  --ink: #111d23;
}

body {
  margin: 0;
  background: var(--light-panel);
  color: var(--graphite);
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
.brand,
.footer-brand {
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

a {
  color: var(--clinical-blue);
  text-decoration: none;
}

.article-panel a,
.category-content a,
.product-card-body a:not(.button) {
  color: var(--clinical-blue);
  text-decoration: underline;
  text-decoration-color: rgba(31, 111, 235, 0.28);
  text-underline-offset: 0.16em;
}

.article-panel a:hover,
.category-content a:hover {
  color: var(--pharmacy-teal);
  text-decoration-color: var(--pharmacy-teal);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(38, 50, 56, 0.12);
  box-shadow: 0 8px 24px rgba(38, 50, 56, 0.08);
}

.pharmacy-nav,
.top-bar,
.top-bar ul {
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  color: var(--clinical-blue);
  font-size: 1.35rem;
}

.menu a {
  color: var(--graphite);
  font-weight: 700;
}

.menu a:hover {
  color: var(--clinical-blue);
}

.hero-section {
  padding: 38px 0 20px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(38, 50, 56, 0.12);
}

.hero-card > div:first-child {
  padding: clamp(28px, 5vw, 62px);
}

.hero-image {
  min-height: 320px;
  background-position: center;
  background-size: cover;
}

.hero-card h1,
.page-hero h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 1;
}

.lead {
  max-width: 760px;
  color: #4a5a62;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(26, 174, 159, 0.16);
  color: var(--pharmacy-teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 6px 10px;
  text-transform: uppercase;
}

.button {
  border-radius: 999px;
  background: var(--clinical-blue);
  font-weight: 800;
}

.button.success {
  background: var(--soft-green);
  color: var(--graphite);
}

.content-shell {
  padding: 34px 0 72px;
}

.catalog-sidebar {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid rgba(38, 50, 56, 0.1);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(38, 50, 56, 0.08);
}

.catalog-sidebar strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
}

.catalog-sidebar .nested {
  margin-left: 0.75rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.product-card,
.category-card,
.article-panel {
  border: 1px solid rgba(38, 50, 56, 0.1);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(38, 50, 56, 0.08);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 18px;
  background: linear-gradient(135deg, #f8fcff, #e8f6f4);
}

.product-card-body {
  padding: 18px;
}

.product-card h3 {
  min-height: 48px;
  font-size: 1.06rem;
}

.page-hero {
  padding: 56px 0 42px;
  background: linear-gradient(135deg, var(--white), #eaf6fb);
  border-bottom: 1px solid rgba(38, 50, 56, 0.08);
}

.article-hero {
  background: linear-gradient(135deg, #eaf6fb, var(--white));
}

.article-panel {
  padding: clamp(22px, 4vw, 42px);
}

.article-panel > .media-card:first-child {
  float: right;
  width: min(290px, 42%);
  margin: 0 0 18px 24px;
}

.media-card {
  margin: 0 0 20px;
}

.media-card img,
.main-image img,
.category-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
}

table {
  border-radius: 14px;
  overflow: hidden;
}

thead {
  background: var(--clinical-blue);
  color: var(--white);
}

blockquote {
  border-left: 6px solid var(--pharmacy-teal);
  background: var(--light-panel);
  padding: 16px 20px;
}

.breadcrumbs {
  margin-bottom: 20px;
}

.toc {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(38, 50, 56, 0.08);
}

.main-image {
  float: right;
  max-width: min(330px, 100%);
  margin: 0 0 18px 24px;
}

.category-card {
  padding: 18px;
}

.category-card.horizontal {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
}

.category-card.minimal {
  border-left: 5px solid var(--pharmacy-teal);
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--clinical-blue);
  font-weight: 800;
}

.site-footer {
  background: var(--graphite);
  color: var(--white);
  padding: 42px 0;
}

.footer-brand,
.site-footer a,
.site-footer p {
  color: var(--white);
}

.footer-links,
.footer-links ul {
  margin: 0;
  list-style: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

@media (max-width: 840px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .top-bar {
    display: block;
  }

  .top-bar-right .menu {
    flex-wrap: wrap;
  }

  .catalog-sidebar {
    position: static;
    margin-bottom: 22px;
  }

  .article-panel > .media-card:first-child,
  .main-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
  }

  .category-card.horizontal {
    grid-template-columns: 1fr;
  }
}

/* Collapse nested menus; reveal on hover */
.top-bar-right li.has-submenu { position: relative; }
.top-bar-right li.has-submenu > ul.nested {
  display: none; position: absolute; top: 100%; right: 0; z-index: 90;
  min-width: 240px; margin: 0; padding: 6px 0; background: #fff;
  border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.top-bar-right li.has-submenu:hover > ul.nested,
.top-bar-right li.has-submenu:focus-within > ul.nested { display: block; }
.top-bar-right li.has-submenu > ul.nested li { display: block; }
.top-bar-right li.has-submenu > ul.nested li a { display: block; padding: 6px 14px; white-space: nowrap; }
