/* Zima Zuma — bicycle shop e-shop stylesheet */

:root {
  --ink: #14150f;
  --green-dark: #163f22;
  --green: #1c6b34;
  --green-bright: #2fae4e;
  --text-muted: #454d43;
  --text-mute2: #6b7269;
  --border: #dbe5db;
  --bg-soft: #f4f8f4;
  --bg-soft2: #e8f4ea;
  --footer-bg: #14150f;
  --footer-text: #c9ccc7;
  --footer-muted: #9aa199;
  --danger: #a33;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-bright); text-decoration: underline; }
input, textarea, button, select { font-family: var(--font-body); }
::placeholder { color: #8a9188; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-md { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-article { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Top announcement bar */
.topbar {
  background: var(--green-dark);
  color: #eaf5ec;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo span.accent { color: var(--green-bright); }

.main-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-link:hover { color: var(--green); text-decoration: none; }
.nav-link.active { color: var(--green); }

.cart-button {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: none;
}
.cart-icon {
  width: 16px;
  height: 14px;
  border: 2px solid #fff;
  border-top: none;
  border-radius: 0 0 3px 3px;
  position: relative;
}
.cart-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.cart-count {
  background: var(--green-bright);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count.visible { display: flex; }

/* Buttons */
.btn {
  border: none;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-block;
}
.btn-primary { background: var(--green-bright); color: #fff; }
.btn-primary:hover { background: var(--green); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 12px 26px; }
.btn-outline:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; }
.btn-dark:hover { background: #2b2c26; color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.btn-block { width: 100%; padding: 14px; }

/* Hero */
.hero {
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--bg-soft2);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 52px; line-height: 1.05; margin: 0 0 20px; color: var(--ink); }
.hero h1 .accent { color: var(--green-bright); }
.hero p { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 480px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.ratio-photo {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft2);
}
.ratio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-1-1 { aspect-ratio: 1; }
.ratio-1-3 { aspect-ratio: 1.3; }
.ratio-1-6 { aspect-ratio: 1.6; }
.ratio-2-1 { aspect-ratio: 2; }

/* Features */
.features {
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { width: 44px; height: 44px; background: var(--bg-soft2); flex-shrink: 0; }
.feature-icon.round { border-radius: 50%; }
.feature-icon.square { border-radius: 10px; }
.feature-icon.diamond { transform: rotate(45deg); }
.feature-icon.drop { border-radius: 50% 50% 50% 0; }
.feature-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.feature-text { font-size: 14px; color: var(--text-mute2); }

/* Section headers */
.section { padding: 40px 24px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head h2 { font-size: 28px; margin: 0; }
.section-link { cursor: pointer; font-weight: 700; color: var(--green); font-size: 14px; }

/* Category cards */
.grid-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.category-card { cursor: pointer; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.category-card .ratio-photo { border-radius: 0; aspect-ratio: 1.3; }
.category-card-body { padding: 14px 16px; font-weight: 700; font-size: 15px; }

/* Product cards */
.grid-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px; }
.product-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.product-card .ratio-photo { border-radius: 0; aspect-ratio: 1; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; }
.product-name { font-weight: 700; font-size: 15px; }
.product-desc { font-size: 13px; color: var(--text-mute2); line-height: 1.4; }
.product-spacer { flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 800; font-size: 17px; }

/* Catalog filter chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Blog cards on home */
.grid-articles-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.article-card { cursor: pointer; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }
.article-card .ratio-photo { border-radius: 0; aspect-ratio: 1.6; }
.article-card-body { padding: 16px; }
.article-meta { font-size: 12px; color: var(--text-mute2); margin-bottom: 6px; }
.article-title { font-weight: 700; font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.article-excerpt { font-size: 13px; color: var(--text-mute2); line-height: 1.5; }

/* Blog list page */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-row {
  cursor: pointer;
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.article-row .ratio-photo { border-radius: 0; min-height: 140px; }
.article-row .ratio-photo img { height: 100%; }
.article-row-body { padding: 18px 20px 18px 0; display: flex; flex-direction: column; justify-content: center; }
.article-row-body .article-title { font-size: 19px; }

/* Article detail */
.article-back { cursor: pointer; color: var(--green); font-weight: 700; font-size: 14px; margin-bottom: 18px; display: inline-block; }
.article-detail-meta { font-size: 13px; color: var(--text-mute2); margin-bottom: 10px; }
.article-detail h1 { font-size: 34px; line-height: 1.15; margin: 0 0 24px; }
.article-hero { border-radius: 16px; overflow: hidden; margin-bottom: 28px; aspect-ratio: 2; }
.article-body { font-size: 16px; line-height: 1.75; color: #2b2f28; }
.article-body p { margin: 0 0 18px; }
.related-wrap { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-title { font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.related-item { cursor: pointer; border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-weight: 600; font-size: 14px; background: #fff; }
.related-item:hover { border-color: var(--green-bright); text-decoration: none; }

/* Routes */
.grid-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.route-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }
.route-card .ratio-photo { border-radius: 0; aspect-ratio: 1.6; }
.route-body { padding: 18px; }
.route-name { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.route-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.route-tag { background: var(--bg-soft); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.route-diff { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.route-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.tip-box { margin-top: 32px; background: var(--bg-soft2); border-radius: 16px; padding: 22px 24px; font-size: 14px; color: var(--green); line-height: 1.6; }

/* About stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 32px; }
.stat-box { text-align: center; padding: 20px; background: var(--bg-soft); border-radius: 14px; }
.stat-num { font-family: var(--font-heading); font-weight: 700; font-size: 28px; color: var(--green); }
.stat-label { font-size: 13px; color: var(--text-mute2); margin-top: 4px; }
.prose p { font-size: 16px; line-height: 1.7; color: #2b2f28; margin: 0 0 18px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact-info-label { font-weight: 700; font-size: 14px; color: var(--green); margin-bottom: 4px; }
.contact-info-value { font-size: 15px; }
.map-box {
  aspect-ratio: 1.6;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft2);
  display: flex;
  align-items: flex-end;
}
.map-box img { width: 100%; height: 100%; object-fit: cover; }
.map-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(20,21,15,0.75);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.contact-form-box {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form-box .form-title { font-weight: 700; font-size: 16px; }
.field {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  width: 100%;
}
textarea.field { resize: vertical; }
.form-note { font-size: 12px; color: #8a9188; }
.form-success { background: var(--bg-soft2); color: var(--green); border-radius: 10px; padding: 16px; font-size: 14px; font-weight: 600; text-align: center; }
.form-error { background: #fbe3e0; color: var(--danger); border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* Newsletter */
.newsletter { background: var(--green-dark); padding: 56px 24px; margin-top: 20px; }
.newsletter-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.newsletter h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.newsletter p.lead { color: #c9ddcd; font-size: 15px; margin: 0 0 22px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input { padding: 12px 16px; border-radius: 8px; border: none; min-width: 240px; font-size: 14px; }
.newsletter-form button { background: var(--green-bright); color: #fff; border: none; padding: 12px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.newsletter-legal { color: #8fac93; font-size: 12px; margin-top: 16px; }
.newsletter-legal a { color: #c9ddcd; cursor: pointer; }
.newsletter-thanks { color: #eaf5ec; font-weight: 700; }

/* Legal pages */
.legal h1 { font-size: 32px; margin: 0 0 24px; }
.legal-body { font-size: 15px; line-height: 1.75; color: #2b2f28; }
.legal-body h2 { font-size: 18px; margin: 24px 0 10px; font-family: var(--font-body); letter-spacing: 0; }
.legal-body p { margin: 0 0 14px; }

/* Page heading blocks */
.page-head h1 { font-size: 36px; margin: 0 0 8px; }
.page-head p { color: var(--text-mute2); font-size: 15px; margin: 0 0 28px; max-width: 640px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: auto; }
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 10px; }
.footer-logo .accent { color: var(--green-bright); }
.footer-about { font-size: 13px; line-height: 1.6; color: var(--footer-muted); max-width: 260px; }
.footer-col-title { font-weight: 700; color: #fff; font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer-links a, .footer-links span { color: var(--footer-text); cursor: pointer; }
.footer-links a:hover, .footer-links span:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid #2a2c26;
  font-size: 12px;
  color: #7d847a;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,21,15,0.4);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 92vw;
  background: #fff;
  z-index: 51;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  transform: translateX(105%);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.cart-drawer-close { cursor: pointer; font-size: 20px; color: var(--text-mute2); background: none; border: none; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { color: var(--text-mute2); font-size: 14px; padding: 30px 0; text-align: center; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef1ee; }
.cart-item-thumb { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; object-fit: cover; background: var(--bg-soft2); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.cart-item-price { font-size: 12px; color: var(--text-mute2); margin-bottom: 6px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { cursor: pointer; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 13px; background: #fff; }
.cart-item-qty { font-size: 13px; font-weight: 600; }
.cart-item-remove { cursor: pointer; margin-left: auto; font-size: 12px; color: var(--danger); background: none; border: none; }
.cart-drawer-foot { padding: 20px; border-top: 1px solid var(--border); }
.cart-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-mute2); margin-bottom: 6px; }
.cart-line-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 16px; }

/* Checkout page */
.checkout-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 40px; align-items: start; }
.checkout-summary { background: var(--bg-soft); border-radius: 16px; padding: 24px; }
.checkout-summary-item { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero .ratio-photo { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .article-row-body { padding: 0 18px 18px; }
}
@media (max-width: 640px) {
  .site-header-inner { justify-content: center; }
  .main-nav { justify-content: center; order: 3; width: 100%; }
  .hero h1 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
}
