/* Aeran Bazaar — base styles */

:root {
  --green-900: #1b3b1f;
  --green-800: #205c26;
  --green-700: #2e7d32;
  --green-600: #3d9142;
  --green-100: #e6f2e6;
  --amber-500: #f9a825;
  --amber-600: #e39100;
  --cream: #f7f5ef;
  --ink: #1c1c1a;
  --ink-soft: #4a4a45;
  --line: #e2ded2;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(27, 59, 31, 0.08);
  --shadow-lg: 0 16px 40px rgba(27, 59, 31, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; color: var(--green-900); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 12px; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber-500); color: var(--green-900); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--amber-600); }
.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--green-800); }
.btn--ghost { background: transparent; border-color: var(--green-700); color: var(--green-700); }
.btn--ghost:hover { background: var(--green-700); color: var(--white); }
.btn--dark { background: var(--green-900); color: var(--white); box-shadow: var(--shadow); }
.btn--dark:hover { background: #0f2712; color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: 6px; }
.btn-sm:hover { transform: none; }

/* Top bar */
.topbar {
  background: var(--green-900);
  color: #d9e8d9;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #d9e8d9; }
.topbar-contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contacts span { display: inline-flex; align-items: center; gap: 6px; }

/* Header / nav */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--amber-500);
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.08rem; color: var(--green-900); }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a.active { color: var(--green-700); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; border-radius: 3px;
  background: var(--amber-500);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--green-900);
  position: relative; transition: 0.2s;
}
.nav-toggle::before { position: absolute; transform: translateY(-7px); }
.nav-toggle::after { position: absolute; transform: translateY(7px); }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(249,168,37,0.25), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-top: 90px; padding-bottom: 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: #dfeadf; font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 1.6rem; color: var(--amber-500); }
.hero-stats div span { font-size: 0.82rem; color: #cfe0cf; }

.hero-visual {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(2px);
}
.hero-visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-visual-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 16px;
}
.hero-visual-card svg { color: var(--amber-500); margin-bottom: 8px; }
.hero-visual-card strong { display: block; font-size: 0.92rem; color: var(--white); }
.hero-visual-card span { font-size: 0.78rem; color: #cfe0cf; }

/* Feature / USP grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.94rem; }

/* Product cards */
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-media {
  height: 150px;
  background: linear-gradient(135deg, var(--green-100), #fff4de);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700);
}
.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.08rem; }
.product-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--amber-600);
  margin-bottom: 8px;
}
.product-body p { font-size: 0.92rem; flex: 1; }
.product-list { margin: 10px 0 0; }
.product-list li {
  font-size: 0.88rem; color: var(--ink-soft);
  padding-left: 20px; position: relative; margin-bottom: 6px;
}
.product-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 700;
}

/* Stats band */
.stats-band {
  background: var(--green-900);
  color: var(--white);
}
.stats-band .grid-4 { padding: 46px 0; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.1rem; color: var(--amber-500); }
.stat span { font-size: 0.85rem; color: #cfe0cf; }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-card p.quote { font-style: italic; color: var(--ink); font-size: 0.98rem; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-700); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { font-size: 0.8rem; color: var(--ink-soft); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--amber-500), var(--amber-600));
  color: var(--green-900);
  border-radius: 18px;
  padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--green-900); margin-bottom: 6px; }
.cta-banner p { color: rgba(27,59,31,0.8); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.contact-info-card {
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info-card h3 { color: var(--white); }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.12); color: var(--amber-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.92rem; }
.contact-item span, .contact-item a { font-size: 0.88rem; color: #cfe0cf; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.94rem;
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-700); background: var(--white);
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.form-success {
  display: none;
  background: var(--green-100); color: var(--green-800);
  padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-top: 14px;
}
.form-success.show { display: block; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 24px;
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #dfeadf; max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: #cfe0cf; margin-top: 10px; }
.breadcrumb a { color: var(--amber-500); font-weight: 600; }

/* Value / about lists */
.check-list li {
  padding-left: 28px; position: relative; margin-bottom: 12px; font-size: 0.96rem; color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-700); color: white;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
}

.timeline { border-left: 3px solid var(--green-100); padding-left: 24px; }
.timeline-item { margin-bottom: 28px; position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--amber-500);
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green-700);
}
.timeline-item strong { color: var(--green-800); display: block; margin-bottom: 4px; }

/* Footer */
.site-footer {
  background: var(--green-900);
  color: #cfe0cf;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { color: #b9cdb9; font-size: 0.9rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cfe0cf; font-size: 0.9rem; }
.footer-col a:hover { color: var(--amber-500); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--amber-500); color: var(--green-900); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; font-size: 0.82rem; color: #a9c2a9; flex-wrap: wrap; gap: 10px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band .grid-4 { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 20px 24px; box-shadow: var(--shadow);
  }
  .topbar-contacts { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
}

/* ---- Sliders (category / brand / featured products) ---- */
.slider-block { position: relative; }
.slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  display: flex;
  gap: 20px;
  padding: 6px 4px 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--green-800);
}
.slider-nav:hover { background: var(--green-100); }
.slider-nav--prev { left: -18px; }
.slider-nav--next { right: -18px; }

/* Category slider */
.category-slide {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.category-slide:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-slide .feature-icon { margin: 0 auto 14px; }
.category-slide h3 { font-size: 1.02rem; margin-bottom: 4px; }
.category-slide span { font-size: 0.82rem; color: var(--ink-soft); }

/* Brand slider */
.brand-slide {
  flex: 0 0 170px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  min-height: 90px;
}
.brand-slide strong {
  font-size: 1.05rem;
  color: var(--green-900);
  letter-spacing: 0.02em;
}

/* Featured product slider */
.featured-slide {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.featured-slide:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-media {
  height: 150px;
  background: linear-gradient(135deg, var(--green-100), #fff4de);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-media svg { color: var(--green-700); }
.featured-body { padding: 18px; }
.featured-body .product-tag { display: block; margin-bottom: 6px; }
.featured-body h3 { font-size: 1rem; margin-bottom: 2px; }
.featured-body .brand-name { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 10px; }
.featured-body .price-row { display: flex; align-items: center; justify-content: space-between; }
.featured-body .price { font-weight: 700; color: var(--green-800); }

@media (max-width: 640px) {
  .slider-nav { display: none; }
  .category-slide { flex-basis: 160px; }
  .featured-slide { flex-basis: 200px; }
  .brand-slide { flex-basis: 140px; }
}
