/* ═══════════════════════════════════════════════════
   BreathePro — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #050508;
  --navy:    #0B0D1C;
  --navy2:   #10122A;
  --blue:    #1A6EFF;
  --blue-lt: #5295FF;
  --blue-dk: #0A3FAF;
  --white:   #F4F6FF;
  --gray:    #7A87A8;
  --gold:    #FFD166;
  --green:   #00D4A1;
  --border:  rgba(255,255,255,.07);
}

html  { scroll-behavior: smooth; }
body  {
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a    { text-decoration: none; color: inherit; }
img  { display: block; }
ul   { list-style: none; }

/* ── LAYOUT ─────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
section { padding: 96px 5vw; }

/* ── TYPOGRAPHY HELPERS ─────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .68rem; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue-lt);
  margin-bottom: 12px;
}
.h-xl {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.04;
}
.h-lg {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1.08;
}
.h-md {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800; letter-spacing: -.5px;
}
.lead  { font-size: 1.08rem; color: var(--gray); line-height: 1.75; }
.tc    { text-align: center; }
.blue  { color: var(--blue); }
.gold  { color: var(--gold); }
.gray  { color: var(--gray); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 700; border-radius: 100px;
  border: none; cursor: pointer; font-size: .95rem;
  padding: 14px 28px; transition: all .2s;
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 8px 28px rgba(26,110,255,.4);
}
.btn-primary:hover { background: var(--blue-lt); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(26,110,255,.5); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.22);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(26,110,255,.1); }
.btn-gold {
  background: var(--gold); color: #050508; font-weight: 900;
  box-shadow: 0 8px 28px rgba(255,209,102,.3);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-sm  { padding: 10px 20px; font-size: .85rem; }
.btn-lg  { padding: 17px 36px; font-size: 1.05rem; }

/* ── BADGE ───────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .68rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.badge-blue  { background: rgba(26,110,255,.15);  color: var(--blue-lt); border: 1px solid rgba(26,110,255,.3); }
.badge-gold  { background: rgba(255,209,102,.15); color: var(--gold);    border: 1px solid rgba(255,209,102,.3); }
.badge-green { background: rgba(0,212,161,.15);   color: var(--green);   border: 1px solid rgba(0,212,161,.3); }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(5,5,8,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 1.25rem; font-weight: 900; letter-spacing: -.4px; }
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: .87rem; font-weight: 600; color: var(--gray);
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 60px 5vw 28px;
}
.footer-top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { font-size: 1.4rem; margin-bottom: 14px; }
.footer-brand p { color: var(--gray); font-size: .88rem; line-height: 1.75; max-width: 280px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .2s;
}
.footer-social-btn:hover { background: var(--blue); }
.footer-col h5 {
  font-size: .75rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .88rem; color: var(--gray); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: .75rem; color: var(--gray); }

/* ── IMAGE HELPERS ───────────────────────────────── */
.img-frame {
  overflow: hidden; border-radius: 16px;
  position: relative;
}
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}
.img-frame:hover img { transform: scale(1.04); }

/* portrait athlete: show face top */
.img-portrait img { object-position: 50% 15%; }

/* action / celebration: show center */
.img-action img  { object-position: center center; }

/* landscape team shot */
.img-landscape img { object-position: center 30%; }

/* product images: contain on white */
.img-product {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.img-product img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
}

/* aspect ratios */
.r-portrait   { aspect-ratio: 3/4; }
.r-square     { aspect-ratio: 1;   }
.r-wide       { aspect-ratio: 4/3; }
.r-landscape  { aspect-ratio: 16/9;}
.r-product    { aspect-ratio: 1;   }

/* ── DIVIDERS ────────────────────────────────────── */
.divider {
  height: 1px; background: var(--border);
  margin: 0 5vw;
}

/* ── STATS ROW ───────────────────────────────────── */
.stats-row {
  display: flex; justify-content: center; gap: 64px;
  padding: 40px 5vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num  { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.stat-lbl  { font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-top: 4px; }

/* ── CARD ────────────────────────────────────────── */
.card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(26,110,255,.35); transform: translateY(-5px); }
.card-body  { padding: 28px; }

/* ── PAGE HERO ───────────────────────────────────── */
.page-hero {
  padding: 160px 5vw 96px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26,110,255,.18) 0%, transparent 65%);
}
.page-hero .eyebrow { margin-bottom: 14px; }

/* ── GUARANTEE BAR ───────────────────────────────── */
.guarantee-bar {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 5vw;
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.guar-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }
.guar-icon { font-size: 1.1rem; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links  { display: none; }
  section { padding: 72px 5vw; }
  .h-xl { letter-spacing: -1.5px; }
  .h-lg { letter-spacing: -1px; }
  .stats-row { gap: 32px; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 56px 5vw; }
}

/* ── CART DRAWER ─────────────────────────────────── */
#cart-overlay {
  position: fixed; inset: 0; z-index: 1998;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(3px);
}
#cart-overlay.open { opacity: 1; pointer-events: all; }

#cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1999;
  width: 420px; max-width: 95vw;
  background: var(--navy);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
#cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.05rem; font-weight: 800; }
.cart-close-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none; cursor: pointer;
  color: var(--white); font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cart-close-btn:hover { background: rgba(255,255,255,.18); }

#cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }

.cart-empty {
  text-align: center; color: var(--gray);
  padding: 60px 0; font-size: .9rem;
}

.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info  { flex: 1; }
.cart-item-name  { font-size: .9rem; font-weight: 700; margin-bottom: 3px; }
.cart-item-detail{ font-size: .76rem; color: var(--gray); margin-bottom: 5px; }
.cart-item-price { font-size: .95rem; font-weight: 800; color: var(--blue); }

.cart-qty {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.cart-qty button {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  color: var(--white); cursor: pointer; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.cart-qty button:hover { background: rgba(26,110,255,.2); border-color: var(--blue); }
.cart-qty span { font-size: .9rem; font-weight: 800; min-width: 18px; text-align: center; }

.cart-footer {
  padding: 20px 24px; flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: .95rem;
}
.cart-subtotal span:first-child { color: var(--gray); }
.cart-subtotal span:last-child  { font-size: 1.15rem; font-weight: 900; }

.cart-checkout-btn {
  width: 100%; padding: 16px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 14px; cursor: pointer;
  font-size: 1rem; font-weight: 800;
  box-shadow: 0 8px 28px rgba(26,110,255,.4);
  transition: background .2s;
  margin-bottom: 10px;
}
.cart-checkout-btn:hover { background: var(--blue-lt); }
.cart-secure { text-align: center; font-size: .74rem; color: var(--gray); }

/* Cart button in nav */
.cart-nav-btn {
  position: relative;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer; color: var(--white);
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  transition: all .2s; white-space: nowrap;
}
.cart-nav-btn:hover { background: rgba(26,110,255,.15); border-color: var(--blue); }
.cart-badge {
  position: absolute; top: -7px; right: -7px;
  background: var(--blue); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .65rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--black);
}
