/* Lumavo Bravo — glavna stilska datoteka */

:root {
  --cream: #F4EEE1;
  --cream-alt: #EDE4D3;
  --tile: #E3D6BE;
  --tile-dark: #DAC9A8;
  --border: #C9BBA0;
  --ink: #3E2C1F;
  --ink-soft: #5A4632;
  --brown: #4E3423;
  --brown-link: #6B4A34;
  --olive: #6B7048;
  --footer-bg: #3E2C1F;
  --footer-text: #EDE4D3;
  --footer-muted: #C9BBA0;
  --footer-faint: #A99A7C;
  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--brown-link); text-decoration: none; }
a:hover { color: var(--brown); text-decoration: underline; }

img { max-width: 100%; display: block; }

button { font-family: var(--font-body); }

h1, h2, h3 { font-family: var(--font-heading); color: var(--ink); margin: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.brand { cursor: pointer; }
.brand-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  color: var(--brown); line-height: 1.1;
}
.brand-tag {
  font-size: 10.5px; letter-spacing: 0.12em; color: var(--olive); font-weight: 600;
}
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.nav-link {
  background: none; border: none; cursor: pointer; font-size: 15px;
  color: var(--ink); font-weight: 600; padding: 0; font-family: var(--font-body);
}
.nav-link.current { color: var(--olive); }
.cart-btn {
  background: var(--olive); color: var(--cream); border: none; border-radius: 24px;
  padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.cart-count {
  background: var(--brown); border-radius: 12px; padding: 2px 9px; font-size: 12.5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 28px; padding: 14px 26px; font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; font-family: var(--font-body);
}
.btn-primary { background: var(--olive); color: var(--cream); }
.btn-outline { background: none; color: var(--brown); border: 1.5px solid var(--brown); }
.btn-small { padding: 10px 14px; font-size: 13.5px; border-radius: 20px; }
.btn-add {
  background: var(--olive); color: var(--cream); border: none; border-radius: 20px;
  padding: 10px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.link-more {
  background: none; border: none; color: var(--brown); font-weight: 700; cursor: pointer;
  padding: 0; text-align: left; margin-top: 6px; font-size: 14px; font-family: var(--font-body);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px; display: flex; gap: 48px; align-items: center; flex-wrap: wrap;
}
.hero-text { flex: 1 1 380px; min-width: 300px; }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; color: var(--olive); font-weight: 700; margin-bottom: 14px; }
.hero-text h1 { font-size: 44px; line-height: 1.15; margin: 0 0 18px; }
.hero-text p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { flex: 1 1 340px; min-width: 280px; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Perks strip ---------- */
.perks {
  background: var(--cream-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.perks .container {
  padding: 26px 24px; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 18px; text-align: center;
}
.perks strong { font-weight: 700; font-size: 14.5px; color: var(--brown); }

/* ---------- Sections ---------- */
.section { padding: 56px 24px 10px; max-width: 1180px; margin: 0 auto; }
.section h2 { font-size: 28px; margin: 0 0 24px; }
.section-lede { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 20px; max-width: 600px; }

/* ---------- Category tiles ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; }
.category-tile {
  cursor: pointer; background: var(--cream-alt); border-radius: 14px; padding: 26px 20px;
  text-align: center; border: 1px solid var(--border); font-family: var(--font-heading);
  font-size: 17px; color: var(--brown); font-weight: 600; display: block; width: 100%;
}

/* ---------- Cards: products / articles ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 22px; }
.card-grid.articles { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
.card {
  background: var(--cream-alt); border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--tile); }
.card.article .card-media { aspect-ratio: 16/10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card.article .card-body { padding: 18px; }
.card-kicker { font-size: 11px; color: var(--olive); font-weight: 700; letter-spacing: 0.05em; }
.card-title { font-family: var(--font-heading); font-size: 16px; color: var(--ink); font-weight: 600; }
.card.article .card-title { font-size: 17px; line-height: 1.3; }
.card-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.45; margin: 0; }
.card.article .card-desc { font-size: 14px; line-height: 1.5; }
.card-price { font-size: 16px; color: var(--brown); font-weight: 700; margin-top: auto; }
.card.product .card-price { font-size: 17px; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 22px; }
.testimonial {
  background: var(--cream-alt); border-radius: 14px; padding: 22px; border: 1px solid var(--border);
}
.testimonial p { font-size: 14.5px; line-height: 1.6; color: var(--brown); margin: 0 0 12px; font-style: italic; }
.testimonial cite { font-size: 13px; font-weight: 700; color: var(--olive); font-style: normal; }

/* ---------- Newsletter ---------- */
.newsletter {
  margin: 56px 24px 64px; max-width: 1132px; margin-left: auto; margin-right: auto;
  background: var(--olive); border-radius: 18px; padding: 40px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.newsletter h3 { color: var(--cream); font-size: 23px; margin: 0 0 8px; }
.newsletter p { font-size: 14.5px; color: var(--cream-alt); margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 16px; border-radius: 22px; border: none; font-size: 14px; min-width: 220px;
  font-family: var(--font-body);
}
.newsletter-form button {
  background: var(--ink); color: var(--cream); border: none; border-radius: 22px;
  padding: 12px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ---------- Page headers (inner pages) ---------- */
.page-head { max-width: 1180px; margin: 0 auto; padding: 48px 24px 0; }
.page-head h1 { font-size: 34px; margin: 0 0 10px; }
.page-head p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 20px; max-width: 600px; }
.page-narrow { max-width: 760px; }
.page-medium { max-width: 800px; }

/* ---------- Category filter chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 24px 32px; max-width: 1132px; margin-left: auto; margin-right: auto; }
.chip {
  background: var(--cream-alt); color: var(--brown); border: 1px solid var(--border); border-radius: 20px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
}
.chip.active { background: var(--olive); color: var(--cream); border-color: var(--olive); }

/* ---------- Shop meta row ---------- */
.shop-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 24px 24px; max-width: 1132px; margin-left: auto; margin-right: auto; font-size: 13px; color: var(--olive); font-weight: 700; }

.page-section { max-width: 1180px; margin: 0 auto; padding: 0 24px 64px; }

/* ---------- Article detail ---------- */
.article-back { background: none; border: none; color: var(--olive); font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 20px; font-size: 14px; font-family: var(--font-body); }
.article-meta { font-size: 11.5px; color: var(--olive); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.article-title { font-size: 32px; margin: 0 0 22px; line-height: 1.25; }
.article-hero { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { font-size: 16.5px; line-height: 1.75; color: var(--brown); margin: 0 0 18px; }
.related { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 32px; }
.related h3 { font-size: 20px; margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }
.related-card { cursor: pointer; background: var(--cream-alt); border-radius: 12px; padding: 16px; border: 1px solid var(--border); display: block; text-align: left; width: 100%; }
.related-card .card-kicker { margin-bottom: 6px; }
.related-card .card-title { font-size: 14.5px; }

/* ---------- About values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; }
.value-card { background: var(--cream-alt); border-radius: 14px; padding: 22px; border: 1px solid var(--border); }
.value-card .card-title { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 28px; }
.contact-card { background: var(--cream-alt); border-radius: 14px; padding: 28px; border: 1px solid var(--border); }
.contact-card .card-title { font-size: 18px; margin-bottom: 16px; }
.contact-card p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 6px; }
.contact-form {
  background: var(--cream-alt); border-radius: 14px; padding: 28px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px;
  background: var(--cream); font-family: var(--font-body);
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  background: var(--olive); color: var(--cream); border: none; border-radius: 22px;
  padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.form-note { font-size: 13px; margin-top: -4px; }
.form-note.error { color: #a33; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-map { margin-top: 24px; aspect-ratio: 16/6; border-radius: 14px; overflow: hidden; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Legal pages ---------- */
.legal h1 { font-size: 30px; margin: 0 0 22px; }
.legal h3 { font-size: 18px; margin: 26px 0 10px; }
.legal h3:first-of-type { margin-top: 0; }
.legal p { font-size: 15px; line-height: 1.7; color: var(--brown); margin: 0 0 16px; }
.legal .impressum-row { font-size: 15px; line-height: 1.8; color: var(--brown); margin: 0 0 6px; }
.cookie-cat { background: var(--cream-alt); border-radius: 12px; padding: 18px; border: 1px solid var(--border); margin-bottom: 14px; }
.cookie-cat strong { display: block; font-weight: 700; color: var(--brown); font-size: 15px; margin-bottom: 6px; }
.cookie-cat p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 20px; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px;
  display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 32px;
}
.footer-brand { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--footer-text); margin-bottom: 10px; }
.footer-grid p { font-size: 13.5px; line-height: 1.6; color: var(--footer-muted); margin: 0; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--footer-text); margin-bottom: 12px; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-links button {
  background: none; border: none; color: var(--footer-muted); text-align: left; padding: 0;
  cursor: pointer; font-size: 14px; font-family: var(--font-body);
}
.footer-links a:hover, .footer-links button:hover { color: var(--footer-text); text-decoration: underline; }
.footer-contact { font-size: 14px; line-height: 1.7; color: var(--footer-muted); margin: 0; }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--ink-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom span { font-size: 12.5px; color: var(--footer-faint); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(62,44,31,0.45); z-index: 50; display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px,100vw); background: var(--cream);
  z-index: 51; box-shadow: -8px 0 24px rgba(0,0,0,0.15); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.25s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-drawer-head h2 { font-size: 19px; }
.cart-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--brown); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { font-size: 14.5px; color: var(--ink-soft); text-align: center; margin-top: 40px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--tile); }
.cart-line-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--cream-alt); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; }
.cart-line-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cart-line-price { font-size: 13px; color: var(--olive); font-weight: 700; margin-bottom: 6px; }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: none; cursor: pointer; font-size: 13px; }
.cart-line-remove { background: none; border: none; color: var(--footer-faint); font-size: 12px; cursor: pointer; margin-left: auto; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.cart-checkout { width: 100%; background: var(--olive); color: var(--cream); border: none; border-radius: 24px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--footer-bg); color: var(--footer-text);
  z-index: 60; padding: 18px 24px; display: none; gap: 18px; flex-wrap: wrap; align-items: center;
  justify-content: space-between; box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { font-size: 13.5px; line-height: 1.5; margin: 0; max-width: 640px; }
.cookie-banner a { color: var(--footer-text); text-decoration: underline; }
.cookie-accept {
  background: var(--olive); color: var(--cream); border: none; border-radius: 20px; padding: 10px 20px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}

@media (max-width: 640px) {
  .hero-text h1 { font-size: 34px; }
  .page-head h1 { font-size: 28px; }
  .newsletter { padding: 28px; }
}
