/* =========================================================================
   Battery Factory — Clean & Light multi-page theme
   Single accent color (green) is swappable via --accent below.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef1f5;
  --accent: #16a34a;
  --accent-dark: #15803d;
  --accent-soft: #dcfce7;
  --accent-50: #e7faec;
  --warn: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 4px 12px rgba(15,23,42,.06), 0 30px 60px rgba(15,23,42,.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800;
}
.logo:hover { color: var(--ink); }
.logo-img { height: 38px; width: auto; display: block; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .5px;
  font-size: 15px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text small {
  font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.nav ul {
  list-style: none; display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0;
}
.nav a {
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav a:hover { color: var(--ink); background: var(--line-soft); }
.nav a.active { color: var(--ink); background: var(--accent-soft); }
.nav a.btn-primary {
  background: var(--accent); color: #fff; padding: 8px 16px;
}
.nav a.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line-soft); background: #fff; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 16px; }
.mobile-nav li { border-bottom: 1px solid var(--line-soft); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a { display: block; padding: 14px 4px; color: var(--ink); font-weight: 500; }
.mobile-nav a.active { color: var(--accent-dark); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .1s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.15; color: var(--ink); margin: 0;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-2); }
.accent { color: var(--accent-dark); }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding: 64px 0; }
.section-head {
  max-width: 760px; margin-bottom: 56px; text-align: center; margin-inline: auto;
}
.section-head.left { text-align: left; margin-inline: 0; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin: 0 0 16px; }
.section-sub {
  color: var(--ink-2); font-size: 17px; margin: 0;
}

/* =========================================================================
   PAGE HEADER (for non-home pages)
   ========================================================================= */
.page-header {
  padding: 32px 0 20px;
  background:
    radial-gradient(800px 400px at 80% 0%, var(--accent-50) 0%, transparent 60%);
  border-bottom: 1px solid var(--line-soft);
}
/* When a content section comes right after a page-header, kill the big top gap */
.page-header + .section { padding-top: 32px; }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 {
  font-size: clamp(32px, 4vw, 44px); margin: 0 0 12px;
}
.page-header p {
  font-size: 17px; color: var(--ink-2); margin: 0; max-width: 640px;
}

/* =========================================================================
   HERO (home page)
   ========================================================================= */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-50) 0%, transparent 60%),
    radial-gradient(800px 400px at -10% 30%, #eff6ff 0%, transparent 60%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
}
.hero-text .eyebrow { margin-bottom: 24px; }
.hero-text .lead {
  font-size: 19px; color: var(--ink-2); margin: 20px 0 32px; max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-marks {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, auto); gap: 28px;
  border-top: 1px solid var(--line); padding-top: 24px; max-width: 540px;
}
.hero-marks li { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.hero-marks strong {
  display: block; font-size: 22px; color: var(--ink); font-weight: 800;
}

.hero-card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.card-glow {
  position: absolute; inset: -50% -20% auto auto; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.card-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-bottom: 24px;
}
.card-grid > div { display: flex; flex-direction: column; gap: 4px; }
.card-grid span { color: var(--ink-3); font-size: 13px; }
.card-grid strong { font-size: 22px; font-weight: 800; color: var(--ink); }
.card-bar {
  position: relative; z-index: 1;
  height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden;
  margin-bottom: 12px;
}
.card-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #4ade80 100%);
  border-radius: 999px;
}
.card-foot {
  position: relative; z-index: 1;
  font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px;
}
.card-foot::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}

/* =========================================================================
   ABOUT — fixed horizontal values row
   ========================================================================= */
.about-prose {
  max-width: 760px; margin: 0 auto 64px;
}
.about-prose p {
  color: var(--ink-2); margin: 0 0 16px; font-size: 17px; line-height: 1.65;
}
.about-prose strong { color: var(--ink); }
.values-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value {
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: left;
}
.value-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.value-icon svg { width: 22px; height: 22px; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--ink-2); margin: 0; font-size: 14.5px; line-height: 1.55; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.service:hover {
  transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow);
}
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-50); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--ink-2); margin: 0; font-size: 14.5px; line-height: 1.55; }

/* =========================================================================
   TOOLS GRID (home page — solar/ebike/shop CTAs)
   ========================================================================= */
.tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  color: var(--ink);
}
.tool-card:hover {
  transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow);
  color: var(--ink);
}
.tool-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-50); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.tool-icon svg { width: 26px; height: 26px; }
.tool-card h3 { font-size: 21px; }
.tool-card p { color: var(--ink-2); margin: 0; font-size: 15px; line-height: 1.55; flex: 1; }
.tool-card-arrow {
  font-size: 14px; font-weight: 600; color: var(--accent-dark);
  margin-top: 4px;
}

/* =========================================================================
   CTA BANNER
   ========================================================================= */
.cta-banner {
  background: var(--ink); color: #fff;
  padding: 56px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.7); font-size: 17px; margin: 0; max-width: 480px; }
.cta-banner .btn-primary { background: var(--accent); }
.cta-banner .btn-primary:hover { background: #22c55e; }

/* =========================================================================
   SOLAR CALCULATOR
   ========================================================================= */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.calc-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  padding: 28px; border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.calc-mode {
  border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.calc-mode legend {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-3); padding: 0; margin-bottom: 10px; flex-basis: 100%;
}
.calc-mode label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all .15s;
}
.calc-mode label:has(input:checked) {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-dark); font-weight: 600;
}
.calc-mode input { appearance: none; -webkit-appearance: none; width: 0; height: 0; margin: 0; }

.calc-items {
  padding: 8px 16px 24px;
  max-height: 520px; overflow-y: auto;
}
.calc-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-3); padding: 20px 8px 8px; border-top: 1px solid var(--line-soft);
}
.calc-cat:first-child { border-top: 0; }
.calc-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 12px 8px; gap: 16px; border-bottom: 1px solid var(--line-soft);
}
.calc-item:last-child { border-bottom: 0; }
.calc-item-name { display: flex; flex-direction: column; gap: 2px; }
.calc-item-name strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.calc-item-name span { font-size: 12.5px; color: var(--ink-3); }
.calc-counter {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.calc-counter button {
  width: 36px; height: 36px; border: 0; background: #fff; color: var(--ink-2);
  font-size: 18px; font-weight: 600; cursor: pointer;
  transition: background .12s, color .12s;
}
.calc-counter button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.calc-counter button:disabled { opacity: .35; cursor: not-allowed; }
.calc-counter .qty {
  min-width: 36px; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink);
}
.calc-item.has-qty { background: var(--accent-50); border-radius: 8px; padding: 14px 12px; border-color: transparent; }
.calc-item.has-qty .calc-item-name strong { color: var(--accent-dark); }

.calc-summary {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px; background: var(--ink); color: #fff;
}
.metric {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; background: rgba(255,255,255,.06); border-radius: var(--radius-sm);
}
.metric-label {
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(255,255,255,.6); font-weight: 600;
}
.metric-value {
  font-size: 28px; font-weight: 800; color: #fff;
}
.metric-value small {
  font-size: 14px; color: rgba(255,255,255,.7); font-weight: 500; margin-left: 4px;
}
.metric-wide { grid-column: 1 / -1; }
.metric-foot {
  font-size: 12px; color: rgba(255,255,255,.55); margin-top: 6px;
}
.calc-cta {
  grid-column: 1 / -1;
  background: var(--accent); color: #fff; padding: 16px;
  font-size: 16px; font-weight: 700;
}
.calc-cta:hover { background: var(--accent-dark); color: #fff; }

/* =========================================================================
   E-BIKE CALCULATOR
   ========================================================================= */
.ebike-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start;
}
.ebike-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.ebike-form h3 { margin-bottom: 4px; }
.ebike-form .form-desc {
  font-size: 14px; color: var(--ink-3); margin: 0 0 16px;
}
.ebike-field {
  display: flex; flex-direction: column; gap: 8px;
}
.ebike-field label {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: baseline;
}
.ebike-field label .field-value {
  font-size: 15px; font-weight: 700; color: var(--accent-dark);
}
.ebike-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; background: var(--line); border-radius: 999px;
  outline: none; padding: 0; margin: 0;
}
.ebike-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15,23,42,.15);
  transition: transform .12s;
}
.ebike-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.ebike-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid #fff;
}
.ebike-field input[type="number"] {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px;
}
.ebike-field-foot {
  font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between;
}
.install-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--accent-50); border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm); cursor: pointer;
}
.install-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.install-toggle-text { flex: 1; }
.install-toggle-text strong { display: block; color: var(--ink); font-size: 14.5px; }
.install-toggle-text span { font-size: 12.5px; color: var(--ink-3); }

.ebike-result {
  background: #fff; border: 2px solid var(--accent-soft); border-radius: var(--radius);
  overflow: hidden;
}
.ebike-result-top {
  padding: 28px 32px; background: var(--accent-50); border-bottom: 1px solid var(--accent-soft);
}
.ebike-result-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.ebike-result-name { font-size: 28px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.ebike-result-tag { font-size: 14px; color: var(--ink-2); margin: 0; }

.ebike-result-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 28px 32px; gap: 20px; border-bottom: 1px solid var(--line-soft);
}
.ebike-spec { display: flex; flex-direction: column; gap: 4px; }
.ebike-spec-label {
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.ebike-spec-value {
  font-size: 22px; font-weight: 800; color: var(--ink);
}
.ebike-spec-value small {
  font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 4px;
}

.ebike-result-ranges {
  padding: 24px 32px; border-bottom: 1px solid var(--line-soft);
}
.ebike-ranges-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}
.ebike-range-row {
  display: grid; grid-template-columns: 80px 1fr 70px; gap: 12px; align-items: center;
  margin-bottom: 10px;
}
.ebike-range-row:last-child { margin-bottom: 0; }
.ebike-range-mode { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ebike-range-bar {
  height: 10px; background: var(--line-soft); border-radius: 999px; overflow: hidden;
}
.ebike-range-bar span {
  display: block; height: 100%; background: var(--accent); border-radius: 999px;
  transition: width .4s;
}
.ebike-range-bar.eco span { background: #4ade80; }
.ebike-range-bar.normal span { background: var(--accent); }
.ebike-range-bar.sport span { background: var(--accent-dark); }
.ebike-range-km { font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; }

.ebike-result-included {
  padding: 24px 32px; border-bottom: 1px solid var(--line-soft);
}
.ebike-included-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 12px;
}
.ebike-included-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.ebike-included-list li {
  font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative;
}
.ebike-included-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%2315803d' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ebike-result-price {
  padding: 24px 32px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.ebike-price-block .price-label {
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(255,255,255,.6); font-weight: 600;
}
.ebike-price-block .price-value {
  font-size: 32px; font-weight: 800; color: #fff; display: block; margin-top: 4px;
}
.ebike-price-block .price-value small {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.65); margin-left: 6px;
}
.ebike-price-block .price-strike {
  display: block; margin-top: 4px; font-size: 17px; font-weight: 600;
  color: rgba(255,255,255,.5); text-decoration: line-through;
}
.ebike-price-block .price-note {
  font-size: 12px; color: rgba(255,255,255,.55); margin-top: 6px; display: block;
}
.ebike-result-price .btn-primary { padding: 14px 28px; }

.ebike-no-match {
  padding: 48px; text-align: center; color: var(--ink-2);
}

/* =========================================================================
   SHOP — sidebar + categories grid + product grid
   ========================================================================= */
.shop-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start;
}
.shop-sidebar {
  position: sticky; top: 88px; padding: 8px 0;
}
.shop-sidebar-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 12px; padding: 0 16px;
}
.shop-sidebar-list { list-style: none; padding: 0; margin: 0; }
.shop-sidebar-list > li { margin: 0; }
.shop-sidebar-list button.shop-sidebar-cat {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 10px 14px; background: transparent; border: 0;
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); text-align: left; cursor: pointer;
  border-radius: 8px; transition: background .12s, color .12s;
}
.shop-sidebar-list button.shop-sidebar-cat:hover { background: var(--line-soft); color: var(--ink); }
.shop-sidebar-list button.shop-sidebar-cat.active {
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 600;
}
.shop-sidebar-list .ssub-cat-name { flex: 1; }
.shop-sidebar-list .ssub-caret {
  display: inline-block; width: 17px; text-align: center;
  font-size: 17px; color: var(--ink-3);
  transition: transform .15s;
}
.shop-sidebar-list .ssub-caret-blank { visibility: hidden; }
.shop-sidebar-list li.expanded .ssub-caret { transform: rotate(90deg); color: var(--accent-dark); }
.shop-sidebar-list .count {
  font-size: 11.5px; color: var(--ink-3); font-weight: 500;
  background: var(--line-soft); padding: 2px 8px; border-radius: 999px;
}
.shop-sidebar-list button.shop-sidebar-cat.active .count {
  background: rgba(22,163,74,.15); color: var(--accent-dark);
}

/* Sub-list: products under the active category */
.shop-sidebar-sublist {
  list-style: none; padding: 0; margin: 4px 0 12px;
  border-left: 2px solid var(--accent-soft);
  margin-left: 18px;
  padding-left: 6px;
  max-height: 360px; overflow-y: auto;
  scrollbar-width: thin;
}
.shop-sidebar-sublist::-webkit-scrollbar { width: 6px; }
.shop-sidebar-sublist::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shop-sidebar-sublist li { margin: 0; }
.shop-sidebar-sublist a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 5px 10px; border-radius: 6px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.35;
  transition: background .12s, color .12s;
}
.shop-sidebar-sublist a:hover {
  background: var(--accent-50); color: var(--accent-dark);
}
.shop-sidebar-sublist .ssub-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.shop-sidebar-sublist .ssub-price {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
}
.shop-sidebar-sublist a:hover .ssub-price { color: var(--accent-dark); }

/* Search bar above the shop layout */
.shop-search-wrap {
  position: relative; margin-bottom: 24px;
}
.shop-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--ink-3);
  pointer-events: none;
}
.shop-search-wrap input[type="search"] {
  width: 100%; height: 52px;
  padding: 0 52px 0 48px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  outline: 0;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.shop-search-wrap input[type="search"]::-webkit-search-cancel-button { display: none; }
.shop-search-wrap input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow);
}
.shop-search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--line-soft); color: var(--ink-2);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.shop-search-clear:hover { background: var(--ink); color: #fff; }

.shop-cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.shop-cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; color: var(--ink); text-align: left;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  font-family: inherit;
}
.shop-cat-card:hover {
  transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow);
  color: var(--ink);
}
.shop-cat-card.featured {
  background: var(--ink); color: #fff; border-color: var(--ink); grid-column: 1 / -1;
}
.shop-cat-card.featured:hover { color: #fff; }
.shop-cat-card.featured .shop-cat-icon { background: rgba(255,255,255,.1); color: var(--accent); }
.shop-cat-card.featured .shop-cat-desc { color: rgba(255,255,255,.7); }
.shop-cat-card.featured .shop-cat-count { color: rgba(255,255,255,.5); }

.shop-cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-50); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.shop-cat-icon svg { width: 22px; height: 22px; }
.shop-cat-name { font-size: 17px; font-weight: 700; margin: 0; }
.shop-cat-desc { font-size: 13px; color: var(--ink-2); margin: 0; flex: 1; line-height: 1.5; }
.shop-cat-count {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: 6px;
}
.shop-cat-count::after { content: '→'; transition: transform .15s; }
.shop-cat-card:hover .shop-cat-count::after { transform: translateX(4px); }

.shop-active-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft);
}
.shop-active-head h2 { margin: 0; font-size: 24px; }
.shop-back {
  font-size: 14px; font-weight: 600; color: var(--accent-dark);
  background: transparent; border: 0; cursor: pointer; padding: 8px 0; font-family: inherit;
}
.shop-back:hover { color: var(--accent); }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  color: var(--ink); text-decoration: none;
}
.product:hover {
  transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow);
  color: var(--ink);
}
.product:hover .product-cta { color: var(--accent); }
.product-image {
  aspect-ratio: 4/3; background: var(--bg-alt) center/cover;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.product-image-fallback { font-size: 44px; font-weight: 800; color: var(--line); }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--accent-dark);
}
.product-name { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.3; }
.product-desc {
  font-size: 13px; color: var(--ink-2); margin: 0; flex: 1; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--line-soft); margin-top: 6px;
}
.product-price { font-size: 15px; font-weight: 800; color: var(--ink); }
.product-cta { font-size: 12px; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.product-cta:hover { color: var(--accent); }
.shop-empty {
  grid-column: 1 / -1; text-align: center; color: var(--ink-3); padding: 64px 24px;
}

/* =========================================================================
   FEATURED (PLUSHBIKE)
   ========================================================================= */
.featured {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
  border-radius: var(--radius); padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.featured-text .eyebrow { margin-bottom: 16px; }
.featured-text h2 { margin-bottom: 12px; }
.featured-text p { color: var(--ink-2); margin: 0 0 24px; font-size: 17px; max-width: 480px; }
.featured-art {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.art-circle {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
}
.art-bike { position: relative; color: var(--accent-dark); }
.art-bike svg { width: 240px; height: auto; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary {
  font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer;
  position: relative; padding-right: 32px; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--accent-dark);
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--ink-2); margin: 12px 0 0; font-size: 15.5px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start;
}
.contact-info { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-info li {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink-2);
}
.contact-info .ci-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-3); padding-top: 2px;
}
.contact-info a { font-weight: 600; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  box-shadow: var(--shadow);
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.contact-form .req { color: var(--accent); margin-left: 2px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button { grid-column: 1 / -1; margin-top: 8px; }
.form-note {
  grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--ink-3); margin: 0;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink); color: #cbd5e1; padding: 64px 0 24px;
  margin-top: 64px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 56px; align-items: start;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-mark { background: var(--accent); }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: rgba(255,255,255,.5); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 14.5px; margin: 0; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { color: rgba(255,255,255,.85); margin-bottom: 12px; }
.footer-cols p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; margin: 0; }
.footer-cols a { color: #fff; display: block; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: #fff; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 480px; }
  .values-row { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { padding: 48px; grid-template-columns: 1fr; }
  .featured-art { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .calc-top { grid-template-columns: 1fr; gap: 24px; }
  .calc-summary { grid-template-columns: repeat(2, 1fr); }
  .ebike-grid { grid-template-columns: 1fr; }
  .ebike-result-specs { grid-template-columns: 1fr; gap: 16px; }
  .ebike-included-list { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px; }
  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .shop-sidebar {
    position: static; padding: 0;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  }
  .shop-sidebar-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .shop-sidebar-sublist {
    grid-column: 1 / -1; margin-left: 12px;
    max-height: 220px;
  }
  .shop-cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav ul { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .hero-marks { grid-template-columns: 1fr; gap: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .featured { padding: 32px; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .contact-info li { grid-template-columns: 1fr; gap: 4px; }
  .calc-summary { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .shop-sidebar-list { grid-template-columns: 1fr; }
  .ebike-form, .ebike-result-top, .ebike-result-specs,
  .ebike-result-ranges, .ebike-result-included, .ebike-result-price {
    padding-left: 20px; padding-right: 20px;
  }
}

/* =========================================================================
   CART ICON IN HEADER
   ========================================================================= */
.cart-link {
  position: relative;
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--ink-2) !important; background: transparent !important;
  padding: 0 !important;
  transition: background .12s, color .12s;
}
.cart-link svg { width: 20px; height: 20px; }
.cart-link:hover { color: var(--ink) !important; background: var(--line-soft) !important; }
.cart-link.active { color: var(--accent-dark) !important; background: var(--accent-soft) !important; }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 0 5px;
  font-size: 11px; font-weight: 700; line-height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* =========================================================================
   BACK LINK
   ========================================================================= */
.back-link {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
}
.back-link:hover { color: var(--accent-dark); }

/* =========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================= */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.product-detail-image {
  aspect-ratio: 1/1; border-radius: var(--radius);
  background: var(--bg-alt) center/cover;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  position: relative;
}
.product-detail-image .product-image-fallback {
  font-size: 120px; color: var(--line);
}
.product-detail-image .product-badge {
  position: absolute; top: 16px; left: 16px;
}
.product-detail-info .product-cat {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px;
  display: block;
}
.product-detail-info h1 {
  font-size: clamp(28px, 3.5vw, 38px); margin: 0 0 16px;
}
.product-detail-info .product-desc {
  font-size: 17px; color: var(--ink-2); line-height: 1.6; margin: 0 0 24px;
}
.product-detail-info .product-price {
  font-size: 32px; font-weight: 800; color: var(--ink); margin-bottom: 4px;
}
.product-detail-info .product-price-note {
  font-size: 13px; color: var(--ink-3); margin-bottom: 24px;
}
.product-detail-actions {
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.product-detail-actions .qty-picker {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.product-detail-actions .qty-picker button {
  width: 44px; height: 48px; border: 0; background: #fff; cursor: pointer;
  font-size: 18px; font-weight: 600; color: var(--ink-2);
}
.product-detail-actions .qty-picker button:hover {
  background: var(--accent-soft); color: var(--accent-dark);
}
.product-detail-actions .qty-picker input {
  width: 50px; height: 48px; text-align: center; border: 0; outline: none;
  font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink);
  -moz-appearance: textfield;
}
.product-detail-actions .qty-picker input::-webkit-outer-spin-button,
.product-detail-actions .qty-picker input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.product-detail-specs {
  border-top: 1px solid var(--line); padding-top: 24px;
}
.product-detail-specs h3 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.product-detail-specs dl {
  margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px;
}
.product-detail-specs dt {
  font-size: 14px; color: var(--ink-3); font-weight: 500;
}
.product-detail-specs dd {
  font-size: 14px; color: var(--ink); margin: 0; font-weight: 500;
}
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--ink); color: #fff; padding: 14px 20px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 200;
  opacity: 0; transform: translateY(20px); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* =========================================================================
   CART PAGE
   ========================================================================= */
.cart-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start;
}
.cart-items {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto;
  gap: 20px; align-items: center; padding: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-img {
  width: 80px; height: 80px; border-radius: 10px;
  background: var(--bg-alt) center/cover;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img .product-image-fallback { font-size: 32px; }
.cart-item-name { display: flex; flex-direction: column; gap: 2px; }
.cart-item-name strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.cart-item-name span { font-size: 13px; color: var(--ink-3); }
.cart-item-name a { color: var(--ink); }
.cart-item-name a:hover { color: var(--accent-dark); }
.cart-item .qty-picker { transform: scale(0.85); }
.cart-item-line {
  text-align: right;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.cart-item-line strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.cart-item-remove {
  background: transparent; border: 0; color: var(--ink-3);
  font-size: 13px; cursor: pointer; padding: 0;
}
.cart-item-remove:hover { color: #dc2626; }

.cart-summary {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 28px;
  position: sticky; top: 88px;
}
.cart-summary h3 {
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 20px;
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; font-size: 15px; color: rgba(255,255,255,.8);
}
.cart-summary-row.total {
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 12px;
  padding-top: 20px; font-size: 18px; font-weight: 700; color: #fff;
}
.cart-summary-row.total .amount { font-size: 28px; font-weight: 800; color: #fff; }
.cart-checkout {
  display: block; width: 100%; text-align: center;
  background: var(--accent); color: #fff; padding: 16px;
  border: 0; border-radius: 10px; margin-top: 16px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.cart-checkout:hover { background: #22c55e; }
.cart-checkout:disabled { opacity: .5; cursor: not-allowed; }
.cart-note {
  font-size: 12px; color: rgba(255,255,255,.55); margin-top: 12px; line-height: 1.5;
}
.cart-empty {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 64px 32px; text-align: center;
}
.cart-empty p { color: var(--ink-2); font-size: 17px; margin-bottom: 24px; }

@media (max-width: 980px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .cart-grid { grid-template-columns: 1fr; gap: 32px; }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .cart-item { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; gap: 12px; }
  .cart-item-img { width: 60px; height: 60px; }
  .cart-item .qty-picker { grid-column: 1 / -1; }
  .cart-item-line { grid-column: 1 / -1; align-items: flex-start; }
  .product-detail-specs dl { grid-template-columns: 1fr; gap: 4px; }
  .product-detail-specs dt { margin-top: 8px; }
}

/* =========================================================================
   PLUSHBIKE PROMO BANNER (e-bike calculator)
   ========================================================================= */
.plushbike-banner {
  display: block; position: relative;
  width: min(100% - 32px, var(--container));
  margin: 24px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.plushbike-banner:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  color: var(--ink);
}
.plushbike-banner img {
  width: 100%; height: auto; display: block;
}
.plushbike-banner-cta {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .2px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .plushbike-banner-cta {
    left: 12px; bottom: 12px;
    font-size: 11px; padding: 8px 12px;
  }
}

/* =========================================================================
   PRODUCT DETAIL GALLERY THUMBNAILS
   ========================================================================= */
.product-detail-media {
  display: flex; flex-direction: column; gap: 12px;
}
.product-detail-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.product-detail-thumb {
  aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: var(--bg-alt); padding: 0; cursor: pointer;
  transition: border-color .12s, transform .12s;
}
.product-detail-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-detail-thumb:hover { border-color: var(--ink-3); }
.product-detail-thumb.active {
  border-color: var(--accent); border-width: 2px;
}
@media (max-width: 640px) {
  .product-detail-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}


/* =========================================================================
   PACKAGE MAKER (solar calculator page)
   ========================================================================= */
.pkg-builder {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}
.pkg-slots {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.pkg-slot {
  display: grid;
  grid-template-columns: 130px 1fr 90px 110px;
  gap: 16px; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.pkg-slot:last-of-type { border-bottom: 0; }
.pkg-slot-label {
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--ink-2);
}
.pkg-product-select, .pkg-qty-select {
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; min-width: 0; width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
.pkg-qty-select { text-align: center; }
.pkg-product-select:focus, .pkg-qty-select:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.pkg-line-total {
  font-size: 15px; font-weight: 700; color: var(--ink);
  text-align: right; white-space: nowrap;
}

.pkg-add-row {
  grid-column: 1; padding-top: 16px;
}
.pkg-add-row .btn { font-weight: 600; }

.pkg-summary {
  grid-column: 2; grid-row: 1 / 3;
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 28px;
  position: sticky; top: 88px;
}
.pkg-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; font-size: 15px; color: rgba(255,255,255,.85);
}
.pkg-summary-row.pkg-discount-row {
  color: var(--accent);
}
.pkg-summary-row.pkg-total-row {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 10px; padding-top: 18px;
  font-size: 18px; font-weight: 700; color: #fff;
}
.pkg-total-amt { font-size: 28px; font-weight: 800; color: #fff; }
.pkg-note {
  font-size: 12.5px; color: rgba(255,255,255,.6);
  margin: 12px 0 0; line-height: 1.5;
}
.pkg-cart-btn {
  display: block; width: 100%; text-align: center;
  background: var(--accent); color: #fff; padding: 14px;
  border: 0; border-radius: 10px; margin-top: 14px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background .15s, opacity .15s;
}
.pkg-cart-btn:hover { background: #22c55e; }
.pkg-cart-btn:disabled {
  opacity: .45; cursor: not-allowed; background: var(--accent);
}

/* Cart-page discount line */
.cart-discount-row {
  color: var(--accent-dark) !important;
  font-weight: 600;
}
.cart-summary .cart-discount-row { color: #4ade80 !important; }

/* Responsive — stack the summary below on tablet/mobile */
@media (max-width: 980px) {
  .pkg-builder { grid-template-columns: 1fr; }
  .pkg-summary { grid-column: 1; grid-row: auto; position: static; }
  .pkg-slot {
    grid-template-columns: 1fr 80px;
    grid-template-areas: "label label" "product qty" "total total";
    gap: 10px 12px;
  }
  .pkg-slot-label { grid-area: label; }
  .pkg-product-select { grid-area: product; }
  .pkg-qty-select { grid-area: qty; }
  .pkg-line-total { grid-area: total; text-align: left; }
}
@media (max-width: 640px) {
  .pkg-summary { padding: 20px; }
  .pkg-total-amt { font-size: 24px; }
}

/* Install toggle inside the package-maker summary card */
.pkg-install-toggle {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin: -8px 0 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pkg-install-toggle:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
.pkg-install-toggle input[type="checkbox"] {
  width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--accent);
}
.pkg-install-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pkg-install-text strong { color: #fff; font-size: 14.5px; font-weight: 600; }
.pkg-install-text > span { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.45; }
.pkg-install-text strong + span strong { color: var(--accent); font-weight: 700; }


/* Generator-aid toggle below the calc-top fieldsets */
.calc-gen-toggle {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin-top: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.calc-gen-toggle:hover { background: var(--accent-50); border-color: var(--accent-soft); }
.calc-gen-toggle input[type="checkbox"] {
  width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--accent);
}
.calc-gen-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.calc-gen-text strong { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.calc-gen-text > span { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.calc-gen-text em { color: var(--ink-2); font-style: normal; }

/* Generator-aid hint in the package-maker summary card */
.pkg-genny-hint {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.4);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.pkg-genny-hint strong {
  color: #fff; font-size: 14px; font-weight: 600;
}
.pkg-genny-hint strong span { color: var(--warn); }
.pkg-genny-hint > span {
  font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.5;
}


/* Per-slot "manual" pill — shows when the user has locked the slot */
.pkg-slot-touched .pkg-slot-label { color: var(--accent-dark); }
.pkg-slot-pill {
  display: inline-block; margin-left: 6px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  vertical-align: middle;
}

/* Reset button sits beside "+ Add another item" */
.pkg-add-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pkg-add-row .btn { font-weight: 600; }


/* "Copy share link" button below the package's Add-to-cart */
.pkg-share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  background: transparent; color: rgba(255,255,255,.7);
  border: 0; padding: 10px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 6px;
  transition: color .12s, background .12s;
  border-radius: 8px;
}
.pkg-share-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.pkg-share-btn svg { opacity: .85; }


/* =========================================================================
   STOCK STATUS — badges, chips, banners, warnings
   ========================================================================= */
/* Small corner badge on the shop product card */
.product-stock-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.product-stock-badge.stock-oos { background: #fee2e2; color: #b91c1c; }
.product-stock-badge.stock-pre { background: #fef3c7; color: #b45309; }
.product.product-oos { opacity: .72; }
.product.product-oos:hover { opacity: 1; }

/* Banner on the product detail page */
.product-stock-banner {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin: -8px 0 16px;
  border-width: 1px; border-style: solid;
}
.product-stock-banner strong { font-size: 14px; font-weight: 700; }
.product-stock-banner span { font-size: 12.5px; line-height: 1.5; }
.product-stock-banner.stock-banner-oos {
  background: #fef2f2; border-color: #fecaca; color: #991b1b;
}
.product-stock-banner.stock-banner-pre {
  background: #fffbeb; border-color: #fcd34d; color: #92400e;
}

/* Chip inside cart line */
.cart-stock-chip {
  display: inline-block; margin-top: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
}
.cart-stock-chip.stock-oos { background: #fee2e2; color: #b91c1c; }
.cart-stock-chip.stock-pre { background: #fef3c7; color: #b45309; }
.cart-item-oos { opacity: .68; }
.cart-item-oos:hover { opacity: 1; }

/* Notes inside the cart summary */
.cart-stock-warn, .cart-stock-note {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: 13px;
  border: 1px solid; line-height: 1.45;
}
.cart-stock-warn {
  background: rgba(220,38,38,.15);
  border-color: rgba(220,38,38,.4);
  color: #fecaca;
}
.cart-stock-warn strong { color: #fff; }
.cart-stock-warn span { color: rgba(255,255,255,.75); font-size: 12px; }
.cart-stock-note {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.4);
  color: #fde68a;
}
.cart-stock-note strong { color: #fff; }
.cart-stock-note span { color: rgba(255,255,255,.75); font-size: 12px; }

/* Disabled checkout button when OOS items present */
.cart-checkout[disabled] { background: #4b5563 !important; cursor: not-allowed; }
