/* Elektrivo — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: #f4f5f7;
  color: #181c22;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: oklch(0.55 0.17 258); }
a:hover { color: oklch(0.46 0.17 258); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e1e4e9;
}
.site-header .wrap {
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: none;
}
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.55 0.17 258); display: inline-block; }
.brand-name { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 21px; font-weight: 700; color: #12161c; }

.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  background: transparent; color: #5b6472; border: none;
  padding: 8px 12px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  border-radius: 3px; text-decoration: none; display: inline-block;
}
.main-nav a.active { background: #eef1f5; color: #12161c; }
.main-nav a:hover { background: #eef1f5; }

.cart-btn {
  position: relative; background: #12161c; color: #fff; border: none;
  border-radius: 3px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cart-badge {
  position: absolute; top: -7px; right: -8px; background: oklch(0.55 0.17 258); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: none;
  align-items: center; justify-content: center; padding: 0 4px; font-weight: 700;
}
.cart-badge.show { display: flex; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg,#12161c 0%,#1b212a 100%); color: #f4f6f8; padding: 80px 24px 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 0 24px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-family: 'IBM Plex Mono', 'Consolas', monospace; font-size: 12px; letter-spacing: 0.1em; color: oklch(0.75 0.1 258); text-transform: uppercase; }
.hero h1 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 44px; line-height: 1.15; margin: 0; font-weight: 700; }
.hero p { font-size: 16px; line-height: 1.6; color: #c3c9d1; margin: 0; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-primary {
  background: oklch(0.55 0.17 258); color: #fff; border: none; border-radius: 3px;
  padding: 14px 24px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: oklch(0.46 0.17 258); color: #fff; }
.btn-outline-dark {
  border: 1px solid #3a4250; color: #f4f6f8; border-radius: 3px; padding: 13px 24px;
  font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; background: none;
}
.hero-media {
  width: 100%; height: 320px; border-radius: 4px; border: 1px solid #3a4250;
  overflow: hidden; background: #232a35;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Trust badges ---------- */
.trust { max-width: 1200px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-check {
  width: 30px; height: 30px; border-radius: 50%; background: oklch(0.96 0.02 258); color: oklch(0.55 0.17 258);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.trust-item span.txt { font-size: 14px; color: #3a4250; }

/* ---------- Section headings ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.section h2 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 26px; margin: 0 0 20px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px; }
.cat-card { border: 1px solid #e1e4e9; background: #fff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.cat-media { height: 150px; overflow: hidden; border-bottom: 1px solid #e1e4e9; background: #dfe3ea; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.cat-title { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 18px; font-weight: 600; }
.cat-desc { font-size: 13.5px; color: #5b6472; line-height: 1.5; }
.btn-ghost-dark {
  margin-top: 8px; background: none; border: 1px solid #12161c; border-radius: 3px; padding: 9px 14px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; align-self: flex-start; color: #12161c; text-decoration: none; display: inline-block;
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 20px; }
.product-card { border: 1px solid #e1e4e9; border-radius: 3px; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.product-media { position: relative; height: 170px; overflow: hidden; border-bottom: 1px solid #e1e4e9; background: #dfe3ea; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 10px; left: 10px; background: oklch(0.55 0.17 258); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 2px; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 16px; font-weight: 600; }
.product-blurb { font-size: 13px; color: #5b6472; line-height: 1.5; }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip { font-size: 11px; color: #5b6472; background: #f4f5f7; border: 1px solid #e1e4e9; border-radius: 2px; padding: 2px 7px; }
.price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 8px; }
.price { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 18px; font-weight: 700; }
.price-old { font-size: 13px; color: #9aa1ac; text-decoration: line-through; }
.btn-add {
  margin-top: 6px; background: oklch(0.55 0.17 258); color: #fff; border: none; border-radius: 2px;
  padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%;
}
.btn-add:hover { background: oklch(0.46 0.17 258); }

/* ---------- Quiz ---------- */
.quiz-section { max-width: 1200px; margin: 0 auto; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.quiz-head { text-align: center; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.quiz-head h2 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 28px; margin: 0; }
.quiz-head p { color: #5b6472; font-size: 15px; margin: 0; }
.quiz-box { max-width: 620px; margin: 0 auto; width: 100%; background: #fff; border: 1px solid #e1e4e9; border-radius: 4px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.quiz-step-title { font-weight: 600; font-size: 15.5px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-options button {
  text-align: left; padding: 14px 16px; border: 1px solid #e1e4e9; border-radius: 3px; background: #fff;
  font-size: 14px; cursor: pointer;
}
.quiz-options button:hover { border-color: oklch(0.55 0.17 258); }
.quiz-result-label { font-size: 12px; color: oklch(0.55 0.17 258); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.quiz-result-name { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 19px; font-weight: 700; }
.quiz-result-blurb { font-size: 14px; color: #5b6472; margin: 0; line-height: 1.5; }
.quiz-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.btn-secondary { background: none; border: 1px solid #e1e4e9; border-radius: 3px; padding: 11px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- Guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.guide-card { border: 1px solid #e1e4e9; background: #fff; border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.guide-title { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; }
.guide-excerpt { font-size: 13.5px; color: #5b6472; line-height: 1.5; margin: 0; }
.link-btn { margin-top: auto; background: none; border: none; color: oklch(0.55 0.17 258); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; text-align: left; text-decoration: none; display: inline-block; }

.guides-list { display: flex; flex-direction: column; gap: 14px; }
.guide-full { border: 1px solid #e1e4e9; background: #fff; border-radius: 4px; padding: 22px; }
.guide-full summary { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.guide-full summary::-webkit-details-marker { display: none; }
.guide-full summary::after { content: '＋'; float: right; color: oklch(0.55 0.17 258); font-weight: 700; }
.guide-full[open] summary::after { content: '－'; }
.guide-full .guide-excerpt { margin-top: 8px; }
.guide-full-body { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid #e1e4e9; margin-top: 10px; }
.guide-full-body p { font-size: 14px; color: #3a4250; line-height: 1.7; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: #12161c; padding: 56px 24px; }
.testimonials-section h2 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 24px; margin: 0 0 24px; color: #f4f6f8; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 20px; }
.testi-card { background: #1b212a; border: 1px solid #2b323f; border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.testi-card p { font-size: 14px; color: #c3c9d1; line-height: 1.6; margin: 0; }
.testi-name { font-size: 13px; color: #8a92a0; font-weight: 600; }

/* ---------- Newsletter ---------- */
.newsletter-section { max-width: 800px; margin: 0 auto; padding: 56px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.newsletter-section h2 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 22px; margin: 0; }
.newsletter-section > p { font-size: 14px; color: #5b6472; margin: 0; }
.success-msg { color: oklch(0.5 0.14 150); font-weight: 600; font-size: 14px; }
.newsletter-form { display: flex; gap: 8px; width: 100%; max-width: 400px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 180px; padding: 11px 14px; border: 1px solid #e1e4e9; border-radius: 3px; font-size: 14px; }
.btn-dark { background: #12161c; color: #fff; border: none; border-radius: 3px; padding: 11px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- Generic inner pages ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; }
.page-narrow { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.page-legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.breadcrumb { font-size: 13px; color: #8a92a0; margin-bottom: 10px; }
.page h1 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 32px; margin: 0 0 8px; }
.page-narrow h1, .page-legal h1 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 32px; margin: 0 0 8px; }
.page-intro { color: #5b6472; font-size: 15px; max-width: 700px; margin: 0 0 24px; line-height: 1.6; }

.sort-row { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.sort-btn { background: #fff; color: #3a4250; border: 1px solid #e1e4e9; border-radius: 3px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sort-btn.active { background: #12161c; color: #fff; }

.info-block { border-top: 1px solid #e1e4e9; padding-top: 28px; max-width: 800px; }
.info-block h3 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 18px; margin: 0 0 10px; }
.info-block p { font-size: 14px; color: #5b6472; line-height: 1.7; margin: 0; }

/* ---------- About page ---------- */
.about-lede p { font-size: 15px; color: #3a4250; line-height: 1.7; margin: 0 0 14px; }
.about-media { width: 100%; height: 260px; border-radius: 4px; overflow: hidden; border: 1px solid #e1e4e9; margin: 0 0 24px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 16px; }
.stat-card { text-align: center; padding: 20px; border: 1px solid #e1e4e9; border-radius: 4px; background: #fff; }
.stat-num { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 26px; font-weight: 700; color: oklch(0.55 0.17 258); }
.stat-label { font-size: 12.5px; color: #5b6472; margin-top: 4px; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }
.value-card { padding: 18px; border-left: 3px solid oklch(0.55 0.17 258); background: #fff; border-radius: 0 4px 4px 0; }
.value-title { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.value-desc { font-size: 13px; color: #5b6472; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.contact-media { width: 100%; height: 160px; border-radius: 4px; overflow: hidden; border: 1px solid #e1e4e9; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-info { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #3a4250; margin-top: 16px; }
.contact-form-wrap { background: #fff; border: 1px solid #e1e4e9; border-radius: 4px; padding: 24px; }

/* ---------- Forms ---------- */
.form-col { display: flex; flex-direction: column; gap: 14px; }
.form-col input, .form-col textarea {
  padding: 12px 14px; border: 1px solid #e1e4e9; border-radius: 3px; font-size: 14px; font-family: inherit; width: 100%;
}
.form-col textarea { resize: vertical; }
.btn-submit {
  background: oklch(0.55 0.17 258); color: #fff; border: none; border-radius: 3px; padding: 13px 20px;
  font-size: 14.5px; font-weight: 600; cursor: pointer; align-self: flex-start;
}
.btn-submit:hover { background: oklch(0.46 0.17 258); }
.form-notice { background: #fff; border: 1px solid #e1e4e9; border-radius: 4px; padding: 24px; color: oklch(0.5 0.14 150); font-weight: 600; }
.form-error { color: #b23b3b; font-weight: 600; font-size: 13.5px; margin: 0 0 4px; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.order-summary { background: #fff; border: 1px solid #e1e4e9; border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.order-summary-title { font-weight: 600; font-size: 14.5px; }
.order-line { display: flex; justify-content: space-between; font-size: 13.5px; color: #3a4250; }
.order-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; border-top: 1px solid #e1e4e9; padding-top: 10px; }
.cart-empty-box { background: #fff; border: 1px solid #e1e4e9; border-radius: 4px; padding: 32px; text-align: center; color: #5b6472; }
.cart-empty-box button, .cart-empty-box a { background: none; border: none; color: oklch(0.55 0.17 258); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; text-decoration: none; }

/* ---------- Legal ---------- */
.legal-sections { display: flex; flex-direction: column; gap: 20px; }
.legal-sections h2 { font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
.legal-sections p { font-size: 14px; color: #3a4250; line-height: 1.7; margin: 0 0 6px; }
.page-legal .page-intro { font-size: 14.5px; margin-bottom: 28px; }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(18,22,28,0.4); z-index: 60; display: none; }
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%;
  background: #fff; z-index: 61; display: none; flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform .2s ease;
}
.cart-drawer.open { display: flex; transform: translateX(0); }
.cart-drawer-head { padding: 20px; border-bottom: 1px solid #e1e4e9; display: flex; justify-content: space-between; align-items: center; }
.cart-drawer-head span { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 18px; font-weight: 700; }
.cart-drawer-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #5b6472; padding: 0; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-drawer-empty { color: #8a92a0; font-size: 14px; text-align: center; padding: 40px 0; }
.cart-line { display: flex; gap: 12px; border-bottom: 1px solid #f0f1f3; padding-bottom: 14px; }
.cart-line-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 3px; border: 1px solid #e1e4e9; overflow: hidden; background: #eef0f4; }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-line-name { font-size: 13.5px; font-weight: 600; }
.cart-line-price { font-size: 12.5px; color: #5b6472; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-btn { width: 22px; height: 22px; border: 1px solid #e1e4e9; background: #fff; border-radius: 2px; cursor: pointer; font-size: 13px; line-height: 1; }
.qty-val { font-size: 13px; min-width: 16px; text-align: center; }
.remove-btn { margin-left: auto; background: none; border: none; color: #b23b3b; font-size: 12px; cursor: pointer; padding: 0; }
.cart-drawer-foot { padding: 18px 20px; border-top: 1px solid #e1e4e9; display: flex; flex-direction: column; gap: 12px; }
.cart-drawer-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }
.btn-checkout { background: oklch(0.55 0.17 258); color: #fff; border: none; border-radius: 3px; padding: 13px; font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #12161c; color: #c3c9d1; padding: 56px 24px 24px; margin-top: auto; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand-name { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: 19px; font-weight: 700; color: #f4f6f8; }
.footer-brand p { font-size: 13px; color: #8a92a0; line-height: 1.6; margin: 0; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: 13px; font-weight: 600; color: #f4f6f8; margin-bottom: 6px; }
.footer-col a { background: none; border: none; color: #8a92a0; font-size: 13px; cursor: pointer; padding: 0; text-align: left; text-decoration: none; display: block; }
.footer-col a:hover { color: #c3c9d1; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #2b323f;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #5b6472;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: #12161c; color: #f4f6f8; padding: 16px 24px;
  display: none; justify-content: center; gap: 20px; align-items: center; flex-wrap: wrap; z-index: 70; border-top: 1px solid #2b323f;
}
.cookie-banner.show { display: flex; }
.cookie-banner span { font-size: 13.5px; max-width: 600px; }
.cookie-banner button.link { background: none; border: none; color: oklch(0.75 0.1 258); text-decoration: underline; cursor: pointer; padding: 0; font-size: 13.5px; }
.cookie-accept { background: oklch(0.55 0.17 258); color: #fff; border: none; border-radius: 3px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 0 24px; }
  .hero-media { height: 220px; }
  .hero h1 { font-size: 34px; }
  .contact-grid, .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
}
