/*
Theme Name: Meridian Rx
Theme URI: https://www.meridianrx.com
Author: Meridian Rx
Author URI: https://www.meridianrx.com
Description: Professional licensed U.S. online pharmacy theme with product catalog, blog, customer portal, manual payment order system, live chat widget, and full responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: meridian-rx
Tags: pharmacy, health, medical, ecommerce, responsive
*/

/* =========================================================
   Meridian Rx — Main Stylesheet
   Navy + Orange design inspired by canadadrugsdirect.com
   Fully responsive: desktop → tablet → mobile → small
   ========================================================= */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #0f2540;
  --navy-mid:   #1e4976;
  --orange:     #e8530a;
  --orange-lt:  #ff6b1a;
  --orange-bg:  #fff4ef;
  --blue-tint:  #eaf1f8;
  --green:      #2a8a4a;
  --green-tint: #eaf5ed;
  --white:      #ffffff;
  --off-white:  #f7f9fc;
  --line:       #dde4ed;
  --ink:        #1a2332;
  --ink-soft:   #4a5568;
  --ink-faint:  #8a9ab0;
  --red:        #c0392b;
  --yellow:     #f59e0b;
  --shadow-sm:  0 2px 8px rgba(26,58,92,.10);
  --shadow-md:  0 6px 24px rgba(26,58,92,.14);
  --shadow-lg:  0 16px 48px rgba(26,58,92,.18);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--white); color: var(--ink); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Utility ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; border: 2px solid transparent; transition: all .18s ease; white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-lt); border-color: var(--orange-lt); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--blue-tint); }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 30px; font-size: 15.5px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Top utility bar ── */
.util-bar { background: var(--navy-dark); color: #c8d8ea; font-size: 12.5px; padding: 6px 0; }
.util-bar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.util-bar .left, .util-bar .right { display: flex; align-items: center; gap: 14px; }
.util-bar a { color: #c8d8ea; }
.util-bar a:hover { color: #fff; }
.util-bar .phone-link { color: var(--orange); font-weight: 600; }
.chat-trigger-btn { background: var(--orange); color: #fff; padding: 3px 12px; border-radius: 20px; font-weight: 600; font-size: 11.5px; cursor: pointer; border: none; }
.dot-green { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fda6a; margin-right: 4px; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.util-sep { color: #3a5a7a; }

/* ── Promo banner ── */
.promo-banner { background: linear-gradient(90deg, var(--orange), #ff8040); color: #fff; text-align: center; padding: 9px 20px; font-size: 13.5px; font-weight: 600; }
.promo-code { display: inline-block; background: rgba(255,255,255,.25); padding: 1px 9px; border-radius: 4px; font-family: monospace; letter-spacing: .05em; margin: 0 4px; }

/* ── Header ── */
header.site-header { background: var(--white); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.nav-row { display: flex; align-items: center; gap: 16px; height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-logo img { height: 48px; width: auto; }
.site-logo .logo-text { font-size: 22px; font-weight: 800; color: var(--navy); }
.site-logo .logo-text span { color: var(--orange); }
.header-search { flex: 1; max-width: 400px; position: relative; }
.header-search input { width: 100%; padding: 10px 44px 10px 14px; border: 2px solid var(--line); border-radius: 24px; font-size: 14px; background: var(--off-white); }
.header-search input:focus { outline: none; border-color: var(--navy); background: #fff; }
.header-search .search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--navy); font-size: 16px; background: none; border: none; }
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); z-index: 200; display: none; }
.suggest-box.show { display: block; }
.suggest-item { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--blue-tint); }
.suggest-item .gen { color: var(--ink-faint); font-size: 11.5px; font-style: italic; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding: 6px 10px; border-radius: var(--radius-sm); }
.main-nav a:hover, .main-nav a.current-menu-item { color: var(--navy); background: var(--blue-tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-btn { display: flex; align-items: center; gap: 6px; background: var(--blue-tint); color: var(--navy); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13.5px; font-weight: 600; position: relative; }
.cart-btn:hover { border-color: var(--navy); color: var(--navy); }
.cart-badge { display: none; position: absolute; top: -7px; right: -7px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--line); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 13px 20px; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--off-white); }
.mobile-nav a:hover { background: var(--blue-tint); color: var(--navy); }
.mobile-search-wrap { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.mobile-search-wrap input { width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 24px; font-size: 14px; }

/* ── Trust strip ── */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); overflow-x: auto; }
.trust-strip .wrap { display: flex; min-width: max-content; }
.trust-item { display: flex; align-items: center; gap: 8px; padding: 14px 22px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); border-right: 1px solid var(--line); white-space: nowrap; }
.trust-item:last-child { border-right: none; }
.trust-item .icon { font-size: 20px; }
.trust-item .sub { font-size: 10.5px; color: var(--ink-faint); font-weight: 400; display: block; }

/* ── Hero ── */
.site-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); background-size: cover; background-position: center top; background-repeat: no-repeat; color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.site-hero::before { content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(8,20,45,.75) 0%, rgba(8,20,45,.25) 60%, transparent 100%); z-index:0; }
.site-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 400px; gap: 50px; align-items: center; }
.hero-text .eyebrow { color: #a8c4dc; margin-bottom: 12px; display: block; }
.hero-text h1 { font-size: 40px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero-text h1 em { font-style: normal; color: var(--orange); }
.hero-text p.lead { font-size: 16.5px; color: #c8d8ea; margin-bottom: 28px; max-width: 500px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #a8c4dc; font-weight: 500; }
.hero-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.hero-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.hero-search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.hero-search-row input { flex: 1; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.hero-search-row input:focus { outline: none; border-color: var(--navy); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12px; background: var(--blue-tint); color: var(--navy); padding: 5px 11px; border-radius: 20px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); }
.chip:hover { background: var(--navy); color: #fff; }
.hero-divider { border-top: 1px dashed var(--line); margin: 16px 0; }
.price-compare-row { display: flex; justify-content: space-between; align-items: center; }
.pc-label { font-size: 12.5px; color: var(--ink-soft); }
.pc-price { font-size: 22px; font-weight: 800; color: var(--navy); font-family: monospace; }
.pc-was { font-size: 12.5px; color: var(--ink-faint); text-decoration: line-through; margin-right: 4px; }

/* ── Trust banner image ── */
.trust-banner-full { width: 100%; height: auto; display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── Stat strip ── */
.stat-strip { background: var(--navy); padding: 28px 0; }
.stat-strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.stat-item { text-align: center; flex: 1; min-width: 120px; }
.stat-item .num { font-size: 30px; font-weight: 800; color: var(--orange); font-family: monospace; }
.stat-item .lbl { font-size: 12.5px; color: #7aa8cc; margin-top: 3px; }

/* ── Promo code strip ── */
.promo-strip { background: var(--orange-bg); border-top: 1px solid #f5d5c0; border-bottom: 1px solid #f5d5c0; padding: 12px 0; }
.promo-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.promo-strip p { font-size: 14px; font-weight: 500; }
.promo-code-box { background: #fff; border: 2px dashed var(--orange); color: var(--orange); font-weight: 800; font-size: 14.5px; padding: 4px 16px; border-radius: var(--radius-sm); font-family: monospace; letter-spacing: .06em; }

/* ── Sections ── */
.site-section { padding: 54px 0; }
.site-section.bg-off { background: var(--off-white); }
.site-section.bg-navy { background: var(--navy); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 8px; }
.section-head p { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.site-section.bg-navy .section-head h2 { color: #fff; }
.site-section.bg-navy .section-head p { color: #a8c4dc; }

/* ── Category grid ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 14px; }
.cat-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 20px 16px; text-align: center; transition: all .2s; display: block; }
.cat-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-card h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--ink-faint); }
.cat-card .count { font-size: 11px; font-weight: 700; color: var(--orange); margin-top: 8px; display: block; }

/* ── Product cards ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.product-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-img { height: 160px; overflow: hidden; background: var(--blue-tint); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rx-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; width: fit-content; }
.rx-badge.required { background: var(--orange-bg); color: var(--orange); }
.rx-badge.otc { background: var(--green-tint); color: var(--green); }
.product-card h4 { font-size: 16px; font-weight: 700; color: var(--navy); }
.product-card .generic { font-size: 11.5px; color: var(--ink-faint); font-style: italic; }
.product-card .use { font-size: 12.5px; color: var(--ink-soft); flex: 1; }
.product-card .price-row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; margin-top: auto; border-top: 1px solid var(--line); }
.product-card .price { font-size: 17px; font-weight: 800; color: var(--navy); font-family: monospace; }
.product-card .price .per { font-size: 11px; color: var(--ink-faint); font-weight: 400; }
.product-card .view-link { font-size: 12.5px; font-weight: 700; color: var(--orange); }

/* ── How it works ── */
.steps-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 24px; }
.step-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 24px 20px; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.step-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ── Pharmacist band ── */
.pharm-band { background: var(--navy); background-size: cover; background-position: center; position: relative; }
.pharm-band::before { content:''; position:absolute; inset:0; background: rgba(10,25,55,.65); z-index:0; }
.pharm-band .wrap { position:relative; z-index:1; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 70px 20px; }
.pharm-band h2 { font-size: 28px; font-weight: 800; color: #fff; margin: 10px 0 14px; }
.pharm-band > .wrap > div > p { color: #a8c4dc; font-size: 15px; }
.pharm-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-md); padding: 18px; display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 14px; }
.pharm-card h5 { font-size: 14px; font-weight: 700; color: #fff; }
.pharm-card .title { font-size: 11.5px; color: #7aa8cc; display:block; }
.pharm-card p { font-size: 13px; color: #c8d8ea; margin-top: 6px; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cred-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 16px; }
.cred-card .num { font-size: 26px; font-weight: 800; color: #fff; font-family: monospace; }
.cred-card .lbl { font-size: 12px; color: #7aa8cc; margin-top: 4px; }

/* ── Testimonials ── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.testi-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.stars { color: var(--yellow); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.testi-card p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.testi-who { font-size: 13px; font-weight: 700; color: var(--ink); }
.testi-meta { font-size: 11px; color: var(--ink-faint); }

/* ── FAQ ── */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; gap: 14px; }
.faq-q h4 { font-size: 15px; font-weight: 700; color: var(--navy); }
.faq-toggle { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; transition: .2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--navy); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { font-size: 13.5px; color: var(--ink-soft); padding-bottom: 16px; }

/* ── CTA band ── */
.cta-band { background: var(--orange); background-size: cover; background-position: center; position: relative; padding: 54px 0; }
.cta-band::before { content:''; position:absolute; inset:0; background: rgba(180,55,5,.3); z-index:0; }
.cta-band .wrap { position:relative; z-index:1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta-band h2 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.cta-band p { font-size: 15px; color: rgba(255,255,255,.85); }
.cta-band .btn-white { background: #fff; color: var(--orange); border-color: #fff; }
.cta-band .btn-white:hover { background: var(--off-white); }

/* ── Blog grid ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.blog-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.blog-card-img { height: 180px; overflow: hidden; background: var(--blue-tint); flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-cat-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; display: block; }
.blog-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 8px; flex: 1; }
.blog-card .excerpt { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }
.blog-card .blog-meta { font-size: 11px; color: var(--ink-faint); }
.blog-card .read-more { font-size: 12.5px; font-weight: 700; color: var(--orange); margin-top: auto; padding-top: 10px; }

/* ── Single product page ── */
.product-single { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 28px 0 60px; }
.product-media { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.product-main-img { height: 260px; border-radius: var(--radius-sm); overflow: hidden; background: var(--blue-tint); margin-bottom: 16px; }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info-table { margin-top: 18px; background: var(--off-white); border-radius: var(--radius-sm); padding: 14px; }
.product-info-table .row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.product-info-table .row:last-child { border-bottom: none; }
.product-info-table .k { color: var(--ink-faint); }
.product-info-table .v { font-weight: 600; color: var(--navy); }
.rx-banner { display: inline-flex; align-items: center; gap: 7px; background: var(--orange-bg); color: var(--orange); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.product-title { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.product-generic { font-size: 14px; color: var(--ink-faint); font-style: italic; margin-bottom: 12px; }
.star-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; color: var(--ink-soft); }
.price-box { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px; margin-bottom: 20px; }
.total-price { font-size: 34px; font-weight: 800; color: var(--navy); font-family: monospace; }
.per-unit { font-size: 13px; color: var(--ink-soft); margin-left: 6px; }
.dose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 8px; margin: 14px 0; }
.dose-cell { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-align: center; cursor: pointer; background: #fff; transition: all .15s; }
.dose-cell:hover { border-color: var(--navy); }
.dose-cell.active { border-color: var(--navy); background: var(--blue-tint); }
.dose-cell .mg { font-size: 13px; font-weight: 700; color: var(--navy); }
.dose-cell .pp { font-size: 11px; color: var(--ink-faint); margin-top: 3px; font-family: monospace; }
.qty-row { display: flex; gap: 10px; margin-top: 14px; }
.qty-row select { flex: 1; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; background: #fff; }
.qty-row select:focus { outline: none; border-color: var(--navy); }
.add-to-cart-btn { padding: 12px 28px; font-size: 15px; font-weight: 700; }
.no-payment-note { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: 10px; }
.product-tabs { display: flex; gap: 24px; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.product-tab { font-size: 14px; font-weight: 700; color: var(--ink-faint); padding-bottom: 12px; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; }
.product-tab.active { color: var(--navy); border-color: var(--navy); }
.product-tab-content { display: none; }
.product-tab-content.active { display: block; }
.product-tab-content h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-tab-content p, .product-tab-content li { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.product-tab-content ul { padding-left: 18px; list-style: disc; }
.warning-box { background: #fff8e1; border: 1px solid #fdd835; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.warning-box .head { font-size: 13px; font-weight: 700; color: #7b5e00; margin-bottom: 5px; }
.warning-box p { font-size: 12.5px; color: #7b5e00; }
.pharm-note { display: flex; gap: 12px; background: var(--blue-tint); border-radius: var(--radius-sm); padding: 16px; align-items: flex-start; }
.pharm-note h5 { font-size: 13px; font-weight: 700; color: var(--navy); }
.pharm-note .pharm-title { font-size: 11.5px; color: var(--ink-faint); display: block; }
.pharm-note p { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }

/* ── Cart & checkout ── */
.cart-page { max-width: 760px; }
.cart-item-row { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cart-item-name { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.cart-item-meta { font-size: 12px; color: var(--ink-soft); }
.qty-input { width: 56px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 6px 8px; font-size: 13px; text-align: center; }
.cart-summary-box { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px; margin-top: 20px; }
.cart-total-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.cart-total-line.total { font-size: 18px; font-weight: 800; color: var(--navy); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.payment-info-box { background: var(--blue-tint); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 18px; margin: 16px 0; }
.payment-info-box h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.payment-info-box p { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.pay-method-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; font-size: 13.5px; font-weight: 600; transition: all .15s; }
.pay-method:hover, .pay-method.selected { border-color: var(--navy); background: var(--blue-tint); }
.order-success-box { background: var(--green-tint); border: 1.5px solid #b0d8bc; border-radius: var(--radius-md); padding: 24px; text-align: center; display: none; margin-top: 16px; }
.order-success-box.show { display: block; }
.order-success-box .big-check { font-size: 48px; margin-bottom: 12px; }
.order-success-box h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.order-success-box p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.order-num-display { font-family: monospace; font-size: 18px; font-weight: 700; color: var(--orange); background: #fff; padding: 6px 16px; border-radius: var(--radius-sm); display: inline-block; margin: 10px 0; }
.loyalty-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 13.5px; color: var(--ink-soft); }

/* ── Account / auth pages ── */
.auth-page-wrap { max-width: 480px; margin: 50px auto; padding: 0 20px 60px; }
.auth-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.auth-card h1 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.auth-card p.sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 24px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 5px; margin-top: 14px; }
.form-input { width: 100%; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14px; transition: border-color .15s; }
.form-input:focus { outline: none; border-color: var(--navy); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-links { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 16px; }
.auth-links a { color: var(--orange); font-weight: 600; }
.notice-box { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.notice-error { background: #fce8e8; color: var(--red); border: 1px solid #f5c0c0; }
.notice-success { background: var(--green-tint); color: var(--green); border: 1px solid #b0d8bc; }
.notice-info { background: var(--orange-bg); color: #7a4413; border: 1px solid #e9c99a; }

/* ── Account dashboard ── */
.account-shell { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 32px 0 60px; }
.account-sidebar { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 16px; height: fit-content; }
.acc-nav-link { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 2px; }
.acc-nav-link:hover, .acc-nav-link.active { background: var(--blue-tint); color: var(--navy); }
.acc-nav-link.logout { color: var(--red); margin-top: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.balance-card { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border-radius: var(--radius-md); padding: 22px; margin-bottom: 20px; }
.balance-card .lbl { font-size: 12px; color: #7aa8cc; }
.balance-card .amt { font-size: 34px; font-weight: 800; font-family: monospace; margin: 6px 0 4px; }
.balance-card .sub { font-size: 11.5px; color: #a8c4dc; }
.order-row { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-row .meta { font-size: 12.5px; color: var(--ink-soft); }
.order-row .meta b { color: var(--navy); }
.track-copy { display: flex; align-items: center; gap: 8px; background: var(--blue-tint); padding: 6px 11px; border-radius: var(--radius-sm); font-family: monospace; font-size: 11.5px; color: var(--navy); }
.copy-ic { cursor: pointer; color: var(--orange); font-weight: 700; font-size: 11px; }
.reorder-btn { background: var(--orange); color: #fff; border: none; border-radius: var(--radius-sm); padding: 8px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* ── Chat widget ── */
.chat-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 300; background: var(--navy); color: #fff; border-radius: 50px; padding: 12px 20px; display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow-lg); cursor: pointer; font-size: 14px; font-weight: 700; border: none; animation: chatPop 4s ease-in-out infinite; }
.chat-launcher:hover { background: var(--orange); }
@keyframes chatPop { 0%,85%,100%{transform:scale(1)} 90%{transform:scale(1.06)} }
.chat-panel { position: fixed; right: 22px; bottom: 22px; z-index: 300; width: 480px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; border: 1.5px solid var(--line); max-height: 90vh; }
.chat-panel.open { display: flex; }
.chat-head { background: var(--navy); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.chat-head .who { font-size: 14px; font-weight: 700; }
.chat-head .online { font-size: 11px; color: #7aa8cc; display: flex; align-items: center; gap: 5px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fda6a; display: inline-block; }
.chat-close-btn { background: none; border: none; color: #7aa8cc; font-size: 22px; cursor: pointer; line-height: 1; padding: 0; }
.chat-dual { display: flex; flex: 1; min-height: 240px; overflow: hidden; }
.chat-text-side { flex: 1; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.chat-section-label { padding: 7px 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--blue-tint); color: var(--navy); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chat-body { flex: 1; padding: 12px 14px; overflow-y: auto; background: var(--off-white); min-height: 120px; }
.chat-msg { max-width: 82%; padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; font-size: 12.8px; line-height: 1.45; }
.chat-msg.them { background: #fff; border: 1px solid var(--line); }
.chat-msg.me { background: var(--navy); color: #fff; margin-left: auto; }
.chat-input-row { display: flex; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.chat-input-row input { flex: 1; border: 1.5px solid var(--line); border-radius: 20px; padding: 8px 13px; font-size: 12.8px; }
.chat-input-row input:focus { outline: none; border-color: var(--navy); }
.chat-input-row button { background: var(--navy); color: #fff; border: none; border-radius: 20px; padding: 8px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.audio-rec-row { display: flex; align-items: center; gap: 7px; padding: 6px 10px; background: var(--off-white); border-top: 1px solid var(--line); flex-shrink: 0; }
.rec-mic-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--off-white); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; flex-shrink: 0; transition: all .2s; }
.rec-mic-btn.recording { background: #fee2e2; border-color: var(--red); animation: recPulse .7s infinite alternate; }
@keyframes recPulse { from{transform:scale(1)} to{transform:scale(1.12)} }
.rec-status { flex: 1; font-size: 11.5px; color: var(--ink-faint); font-style: italic; }
.rec-status.active { color: var(--red); font-style: normal; font-weight: 600; }
.rec-send-btn { padding: 5px 12px; border-radius: 14px; background: var(--navy); color: #fff; border: none; font-size: 12px; font-weight: 700; display: none; cursor: pointer; }
.rec-send-btn.show { display: block; }
.chat-audio-side { width: 160px; display: flex; flex-direction: column; flex-shrink: 0; }
.chat-audio-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; gap: 10px; text-align: center; }
.call-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 28px; border: none; box-shadow: 0 0 0 0 rgba(42,138,74,.4); animation: callPulse 2s infinite; }
.call-btn:hover { background: #1e6b36; }
@keyframes callPulse { 0%{box-shadow:0 0 0 0 rgba(42,138,74,.5)} 70%{box-shadow:0 0 0 14px rgba(42,138,74,0)} 100%{box-shadow:0 0 0 0 rgba(42,138,74,0)} }
.call-btn.active { background: var(--red); animation: none; }
.chat-audio-body p { font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; }
.call-status-msg { display: none; font-size: 10.5px; font-weight: 700; background: var(--green-tint); color: var(--green); padding: 4px 8px; border-radius: 20px; width: 100%; text-align: center; }
.direct-num { font-size: 11px; color: var(--ink-faint); border-top: 1px dashed var(--line); padding-top: 10px; width: 100%; text-align: center; }
.direct-num a { color: var(--orange); font-weight: 700; font-size: 12px; display: block; margin-top: 2px; }
.chat-offline { border-top: 1.5px solid var(--line); flex-shrink: 0; }
.chat-offline-label { padding: 7px 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--orange-bg); color: var(--orange); border-bottom: 1px solid #f5d5c0; }
.offline-form { padding: 10px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.offline-form .full { grid-column: 1/-1; }
.offline-form input, .offline-form select, .offline-form textarea { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 12.5px; font-family: inherit; width: 100%; }
.offline-form input:focus, .offline-form select:focus { outline: none; border-color: var(--navy); }
.offline-success { display: none; grid-column: 1/-1; background: var(--green-tint); color: var(--green); padding: 8px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; text-align: center; }

/* ── Order ticker ── */
.order-ticker { position: fixed; left: 16px; bottom: 16px; z-index: 200; max-width: 280px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-md); display: flex; gap: 10px; align-items: flex-start; transition: .35s; }
.order-ticker.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
.dotpulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 5px; flex-shrink: 0; position: relative; }
.dotpulse::after { content:''; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--green); opacity:.5; animation:pulse 1.8s infinite; }
@keyframes pulse { 0%{transform:scale(.6);opacity:.7} 100%{transform:scale(1.7);opacity:0} }
.ticker-txt { font-size: 12px; color: var(--ink-soft); line-height: 1.4; flex: 1; }
.ticker-txt b { color: var(--navy); }
.ticker-close { cursor: pointer; color: var(--ink-faint); font-size: 14px; flex-shrink: 0; background: none; border: none; }

/* ── Offer countdown banner ── */
.offer-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 400; background: var(--orange); color: #fff; display: none; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.offer-banner.show { display: flex; }
.offer-timer { font-family: monospace; background: rgba(0,0,0,.2); padding: 2px 9px; border-radius: 4px; }
.offer-close { cursor: pointer; font-size: 18px; margin-left: 6px; font-weight: 700; background: none; border: none; color: #fff; }

/* ── Confirmation modal ── */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: none; }
.scrim.show { display: block; }
.confirm-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 501; background: #fff; border-radius: var(--radius-lg); padding: 36px; max-width: 400px; width: 90%; text-align: center; box-shadow: var(--shadow-lg); display: none; }
.confirm-modal.show { display: block; }
.confirm-icon { font-size: 48px; margin-bottom: 14px; }
.confirm-modal h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.confirm-modal p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }

/* ── Forms (prescription upload etc) ── */
.form-page { max-width: 540px; }
.upload-drop { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 28px; text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-bottom: 16px; background: var(--blue-tint); cursor: pointer; }
.upload-drop:hover { border-color: var(--navy); }

/* ── Breadcrumbs ── */
.breadcrumbs { font-size: 12.5px; color: var(--ink-soft); padding: 14px 0; }
.breadcrumbs a { color: var(--orange); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: var(--ink-faint); }

/* ── Pill tabs / filters ── */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-tab { font-size: 13px; padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--line); color: var(--ink-soft); font-weight: 600; background: #fff; cursor: pointer; transition: all .15s; }
.pill-tab:hover { border-color: var(--navy); color: var(--navy); }
.pill-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }

/* ── Policy/security page ── */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.policy-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.policy-card .pic { font-size: 28px; margin-bottom: 12px; }
.policy-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.policy-card p { font-size: 13px; color: var(--ink-soft); }

/* ── Footer ── */
footer.site-footer { background: var(--navy-dark); color: #a8c4dc; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot-grid h5 { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.foot-grid a, .foot-grid address { font-size: 13px; color: #7aa8cc; display: block; margin-bottom: 8px; font-style: normal; }
.foot-grid a:hover { color: var(--orange); }
.foot-logo { display: block; margin-bottom: 14px; }
.foot-logo img { height: 38px; }
.foot-logo .logo-text { font-size: 20px; font-weight: 800; color: #fff; }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #a8c4dc; font-weight: 700; transition: all .15s; }
.foot-social a:hover { background: var(--orange); color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: 11.5px; color: #4a6a8a; line-height: 1.7; }
.foot-legal { display: flex; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
  .site-hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .pharm-band .wrap { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .main-nav a { font-size: 12.5px; padding: 6px 7px; }
}
@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-row { height: 60px; }
  .site-logo img { height: 38px; }
  .header-search { display: none; }
  .site-hero { padding: 40px 0; }
  .site-hero .wrap { padding: 40px 14px; }
  .hero-text h1 { font-size: 26px; }
  .hero-text p.lead { font-size: 14.5px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2,1fr); }
  .policy-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .product-single { grid-template-columns: 1fr; }
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .acc-nav-link { padding: 7px 11px; font-size: 12.5px; }
  .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; max-height: 85vh; }
  .chat-dual { flex-direction: column; }
  .chat-audio-side { width: 100%; border-top: 1px solid var(--line); }
  .chat-audio-body { flex-direction: row; flex-wrap: wrap; padding: 12px 14px; gap: 12px; justify-content: center; }
  .stat-strip .wrap { justify-content: center; }
  .cta-band .wrap { flex-direction: column; text-align: center; }
  .order-ticker { left: 10px; bottom: 80px; max-width: calc(100vw - 20px); }
  .promo-strip .wrap { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .site-section { padding: 36px 0; }
  .hero-text h1 { font-size: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .steps-row { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .dose-grid { grid-template-columns: repeat(3,1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; }
  .nav-actions .btn-ghost { display: none; }
  .chat-panel { bottom: 0; right: 0; width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .offline-form { grid-template-columns: 1fr; }
  .offline-form .full { grid-column: 1; }
}
@media (max-width: 360px) {
  .hero-text h1 { font-size: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
}
@media print {
  .util-bar, header.site-header, .chat-launcher, .chat-panel, .order-ticker, .offer-banner, footer.site-footer { display: none !important; }
}
