/* ═══════════════════════════════════════════════════════════
   GLEAMEX STYLESHEET
   MAINTENANCE:
   - Brand color (Gleamex teal): --teal: #00BFA5
   - Font "Gleamex" word color: .brand-name color
   - Background: --bg (very light warm white, sober)
   - To change font: update @import at top + --font-body/display
═══════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  /* Brand colors — UPDATE here to retheme entire site */
  --teal:         #00BFA5;   /* Gleamex primary teal */
  --teal-dark:    #00897B;   /* darker shade for hover */
  --teal-light:   #E0F7F5;   /* pale teal for backgrounds */
  --teal-mid:     #B2EBE7;   /* medium teal tint */
  --accent:       #FF7043;   /* warm orange accent */
  --yellow:       #FFD54F;

  /* Backgrounds — deliberately sober/neutral */
  --bg:           #F8F9F7;   /* main page background */
  --bg-card:      #FFFFFF;
  --bg-section:   #F2F5F3;   /* alternating sections */

  /* Typography */
  --text:         #1C2B2A;   /* dark green-black */
  --text-mid:     #4A5E5C;
  --muted:        #7A8C8A;
  --border:       #DDE5E3;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing & Shape */
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: var(--font-body); }
ul { list-style: none; }

/* ── TOP BAR ────────────────────────────────────────────── */
.topbar {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  padding: 6px 24px;
}
.topbar-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-right a { color: rgba(255,255,255,0.85); transition: color .2s; font-weight: 500; }
.topbar-right a:hover { color: white; }
.topbar i { margin-right: 5px; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-container {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px; height: 70px;
  justify-content: space-between !important;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; object-fit: contain; }
/* UPDATE: brand name color below */
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 900; color: var(--teal); }
.brand-name sup { font-size: 0.45em; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.9rem; color: var(--text-mid);
  transition: all .2s; display: flex; align-items: center; gap: 4px;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--teal); background: var(--teal-light); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: white; border-radius: var(--radius); min-width: 190px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s; z-index: 999;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 10px 18px; font-size: 0.88rem;
  color: var(--text-mid); transition: background .15s;
}
.dropdown li a:hover { background: var(--teal-light); color: var(--teal); }

/* Search bar */
.nav-search-wrap { position: relative; flex: 0 1 280px; }
.search-form {
  display: flex; align-items: center;
  background: var(--bg-section); border: 1.5px solid var(--border);
  border-radius: 100px; overflow: hidden; transition: border .2s;
}
.search-form:focus-within { border-color: var(--teal); background: white; }
.search-form input {
  border: none; background: transparent;
  padding: 9px 14px; font-size: 0.85rem; flex: 1; outline: none; color: var(--text);
}
.search-form button { background: none; border: none; padding: 9px 14px; cursor: pointer; color: var(--muted); }
.search-form button:hover { color: var(--teal); }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); display: none; z-index: 999; overflow: hidden;
}
.search-dropdown.show { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; transition: background .15s; cursor: pointer;
}
.search-result-item:hover { background: var(--teal-light); }
.search-result-item img { width: 40px; height: 40px; object-fit: contain; background: var(--bg-section); border-radius: 6px; padding: 4px; }
.search-result-item .sr-name { font-size: 0.88rem; font-weight: 500; }
.search-result-item .sr-price { font-size: 0.8rem; color: var(--teal); font-weight: 700; }
.search-result-item .sr-tag { font-size: 0.7rem; background: var(--teal-light); color: var(--teal); padding: 2px 6px; border-radius: 4px; }

/* Nav action icons */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto !important; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--text-mid); transition: all .2s; cursor: pointer;
  border: none; background: none;
}
.icon-btn:hover { background: var(--teal-light); color: var(--teal); }
.icon-btn svg.icon-cart { stroke-width: 2.1; color: var(--text); width: 1.35em; height: 1.35em; }
.icon-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: white; border-radius: 50%;
  width: 17px; height: 17px; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: none; border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--text); }
.nav-toggle:hover { background: var(--teal-light); color: var(--teal); }

/* ── FLASH MESSAGES ─────────────────────────────────────── */
.flash-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 13px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 0.9rem; max-width: 360px;
  box-shadow: var(--shadow); animation: slideIn .3s ease;
}
.flash-success { background: #E0F7F5; color: #00695C; border-left: 4px solid var(--teal); }
.flash-danger  { background: #FFEBEE; color: #B71C1C; border-left: 4px solid #EF5350; }
.flash-warning { background: #FFF8E1; color: #F57F17; border-left: 4px solid #FFD54F; }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: .6; }
@keyframes slideIn { from { transform: translateX(80px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: white; padding: 13px 26px;
  border-radius: 100px; font-weight: 600; font-size: 0.92rem;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,191,165,0.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--teal); padding: 12px 24px;
  border-radius: 100px; font-weight: 600; font-size: 0.92rem;
  border: 2px solid var(--teal); cursor: pointer; transition: all .2s;
}
.btn-outline:hover { background: var(--teal-light); }
.btn-sm { padding: 8px 18px; font-size: 0.84rem; }
.full-w { width: 100%; justify-content: center; }

/* ── SECTION HELPERS ────────────────────────────────────── */
.section-tag {
  display: inline-block; background: var(--teal-light); color: var(--teal);
  padding: 5px 14px; border-radius: 100px; font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 900; margin: 8px 0 12px; }
.section-header h2 em { color: var(--teal); font-style: normal; }
.section-header p { color: var(--muted); max-width: 500px; margin-inline: auto; }
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── FORM ELEMENTS ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.92rem; transition: border .2s;
  background: white; color: var(--text);
}
.form-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,191,165,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { background: white; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

/* ── PRODUCT CARDS ──────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 22px; }
.product-card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: all .3s; position: relative; overflow: hidden;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Badge */
.p-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 3px 10px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
}
.badge-best-seller { background: #FFF8E1; color: #E65100; }
.badge-new         { background: #E3F2FD; color: #1565C0; }
.badge-eco-friendly{ background: var(--teal-light); color: var(--teal-dark); }
.badge-popular     { background: #FCE4EC; color: #AD1457; }

.product-img-wrap { aspect-ratio: 2/3; background: var(--bg-section); position: relative; overflow: hidden; }
.product-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; transition: transform .35s; }
.product-card:hover .product-img { transform: scale(1.07); }
/* Desktop: keep images smaller/more contained (square box, more padding) — mobile keeps the larger 2:3 fill */
@media (min-width: 900px) {
  .product-img-wrap { aspect-ratio: 1; }
  .product-img { padding: 28px; }
}

/* Quick-view overlay */
.card-overlay {
  position: absolute; inset: 0; background: rgba(0,191,165,0.07);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14px; opacity: 0; transition: opacity .3s;
}
.product-card:hover .card-overlay { opacity: 1; }
.overlay-btn {
  background: white; color: var(--teal); padding: 7px 18px;
  border-radius: 100px; font-size: 0.82rem; font-weight: 600; box-shadow: var(--shadow);
}

.card-body { padding: 14px 18px 18px; }
.card-category { font-size: 0.72rem; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.card-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: 4px 0 5px; }
.card-fragrance { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.price { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.price-lg { font-size: 1.55rem; }
.strike { font-size: 0.88rem; color: var(--muted); text-decoration: line-through; }
.save-tag { font-size: 0.72rem; background: #E8F5E9; color: #2E7D32; padding: 2px 8px; border-radius: 100px; font-weight: 700; }

.add-btn {
  width: 100%; padding: 10px 8px; border-radius: 100px; border: none;
  background: var(--teal); color: white; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.add-btn i { flex-shrink: 0; }
.add-btn svg.icon-cart { flex-shrink: 0; }
.add-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.add-btn:hover { background: var(--teal-dark); }
@media (max-width: 768px) {
  /* Only the add-to-cart+wishlist-button row (shop.html, wishlist.html) is
     actually squeezed on narrow screens — the 2-col grid doesn't leave
     enough room for icon + full label there without truncating, so show
     icon-only instead of a cut-off word. Standalone add-btn instances
     elsewhere (homepage, combos, search) have no adjacent wishlist button
     eating their space, so they keep their full text label.
     Breakpoint matches 768px, the same width where .products-grid itself
     switches to 2 columns — so this covers every phone/tablet width where
     the row is actually squeezed, not just the narrowest ones. */
  .cart-wishlist-row .add-btn span { display: none; }
  .cart-wishlist-row .add-btn { gap: 0; }
}

/* ── FILTER TABS ────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.ftab {
  padding: 7px 18px; border-radius: 100px; border: 1.5px solid var(--border);
  background: white; cursor: pointer; font-size: 0.86rem; font-weight: 500;
  color: var(--muted); transition: all .2s;
}
.ftab.active, .ftab:hover { background: var(--teal); color: white; border-color: var(--teal); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(130deg, #F0FEFA 0%, #F8F9F7 55%, #FFF8F3 100%);
  position: relative; overflow: hidden; padding: 80px 24px;
}
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,191,165,0.1) 0%, transparent 70%);
  right: 10%; top: 50%; transform: translateY(-50%); pointer-events: none;
}
.hero-content { max-width: 580px; z-index: 2; }
.hero-tag { display: inline-block; background: var(--teal-light); color: var(--teal); padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 700; margin-bottom: 20px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.8rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: var(--text); }
.hero-title em { color: var(--teal); font-style: normal; }
.hero-subtitle { font-size: 1.05rem; color: var(--muted); margin-bottom: 36px; max-width: 460px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.hstat strong { display: block; font-size: 1.8rem; font-weight: 900; color: var(--teal); }
.hstat span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.hero-visual { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 380px; }
.hero-product-img { width: 260px; margin: auto; filter: drop-shadow(0 20px 40px rgba(0,191,165,0.2)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar { background: var(--teal); padding: 14px 24px; }
.trust-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 8px; color: white; font-size: 0.85rem; font-weight: 500; }

/* ── TESTIMONIALS / REVIEWS ─────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 18px; }
.review-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.review-stars { color: #FFD54F; font-size: 0.95rem; margin-bottom: 10px; }
.review-stars i.dim { color: #E0E0E0; }
.review-card p { color: var(--muted); font-style: italic; font-size: 0.9rem; margin-bottom: 14px; line-height: 1.6; }
.review-card strong { font-weight: 700; font-size: 0.88rem; color: var(--teal-dark); }

/* ── DETAIL PAGE ────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.detail-img-box { background: var(--bg-section); border-radius: var(--radius); padding: 40px; position: relative; }
.detail-img { width: 100%; max-height: 400px; object-fit: contain; }
.detail-title { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 900; margin: 8px 0 12px; }
.detail-fragrance { color: var(--teal); font-weight: 600; margin-bottom: 14px; }
.detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-rating i { font-size: 1rem; color: #E0E0E0; }
.detail-rating i.filled { color: #FFD54F; }
.detail-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.detail-features li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.detail-features i { color: var(--teal); font-size: 0.9rem; }
.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.detail-badge { background: var(--teal-light); color: var(--teal-dark); padding: 5px 13px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.wishlist-btn { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--muted); transition: all .2s; flex-shrink: 0; cursor: pointer; background: white; }
.wishlist-btn:hover, .wishlist-btn.active { border-color: #EF9A9A; background: #FFF3F3; color: #E53935; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 100px; overflow: hidden; width: fit-content; }
.qty-btn { background: none; border: none; padding: 9px 16px; font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.qty-btn:hover { background: var(--teal-light); }
.qty-input { width: 50px; text-align: center; border: none; font-size: 0.98rem; font-weight: 600; outline: none; padding: 9px 0; background: transparent; }

/* ── CART & CHECKOUT ────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-item { background: white; border-radius: var(--radius); padding: 18px; display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow); margin-bottom: 14px; flex-wrap: wrap; }
.cart-item-img { width: 76px; height: 76px; object-fit: contain; background: var(--bg-section); border-radius: 10px; padding: 8px; }
.cart-item-info { flex: 1; min-width: 140px; }
.cart-item-info h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.cart-summary { background: white; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.cart-summary h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.92rem; }
.summary-total { border-top: 1.5px solid var(--border); padding-top: 14px; margin-top: 8px; font-size: 1.08rem; }
.points-box { background: var(--teal-light); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; }
.points-box p { font-size: 0.85rem; color: var(--teal-dark); font-weight: 600; margin-bottom: 8px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }

/* ── COMBO CARDS ────────────────────────────────────────── */
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.combo-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all .3s; position: relative; }
.combo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.combo-img { aspect-ratio: 4/3; background: var(--bg-section); }
.combo-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.combo-body { padding: 18px 20px 20px; }
.combo-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.combo-body p { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.combo-products { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.combo-tag { font-size: 0.72rem; background: var(--teal-light); color: var(--teal-dark); padding: 3px 9px; border-radius: 100px; font-weight: 600; }

/* ── BLOG ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.blog-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-section); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; }
.blog-card-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-card-body p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* ── SUBSCRIPTION ───────────────────────────────────────── */
.sub-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.sub-plan-card {
  background: white; border-radius: var(--radius); padding: 28px 22px;
  box-shadow: var(--shadow); border: 2px solid var(--border);
  text-align: center; cursor: pointer; transition: all .25s; position: relative;
}
.sub-plan-card:hover, .sub-plan-card.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,191,165,0.15); }
.sub-plan-card .plan-months { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--teal); }
.sub-plan-card .plan-discount { font-size: 1.1rem; font-weight: 700; color: #2E7D32; margin: 6px 0; }
.sub-plan-card .plan-perks { font-size: 0.82rem; color: var(--muted); }

/* ── ABOUT PAGE ─────────────────────────────────────────── */
.about-hero { background: linear-gradient(130deg, #F0FEFA, #F8F9F7); padding: 90px 24px; text-align: center; }
.about-hero h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.2rem); font-weight: 900; margin: 14px 0 18px; }
.about-hero h1 em { color: var(--teal); font-style: normal; }
.vmv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.vmv-card { background: white; border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--teal); }
.vmv-card .vmv-icon { font-size: 2.5rem; margin-bottom: 14px; }
.vmv-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--teal-dark); }
.vmv-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.cert-card { background: white; border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow); text-align: center; border: 1.5px solid var(--border); }
.cert-card i { font-size: 2rem; color: var(--teal); margin-bottom: 10px; }
.cert-card h4 { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.cert-card p { font-size: 0.78rem; color: var(--muted); }
.cert-badge { font-size: 0.7rem; background: #E8F5E9; color: #2E7D32; padding: 2px 8px; border-radius: 100px; font-weight: 700; margin-top: 8px; display: inline-block; }
.cert-badge.pending { background: #FFF8E1; color: #F57F17; }

/* ── CONTACT ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--teal); color: white; border-radius: var(--radius); padding: 36px; }
.contact-info-card h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; }
.contact-info-card p { opacity: .85; margin-bottom: 28px; font-size: 0.92rem; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail .cd-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail strong { display: block; font-weight: 700; margin-bottom: 2px; }
.contact-detail span { font-size: 0.88rem; opacity: .85; }

/* ── TRACK ORDER ────────────────────────────────────────── */
.track-hero { background: linear-gradient(130deg, #F0FEFA, #F8F9F7); padding: 70px 24px; text-align: center; }
.track-result { background: white; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 28px; }
.track-status-bar { display: flex; align-items: center; gap: 0; margin: 24px 0; }
.track-step { flex: 1; text-align: center; position: relative; }
.track-step::before { content: ''; position: absolute; top: 16px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.track-step:last-child::before { display: none; }
.track-step .ts-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); background: white; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; z-index: 1; position: relative; }
.track-step.done .ts-dot { background: var(--teal); border-color: var(--teal); color: white; }
.track-step.active .ts-dot { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 0 4px rgba(0,191,165,0.15); }
.track-step span { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.track-step.done span, .track-step.active span { color: var(--teal-dark); font-weight: 700; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item { background: white; border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q { padding: 18px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; }
.faq-q:hover { background: var(--teal-light); }
.faq-q i { transition: transform .3s; color: var(--teal); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: all .3s; color: var(--muted); font-size: 0.91rem; line-height: 1.7; }
.faq-item.open .faq-a { padding: 4px 20px 18px; max-height: 200px; }

/* ── ACCOUNT / AUTH ─────────────────────────────────────── */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { background: white; border-radius: var(--radius); padding: 44px 40px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 52px; margin: 0 auto 8px; }
.auth-card h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; margin-bottom: 6px; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; }
.auth-card .auth-link { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.auth-card .auth-link a { color: var(--teal); font-weight: 600; }
.loyalty-badge { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: white; border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.loyalty-badge i { font-size: 2rem; opacity: .9; }
.loyalty-badge strong { font-size: 1.5rem; font-weight: 900; display: block; }
.loyalty-badge span { font-size: 0.82rem; opacity: .85; }

/* ── ADMIN ──────────────────────────────────────────────── */
.admin-wrap { max-width: 1300px; margin: 0 auto; padding: 50px 24px; }
.admin-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 14px; }
.admin-hdr h1 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 16px; margin-bottom: 36px; }
.ast-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; border-left: 4px solid var(--teal); }
.ast-card i { font-size: 1.6rem; color: var(--teal); }
.ast-card strong { display: block; font-size: 1.35rem; font-weight: 900; }
.ast-card span { font-size: 0.78rem; color: var(--muted); }
.admin-tabs { display: flex; gap: 4px; background: var(--bg-section); padding: 4px; border-radius: 10px; width: fit-content; margin-bottom: 24px; }
.atab { padding: 8px 22px; border-radius: 8px; border: none; background: none; font-weight: 600; font-size: 0.88rem; cursor: pointer; color: var(--muted); transition: all .2s; }
.atab.active { background: white; color: var(--teal); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.action-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 7px; border: none; cursor: pointer; font-size: 0.85rem; margin-right: 4px; }
.ab-edit { background: #E3F2FD; color: #1565C0; }
.ab-del  { background: #FFEBEE; color: #C62828; }
.status-badge { padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.status-pending   { background: #FFF8E1; color: #E65100; }
.status-confirmed { background: #E3F2FD; color: #1565C0; }
.status-shipped   { background: #EDE7F6; color: #6A1B9A; }
.status-delivered { background: #E8F5E9; color: #2E7D32; }
.status-cancelled { background: #FFEBEE; color: #C62828; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: #0D1F1E; color: rgba(255,255,255,0.8); padding: 64px 24px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-img { height: 40px; object-fit: contain; }
.footer-brand p { font-size: 0.88rem; opacity: .7; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: white; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 0.88rem; opacity: .72; margin-bottom: 10px; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: var(--teal); }
.footer-col i { margin-right: 7px; color: var(--teal); width: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; opacity: .5; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { opacity: 1; color: var(--teal); }

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state i { font-size: 3.5rem; color: var(--border); margin-bottom: 18px; }
.empty-state svg.icon-cart { width: 3.5rem; height: 3.5rem; color: var(--border); margin-bottom: 18px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ── SUCCESS PAGE ───────────────────────────────────────── */
.success-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.success-card { background: white; border-radius: var(--radius); padding: 52px 44px; text-align: center; max-width: 520px; box-shadow: var(--shadow-lg); }
.success-icon { width: 72px; height: 72px; background: var(--teal); color: white; border-radius: 50%; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.success-card h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 12px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-search-wrap { display: none; }
  .detail-grid, .cart-layout, .checkout-layout, .contact-grid { grid-template-columns: minmax(0,1fr) !important; }
  .vmv-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-left { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-btns { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   ADDITIONS — logo, slideshow, subscription,
   blog sidebar, TM badge, keyword cloud
═══════════════════════════════════════════════ */

/* ── LOGO (new full logo image, no brand-name text) ──── */
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
/* Logo image — white background on dark backgrounds looks off,
   so we use a teal-tinted container */
.logo-img {
  height: 48px; width: auto; object-fit: contain;
  /* teal tint overlay effect so black logo reads on white navbar */
  filter: none;
  border-radius: 6px;
}

/* Footer logo */
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo-img {
  height: 44px; width: auto; object-fit: contain;
  /* invert to white for dark footer */
  filter: brightness(0) invert(1);
}

/* ── ™ IN CIRCLE (like brand trademark badge) ───────── */
/* Usage: <span class="tm-badge">™</span> next to brand name */
.tm-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 0.55rem;
  font-weight: 700; vertical-align: super; margin-left: 2px;
  line-height: 1;
}

/* ── HERO SLIDESHOW ─────────────────────────────────── */
.hero-visual { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 380px; }
.hero-slideshow { position: relative; width: 320px; margin: 0 auto; }

.slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: scale(0.92) translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.slide.active {
  position: relative; opacity: 1; transform: scale(1) translateY(0);
  pointer-events: auto;
}

.slide-glow {
  position: absolute; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,191,165,0.18) 0%, transparent 70%);
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.slide-img {
  width: 240px; display: block; margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,191,165,0.25));
  animation: float 4s ease-in-out infinite;
}
.slide-label {
  text-align: center; margin-top: 16px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border-radius: 100px; padding: 8px 20px; display: inline-block;
  width: auto; margin-inline: auto; display: flex;
  align-items: center; gap: 10px; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.slide-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.slide-tag  { font-size: 0.78rem; color: var(--teal); font-weight: 600; }

/* Dot indicators */
.slide-dots {
  display: flex; justify-content: center; gap: 7px;
  margin-top: 14px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: all .3s;
}
.dot.active { background: var(--teal); transform: scale(1.3); }

/* ── SUBSCRIPTION PRODUCT ROWS ───────────────────────── */
.sub-product-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; margin-bottom: 9px; cursor: pointer;
  transition: all .2s; position: relative;
}
.sub-product-row:hover { border-color: var(--teal); background: var(--teal-light); }
.sub-product-row.checked { border-color: var(--teal); background: rgba(0,191,165,0.06); }
.sub-check-icon { color: var(--teal); opacity: 0; transition: opacity .2s; }
.sub-product-row.checked .sub-check-icon { opacity: 1; }

/* ── BLOG SIDEBAR ────────────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.sidebar-card { background: white; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.sidebar-card h4 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light); color: var(--text);
}

/* Keyword cloud */
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.keyword-tag {
  display: inline-block; padding: 5px 12px;
  background: var(--teal-light); color: var(--teal-dark);
  border-radius: 100px; font-size: 0.75rem; font-weight: 600;
  transition: all .2s; cursor: pointer;
}
.keyword-tag:hover { background: var(--teal); color: white; }

/* ── RESPONSIVE FIXES ────────────────────────────────── */
@media (max-width: 900px) {
  .blog-sidebar { display: none; }
  /* show sidebar on blog only on wider screens */
}
@media (max-width: 640px) {
  .hero-visual { display: none; }
}

/* ═══════════════════════════════════════════════
   LOGO OVERRIDE — color logo (gleamex_logo_color.png)
   The logo image already contains the teal icon + "Gleamex" text.
   No extra brand-name text needed alongside it.
   UPDATE: change logo height here if needed.
═══════════════════════════════════════════════ */

/* Navbar logo — show full color, transparent background */
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 42px;          /* UPDATE: change height to resize logo */
  width: auto;
  object-fit: contain;
  filter: none;          /* no invert — color logo already teal */
  border-radius: 0;
  background: transparent;
}

/* Hide any leftover brand-name text (logo image has it built-in) */
.brand-name { display: none !important; }

/* Footer logo — the teal logo is visible on dark footer bg */
.footer-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  /* Keep the teal color visible on dark footer — no invert needed
     because #00BFA5 teal reads well on #0D1F1E dark background */
  filter: none;
  background: transparent;
}

/* Topbar — keep teal dark as before */
.topbar { background: #007A6B; } /* slightly darker than #00BFA5 for contrast */

/* Navbar brand color reinforcement */
.navbar { border-bottom: 2px solid rgba(0,191,165,0.12); }


/* ═══════════════════════════════════════════════
   FINAL LOGO OVERRIDE — gleamex_logo_final.png
   Transparent PNG, teal icon + Gleamex text
   No black background — works on white navbar
   and dark footer without any filter tricks
═══════════════════════════════════════════════ */

/* Navbar logo */
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 50px !important;   /* UPDATE: change to resize navbar logo */
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 2px 0;
}

/* Footer logo — same transparent PNG, visible on dark bg */
.footer-logo-img {
  height: 46px !important;   /* UPDATE: change to resize footer logo */
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;   /* teal reads perfectly on dark footer */
  background: transparent !important;
}

/* Auth pages logo (sign in / sign up / admin) */
.auth-logo img {
  height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
}

/* Hide duplicate brand-name text — logo image has "Gleamex" in it */
.brand-name { display: none !important; }


/* ═══════════════════════════════════════════════
   LOGO — single file: gleamex_logo.png
   Transparent PNG, horizontal layout
   UPDATE height values below to resize
═══════════════════════════════════════════════ */

/* Navbar */
.logo-link { display:flex; align-items:center; flex-shrink:0; }
.logo-img  {
  height: 44px !important;   /* ← change this to resize navbar logo */
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
  background: transparent !important;
}

/* Footer — same logo, no filter needed (teal reads on dark bg) */
.footer-logo-img {
  height: 40px !important;   /* ← change this to resize footer logo */
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
  background: transparent !important;
}

/* Auth pages (sign in / sign up / admin) */
.auth-logo img {
  height: 52px !important;   /* ← change this to resize auth logo */
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
}

/* No duplicate text — logo image already has "Gleamex" */
.brand-name { display:none !important; }

/* ── ACTIVE NAV LINK highlight ─────────────────── */
.nav-links > li > a.nav-active {
  color: var(--teal) !important;
  background: var(--teal-light) !important;
  border-radius: var(--radius-sm);
}

/* ── NAVBAR layout fix: Logo | Links | Search | Icons ── */
.nav-container {
  gap: 12px !important;
}
.nav-links {
  gap: 2px !important;
}
.nav-links > li > a {
  padding: 7px 10px !important;
  font-size: 0.86rem !important;
}
/* Search bar — compact, right-aligned */
.nav-search-wrap {
  flex: 0 1 220px !important;
}
.search-form input {
  width: 100% !important;
  font-size: 0.82rem !important;
}

/* ── SEARCH BAR LARGER ────────────────────────────────── */
.nav-search-wrap { flex: 0 1 360px !important; }   /* wider wrap */
.search-form input {
  padding: 11px 18px !important;
  font-size: 0.92rem !important;
  width: 100% !important;
}
.search-form button {
  padding: 11px 16px !important;
  font-size: 1rem !important;
}
.search-form {
  border-radius: 100px !important;
  border: 2px solid var(--border) !important;
}
.search-form:focus-within {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(0,191,165,0.1) !important;
}

/* ── PHONE INPUT WITH FLAG ──────────────────────────────── */
.phone-input-wrap {
  display: flex; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border .2s; background: white;
}
.phone-input-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,191,165,0.1); }
.flag-select {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 10px 10px 12px; background: var(--bg-section);
  border-right: 1.5px solid var(--border); cursor: pointer;
  white-space: nowrap; font-size: 0.88rem; font-weight: 600;
  min-width: 90px; position: relative;
}
.flag-select select {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}
.flag-emoji { font-size: 1.2rem; }
.dial-code  { font-size: 0.82rem; color: var(--text-mid); }
.phone-number-input {
  flex: 1; border: none; padding: 10px 14px;
  font-size: 0.92rem; outline: none; background: transparent;
}

/* ── SECURITY & LIVE SITE EXTRAS ────────────────────────── */
/* Prevent text selection on sensitive UI elements */
.auth-card { user-select: none; }
.auth-card input, .auth-card textarea { user-select: text; }

/* Rate limit error styling */
.flash-danger { animation: shake .4s ease; }
@keyframes shake {
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-8px)}
  75%{transform:translateX(8px)}
}

/* OTP input special styling */
input[name="otp"] {
  font-size: 2rem !important;
  letter-spacing: 16px !important;
  text-align: center !important;
  font-weight: 900 !important;
  color: var(--teal) !important;
}

/* ── PLAIN FAQ (no accordion) ───────────────────────────── */
.faq-plain { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; }
.faq-plain-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.faq-plain-item:last-child { border-bottom: none; }
.faq-plain-item h4 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
  line-height: 1.4;
}
.faq-plain-item p {
  color: var(--muted); font-size: 0.92rem;
  line-height: 1.75; margin: 0;
}

/* ── PHONE FLAG ONLY (no dial code text) ─────────────────── */
.flag-select {
  min-width: 52px !important;
  padding: 10px 8px !important;
  justify-content: center;
}
.dial-code { display: none !important; }

/* ── 3-VIEW NAV EXTRAS ──────────────────────────────────── */
.nav-active { color: var(--teal) !important; font-weight: 700 !important; }
.admin-icon { color: var(--teal) !important; }
.loyalty-dot {
  position: absolute; top: 2px; right: 2px;
  width: 8px; height: 8px; background: #FFD54F;
  border-radius: 50%; border: 1.5px solid white;
}

/* ── DROPDOWN FIX — works on hover ─────────────────────── */
/* Remove the opacity/visibility toggle and use display */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  display: none !important;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: white; border-radius: var(--radius);
  min-width: 200px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); z-index: 999;
  padding: 6px 0;
}
.has-dropdown:hover .dropdown { display: block !important; }
.dropdown li a {
  display: block; padding: 10px 18px;
  font-size: 0.88rem; color: var(--text-mid);
  transition: background .15s; white-space: nowrap;
}
.dropdown li a:hover { background: var(--teal-light); color: var(--teal); }


/* ═══ NAV OVERFLOW FIX ════════════════════════════════════ */
.nav-container {
  gap: 12px !important;
}
.nav-links {
  gap: 0 !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}
.nav-links > li > a {
  padding: 8px 8px !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
}
.nav-search-wrap {
  flex: 0 1 220px !important;
  min-width: 120px !important;
}

/* ═══ DROPDOWN — JS controlled (class-based) ═══════════════ */
.has-dropdown .dropdown {
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.has-dropdown.open .dropdown {
  display: block !important;
}

/* ═══ FAQ ACCORDION FIX ═══════════════════════════════════ */
.faq-item { cursor: pointer; }
.faq-q { cursor: pointer; user-select: none; }
.faq-a {
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 20px !important;
  transition: max-height 0.35s ease, padding 0.35s ease !important;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 300px !important;
  padding: 4px 20px 18px !important;
}
.faq-item.open .faq-q i {
  transform: rotate(180deg);
}
.faq-q i {
  transition: transform 0.3s ease;
  color: var(--teal);
}

/* ═══ ADMIN SHIELD ICON ═══════════════════════════════════ */
.admin-icon {
  background: var(--teal-light) !important;
  color: var(--teal) !important;
  border-radius: 50% !important;
}

/* ═══ FINAL FIXES ════════════════════════════════════════ */

/* Search bar — bigger on all pages */
.nav-search-wrap { flex: 0 1 300px !important; }
.search-form input {
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
}
.search-form {
  border-radius: 100px !important;
  border: 1.5px solid var(--border) !important;
}

/* Nav — consistent size all pages */
.nav-links > li > a {
  padding: 6px 9px !important;
  font-size: 0.84rem !important;
}

/* User icon on signin/signup page — hide to avoid confusion */
.auth-wrap .icon-btn { display: none; }

/* Track order form layout */
.track-hero form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 680px;
  margin: 0 auto;
}
.track-hero form > div,
.track-hero form > input {
  flex: 1;
  min-width: 180px;
}

/* FAQ accordion - ensure smooth open/close */
.faq-item { border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: white;
  transition: background .2s;
  user-select: none;
}
.faq-q:hover { background: var(--teal-light); }
.faq-item.open .faq-q { background: var(--teal-light); color: var(--teal-dark); }


/* ── ADMIN TABS (renamed to avoid conflict with main.js) ── */
.admin-tab {
  padding: 8px 22px; border-radius: 8px; border: none;
  background: none; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; color: var(--muted); transition: all .2s;
}
.admin-tab.active {
  background: white; color: var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.admin-tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.5); }

/* Footer icons - no override needed */

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Works on Android, iOS, Tablet, Desktop
═══════════════════════════════════════════════════════════ */

/* ── Base mobile fixes ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img  { max-width: 100%; height: auto; }

/* ── TOPBAR ── */
@media (max-width: 768px) {
  .topbar { display: none; }
}

/* ── NAVBAR ── */
@media (max-width: 900px) {
  .navbar { padding: 10px 16px; }
  .nav-container { gap: 8px; }
  .logo-img { height: 36px !important; }
  .nav-search-wrap { display: none !important; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    padding: 8px 20px 16px;
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
    gap: 0;
    box-shadow: 0 16px 32px rgba(0,0,0,0.14);
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid var(--border);
  }
  .nav-links.mobile-open li { border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links.mobile-open li:last-child { border-bottom: none; }
  .nav-links.mobile-open li a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 600; text-align: left; }
  .nav-links.mobile-open .dropdown {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 0 16px !important;
    display: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .nav-links.mobile-open .has-dropdown.open .dropdown {
    display: block !important;
  }
  .nav-links.mobile-open .dropdown li { border-bottom: none !important; }
  .nav-links.mobile-open .dropdown li a {
    padding: 10px 0 !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
  }
  .nav-toggle { display: flex !important; z-index: 1000; width: 36px; height: 36px; font-size: 0.9rem; }
  .nav-actions { gap: 8px; }
  .icon-btn { width: 36px; height: 36px; font-size: 0.9rem; }

  /* Lock background scroll while the dropdown menu is open */
  body.nav-open { overflow: hidden; }
}

/* ── HERO BANNER ── */
@media (max-width: 768px) {
  /* Full width banner content stack */
  .hero-banner-inner {
    flex-direction: column !important;
    padding: 28px 20px !important;
    min-height: auto !important;
  }
  .hero-banner-left  { flex: none !important; padding-right: 0 !important; text-align: center; }
  .hero-banner-right { flex: none !important; width: 100%; display: flex; justify-content: center; }
  .hero-banner-right img { max-height: 220px !important; }
  .hero-stats-row { justify-content: center !important; }
  .hero-cta-row { justify-content: center !important; }
}

/* ── HOMEPAGE SECTIONS ── */
@media (max-width: 768px) {
  .page-wrap { padding: 0 16px !important; }
  .section-header h2 { font-size: 1.6rem !important; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .combos-grid   { grid-template-columns: 1fr !important; }
  .reviews-grid  { grid-template-columns: 1fr !important; }
  .trust-inner   { gap: 16px !important; flex-wrap: wrap; }
  .trust-item    { font-size: 0.78rem !important; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}

/* ── PRODUCT CARDS ── */
@media (max-width: 768px) {
  .product-card { padding: 14px !important; }
  /* height override removed — .product-img now handles sizing via aspect-ratio + object-fit */
  .product-card h3 { font-size: 0.88rem !important; }
  .product-price { font-size: 1rem !important; }
}

/* ── SHOP PAGE ── */
@media (max-width: 768px) {
  .shop-layout { flex-direction: column !important; }
  .shop-filters { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
}

/* ── PRODUCT DETAIL ── */
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr !important; }
  .combo-detail-grid { grid-template-columns: 1fr !important; }
  .product-detail-img  { max-height: 280px !important; }
}

/* ── CART & CHECKOUT ── */
@media (max-width: 768px) {
  .cart-layout     { flex-direction: column !important; }
  .checkout-grid   { grid-template-columns: minmax(0,1fr) !important; }
  #checkoutForm > div { grid-template-columns: 1fr !important; }
}

/* ── CONTACT PAGE ── */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; flex-direction: column !important; }
}

/* ── FOOTER ── */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 32px 20px !important;
  }
  .footer-social { gap: 12px !important; }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }
}

/* ── AUTH PAGES ── */
@media (max-width: 600px) {
  .auth-card { padding: 24px 16px !important; margin: 16px !important; }
  .auth-wrap  { padding: 16px !important; }
}

/* ── SIGNUP FORM ── */
@media (max-width: 600px) {
  #signupForm div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── SITE-WIDE: inline 2/3-column form-field grids ──
   Many pages (account, checkout, contact, combo detail, track order, about)
   use inline style="display:grid;grid-template-columns:1fr 1fr;..." (or the
   minmax(0,1fr) equivalent) directly on form-field-pair wrappers, with no
   class to hook a responsive override onto. Catch every one of them here via
   attribute selectors instead of editing each template individually. */
@media (max-width: 640px) {
  div[style*="grid-template-columns:1fr 1fr;"],
  div[style*="grid-template-columns: 1fr 1fr;"],
  div[style*="grid-template-columns:minmax(0,1fr) minmax(0,1fr)"],
  div[style*="grid-template-columns: minmax(0,1fr) minmax(0,1fr)"],
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── ADMIN DASHBOARD ── */
@media (max-width: 900px) {
  .admin-wrap { padding: 16px !important; }
  .admin-hdr  { flex-direction: column !important; align-items: flex-start !important; gap: 12px; }
  .admin-stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .admin-tabs { flex-wrap: wrap !important; gap: 4px !important; }
  .admin-table { font-size: 0.78rem !important; }
}

/* ── TRACK ORDER ── */
@media (max-width: 600px) {
  .track-hero form { flex-direction: column !important; }
  .track-status-bar { gap: 0 !important; }
  .track-step span  { font-size: 0.7rem !important; }
}

/* ── ACCOUNT PAGE ── */
@media (max-width: 768px) {
  .account-tabs { flex-wrap: wrap !important; gap: 4px !important; }
  .account-grid { grid-template-columns: 1fr !important; }
}

/* ── COMBOS PAGE ── */
@media (max-width: 768px) {
  .combo-card { flex-direction: column !important; }
}

/* ── GENERAL BUTTONS ── */
@media (max-width: 480px) {
  .btn-primary, .btn-outline {
    padding: 11px 20px !important;
    font-size: 0.88rem !important;
  }
}

/* ── FLASH MESSAGES ── */
@media (max-width: 600px) {
  .flash-container { left: 12px !important; right: 12px !important; bottom: 12px !important; }
  .flash { font-size: 0.85rem !important; padding: 12px 14px !important; }
}

/* ── SUBSCRIPTION PLANS ── */
@media (max-width: 768px) {
  .sub-plans-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 480px) {
  .sub-plans-grid { grid-template-columns: 1fr !important; }
}

/* ── BLOG ── */
@media (max-width: 768px) {
  .blog-layout { grid-template-columns: minmax(0,1fr) !important; flex-direction: column !important; }
  .blog-sidebar { width: 100% !important; }
}

/* ── PHONE INPUT ── */
@media (max-width: 480px) {
  #phoneWrap { border-radius: 8px !important; }
}

/* ── SEARCH DROPDOWN ── */
@media (max-width: 600px) {
  .search-dropdown { left: -60px !important; right: -60px !important; width: auto !important; }
}

/* Touch-friendly tap targets */
@media (max-width: 900px) {
  a, button { min-height: 44px; }
  .nav-links li a { min-height: 44px; display: flex; align-items: center; }
  .topbar-left a, .topbar-right a { min-height: auto; }
  .csp-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .csp-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════
   TABLET + iOS + ANDROID COMPLETE FIX
   Breakpoints: 1024px tablet, 768px small tablet, 480px phone
═══════════════════════════════════════════════════════════ */

/* Prevent iOS zoom on input focus */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important; /* iOS won't zoom if font-size >= 16px */
  }
}

/* ── TABLET (768px - 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links > li > a { padding: 6px 8px !important; font-size: 0.8rem !important; }
  .nav-search-wrap { flex: 0 1 200px !important; }
  .page-wrap { padding: 0 20px !important; }
  .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .footer-inner { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  /* Hero banner on tablet */
  .hero-banner-inner { padding: 32px 32px !important; }
  .hero-banner-left { flex: 0 0 45% !important; }
  .hero-banner-right img { max-height: 300px !important; }
  /* Admin */
  .admin-stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
  /* Checkout */
  #checkoutForm > div { grid-template-columns: 1fr !important; }
}

/* ── MOBILE PHONE (max 768px) ── */
@media (max-width: 768px) {
  /* Navbar */
  .topbar { display: none !important; }
  .navbar { padding: 10px 16px !important; position: sticky; top: 0; z-index: 900; }
  .nav-container { gap: 8px !important; }
  .logo-img { height: 34px !important; }
  .nav-search-wrap { display: none !important; }
  .nav-toggle { display: flex !important; }

  /* Hero banner - stack vertically */
  .hero-banner-inner {
    flex-direction: column !important;
    padding: 24px 16px 0 !important;
    gap: 20px !important;
  }
  .hero-banner-left {
    flex: none !important;
    width: 100% !important;
    padding-right: 0 !important;
    text-align: center !important;
  }
  .hero-banner-left h1 { font-size: 1.6rem !important; }
  .hero-banner-right {
    flex: none !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .hero-banner-right img { max-height: 200px !important; margin-bottom: 0 !important; }
  .hero-stats-row { justify-content: center !important; gap: 8px !important; }
  .hero-stats-row > div { padding: 8px 12px !important; }
  .hero-cta-row { justify-content: center !important; flex-wrap: wrap !important; }

  /* Trust bar */
  .trust-inner { gap: 12px 20px !important; justify-content: center !important; }
  .trust-item { font-size: 0.75rem !important; }

  /* Products grid */
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .product-card { padding: 12px !important; }
  /* height override removed — .product-img now handles sizing via aspect-ratio + object-fit */

  /* Section headers */
  .section-header h2 { font-size: 1.4rem !important; }
  .section-tag { font-size: 0.7rem !important; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr !important; padding: 28px 16px !important; }
  .footer-bottom { flex-direction: column !important; text-align: center !important; gap: 8px !important; padding: 16px !important; }
  .footer-bottom-links { flex-wrap: wrap !important; justify-content: center !important; gap: 12px !important; }

  /* Auth pages */
  .auth-wrap { padding: 16px !important; min-height: auto !important; }
  .auth-card { padding: 24px 16px !important; border-radius: 12px !important; }

  /* Cart */
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none !important; }

  /* Checkout */
  #checkoutForm > div { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Track order */
  .track-status-bar { gap: 0 !important; overflow-x: auto !important; }
  .track-step { min-width: 70px !important; }
  .track-step span { font-size: 0.68rem !important; }

  /* Admin */
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .admin-hdr { flex-direction: column !important; gap: 12px !important; }
  .admin-tabs { flex-wrap: wrap !important; }
  .admin-tab { padding: 6px 14px !important; font-size: 0.8rem !important; }
  .admin-table { font-size: 0.75rem !important; }
  .admin-table td, .admin-table th { padding: 8px 6px !important; }

  /* Blog */
  .blog-layout { grid-template-columns: minmax(0,1fr) !important; flex-direction: column !important; }
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Combos */
  .combos-grid { grid-template-columns: 1fr !important; }

  /* Subscription plans */
  .sub-plans-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr !important; }

  /* FAQ */
  .faq-q { font-size: 0.88rem !important; padding: 14px 16px !important; }
  .faq-plain-item h4 { font-size: 0.92rem !important; }

  /* Flash messages */
  .flash-container { left: 8px !important; right: 8px !important; bottom: 8px !important; }
  .flash { font-size: 0.82rem !important; }

  /* Contact page */
  .contact-layout { grid-template-columns: minmax(0,1fr) !important; flex-direction: column !important; }

  /* Buttons */
  .btn-primary, .btn-outline { min-height: 44px !important; }

  /* Page wrap */
  .page-wrap { padding: 0 12px !important; }

  /* Signup form grids - single column on mobile */
  .signup-grid { grid-template-columns: 1fr !important; }
}

/* ── SMALL PHONE (max 480px) ── */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  /* height override removed — .product-img now handles sizing via aspect-ratio + object-fit */
  .product-card h3 { font-size: 0.78rem !important; }
  .sub-plans-grid { grid-template-columns: 1fr !important; }
  .hero-banner-left h1 { font-size: 1.3rem !important; }
  .hero-stats-row > div { padding: 6px 10px !important; }
  .hero-stats-row > div div:first-child { font-size: 1.1rem !important; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── iOS SAFARI SPECIFIC FIXES ── */
@supports (-webkit-touch-callout: none) {
  /* Fix 100vh issue on iOS Safari */
  .hero-banner-inner { min-height: -webkit-fill-available; }
  /* Smooth scrolling */
  body { -webkit-overflow-scrolling: touch; }
  /* Fix button appearance */
  button, input[type="submit"] { -webkit-appearance: none; border-radius: 8px; }
}

/* ── ANDROID CHROME FIXES ── */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select { background-image: none; }
}

/* ── TOUCH TARGETS — minimum 44px for all tappable elements ── */
@media (max-width: 1024px) {
  a, button, input[type="submit"], input[type="button"],
  .product-card, .icon-btn, .nav-links li a {
    min-height: 44px;
  }
  .icon-btn { width: 40px; height: 40px; }
  /* Topbar utility links (Sign In / Create Account) sit in a slim ~30px bar
     that's only hidden below 900px — this rule's 1024px range overlaps with
     it still being visible, so without this exclusion "Create Account"
     balloons to 44px tall and breaks the topbar's proportions. */
  .topbar-left a, .topbar-right a { min-height: auto; }
  /* Thumbnail-carousel prev/next arrows on product detail page have an inline
     width:28px;height:28px — fine for a mouse, too small to tap reliably.
     !important is required here since inline styles otherwise win. */
  .thumb-nav-btn { width: 44px !important; height: 44px !important; }
}

/* ── PREVENT HORIZONTAL SCROLL ── */
html, body { max-width: 100%; overflow-x: hidden; }
