/* ============================================================
   Cub Club — Premium Modern UI (WORLD-CLASS MOBILE + POLISH)
   File: assets/css/styles.css
   Goal: high-end, trust, delight, mobile-first conversion
   ============================================================ */

/* -----------------------------
   Design tokens (single source of truth)
------------------------------ */
:root{
  --font: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5b6576;

  --brand: #0b3d91;
  --brand2:#2563eb;
  --accent:#0ea5e9;

  --border: rgba(15,23,42,.10);
  --border2: rgba(15,23,42,.08);

  --card: rgba(255,255,255,.86);
  --shadow: 0 18px 50px rgba(2,6,23,.10);
  --shadow2: 0 10px 30px rgba(2,6,23,.08);

  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --pad: 18px;
  --max: 1100px;

  --ring: 0 0 0 4px rgba(37,99,235,.18);

  /* Sticky header sizing (prevents overlap on mobile) */
  --bar-h: 44px;
  --nav-top: var(--bar-h);

  /* Touch */
  --tap: 44px;

  /* Utility spacing tokens */
  --s-2: 6px;
  --s-3: 10px;
  --s-35: 12px;
  --s-4: 14px;
  --s-5: 18px;
  --s-6: 22px;
  --s-7: 28px;
  --s-8: 36px;
}

/* -----------------------------
   Base
------------------------------ */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);

  /* premium soft glow */
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(37,99,235,.12), transparent 55%),
    radial-gradient(900px 500px at 90% -10%, rgba(14,165,233,.10), transparent 55%),
    radial-gradient(1000px 600px at 40% 120%, rgba(11,61,145,.08), transparent 55%),
    var(--bg);
}

a{ color: inherit; }
img{ max-width:100%; display:block; }

/* Better scroll anchor positions under sticky header */
[id]{ scroll-margin-top: calc(var(--bar-h) + 96px); }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

/* Subtle selection tint */
::selection{ background: rgba(37,99,235,.18); }

/* Better tap highlights */
button, a{ -webkit-tap-highlight-color: transparent; }

/* Prevent long text/buttons from causing horizontal scroll */
body{ overflow-x: hidden; }
.btn, .pill, .badge, .tag{ max-width: 100%; }

/* -----------------------------
   Top announcement bar (sticky)
------------------------------ */
.bar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
}
.bar .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}
.bar .inner > .row{ min-width: 0; } /* allows truncation */
.bar a{
  color:#fff;
  text-decoration:none;
  font-weight: 900;
  border-bottom: 1px dashed rgba(255,255,255,.7);
}
.bar a:hover{ border-bottom-style: solid; }
.bar .pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

/* -----------------------------
   Header / Nav
------------------------------ */
header{
  position: relative;
  padding: 18px 0 6px;
}

/* nav sits under bar via CSS var */
.nav{
  position: sticky;
  top: var(--nav-top);
  z-index: 999;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
}
.nav .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  min-width: 0; /* prevents overflow */
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.3px;
  white-space: nowrap;
  min-width: 0;
}

.logo{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display:grid;
  place-items:center;
  box-shadow: 0 12px 25px rgba(37,99,235,.20);
  flex: 0 0 auto;
}
.logo svg{ opacity:.95; }

.links{
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.links a{
  text-decoration:none;
  font-weight: 850;
  font-size: 13px;
  color: #0f172a;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.links a:hover{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.06);
}

.cta{
  display:flex;
  gap: 8px;
  align-items:center;
  flex: 0 0 auto;
  min-width: 0;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  min-height: var(--tap);
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  border: 1px solid transparent;
  cursor:pointer;
  user-select:none;
  white-space: nowrap;
  font-family: var(--font);
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, filter .15s ease;
}
.btn.primary{
  color:#fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 14px 35px rgba(37,99,235,.22);
  position: relative;
  overflow: hidden;
}
.btn.primary::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.20), transparent 45%);
  pointer-events:none;
}
.btn.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(37,99,235,.25);
  filter: saturate(1.05);
}
.btn.secondary{
  color:#0f172a;
  background: rgba(255,255,255,.75);
  border-color: rgba(15,23,42,.10);
}
.btn.secondary:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
}
.btn:active{ transform: translateY(0); }
.btn:focus{ outline:none; box-shadow: var(--ring); }

/* Cart count */
.count{
  display:inline-grid;
  place-items:center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  font-size: 12px;
  font-weight: 900;
}

/* -----------------------------
   Hero
------------------------------ */
.hero{ padding: 22px 0 10px; }

.heroGrid{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.heroCard{
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  overflow: hidden;
  border-color: rgba(37,99,235,.18);
}

.heroCard:before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(650px 280px at 10% 5%, rgba(37,99,235,.18), transparent 65%),
    radial-gradient(650px 280px at 90% 15%, rgba(14,165,233,.14), transparent 65%);
  pointer-events:none;
  opacity: .9;
}

.heroCard::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: var(--r-lg);
  pointer-events:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 0 0 1px rgba(255,255,255,.22);
  opacity: .9;
}

.heroCard > *{ position: relative; }

h1{
  margin: 0 0 10px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.9px;
}

.sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.16);
  background: rgba(37,99,235,.06);
  font-weight: 850;
  color:#0f172a;
  font-size: 12px;
  white-space: nowrap;
}
.badge svg{ opacity:.85; }

.heroActions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.heroAside{
  display:grid;
  gap: 12px;
}

.miniCard{
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  padding: 18px;
}

.miniTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight: 900;
  letter-spacing:-0.2px;
  margin: 0 0 8px;
}

.miniText{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.fine{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* -----------------------------
   Sections
------------------------------ */
section{ padding: 26px 0; }

.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.hint{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* -----------------------------
   Cards grid
------------------------------ */
.grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 12px;
}

.card{
  grid-column: span 4;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.22);
  box-shadow: var(--shadow);
}
.card h3{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14,165,233,.18);
  background: rgba(14,165,233,.08);
  font-size: 12px;
  font-weight: 900;
  color:#0f172a;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.productImg{
  width:100%;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  margin: 10px 0 10px;
  background: rgba(255,255,255,.7);
}

.mini{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.bullets{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 8px;
}

.bullets li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color:#0f172a;
  font-size: 14px;
  line-height: 1.4;
}

/* Check mark icon */
.check{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
  margin-top: 1px;
  font-weight: 900;
  color: var(--brand);
}

.priceRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.08);
}

.price{
  font-weight: 900;
  font-size: 20px;
  color: var(--brand);
  letter-spacing: -0.3px;
  margin: 0;
}

.bundleCard{
  grid-column: span 12;
  padding: 18px;
  background:
    radial-gradient(800px 260px at 15% 10%, rgba(37,99,235,.20), transparent 60%),
    radial-gradient(800px 260px at 85% 20%, rgba(14,165,233,.16), transparent 60%),
    rgba(255,255,255,.80);
}

/* -----------------------------
   Bundle layout (mobile-safe)
------------------------------ */
.bundleHead h3{ margin: 0 0 6px; }

.bundleGrid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.bundlePane{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.70);
  padding: 14px;
  box-shadow: none;
  min-width: 0;
}

.bundleBuy{
  display:grid;
  gap: 10px;
  align-content:start;
}

.bundleActions{
  display:grid;
  gap: 10px;
}

/* CRITICAL: prevents the “button becomes a bubble” bug */
.bundleActions .btn{ width: 100%; }
.bundleActions a.btn{ width: 100%; }

.bundlePrice{ margin: 0; }
.bundleSave{ margin: 0; }
.bundleNote{ margin: 0; }

/* -----------------------------
   How it works / trust rows
------------------------------ */
.triple{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 12px;
}

.infoCard{
  grid-column: span 4;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  padding: 16px;
  min-width: 0;
}
.infoCard h3{
  margin:0 0 8px;
  font-size: 16px;
  letter-spacing:-0.2px;
}
.infoCard p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  line-height:1.55;
}

.steps{
  display:grid;
  gap: 10px;
  margin: 10px 0 0;
}

.step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.70);
  min-width: 0;
}
.stepIcon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.step strong{ display:block; margin-bottom: 2px; }

/* -----------------------------
   FAQ
------------------------------ */
.faq{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}

details{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  padding: 12px 14px;
}

summary{
  cursor:pointer;
  list-style:none;
  font-weight: 900;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
summary::-webkit-details-marker{ display:none; }
summary:after{
  content:"+";
  font-size: 18px;
  opacity: .7;
  font-weight: 900;
}
details[open] summary:after{ content:"–"; }
details p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* -----------------------------
   Form
------------------------------ */
form{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  padding: 16px;
  margin-top: 12px;
}

label{
  display:block;
  font-weight: 900;
  margin: 12px 0 6px;
  font-size: 13px;
  color:#0f172a;
}

input, textarea, select{
  width:100%;
  padding: 12px 12px;
  min-height: var(--tap);
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.90);
  font-family: var(--font);
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .08s ease;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: var(--ring);
}
input:active, textarea:active{ transform: scale(0.998); }
textarea{ min-height: 120px; resize: vertical; }

.row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  min-width: 0;
}

/* -----------------------------
   Footer
------------------------------ */
footer{
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  border-top: 1px solid rgba(15,23,42,.08);
  padding-top: 16px;
}

.tinyLinks{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
  align-items:center;
}

.tinyLinks a{
  text-decoration:none;
  padding: 6px 10px;
  min-height: 36px;
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  font-weight: 800;
}
.tinyLinks a:hover{
  border-color: rgba(37,99,235,.20);
  background: rgba(37,99,235,.06);
}

/* --------------------
   Cart drawer + toast
-------------------- */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 1200; /* above sticky header */
  pointer-events: none;
}
.drawer[data-open="true"]{ pointer-events: auto; }

.drawerOverlay{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.45);
  opacity: 0;
  transition: opacity .18s ease;
}
.drawer[data-open="true"] .drawerOverlay{ opacity: 1; }

.drawerPanel{
  position:absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(460px, calc(100% - 24px));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(2,6,23,.20);
  transform: translateX(18px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  display:flex;
  flex-direction: column;
  overflow:hidden;
}
.drawer[data-open="true"] .drawerPanel{
  transform: translateX(0);
  opacity: 1;
}

.drawerHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.drawerTitle{ font-weight: 900; letter-spacing: -0.2px; }

.drawerClose{
  min-height: 40px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor:pointer;
}
.drawerClose:hover{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.06);
}

.drawerBody{
  padding: 12px 14px;
  overflow:auto;
  flex: 1 1 auto;
}

.cartEmpty{
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(15,23,42,.18);
  color: var(--muted);
  background: rgba(255,255,255,.75);
}

.cartItem{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  margin-bottom: 10px;
}
.cartItemName{ font-weight: 900; letter-spacing: -0.2px; }
.cartItemMeta{ margin-top: 2px; color: var(--muted); font-size: 13px; }
.cartItemPrice{ font-weight: 900; color: var(--brand); white-space: nowrap; }

.qtyRow{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-top: 10px;
}
.qtyBtn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  font-weight: 900;
  cursor:pointer;
}
.qtyBtn:hover{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.06);
}
.qtyVal{ min-width: 22px; text-align:center; font-weight: 900; }

.removeBtn{
  margin-left: 6px;
  min-height: 36px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  cursor:pointer;
}
.removeBtn:hover{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.06);
}

.drawerSummary{
  padding: 12px 14px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.summaryRow{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  font-weight: 900;
}

.drawerActions{
  padding: 12px 14px 14px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.drawerActions .btn{
  width: 100%;
  padding: 12px 10px;
  font-size: 13px;
}

/* Drawer fine padding helper (replaces inline) */
.drawerFinePad{ padding: 0 14px 14px; }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15,23,42,.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(2,6,23,.22);
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease;
  pointer-events:none;
  z-index: 1300;
}
.toast[data-show="true"]{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Accessibility: Skip link
   ============================================================ */
.skip-link{
  position:absolute;
  left:-9999px;
  top:8px;
  z-index:9999;
  background: var(--brand);
  color:#fff;
  padding:10px 12px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
}
.skip-link:focus{ left:12px; }

/* ============================================================
   Utilities (minimal, predictable)
   ============================================================ */
.gap-10{ gap: 10px !important; }
.no-underline{ text-decoration:none !important; border-bottom: none !important; }
.m0{ margin: 0 !important; }
.mb-0{ margin-bottom: 0 !important; }
.mb-2{ margin-bottom: var(--s-2) !important; }
.fw-900{ font-weight: 900 !important; }

.mt-2{ margin-top: var(--s-2) !important; }
.mt-3{ margin-top: var(--s-3) !important; }
.mt-35{ margin-top: var(--s-35) !important; }
.mt-4{ margin-top: var(--s-4) !important; }
.mb-4{ margin-bottom: var(--s-4) !important; }
.pad-6{ padding: 18px !important; }

.noticeCard{
  margin-bottom: var(--s-4);
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: var(--r-lg);
}

/* ============================================================
   WORLD-CLASS MOBILE POLISH
   ============================================================ */

/* Tablet + down */
@media (max-width: 980px){
  header{ padding-top: 10px; }

  .heroGrid{ grid-template-columns: 1fr; }
  .card{ grid-column: span 12; }
  .infoCard{ grid-column: span 12; }

  .links{ display:none; }
  .footGrid{ grid-template-columns: 1fr; }
  .tinyLinks{ justify-content:flex-start; }
  .drawerActions{ grid-template-columns: 1fr; }

  /* Nav feels less “pill”, more premium */
  .nav{ border-radius: 18px; }

  /* Bundle stacks */
  .bundleGrid{ grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 560px){
  /* Make bar compact + prevent multi-line chaos */
  .bar{ padding: 8px 0; }
  .bar .inner{ font-size: 12px; gap: 10px; }

  /* Keep CTA clean */
  .bar .inner > .row span:last-child{ display:none; }

  .bar .pill{
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Make nav tighter */
  .nav{ margin-top: 10px; }
  .nav .inner{ padding: 8px 10px; }

  .logo{
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .btn{
    padding: 10px 12px;
    font-size: 13px;
  }

  .count{
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
  }

  /* Hero spacing */
  .hero{ padding-top: 14px; }
  .heroCard{ padding: 18px; }
  h1{ letter-spacing: -0.7px; }

  /* Sections tighter */
  section{ padding: 22px 0; }
}

/* Tiny phones: FIX nav CTA overflow / "Best Deal" giant pill */
@media (max-width: 520px){
  .nav .inner{
    flex-wrap: wrap;
    gap: 8px;
  }

  .cta{
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .cta .btn{
    flex: 1 1 0;
    width: auto;
    padding: 10px 10px;
    font-size: 13px;
    min-height: 42px;
  }

  /* Slight emphasis for cart so it feels primary but still fits */
  .cta #cartBtn{ flex: 1.15 1 0; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}


/* ============================================================
   Cub Club — INSANE COLOR UPGRADE (override-only)
   Keeps class names and layout intact
   Paste at END of styles.css
   ============================================================ */

/* ---------- Color tokens upgrade ---------- */
:root{
  /* Base */
  --bg: #f6f9ff;
  --text: #071225;
  --muted: #5a6880;

  /* Brand spectrum (trust + premium + playful) */
  --brand: #1d4ed8;   /* deep royal blue */
  --brand2:#7c3aed;   /* premium violet */
  --accent:#06b6d4;   /* vivid cyan */

  /* Borders / glass */
  --border: rgba(37, 99, 235, .16);
  --border2: rgba(124, 58, 237, .10);

  --card: rgba(255,255,255,.78);

  /* Keep sizes same, tint only */
  --shadow: 0 18px 50px rgba(30, 64, 175, .13);
  --shadow2: 0 10px 30px rgba(76, 29, 149, .10);

  --ring: 0 0 0 4px rgba(124,58,237,.18);
}

/* ---------- Global mood / background ---------- */
body{
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(29,78,216,.17), transparent 58%),
    radial-gradient(900px 500px at 92% -10%, rgba(124,58,237,.14), transparent 58%),
    radial-gradient(700px 420px at 18% 28%, rgba(6,182,212,.09), transparent 60%),
    radial-gradient(1000px 600px at 45% 120%, rgba(59,130,246,.10), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7ff 48%, #f7fbff 100%);
  color: var(--text);
}

::selection{
  background: rgba(124,58,237,.20);
  color: #061021;
}

/* ---------- Announcement bar ---------- */
.bar{
  background:
    linear-gradient(90deg, #0f3fb8 0%, #1d4ed8 28%, #2563eb 54%, #7c3aed 100%);
  border-bottom-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 30px rgba(37,99,235,.16);
}

.bar a{
  border-bottom-color: rgba(255,255,255,.8);
}

.bar .pill{
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

/* ---------- Nav / header glass ---------- */
.nav{
  border-color: rgba(37,99,235,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.78));
  box-shadow:
    0 10px 30px rgba(37,99,235,.08),
    0 6px 18px rgba(124,58,237,.05);
}

.logo{
  background:
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 34%, #06b6d4 68%, #7c3aed 100%);
  box-shadow: 0 12px 25px rgba(37,99,235,.24);
}

.links a{
  color: #0b1324;
}
.links a:hover{
  border-color: rgba(124,58,237,.24);
  background: linear-gradient(180deg, rgba(124,58,237,.06), rgba(37,99,235,.04));
}

/* ---------- Buttons ---------- */
.btn.primary{
  color:#fff;
  background:
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 38%, #06b6d4 74%, #7c3aed 100%);
  box-shadow: 0 14px 35px rgba(37,99,235,.24);
}

.btn.primary::after{
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.08) 42%, transparent 65%);
}

.btn.primary:hover{
  box-shadow: 0 18px 45px rgba(37,99,235,.28);
  filter: saturate(1.08) brightness(1.01);
}

.btn.secondary{
  color:#0c1426;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,255,.76));
  border-color: rgba(37,99,235,.16);
}

.btn.secondary:hover{
  border-color: rgba(124,58,237,.24);
  background:
    linear-gradient(180deg, rgba(124,58,237,.05), rgba(37,99,235,.04));
  box-shadow: 0 12px 28px rgba(37,99,235,.10);
}

.btn:focus{
  box-shadow: var(--ring);
}

/* Cart count */
.count{
  background: linear-gradient(180deg, rgba(37,99,235,.14), rgba(124,58,237,.10));
  border-color: rgba(124,58,237,.18);
  color: #0b1530;
}

/* ---------- Hero ---------- */
.heroCard{
  border-color: rgba(37,99,235,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.76));
  box-shadow:
    0 18px 50px rgba(37,99,235,.10),
    0 8px 20px rgba(124,58,237,.06);
}

.heroCard:before{
  background:
    radial-gradient(650px 280px at 8% 2%, rgba(37,99,235,.22), transparent 65%),
    radial-gradient(650px 280px at 96% 10%, rgba(124,58,237,.18), transparent 65%),
    radial-gradient(520px 240px at 55% 0%, rgba(6,182,212,.12), transparent 68%);
}

.heroCard::after{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 0 0 1px rgba(255,255,255,.28);
}

.sub,
.miniText,
.fine,
.hint,
.mini{
  color: var(--muted);
}

.badge{
  border-color: rgba(124,58,237,.16);
  background:
    linear-gradient(180deg, rgba(37,99,235,.07), rgba(124,58,237,.06));
  color:#0c1426;
}
.badge svg{ opacity:.9; }

.miniCard{
  border-color: rgba(37,99,235,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.76));
  box-shadow:
    0 10px 30px rgba(37,99,235,.07),
    0 6px 18px rgba(124,58,237,.05);
}

/* ---------- Product cards / grids ---------- */
.card{
  border-color: rgba(37,99,235,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.78));
  box-shadow:
    0 10px 30px rgba(37,99,235,.07),
    0 6px 18px rgba(124,58,237,.04);
}

.card:hover{
  border-color: rgba(124,58,237,.24);
  box-shadow:
    0 18px 50px rgba(37,99,235,.12),
    0 10px 26px rgba(124,58,237,.08);
}

.tag{
  border-color: rgba(6,182,212,.22);
  background:
    linear-gradient(180deg, rgba(6,182,212,.10), rgba(37,99,235,.06));
  color:#0b1324;
}

.productImg{
  border-color: rgba(37,99,235,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,251,255,.75));
}

.check{
  background: linear-gradient(180deg, rgba(37,99,235,.12), rgba(124,58,237,.08));
  border-color: rgba(37,99,235,.20);
  color: #1d4ed8;
}

.priceRow{
  border-top-color: rgba(37,99,235,.10);
}

.price{
  color: #1d4ed8;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.bundleCard{
  background:
    radial-gradient(800px 260px at 12% 8%, rgba(37,99,235,.22), transparent 60%),
    radial-gradient(800px 260px at 88% 18%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(620px 220px at 45% 0%, rgba(6,182,212,.10), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.80));
}

.bundlePane{
  border-color: rgba(37,99,235,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.72));
}

/* ---------- Info / trust / steps ---------- */
.infoCard{
  border-color: rgba(37,99,235,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.78));
  box-shadow:
    0 10px 30px rgba(37,99,235,.07),
    0 6px 18px rgba(124,58,237,.05);
}

.infoCard p{
  color: var(--muted);
}

.step{
  border-color: rgba(37,99,235,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.72));
}

.stepIcon{
  background:
    linear-gradient(180deg, rgba(37,99,235,.12), rgba(124,58,237,.10));
  border-color: rgba(124,58,237,.18);
  color: #1d4ed8;
}

/* ---------- FAQ ---------- */
details{
  border-color: rgba(37,99,235,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.78));
  box-shadow:
    0 10px 30px rgba(37,99,235,.06),
    0 6px 18px rgba(124,58,237,.04);
}

summary:after{
  color: #1d4ed8;
}

details p{
  color: var(--muted);
}

/* ---------- Form ---------- */
form{
  border-color: rgba(37,99,235,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.78));
  box-shadow:
    0 10px 30px rgba(37,99,235,.06),
    0 6px 18px rgba(124,58,237,.04);
}

label{
  color:#0b1324;
}

input, textarea, select{
  border-color: rgba(37,99,235,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,251,255,.90));
  color: #0b1324;
}

input:focus, textarea:focus, select:focus{
  border-color: rgba(124,58,237,.35);
  box-shadow: 0 0 0 4px rgba(124,58,237,.14);
}

/* ---------- Footer ---------- */
footer{
  color: var(--muted);
}

.footGrid{
  border-top-color: rgba(37,99,235,.10);
}

.tinyLinks a{
  border-color: rgba(37,99,235,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.72));
  color: #0c1426;
}

.tinyLinks a:hover{
  border-color: rgba(124,58,237,.22);
  background:
    linear-gradient(180deg, rgba(124,58,237,.06), rgba(37,99,235,.04));
}

/* ---------- Cart drawer ---------- */
.drawerOverlay{
  background:
    radial-gradient(700px 400px at 80% 10%, rgba(124,58,237,.18), transparent 55%),
    rgba(2,6,23,.46);
}

.drawerPanel{
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.90));
  border-color: rgba(37,99,235,.14);
  box-shadow:
    0 22px 60px rgba(15,23,42,.20),
    0 10px 28px rgba(124,58,237,.10);
}

.drawerHead{
  border-bottom-color: rgba(37,99,235,.10);
}

.drawerClose{
  border-color: rgba(37,99,235,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,250,255,.78));
  color:#0c1426;
}

.drawerClose:hover{
  border-color: rgba(124,58,237,.22);
  background:
    linear-gradient(180deg, rgba(124,58,237,.06), rgba(37,99,235,.04));
}

.cartEmpty{
  border-color: rgba(124,58,237,.22);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(250,247,255,.80));
}

.cartItem{
  border-color: rgba(37,99,235,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.78));
}

.cartItemMeta{
  color: var(--muted);
}

.cartItemPrice{
  color: #1d4ed8;
}

.qtyBtn,
.removeBtn{
  border-color: rgba(37,99,235,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(249,251,255,.88));
  color:#0c1426;
}

.qtyBtn:hover,
.removeBtn:hover{
  border-color: rgba(124,58,237,.22);
  background:
    linear-gradient(180deg, rgba(124,58,237,.06), rgba(37,99,235,.04));
}

.drawerSummary{
  border-top-color: rgba(37,99,235,.10);
}

/* ---------- Toast ---------- */
.toast{
  background:
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.94));
  color: #fff;
  border-color: rgba(124,58,237,.22);
  box-shadow:
    0 14px 40px rgba(15,23,42,.24),
    0 8px 20px rgba(124,58,237,.12);
}

/* ---------- Accessibility / utility ---------- */
.skip-link{
  background:
    linear-gradient(135deg, #1d4ed8, #7c3aed);
  color:#fff;
}

.noticeCard{
  background:
    linear-gradient(180deg, rgba(239,246,255,.92), rgba(245,243,255,.88));
  border-color: rgba(124,58,237,.16);
  box-shadow: 0 8px 20px rgba(37,99,235,.05);
}