/*
Theme Name: Medicine Price BD
Theme URI: https://medicinepricebd.com/
Author: Medicine Price BD
Author URI: https://medicinepricebd.com/
Description: বাংলাদেশের প্রিমিয়াম ঔষধের দাম, জেনেরিক, কোম্পানি ও রোগ নির্দেশিকা ওয়ার্ডপ্রেস থিম — ক্লিনিক্যাল নেভি ও টিল ডিজাইন, লাইভ সার্চ, প্রেসক্রিপশন প্রাইস ক্যালকুলেটর, হেলথ টুলস এবং Google Medical SEO (Drug, Product, MedicalCondition, FAQPage ও BreadcrumbList Schema) সহ।
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medicine-price-bd
*/

/* ==========================================================================
   1. Design Tokens — Clinical Navy & Medical Teal
   ========================================================================== */
:root {
	--navy: #0b2545;
	--navy-2: #13315c;
	--navy-3: #1d4ed8;
	--teal: #0d9488;
	--teal-dark: #0f766e;
	--teal-soft: rgba(13, 148, 136, 0.10);
	--emerald: #059669;
	--emerald-soft: rgba(5, 150, 105, 0.10);
	--gold: #d97706;
	--gold-soft: rgba(217, 119, 6, 0.12);
	--danger: #dc2626;
	--danger-soft: rgba(220, 38, 38, 0.10);

	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--line-2: #f1f5f9;
	--bg: #f8fafc;
	--surface: #ffffff;
	--surface-2: #f1f5f9;

	--radius: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;
	--shadow-xs: 0 1px 2px rgba(11, 37, 69, 0.05);
	--shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06), 0 1px 3px rgba(11, 37, 69, 0.04);
	--shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08), 0 2px 6px rgba(11, 37, 69, 0.04);
	--shadow-lg: 0 18px 44px rgba(11, 37, 69, 0.14);

	--sans: "Hind Siliguri", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Noto Serif Bengali", "Hind Siliguri", Georgia, serif;
	--container: 1260px;
}

[data-theme="dark"] {
	--navy: #07162b;
	--navy-2: #0f2544;
	--ink: #f1f5f9;
	--ink-2: #cbd5e1;
	--muted: #94a3b8;
	--line: #1e293b;
	--line-2: #162032;
	--bg: #09111f;
	--surface: #0f192b;
	--surface-2: #162238;
	--teal-soft: rgba(20, 184, 166, 0.15);
	--emerald-soft: rgba(16, 185, 129, 0.16);
	--gold-soft: rgba(245, 158, 11, 0.16);
	--danger-soft: rgba(248, 113, 113, 0.16);
	--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
	--shadow-md: 0 10px 28px rgba(0, 0, 0, 0.42);
}

/* ==========================================================================
   2. Base & Accessibility
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { color: var(--teal); }
[data-theme="dark"] a { color: #2dd4bf; }
h1, h2, h3, h4 { margin: 0 0 0.55em; line-height: 1.3; font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 9999; width: auto; height: auto;
	clip: auto; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 44px; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svg-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.tnum { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   3. Buttons, Badges & Chips
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
	border: 1px solid transparent; cursor: pointer; transition: all .18s ease; text-decoration: none; line-height: 1.25;
}
.btn--primary { background: var(--teal); color: #fff !important; }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--navy { background: var(--navy); color: #fff !important; }
.btn--navy:hover { background: var(--navy-2); }
.btn--outline { background: var(--surface); color: var(--ink) !important; border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-dark) !important; background: var(--teal-soft); }
.btn--sm { padding: 7px 13px; font-size: 13.5px; }
.btn--xs { padding: 5px 10px; font-size: 12.5px; }

.icon-btn {
	width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line);
	background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; transition: all .18s ease; position: relative;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.icon-btn__count {
	position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 99px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}

.badge {
	display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px;
	font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.badge--teal { background: var(--teal-soft); color: var(--teal-dark); }
[data-theme="dark"] .badge--teal { color: #5eead4; }
.badge--emerald { background: var(--emerald-soft); color: var(--emerald); }
.badge--gold { background: var(--gold-soft); color: var(--gold); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--navy { background: rgba(11, 37, 69, 0.08); color: var(--navy); }
[data-theme="dark"] .badge--navy { background: rgba(148, 163, 184, 0.16); color: #e2e8f0; }

/* ==========================================================================
   4. Topbar & Sticky Header Navigation
   ========================================================================== */
.topbar {
	background: var(--navy); color: rgba(255, 255, 255, 0.88); font-size: 13px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; flex-wrap: wrap; padding-block: 4px;
}
.topbar__trust { display: flex; align-items: center; gap: 8px; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25); }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__links { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.topbar__links a { color: rgba(255, 255, 255, 0.82); font-size: 12.5px; }
.topbar__links a:hover { color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 90; background: var(--surface);
	border-bottom: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
	width: 42px; height: 42px; border-radius: 11px;
	background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
	color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.brand__name span { color: var(--teal); }
.brand__sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; }
.nav-menu {
	display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
	display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: var(--radius-sm);
	font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
	color: var(--teal-dark); background: var(--teal-soft);
}
[data-theme="dark"] .nav-menu > li > a:hover { color: #5eead4; }

.nav-menu .sub-menu {
	position: absolute; top: calc(100% + 4px); left: 0; min-width: 230px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 120;
}
.nav-menu li.menu-item-has-children:hover > .sub-menu,
.nav-menu li.menu-item-has-children.is-open > .sub-menu,
.nav-menu li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu .sub-menu a {
	display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.nav-menu .sub-menu a:hover { background: var(--teal-soft); color: var(--teal-dark); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }

/* ==========================================================================
   5. Hero & Live Autocomplete Search
   ========================================================================== */
.hero {
	background: radial-gradient(circle at 85% 15%, rgba(13, 148, 136, 0.28), transparent 45%),
	            linear-gradient(135deg, #071930 0%, #0b2545 55%, #0f3b5c 100%);
	color: #fff; padding: 48px 0 54px; position: relative; overflow: visible;
}
.hero__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: center; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 99px;
	background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 13px; font-weight: 600; color: #99f6e4; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(28px, 3.8vw, 42px); color: #fff; margin-bottom: 12px; line-height: 1.22; }
.hero h1 span { color: #5eead4; }
.hero__desc { font-size: 16.5px; color: rgba(255, 255, 255, 0.85); max-width: 620px; margin-bottom: 22px; }

.search-box {
	background: var(--surface); color: var(--ink); border-radius: var(--radius);
	padding: 14px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.18);
	position: relative;
}
.search-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.search-tab {
	padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2);
	color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.search-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.search-form-row { display: flex; gap: 8px; align-items: center; position: relative; }
.search-input-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.search-input-wrap .svg-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-input {
	width: 100%; height: 48px; padding: 10px 14px 10px 42px; border-radius: var(--radius-sm);
	border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15.5px;
}
.search-input:focus { border-color: var(--teal); background: var(--surface); outline: none; }

.autocomplete-list {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 150;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg); max-height: 390px; overflow-y: auto; display: none;
}
.autocomplete-list.is-open { display: block; }
.ac-item {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink);
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: var(--teal-soft); }
.ac-item__title { font-weight: 700; font-size: 15px; display: block; }
.ac-item__meta { font-size: 12.5px; color: var(--muted); display: block; }
.ac-item__price { font-weight: 700; color: var(--emerald); white-space: nowrap; font-size: 14px; }
.ac-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }

.hero__trust {
	display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, 0.88);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }

.hero__stats {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.stat-card {
	background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px); border-radius: var(--radius); padding: 18px;
}
.stat-card__num { font-size: 26px; font-weight: 800; color: #5eead4; line-height: 1.1; margin-bottom: 4px; }
.stat-card__label { font-size: 13.5px; color: rgba(255, 255, 255, 0.86); }

/* ==========================================================================
   6. Quick Actions & Symptom Chips
   ========================================================================== */
.quick-grid {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -26px; position: relative; z-index: 20;
}
.quick-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.quick-card__icon {
	width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
[data-theme="dark"] .quick-card__icon { color: #5eead4; }
.quick-card__title { font-weight: 700; font-size: 14.5px; color: var(--ink); display: block; }
.quick-card__sub { font-size: 12px; color: var(--muted); display: block; }

.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.section-head__eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); margin-bottom: 4px; display: block; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 4px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.chips-wrap { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 99px;
	background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600;
	transition: all .16s ease; cursor: pointer;
}
.chip:hover, .chip.is-active { background: var(--teal); color: #fff !important; border-color: var(--teal); }
.chip__count { font-size: 12px; opacity: 0.8; }

/* ==========================================================================
   7. Cards — Medicine, Company, Disease, Article
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.med-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
	box-shadow: var(--shadow-xs); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.med-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.med-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.med-card__title { font-size: 18px; font-weight: 700; margin: 6px 0 2px; line-height: 1.3; }
.med-card__title a { color: var(--ink); }
.med-card__title a:hover { color: var(--teal); }
.med-card__strength { font-size: 13px; color: var(--muted); font-weight: 500; }
.med-card__generic { font-size: 14px; font-weight: 600; color: var(--teal-dark); margin: 4px 0; }
[data-theme="dark"] .med-card__generic { color: #5eead4; }
.med-card__company { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.med-card__diseases { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.med-card__disease-tag {
	font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2);
}
.med-card__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding-top: 12px; border-top: 1px solid var(--line-2);
}
.price-block__unit { font-size: 19px; font-weight: 800; color: var(--emerald); display: block; line-height: 1.1; }
.price-block__sub { font-size: 12px; color: var(--muted); }

.company-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: all .18s ease;
}
.company-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.company-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.company-card__logo {
	width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--teal));
	color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.company-card__title { font-size: 16px; font-weight: 700; margin: 0; }
.company-card__en { font-size: 12.5px; color: var(--muted); }
.company-card__desc { font-size: 13.5px; color: var(--ink-2); margin: 0; }

.disease-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: all .18s ease;
}
.disease-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.disease-card h3 { font-size: 17px; margin: 0; }
.disease-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ==========================================================================
   8. Filter Bars, Alphabet Bar & Archive Layouts
   ========================================================================== */
.page-banner {
	background: linear-gradient(135deg, var(--navy) 0%, #10395b 100%);
	color: #fff; padding: 34px 0;
}
.page-banner h1 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.page-banner p { color: rgba(255, 255, 255, 0.84); margin: 0; max-width: 720px; }

.breadcrumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13.5px;
	color: var(--muted); margin-bottom: 14px;
}
.page-banner .breadcrumbs { color: rgba(255, 255, 255, 0.78); }
.page-banner .breadcrumbs a { color: #99f6e4; }
.breadcrumbs a { color: var(--teal-dark); font-weight: 500; }

.filter-panel {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; margin-bottom: 22px; box-shadow: var(--shadow-xs);
}
.filter-row { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr) auto; gap: 10px; align-items: center; }
.input, .select {
	width: 100%; height: 42px; padding: 8px 12px; border-radius: var(--radius-sm);
	border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14.5px;
}
.input:focus, .select:focus { border-color: var(--teal); outline: none; background: var(--surface); }

.az-bar { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.az-btn {
	min-width: 32px; height: 32px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line);
	background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 600;
	display: inline-flex; align-items: center; justify-content: center;
}
.az-btn:hover, .az-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ==========================================================================
   9. Single Medicine & Single Disease Layouts
   ========================================================================== */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.panel {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px; box-shadow: var(--shadow-xs); margin-bottom: 18px;
}

.med-hero-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.med-hero-card__title { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 4px; }
.price-strip {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px;
	padding: 16px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line);
}
.price-strip__box span { font-size: 12.5px; color: var(--muted); display: block; }
.price-strip__box strong { font-size: 22px; font-weight: 800; color: var(--emerald); }

.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.variant-pill {
	padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg);
	font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.variant-pill.is-current, .variant-pill:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }

/* Accordions */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; background: var(--surface); }
.accordion__trigger {
	width: 100%; padding: 15px 18px; border: 0; background: transparent; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
	font-size: 16px; font-weight: 700; color: var(--ink);
}
.accordion__trigger:hover { background: var(--surface-2); }
.accordion__chevron { transition: transform .2s ease; }
.accordion.is-open .accordion__chevron { transform: rotate(180deg); }
.accordion__body { display: none; padding: 0 18px 16px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 12px; }
.accordion.is-open .accordion__body { display: block; }

/* Alternatives Table */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.data-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); background: var(--surface-2); }
.data-table tr:hover td { background: var(--teal-soft); }

/* Disease Tabs */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tab-btn {
	padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg);
	font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2);
}
.tab-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Quick Facts Sidebar */
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
	display: flex; justify-content: space-between; gap: 10px; padding: 10px 0;
	border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list span { color: var(--muted); }
.fact-list strong { text-align: right; color: var(--ink); }

.ymyl-box {
	background: var(--gold-soft); border: 1px solid rgba(217, 119, 6, 0.35);
	border-radius: var(--radius-md); padding: 15px 17px; font-size: 14px; color: var(--ink);
}
.ymyl-box--danger {
	background: var(--danger-soft); border-color: rgba(220, 38, 38, 0.35);
}
.reviewer-box {
	display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--radius-md);
	background: var(--emerald-soft); border: 1px solid rgba(5, 150, 105, 0.25); font-size: 13.5px;
}

/* ==========================================================================
   10. Interactive Calculators & Prescription Estimator
   ========================================================================== */
.calc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.rx-item-row {
	display: grid; grid-template-columns: 1.6fr 0.7fr 0.7fr 0.9fr auto; gap: 10px; align-items: center;
	padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 10px;
}
.rx-summary {
	background: linear-gradient(135deg, var(--navy), #10395b); color: #fff;
	border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.rx-summary__val { font-size: 26px; font-weight: 800; color: #5eead4; display: block; }

/* ==========================================================================
   11. Footer, Drawer & Bookmarks
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.85); padding-top: 46px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 30px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; font-size: 14px; }
.footer-links a { color: rgba(255, 255, 255, 0.78); }
.footer-links a:hover { color: #5eead4; }
.footer-disclaimer {
	border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; font-size: 13px; color: rgba(255, 255, 255, 0.75);
}
.footer-bottom {
	background: rgba(0, 0, 0, 0.24); padding: 14px 0; font-size: 13px; color: rgba(255, 255, 255, 0.72);
}
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(7, 22, 43, 0.65); }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw);
	background: var(--surface); padding: 20px; overflow-y: auto; box-shadow: var(--shadow-lg);
	display: flex; flex-direction: column; gap: 16px;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--teal); color: #fff; border-color: var(--teal); }

.to-top {
	position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: var(--navy); color: #fff; box-shadow: var(--shadow-md);
	display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 80;
}
.to-top.is-visible { display: flex; }

/* ==========================================================================
   12. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
	.hero__grid { grid-template-columns: 1fr; }
	.quick-grid { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.filter-row { grid-template-columns: 1fr 1fr; }
	.detail-layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
	.main-nav, .header__cta { display: none; }
	.menu-toggle { display: inline-flex; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.rx-item-row { grid-template-columns: 1fr 1fr; }
	.rx-summary { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.quick-grid, .grid-3, .grid-4, .grid-2, .price-strip, .filter-row, .footer-grid { grid-template-columns: 1fr; }
	.hero { padding: 30px 0 36px; }
	.search-form-row { flex-direction: column; align-items: stretch; }
	.topbar__links { display: none; }
}

@media print {
	.topbar, .site-header, .site-footer, .to-top, .no-print { display: none !important; }
	body { background: #fff; color: #000; }
	.panel { border: 1px solid #ccc; box-shadow: none; }
}
