/* ===========================================================
   SantaiMoto Global Styles — CLEAN, SINGLE SOURCE
   - Floating cart pill = FIXED (scroll-follow via JS)
   - Bike Details inline layout (title + fields on one line)
   - Yellow split buttons (no black lines)
   =========================================================== */
html {
  font-size: 12px;   /* default size for the whole website */
}

body {
  font-size: 1rem;   /* equals 14px */
}
/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Inter, Arial, sans-serif;
  color: #0f172a; background: #ffffff;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }

/* ---------- Topbar ---------- */
.topbar { background: #0f172a; color: #e2e8f0; font-size: 14px; }
.topbar .timer {
  background: #111827; padding: 2px 6px; border-radius: 4px;
  font: 12px/1.6 ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- Header / Nav ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(6px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid #e5e7eb;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .tag { display: none; color: #64748b; font-size: 11px; }
.nav a { color: #0f172a; text-decoration: none; margin-left: 24px; font-weight: 600; }
.nav a:hover { opacity: .7; }

/* Style for the "Be a Partner" button */
.partner-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007BFF; /* Blue */
  color: white;
  border: 2px solid #007BFF;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover state */
.partner-btn:hover {
  background-color: white;
  color: #007BFF;
}

/* ---------- Bike Details (inline layout) ---------- */
.bikebar{
  background:#0f4278; color:#fff; border-radius:12px;
  padding:14px 16px; margin:12px 0 0;
  display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:center;
}
.bikebar-row{ display: contents; }
.bikebar-title{ font-size:28px; font-weight:800; letter-spacing:.2px; }
.bikebar-clock{ opacity:.9; font-weight:600; }

.bikebar-controls{
  display:flex; gap:12px; align-items:center; justify-content:flex-end;
  margin:0; flex-wrap:nowrap;
}
.bikebar-field{ display:flex; flex-direction:column; gap:6px; min-width:140px; }
.bikebar-field label{ font-size:12px; opacity:.9; }
.bikebar-field select,
.bikebar-field input{
  height:38px; border-radius:8px; border:none; padding:0 10px; color:#0f172a; background:#fff;
}
.bikebar-field input[readonly]{ background:#e2e8f0; }
.bikebar-plate{ min-width:240px; }

/* ---------- Yellow split controls ---------- */
.split-controls{
  display:grid; grid-template-columns:1fr 1fr; gap:18px;
  margin:12px 0 18px;
}
.split{ position:relative; }
.split-btn{
  width:100%; height:54px; border:none; border-radius:6px;
  background:#f9b516; color:#083661; font-weight:800; font-size:18px; letter-spacing:.2px;
  display:flex; align-items:center; justify-content:center; gap:10px; cursor:pointer;
  box-shadow:none;
}
.split-menu{
  position:absolute; top:60px; left:0; right:0; z-index:30;
  background:#fff; border:1px solid #e5e7eb; border-radius:8px;
  box-shadow:0 10px 24px rgba(15,23,42,.12);
  display:none; overflow:hidden;
}
.split-menu a{ display:block; padding:10px 12px; color:#0f172a; text-decoration:none; font-weight:700; }
.split-menu a:hover{ background:#f8fafc; }

/* ---------- Product cards ---------- */
.grid-3{ display:grid; gap:24px; grid-template-columns:1fr; }
.card{
  border:1px solid #e5e7eb; border-radius:16px; padding:32px; text-align:center;
  box-shadow:0 1px 2px rgba(0,0,0,0.04);
}
.iconwrap{ height:112px; width:112px; border-radius:16px; margin:0 auto 16px; display:grid; place-items:center; background:rgba(15,66,120,0.06); }
.iconwrap img{ height:64px; width:64px; object-fit:contain; }

.btn-white{
  height:34px; border:1px solid #cbd5e1; border-radius:8px; background:#fff;
  color:#0f172a; font-weight:800; padding:0 12px; cursor:pointer;
}
.btn-white:hover{ background:#f1f5f9; }

/* ---------- Testimonials / News / Subscribe / Footer ---------- */
.grid-3.t{ display:grid; gap:24px; }
.t .tcard{ border:1px solid #e5e7eb; border-radius:16px; padding:20px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,0.04); }
.t .row{ display:flex; gap:12px; align-items:center; margin-bottom:8px; }
.t .row img{ height:40px; width:40px; border-radius:999px; object-fit:cover; }
.t .title{ font-size:14px; font-weight:600; }
.t .meta{ font-size:11px; color:#64748b; }
.stars{ display:flex; gap:4px; color:#fbbf24; }
.t p{ font-size:14px; color:#334155; line-height:1.6; }

.news-separator{ width:100%; height:80px; background:#0f4278; margin-top:40px; margin-bottom:0; }
.news{ background:#fff; padding:48px 0; }
.news-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:32px; }
.news-head h2{ font-size:28px; font-weight:700; }
.news-head .see-all{ font-size:14px; color:#0f172a; font-weight:600; text-decoration:none; }
.news-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.news-card{ background:#fff; border-radius:12px; padding:16px; box-shadow:0 2px 6px rgba(0,0,0,0.08); }
.news-img{ width:100%; height:180px; border-radius:8px; object-fit:cover; }
.news-title{ font-size:16px; font-weight:700; margin:12px 0; }
.news-meta{ display:flex; align-items:center; gap:12px; margin-top:8px; }
.news-author-img{ width:40px; height:40px; border-radius:50%; }
.news-author{ font-size:14px; font-weight:600; margin:0; }
.news-date{ font-size:12px; color:#6b7280; margin:0; }

.sub{ background:#0f4278; color:#fff; }
.sub .box{ background:#0b3560; border-radius:16px; padding:24px; }
.sub h4{ margin:0 0 12px; font-size:20px; }
.sub .form{ display:flex; gap:12px; }
.sub input{ flex:1; height:48px; border-radius:8px; border:none; padding:0 14px; background:#fff; color:#0f172a; }
.sub button{ height:48px; padding:0 18px; border:none; border-radius:8px; background:#ff5a52; color:#fff; font-weight:700; cursor:pointer; }

footer{ background:#0b3560; color:#fff; }
.footgrid{ display:grid; gap:16px; grid-template-columns:1fr; }
.small{ opacity:.9; font-size:14px; }

/* ---------- Floating Cart: pill ---------- */
.cart-tab{
  position: fixed !important;
  right: 16px !important; left: auto !important;
  top: 50vh !important; transform: translateY(-50%) !important;
  bottom: auto !important;
  display: inline-flex !important; align-items:center !important; justify-content:center !important; gap:8px !important;
  padding:10px 14px !important; background:#0f4278 !important; color:#fff !important;
  border-radius:999px !important; box-shadow:0 8px 24px rgba(0,0,0,.18) !important;
  z-index:10000 !important; cursor:pointer !important; user-select:none !important; will-change: top !important;
}
.cart-tab .cart-count{ font:700 16px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important; }
.cart-tab svg{ width:22px !important; height:22px !important; display:block !important; }


/* ---------- Responsive helpers ---------- */
@media (min-width: 640px){
  .nav .tag{ display:block; }
  .grid-3{ grid-template-columns: repeat(3,1fr); }
  .grid-3.t{ grid-template-columns: repeat(3,1fr); }
  .newsgrid{ grid-template-columns: repeat(4,1fr); }
  .footgrid{ grid-template-columns: 1fr auto; }
}
@media(max-width:720px){
  .bikebar{ grid-template-columns: 1fr; }
  .bikebar-title{ font-size:22px; }
  .split-controls{ grid-template-columns:1fr; }
}

/* =================================================================
   CART DRAWER OVERLAY (Right-side, 45% width on desktop)
   ================================================================= */
.drawer-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;               /* disabled until opened */
  z-index: 9999;
}
.drawer-overlay[aria-hidden="false"]{
  pointer-events: auto;
}
.drawer-backdrop{
  position:absolute; inset:0;
  background: rgba(15,23,42,.55);
  opacity: 0;
  transition: opacity .25s ease;
}
.drawer-overlay[aria-hidden="false"] .drawer-backdrop{ opacity: 1; }

.drawer-panel{
  position:absolute; top:0; right:0; height:100vh;
  width: 45vw;                       /* <- 45% of screen */
  max-width: none;                    /* keep exact 45% */
  background:#fff;
  box-shadow: -20px 0 48px rgba(0,0,0,.25);
  transform: translateX(100%);
  transition: transform .28s ease;
  display:flex; flex-direction:column;
  border-top-left-radius: 12px; border-bottom-left-radius: 12px;
}
.drawer-overlay[aria-hidden="false"] .drawer-panel{ transform: translateX(0); }

@media (max-width: 960px){
  .drawer-panel{ width: 60vw; }
}
@media (max-width: 720px){
  .drawer-panel{ width: 100vw; border-radius:0; }
}

.drawer-frame{
  border:0; width:100%; height:100%;
  display:block;
}

/* Scroll lock when drawer open */
html.no-scroll, body.no-scroll{ overflow:hidden; }