/* =====================================================
   GenericContacts.com — Main Stylesheet
   Brand Colors: Steel Blue #1B6CA8 | Teal #20B2AA | Navy #1A2A4A
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #1B6CA8;
  --primary-dark:   #0D4F82;
  --primary-light:  #4BA3D4;
  --primary-xlight: #E3F4FB;
  --accent:         #20B2AA;
  --accent-dark:    #178F88;
  --accent-light:   #E0F7F6;
  --navy:           #1A2A4A;
  --navy-light:     #2C3E6B;
  --success:        #22c55e;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --gray-50:        #F9FAFB;
  --gray-100:       #F3F4F6;
  --gray-200:       #E5E7EB;
  --gray-300:       #D1D5DB;
  --gray-400:       #9CA3AF;
  --gray-500:       #6B7280;
  --gray-600:       #4B5563;
  --gray-700:       #374151;
  --gray-800:       #1F2937;
  --white:          #FFFFFF;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.14);
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     .2s ease;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:          1280px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--gray-600); line-height: 1.75; font-size: 1rem; }
.text-sm  { font-size: .9rem; }
.text-xs  { font-size: .78rem; }
.text-lg  { font-size: 1.15rem; }
.text-xl  { font-size: 1.3rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-navy    { color: var(--navy); }
.text-muted   { color: var(--gray-500); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 50px; font-size: .95rem; font-weight: 600;
  transition: all var(--transition); white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); box-shadow: 0 4px 14px rgba(27,108,168,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,108,168,.45); color: var(--white); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white); box-shadow: 0 4px 14px rgba(32,178,170,.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(32,178,170,.45); color: var(--white); }
.btn-outline {
  background: transparent; border: 2px solid var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--primary-xlight); }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; padding: .25rem .75rem;
  border-radius: 50px; font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.badge-primary { background: var(--primary-xlight); color: var(--primary-dark); }
.badge-accent   { background: var(--accent-light); color: var(--accent-dark); }
.badge-success  { background: #dcfce7; color: #16a34a; }
.badge-warning  { background: #fef3c7; color: #d97706; }
.badge-danger   { background: #fee2e2; color: #dc2626; }
.badge-navy     { background: var(--navy); color: var(--white); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; background: var(--gray-50); border-top: 1px solid var(--gray-200); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: .95rem; color: var(--gray-800);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,108,168,.15); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: .3rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.checkbox-group { display: flex; align-items: flex-start; gap: .75rem; }
.checkbox-group input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); flex-shrink: 0; margin-top: .15rem; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.9);
  font-size: .8rem; padding: .5rem 0; text-align: center;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--white); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar-links { display: flex; gap: 1.5rem; }

/* ---------- HEADER / NAV ---------- */
.header {
  background: var(--white); position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1.5rem; padding: .5rem 0;
}
.logo img { height: 140px; width: auto; }
.search-bar { display: flex; gap: 0; max-width: 520px; width: 100%; margin: 0 auto; position: relative; }
.search-bar input {
  flex: 1; padding: .65rem 1rem; border: 2px solid var(--gray-200);
  border-radius: var(--radius) 0 0 var(--radius); font-size: .95rem; outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar button {
  padding: .65rem 1.25rem; background: var(--primary); color: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1rem;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  color: var(--gray-600); font-size: .7rem; font-weight: 600; padding: .35rem .5rem;
  border-radius: var(--radius); transition: all var(--transition); position: relative;
}
.header-action-btn svg { width: 22px; height: 22px; }
.header-action-btn:hover { color: var(--primary); background: var(--primary-xlight); }
.cart-badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: var(--white);
  font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transform: translate(25%,-25%);
}

/* ---------- MAIN NAV ---------- */
.main-nav { background: var(--primary); position: sticky; top: var(--header-h, 158px); z-index: 999; }
.main-nav ul { display: flex; align-items: center; }
.main-nav ul li > a, .main-nav ul li > button {
  display: flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.9); font-size: .97rem; font-weight: 500;
  padding: .9rem 1.15rem; transition: all var(--transition);
  white-space: nowrap;
}
.main-nav ul li > a:hover, .main-nav ul li > button:hover {
  color: var(--white); background: rgba(255,255,255,.12);
}
.main-nav ul li.active > a { color: var(--white); background: rgba(255,255,255,.15); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: .5rem; border: 1px solid var(--gray-200);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); z-index: 900;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem;
  color: var(--gray-700); font-size: .9rem; border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--primary-xlight); color: var(--primary); }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: var(--white); padding: 5rem 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.hero-eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p  { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { display: flex; align-items: center; justify-content: center; }
.hero-image img { max-height: 520px; width: 100%; object-fit: contain; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.5rem; }
.hero-stat { text-align: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.1rem .75rem; backdrop-filter: blur(8px); }
.hero-stat-number { font-size: 2.2rem; font-weight: 800; color: var(--white); line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.18); }
.hero-stat-label  { font-size: .78rem; color: rgba(255,255,255,.82); margin-top: .3rem; font-weight: 500; }

/* ---------- PROMO BANNER ---------- */
.promo-banner { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); padding: .65rem 0; text-align: center; }
.promo-banner p { color: var(--white); font-weight: 600; font-size: .9rem; margin: 0; }
.promo-banner a { color: var(--white); text-decoration: underline; }

/* ---------- TRUST BADGES ---------- */
.trust-bar { border-bottom: 2px solid var(--gray-200); padding: 2rem 0; background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%); box-shadow: var(--shadow-sm); }
.trust-bar-inner { display: flex; align-items: center; justify-content: space-around; gap: 2rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .85rem; }
.trust-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(27,108,168,.25); }
.trust-icon svg { width: 20px; height: 20px; color: var(--white); }
.trust-text strong { display: block; font-size: .95rem; color: var(--navy); font-weight: 700; }
.trust-text span { font-size: .8rem; color: var(--gray-500); display: block; }
.trust-text strong { display: block; font-size: .97rem; color: var(--navy); }
.trust-text span   { font-size: .85rem; color: var(--gray-500); }

/* ---------- SECTION HEADERS ---------- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { max-width: 580px; margin: 0 auto; }

/* ---------- PRODUCT CARD ---------- */
.product-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--primary-light); }
.product-card-image { position: relative; background: var(--gray-50); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: hidden; }
.product-card-image img { width: 100%; max-height: 210px; object-fit: contain; transition: transform var(--transition); }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .25rem; }
.product-card-badges .badge { font-size: .7rem; padding: .2rem .55rem; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.price-was-row { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-bottom: .1rem; }
.price-save-badge { font-size: .7rem !important; padding: .15rem .45rem !important; }
.product-card-wishlist { position: absolute; top: .75rem; right: .75rem; width: 34px; height: 34px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); color: var(--gray-400); transition: all var(--transition); }
.product-card-wishlist:hover, .product-card-wishlist.active { color: #ef4444; border-color: #fca5a5; }
.product-card-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.product-card-brand { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .35rem; }
.product-card-name  { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; line-height: 1.3; }
.product-card-meta  { font-size: .85rem; color: var(--gray-500); margin-bottom: .75rem; }
.product-card-stars { display: flex; align-items: center; gap: .35rem; margin-bottom: .75rem; }
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: -.05em; }
.rating-count { font-size: .82rem; color: var(--gray-500); }
.product-card-price { margin-top: auto; }
.price-from { font-size: .8rem; color: var(--gray-500); }
.price-amount { font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.price-per { font-size: .8rem; color: var(--gray-500); display: block; margin-top: .1rem; }
.price-was { font-size: .9rem; color: var(--gray-400); text-decoration: line-through; }
.product-card-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--gray-100); }

/* ---------- PRODUCTS GRID ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.75rem; }

/* ---------- FILTERS SIDEBAR ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters-sidebar { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 120px; }
.filter-group { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-100); }
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-group h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.filter-option { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; cursor: pointer; }
.filter-option input { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-option label { font-size: .92rem; color: var(--gray-700); cursor: pointer; }
.filter-option .count { margin-left: auto; font-size: .75rem; color: var(--gray-400); background: var(--gray-100); padding: .1rem .5rem; border-radius: 50px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.shop-toolbar-left { font-size: .9rem; color: var(--gray-500); }
.shop-toolbar-right { display: flex; align-items: center; gap: .75rem; }

/* ---------- LENS FINDER CTA ---------- */
.lens-finder-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%); border-radius: var(--radius-xl); padding: 3.5rem; color: var(--white); }
.lens-finder-cta h2 { color: var(--white); }
.lens-finder-cta p  { color: rgba(255,255,255,.8); }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; }
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: .75rem; }
.testimonial-text { color: var(--gray-600); font-size: .95rem; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--primary-xlight); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.testimonial-date { font-size: .75rem; color: var(--gray-400); }

/* ---------- CART ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 1.25rem; align-items: start; padding: 1.5rem; border-bottom: 1px solid var(--gray-100); }
.cart-item:last-child { border-bottom: none; }
.cart-item-image { background: var(--gray-50); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: .5rem; }
.cart-item-image img { max-height: 80px; object-fit: contain; }
.cart-item-name { font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.cart-item-detail { font-size: .8rem; color: var(--gray-500); margin-bottom: .5rem; }
.cart-item-rx { font-size: .78rem; color: var(--primary); background: var(--primary-xlight); padding: .25rem .75rem; border-radius: 50px; display: inline-flex; align-items: center; gap: .35rem; }
.qty-control { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; }
.qty-btn { width: 30px; height: 30px; border: 1.5px solid var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gray-600); transition: all var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input { width: 44px; text-align: center; border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: .3rem; font-size: .9rem; font-weight: 600; }
.cart-item-price { font-size: 1.1rem; font-weight: 800; color: var(--navy); text-align: right; }
.cart-item-remove { font-size: .78rem; color: var(--gray-400); cursor: pointer; display: block; margin-top: .5rem; text-align: right; }
.cart-item-remove:hover { color: var(--danger); }
.order-summary { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 120px; }
.order-summary h3 { margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-100); }
.summary-line { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; font-size: .9rem; }
.summary-line.total { font-size: 1.1rem; font-weight: 800; color: var(--navy); border-top: 2px solid var(--gray-200); padding-top: 1rem; margin-top: .5rem; }
.coupon-form { display: flex; gap: .5rem; margin: 1rem 0; }
.coupon-form input { flex: 1; padding: .6rem .9rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .9rem; outline: none; }
.coupon-form input:focus { border-color: var(--primary); }

/* ---------- CHECKOUT ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-steps { display: flex; gap: 0; margin-bottom: 2.5rem; }
.checkout-step { flex: 1; display: flex; align-items: center; gap: .5rem; }
.step-num { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--gray-400); flex-shrink: 0; }
.step-num.active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.step-num.done  { border-color: var(--success); background: var(--success); color: var(--white); }
.step-label { font-size: .8rem; font-weight: 600; color: var(--gray-500); }
.step-label.active { color: var(--primary); }
.step-divider { height: 2px; flex: 1; background: var(--gray-200); margin: 0 .5rem; }
.step-divider.done { background: var(--success); }
.checkout-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.25rem; }
.checkout-section h3 { margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-100); font-size: 1rem; }

/* ---------- PRESCRIPTION UPLOAD ---------- */
.rx-upload-area {
  border: 2.5px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 3rem 2rem; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--gray-50);
}
.rx-upload-area:hover, .rx-upload-area.dragover { border-color: var(--primary); background: var(--primary-xlight); }
.rx-upload-icon { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--primary); }
.rx-upload-area h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.rx-upload-area p  { font-size: .85rem; color: var(--gray-500); }
.hipaa-badge { display: flex; align-items: center; gap: .75rem; background: #dcfce7; border: 1px solid #86efac; border-radius: var(--radius); padding: .75rem 1rem; margin: 1.25rem 0; }
.hipaa-badge svg { width: 20px; height: 20px; color: #16a34a; flex-shrink: 0; }
.hipaa-badge p { font-size: .82rem; color: #15803d; margin: 0; }
.rx-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0; }
.rx-option-card { border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; cursor: pointer; transition: all var(--transition); }
.rx-option-card:hover, .rx-option-card.selected { border-color: var(--primary); background: var(--primary-xlight); }
.rx-option-icon { font-size: 2rem; margin-bottom: .5rem; }
.rx-option-card h4 { font-size: .9rem; margin-bottom: .25rem; }
.rx-option-card p  { font-size: .78rem; color: var(--gray-500); }
.rx-form { background: var(--gray-50); border-radius: var(--radius-lg); padding: 1.5rem; }
.rx-table { width: 100%; border-collapse: collapse; }
.rx-table th { background: var(--navy); color: var(--white); padding: .75rem 1rem; text-align: left; font-size: .85rem; font-weight: 600; }
.rx-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.rx-table tr:last-child td { border-bottom: none; }
.rx-table td .form-control { padding: .5rem .75rem; font-size: .9rem; }

/* ---------- ACCOUNT ---------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.account-sidebar { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 120px; }
.account-user { padding: 1.5rem; background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: var(--white); }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; margin-bottom: .75rem; }
.account-nav a { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem; color: var(--gray-700); font-size: .9rem; font-weight: 500; border-left: 3px solid transparent; transition: all var(--transition); }
.account-nav a:hover { background: var(--primary-xlight); color: var(--primary); border-left-color: var(--primary); }
.account-nav a.active { background: var(--primary-xlight); color: var(--primary); border-left-color: var(--primary); font-weight: 700; }
.account-nav svg { width: 18px; height: 18px; }

/* ---------- ORDER TRACKING ---------- */
.tracking-timeline { position: relative; padding-left: 2rem; }
.tracking-timeline::before { content: ''; position: absolute; left: .5rem; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.tracking-event { position: relative; padding-bottom: 2rem; }
.tracking-event::before { content: ''; position: absolute; left: -1.65rem; top: .25rem; width: 14px; height: 14px; border-radius: 50%; background: var(--gray-300); border: 2px solid var(--white); z-index: 1; }
.tracking-event.done::before { background: var(--success); }
.tracking-event.active::before { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-xlight); }
.tracking-event-label { font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .15rem; }
.tracking-event-date  { font-size: .78rem; color: var(--gray-400); }
.tracking-event-desc  { font-size: .85rem; color: var(--gray-600); margin-top: .25rem; }

/* ---------- LENS FINDER ---------- */
.lens-finder-steps { display: flex; gap: 0; justify-content: center; margin-bottom: 3rem; }
.lf-step { display: flex; align-items: center; gap: .5rem; }
.lf-step-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; color: var(--gray-400); }
.lf-step-num.active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.lf-step-num.done  { border-color: var(--success); background: var(--success); color: var(--white); }
.lf-step-label { font-size: .8rem; color: var(--gray-500); font-weight: 500; }
.lf-step-label.active { color: var(--primary); font-weight: 700; }
.lf-connector { width: 50px; height: 2px; background: var(--gray-200); margin: 0 .5rem; }
.lf-connector.done { background: var(--success); }
.lens-finder-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 3rem; max-width: 800px; margin: 0 auto; }
.lens-finder-panel h2 { margin-bottom: .75rem; }
.lf-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.lf-option { border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; cursor: pointer; transition: all var(--transition); }
.lf-option:hover, .lf-option.selected { border-color: var(--primary); background: var(--primary-xlight); }
.lf-option-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.lf-option h4 { font-size: .95rem; color: var(--navy); margin-bottom: .35rem; }
.lf-option p  { font-size: .78rem; color: var(--gray-500); }
.lf-nav-btns { display: flex; justify-content: space-between; margin-top: 2rem; }

/* ---------- EYE EXAM ---------- */
.exam-search-box { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow); max-width: 700px; margin: 0 auto; }
.exam-search-row { display: flex; gap: 1rem; align-items: flex-end; }
.doctor-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1rem; transition: all var(--transition); }
.doctor-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.doctor-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-xlight); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.doctor-info { flex: 1; }
.doctor-name { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.doctor-specialty { font-size: .82rem; color: var(--primary); font-weight: 600; margin-bottom: .35rem; }
.doctor-detail { font-size: .8rem; color: var(--gray-500); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .95rem; color: var(--navy); background: var(--white); transition: all var(--transition); }
.faq-question:hover { background: var(--gray-50); }
.faq-question.open { background: var(--primary-xlight); color: var(--primary); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-answer.open { max-height: 500px; }
.faq-answer-inner { padding: 1rem 1.25rem 1.25rem; font-size: .9rem; color: var(--gray-600); line-height: 1.7; }

/* ---------- NEWSLETTER ---------- */
.newsletter { background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 4rem 0; }
.newsletter h2 { color: var(--white); text-align: center; margin-bottom: .75rem; }
.newsletter p { color: rgba(255,255,255,.85); text-align: center; margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: .85rem 1.25rem; border: none; border-radius: var(--radius) 0 0 var(--radius); font-size: .95rem; outline: none; }
.newsletter-form button { padding: .85rem 1.75rem; background: var(--navy); color: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--navy-light); }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer-main { padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .footer-logo { height: 88px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,.65); }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); font-size: .95rem; transition: all var(--transition); text-decoration: none; }
.social-btn:hover { background: var(--primary); color: var(--white); }
.footer-col h5 { font-size: .85rem; font-weight: 700; color: var(--white); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bottom-links a:hover { color: var(--white); }
.footer-payment { display: flex; gap: .5rem; align-items: center; }
.payment-icon { background: var(--white); border-radius: 4px; padding: .2rem .5rem; font-size: .7rem; font-weight: 700; color: var(--gray-700); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .9rem; padding: .85rem 0; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb-current { color: var(--gray-700); font-weight: 500; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%); color: var(--white); padding: 3.5rem 0; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem,4vw,2.7rem); }
.page-hero p  { color: rgba(255,255,255,.8); margin-top: .5rem; }
/* Cart extras two-column default */
.cart-extras-grid { grid-template-columns: 1fr 1fr; }

/* Breadcrumb overrides inside dark page-hero */
.page-hero .breadcrumb a { color: rgba(255,255,255,.72); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb-sep { color: rgba(255,255,255,.38); }
.page-hero .breadcrumb-current { color: var(--white); }

/* ---------- ALERTS / TOAST ---------- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; margin-bottom: 1rem; }
.alert-info    { background: var(--primary-xlight); color: var(--primary-dark); border: 1px solid #bfdbfe; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem; }
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .75rem; }
.toast { background: var(--navy); color: var(--white); padding: 1rem 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: .9rem; display: flex; align-items: center; gap: .75rem; min-width: 280px; animation: slideInUp .3s ease; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--primary); }
@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- MODAL ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: all var(--transition); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--white); border-radius: var(--radius-xl); max-width: 560px; width: 100%; padding: 2rem; position: relative; transform: scale(.95); transition: transform var(--transition); box-shadow: var(--shadow-lg); }
.modal-overlay.open .modal { transform: scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: 1.2rem; transition: all var(--transition); }
.modal-close:hover { background: var(--gray-200); }

/* ---------- MISC HELPERS ---------- */
.divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; background: var(--gray-100); border-radius: 50px; font-size: .78rem; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all var(--transition); }
.chip:hover, .chip.active { background: var(--primary-xlight); color: var(--primary); }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.mobile-menu-toggle { display: none; }
.mobile-nav-overlay { display: none; }

/* =========================================================
   NAMED GRID CLASSES — defined here so media queries work
   (inline style="" cannot be overridden by CSS breakpoints)
   ========================================================= */

/* How-it-works / steps */
.steps-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; position: relative; }
.hiw-grid    { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; position: relative; }

/* About */
.values-grid        { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.team-grid          { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.about-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }

/* Blog */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }

/* Policy pages (terms, privacy) */
.policy-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.policy-sidebar { position: sticky; top: 100px; }

/* Lens-finder CTA / App CTA */
.lf-cta-grid  { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.app-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Shop trust bar */
.shop-trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }

/* Eye exam why section */
.exam-why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; text-align: center; }

/* Prescription HIPAA grid */
.hipaa-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

/* NPI search */
.npi-search-grid { display: grid; grid-template-columns: 2fr 1fr auto; gap: .75rem; }

/* Generic 2-col form rows (returns, order-confirmation, account, blog) */
.two-col-form-row { display: grid; grid-template-columns: 1fr 1fr; }

/* Returns 2-col layout */
.returns-cols-grid { display: grid; grid-template-columns: 1fr 1fr; }

/* Checkout city/state/zip 3-col row */
.city-state-zip-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  /* Blog sidebar hides at tablet */
  .blog-layout { grid-template-columns: 1fr; }
  .blog-layout > aside { display: none; }
  /* Policy sticky sidebar → hidden at tablet */
  .policy-layout { grid-template-columns: 1fr; }
  .policy-sidebar { display: none; }
  /* Contact → single column */
  .contact-grid { grid-template-columns: 1fr; }
  /* About mission → single column */
  .about-mission-grid { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
  /* App CTA → single column */
  .app-cta-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* 4-col shop/exam grids → 2 col */
  .shop-trust-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .header-inner { grid-template-columns: auto auto; }
  .search-bar { display: none; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  /* Hide non-essential header buttons on mobile — accessible via hamburger */
  .header-action-btn:not(.mobile-menu-toggle):not([href*="cart"]) { display: none; }
  .topbar-links { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .rx-options { grid-template-columns: 1fr; }
  .trust-bar-inner { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
  .trust-item { width: 100%; }
  .trust-item:last-child { max-width: none; }
  .lf-options { grid-template-columns: 1fr; }
  .lens-finder-panel { padding: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form input { border-radius: var(--radius); }
  .newsletter-form button { border-radius: var(--radius); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 2.5rem 0; }
  /* Logo */
  .logo img { height: 72px; width: auto; max-width: 180px; }
  /* Cart */
  .cart-extras-grid { grid-template-columns: 1fr 1fr; }
  .order-summary { margin-bottom: 1.5rem; }
  /* Hero */
  .hero { padding: 3rem 0; }
  h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  /* Topbar */
  .topbar-inner { flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .78rem; }

  /* ── Named grids collapse on mobile ── */
  /* 4-col → 2-col */
  .steps-grid, .hiw-grid, .values-grid { grid-template-columns: repeat(2,1fr) !important; gap: 1.5rem !important; }
  /* 3-col → 2-col */
  .team-grid, .exam-why-grid, .hipaa-grid { grid-template-columns: repeat(2,1fr) !important; gap: 1rem !important; }
  /* 2-col → 1-col */
  .lf-cta-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; text-align: center; }
  .lf-cta-grid .lens-finder-cta-img { display: none; }
  /* NPI search → stack */
  .npi-search-grid { grid-template-columns: 1fr !important; }
  /* Checkout city/state/zip → stack */
  .city-state-zip-row { grid-template-columns: 1fr !important; }
  /* Generic 2-col form rows → 1-col */
  .two-col-form-row { grid-template-columns: 1fr !important; }
  /* Returns layout → 1-col */
  .returns-cols-grid { grid-template-columns: 1fr !important; }
  /* Exam search row stack */
  .exam-search-row { flex-direction: column; }
  /* Account layout */
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .logo img { height: 56px; max-width: 140px; }
  .cart-extras-grid { grid-template-columns: 1fr !important; }
  .header-actions { gap: .5rem; }
  .header-action-btn { font-size: .78rem; padding: .4rem .65rem; }
  .page-hero { padding: 1.75rem 0; }
  .page-hero h1 { font-size: 1.6rem; }
  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* All multi-col named grids → 1 col on small phones */
  .steps-grid, .hiw-grid, .values-grid,
  .team-grid, .exam-why-grid, .hipaa-grid,
  .shop-trust-grid { grid-template-columns: 1fr !important; }
  /* Checkout steps: compress */
  .step-label { display: none; }
  /* Lens finder panel */
  .lens-finder-panel { padding: 1.25rem; }
  /* Toast: full width on mobile */
  .toast { min-width: unset; width: calc(100vw - 3rem); }
  /* Modal: full width */
  .modal { padding: 1.5rem; }
}

/* ---------- MOBILE NAV ---------- */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1500;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; display: block; }
.mobile-nav {
  position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
  background: var(--white); z-index: 1600; transition: left var(--transition);
  overflow-y: auto; display: flex; flex-direction: column;
}
.mobile-nav.open { left: 0; }
.mobile-nav-header { background: var(--navy); padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-header img { height: 40px; }
.mobile-nav-close { color: var(--white); font-size: 1.5rem; }
.mobile-nav-links { flex: 1; padding: 1rem 0; }
.mobile-nav-links a, .mobile-nav-links button { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.5rem; color: var(--gray-700); font-size: .95rem; font-weight: 500; width: 100%; text-align: left; border-bottom: 1px solid var(--gray-100); }
.mobile-nav-links a:hover { background: var(--primary-xlight); color: var(--primary); }

/* ---------- STAR RATING ---------- */
.star-rating { display: inline-flex; gap: .15rem; }
.star-filled { color: #f59e0b; }
.star-empty  { color: var(--gray-300); }

/* ---------- PROGRESS BAR ---------- */
.progress { height: 8px; background: var(--gray-200); border-radius: 50px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 50px; transition: width .4s ease; }

/* ---------- STRIPE ELEMENTS PLACEHOLDER ---------- */
.stripe-element-container { border: 1.5px solid var(--gray-300); border-radius: var(--radius); padding: .85rem 1rem; background: var(--white); transition: border-color var(--transition); }
.stripe-element-container.focused { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,108,168,.15); }
.payment-icons { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.payment-icon-img { height: 24px; border-radius: 4px; border: 1px solid var(--gray-200); padding: 2px 6px; background: var(--white); }

/* ---------- SHIPPING OPTION ---------- */
.shipping-option { border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 1rem; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.shipping-option:hover, .shipping-option.selected { border-color: var(--primary); background: var(--primary-xlight); }
.shipping-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.shipping-option-info { flex: 1; }
.shipping-option-name  { font-weight: 600; color: var(--navy); font-size: .9rem; }
.shipping-option-desc  { font-size: .78rem; color: var(--gray-500); }
.shipping-option-price { font-weight: 700; color: var(--navy); font-size: .95rem; }

/* ---------- HIPAA PAGE ---------- */
.hipaa-page h2 { color: var(--navy); margin: 2rem 0 .75rem; font-size: 1.3rem; }
.hipaa-page h3 { color: var(--primary); margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
.hipaa-page p  { margin-bottom: 1rem; }
.hipaa-page ul { padding-left: 1.5rem; list-style: disc; color: var(--gray-600); }
.hipaa-page ul li { margin-bottom: .5rem; font-size: .95rem; }
.hipaa-highlight { background: var(--primary-xlight); border-left: 4px solid var(--primary); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }

/* ---------- BACK TO TOP BUTTON ---------- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(27,108,168,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(27,108,168,.45); }
@media (max-width: 480px) {
  #back-to-top { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; font-size: 1.1rem; }
}

/* ==========================================================
   RESPONSIVE ADDITIONS — Mobile completeness pass
   ========================================================== */

/* --- Utility: scrollable table wrapper --- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- RX table: horizontal scroll + compact on mobile --- */
@media (max-width: 768px) {
  .rx-form { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rx-table { min-width: 540px; }
  .rx-table th, .rx-table td { padding: .55rem .6rem; font-size: .8rem; }
  .rx-table td .form-control { padding: .4rem .5rem; font-size: .8rem; }
}

/* --- Product detail: inline-style grids in JS-rendered content --- */
@media (max-width: 600px) {
  /* Prescription selector 2-col → 1-col */
  .product-detail-grid .form-control,
  #product-detail select { font-size: .85rem; }

  /* Box qty + eye select row → stack */
  #product-detail [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Trust icons row (3-col) → 1-col */
  #product-detail [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: .5rem !important;
  }

  /* Specs table: first column narrower */
  #tab-specs table td:first-child { width: 130px !important; }
  #tab-specs table td { font-size: .8rem; padding: .55rem .6rem; }
  #tab-specs table { display: block; overflow-x: auto; }

  /* Tab nav: allow wrap / shrink text */
  #tab-nav { overflow-x: auto; flex-wrap: nowrap; }
  #tab-nav .tab-btn, #tab-nav button { padding: .6rem .9rem !important; font-size: .82rem !important; white-space: nowrap; }

  /* Product price: scale down on very small screens */
  #product-detail [style*="font-size:2.2rem"] { font-size: 1.75rem !important; }
}

/* --- Staff orders: info-grid 2-col → 1-col --- */
@media (max-width: 600px) {
  .info-grid { grid-template-columns: 1fr !important; }
}

/* --- Account page: order history cards --- */
@media (max-width: 480px) {
  .account-nav { display: flex; overflow-x: auto; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; }
  .account-nav a { white-space: nowrap; padding: .6rem 1rem; font-size: .85rem; border-bottom: none; }
  .account-sidebar { display: none; }
}

/* --- Checkout: payment icons wrap tightly --- */
@media (max-width: 480px) {
  .payment-icons { gap: .35rem; }
  .payment-icon-img { height: 20px; }
  .checkout-steps { padding: 0 .5rem; }
  .step-num { width: 28px; height: 28px; font-size: .8rem; }
}

/* --- Order confirmation + tracking: action buttons stack --- */
@media (max-width: 480px) {
  .order-actions { flex-direction: column; }
  .order-actions .btn { width: 100%; }
}


/* --- Blog cards: ensure readable on 320px --- */
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr !important; }
  .product-card-name { font-size: .88rem; }
  .product-card-price .price-amount { font-size: 1.1rem; }
}

/* --- Topbar: hide middle item on very small screens --- */
@media (max-width: 360px) {
  .topbar-inner span:nth-child(2) { display: none; }
}

/* --- Forms: prevent zoom on iOS (font-size ≥ 16px on inputs) --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  font-size: max(16px, 1rem);
}

/* --- Touch target minimum 44×44px (WCAG 2.5.5) --- */
@media (hover: none) {
  .btn, .faq-question, .chip, .tab-btn,
  .shipping-option, .rx-option-card,
  .account-nav a, .mobile-nav-links a {
    min-height: 44px;
  }
  .header-action-btn { min-height: 44px; padding: .6rem .9rem; }
}

/* ── Search Autocomplete Suggestions ── */
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border: 1.5px solid var(--primary);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); z-index: 1100; max-height: 340px;
  overflow-y: auto; display: none;
}
.search-suggestions.open { display: block; }
.search-suggestion {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem; cursor: pointer;
  border-bottom: 1px solid var(--gray-100); transition: background .1s;
  text-decoration: none; color: var(--gray-800);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover, .search-suggestion.focused { background: var(--primary-xlight); }
.search-suggestion img { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; background: var(--gray-100); flex-shrink: 0; }
.search-suggestion-info { flex: 1; min-width: 0; }
.search-suggestion-name { font-size: .875rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggestion-meta { font-size: .75rem; color: var(--gray-500); }
.search-suggestion-price { font-size: .875rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.search-suggestion-all { justify-content: center; color: var(--primary); font-weight: 600; font-size: .875rem; padding: .75rem 1rem; background: var(--primary-xlight); }
.search-suggestion-all:hover { background: var(--primary); color: var(--white); }

/* ── Product Card Image Hover Overlay ── */
.product-card-img-overlay {
  position: absolute; inset: 0;
  background: rgba(27,108,168,.84);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.product-card:hover .product-card-img-overlay { opacity: 1; pointer-events: auto; }
.product-card-quick-btn {
  background: var(--white); color: var(--primary); font-weight: 700;
  padding: .55rem 1.4rem; border-radius: 50px; font-size: .875rem;
  text-decoration: none; transform: translateY(8px);
  transition: transform .2s .04s; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.product-card:hover .product-card-quick-btn { transform: translateY(0); }
@media (hover: none) { .product-card-img-overlay { display: none; } }

/* ── Bottom Mobile Navigation ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--gray-200);
  box-shadow: 0 -2px 16px rgba(0,0,0,.10); z-index: 2000; display: none;
}
.bottom-nav-inner { display: flex; }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: .55rem .25rem .45rem;
  color: var(--gray-500); font-size: .68rem; font-weight: 600;
  text-decoration: none; gap: .2rem; min-height: 56px;
  border-top: 2.5px solid transparent; transition: color .15s, background .15s;
  position: relative;
}
.bottom-nav-item svg { width: 21px; height: 21px; }
.bottom-nav-item.active { color: var(--primary); border-top-color: var(--primary); }
.bottom-nav-item:hover { color: var(--primary); }
.bottom-nav-badge {
  position: absolute; top: 5px; left: calc(50% + 5px);
  background: var(--accent); color: var(--white);
  font-size: .6rem; font-weight: 800; min-width: 16px; height: 16px;
  border-radius: 50%; display: none; align-items: center; justify-content: center;
  line-height: 1;
}
.bottom-nav-badge.visible { display: flex; }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 60px; }
  #back-to-top { bottom: 4.5rem !important; }
}
