/* Slatka Domačica — glavna tablica stilova */

:root{
  --bg: #fdf6ef;
  --bg-alt: #f3e6d8;
  --card: #fffaf6;
  --border: #e9dcc9;
  --text: #4a3428;
  --text-muted: #7d6857;
  --placeholder: #a8917d;
  --accent: #c97b8c;
  --accent-hover: #8f4757;
  --link: #b05f70;
  --highlight: #f3d9dc;
  --footer-bg: #4a3428;
  --footer-bg-alt: #5c4636;
  --footer-border: #5f4a3c;
  --footer-text: #f3e6d8;
  --footer-muted: #e3d3c4;
  --footer-copy: #c9b39f;

  --font-heading: Georgia, 'Times New Roman', 'Cambria', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

input::placeholder, textarea::placeholder{ color: var(--placeholder); }
input, textarea{ outline: none; font-family: var(--font-body); }
input:focus, textarea:focus{ border-color: var(--accent) !important; }

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

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

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

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.brand{
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 0;
  text-decoration: none;
}
.brand-mark{
  width: 44px; height: 44px; border-radius: 50%; background: var(--highlight);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; color: var(--link);
  font-size: 19px; flex: none;
}
.brand-name{ font-family: var(--font-heading); font-size: 25px; font-weight: 700; color: var(--text); }

.main-nav{ display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav-link{
  background: none; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: 15px; padding-bottom: 6px;
  color: var(--text); font-weight: 600; border-bottom: 2px solid transparent;
  display: inline-block;
}
.nav-link.active{ color: var(--link); font-weight: 700; border-bottom-color: var(--accent); }

.header-actions{ display: flex; align-items: center; gap: 12px; }
.kontakt-link{
  background: none; border: none; color: var(--text-muted);
  font-family: var(--font-body); font-size: 14px; cursor: pointer; text-decoration: none;
}
.cart-btn{
  position: relative; background: var(--accent); color: #fff; border: none;
  border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.cart-count{
  background: #fff; color: var(--link); border-radius: 999px; padding: 2px 8px;
  font-size: 12px; font-weight: 700;
}

/* ---------- Cart drawer ---------- */
.cart-overlay{
  position: fixed; inset: 0; background: rgba(74,52,40,0.42); z-index: 100;
  display: none;
}
.cart-overlay.open{ display: flex; }
.cart-overlay-bg{ position: absolute; inset: 0; border: none; background: transparent; cursor: pointer; }
.cart-drawer{
  position: relative; width: min(400px, 100%); height: 100%; margin-left: auto;
  background: var(--bg); padding: 28px 24px; overflow-y: auto;
}
.cart-drawer-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cart-drawer-head h3{ font-family: var(--font-heading); font-size: 24px; color: var(--text); margin: 0; }
.cart-close{ background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.cart-lines{ display: flex; flex-direction: column; gap: 14px; }
.cart-line{
  display: flex; gap: 12px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px;
}
.cart-line-info{ flex: 1; min-width: 0; }
.cart-line-name{ font-weight: 600; color: var(--text); font-size: 14px; }
.cart-line-price{ color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.cart-line-controls{ display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn{
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 14px; line-height: 1;
}
.qty-val{ font-size: 13px; color: var(--text); min-width: 14px; text-align: center; }
.remove-btn{
  margin-left: auto; background: none; border: none; color: var(--link);
  font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0;
}
.cart-line-total{ font-weight: 700; color: var(--text); font-size: 14px; white-space: nowrap; }
.cart-total-row{
  border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px;
  display: flex; justify-content: space-between; font-weight: 700; color: var(--text); font-size: 16px;
}
.cart-checkout-btn{
  margin-top: 14px; width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: 999px; padding: 14px; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
  text-decoration: none; display: block;
}
.cart-empty-msg{ color: var(--text-muted); line-height: 1.6; }

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--footer-bg); color: var(--bg); padding: 16px 24px;
  display: flex; gap: 16px; align-items: center; justify-content: center;
  flex-wrap: wrap; font-size: 14px;
}
.cookie-banner span{ max-width: 640px; line-height: 1.5; }
.cookie-banner a{ text-decoration: underline; cursor: pointer; color: var(--highlight); }
.cookie-accept{
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 10px 22px; font-weight: 700; cursor: pointer; white-space: nowrap; flex: none;
}

/* ---------- Buttons ---------- */
.btn{
  border-radius: 999px; padding: 14px 28px; font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; display: inline-block; border: none;
}
.btn-primary{ background: var(--accent); color: #fff; }
.btn-primary:hover{ background: var(--accent-hover); color: #fff; }
.btn-outline{ background: transparent; color: var(--link); border: 1.5px solid var(--accent); }
.btn-outline:hover{ background: var(--highlight); }
.btn-small{ padding: 10px 18px; font-size: 13px; }
.btn-block{ width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero{ background: linear-gradient(180deg,var(--bg-alt),var(--bg)); padding: 72px 24px 56px; }
.hero-grid{
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 44px; align-items: center;
}
.eyebrow{ font-family: var(--font-accent); font-size: 24px; color: var(--link); display: block; }
.hero h1{ font-family: var(--font-heading); font-size: 50px; line-height: 1.12; color: var(--text); margin: 8px 0 18px; }
.hero p{ font-size: 17px; color: var(--text-muted); line-height: 1.65; max-width: 480px; }
.hero-actions{ display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-image{
  min-height: 320px; border-radius: 24px; overflow: hidden;
}
.hero-image img{ width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

/* ---------- Features ---------- */
.features{ padding: 52px 24px; background: var(--bg); }
.features-grid{
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px;
}
.feature{ text-align: center; padding: 8px; }
.feature-mark{
  width: 52px; height: 52px; border-radius: 50%; background: var(--highlight); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; color: var(--link);
  font-weight: 700; font-family: var(--font-heading); font-size: 19px;
}
.feature-title{ font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 15px; }
.feature-text{ color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ---------- Section titles ---------- */
.section{ padding: 52px 24px; }
.section-alt{ background: var(--bg-alt); }
.section-title{
  font-family: var(--font-heading); font-size: 32px; color: var(--text);
  text-align: center; margin: 0 0 32px;
}

/* ---------- Category grid ---------- */
.categories-grid{
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px;
}
.category-card{
  text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px; cursor: pointer; display: flex; flex-direction: column;
  gap: 6px; text-decoration: none;
}
.category-label{ font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text); }
.category-desc{ color: var(--text-muted); font-size: 14px; }

/* ---------- Seasonal banner ---------- */
.seasonal-banner{
  max-width: 1160px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 32px; display: grid;
  grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: center;
}
.seasonal-banner h3{ font-family: var(--font-heading); font-size: 26px; color: var(--text); margin: 6px 0; }
.seasonal-banner p{ color: var(--text-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid{
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 18px;
}
.testimonial-card{ background: var(--card); border-radius: 18px; padding: 22px; border: 1px solid var(--border); }
.testimonial-text{ color: var(--text); font-style: italic; line-height: 1.55; margin: 0; }
.testimonial-name{ margin-top: 12px; font-weight: 700; color: var(--link); font-size: 14px; }
.testimonial-role{ color: var(--text-muted); font-size: 13px; }

/* ---------- Gallery ---------- */
.gallery-grid{
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px;
}
.gallery-item{ height: 150px; border-radius: 14px; overflow: hidden; }
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page header (inner pages) ---------- */
.page-wrap{ padding: 64px 24px; max-width: 1160px; margin: 0 auto; }
.page-wrap.narrow{ max-width: 760px; }
.page-wrap.medium{ max-width: 900px; }
.page-wrap.checkout-wrap{ max-width: 720px; min-height: 50vh; }
.page-wrap h1{ font-family: var(--font-heading); font-size: 38px; color: var(--text); margin: 8px 0 12px; }
.page-wrap > .eyebrow{ font-size: 22px; }
.page-lead{ color: var(--text-muted); max-width: 640px; line-height: 1.6; }

/* ---------- Product grid ---------- */
.product-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; margin-top: 32px;
}
.product-card{
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.product-image{ height: 150px; border-radius: 14px; overflow: hidden; }
.product-image img{ width: 100%; height: 100%; object-fit: cover; }
.product-tag{
  align-self: flex-start; background: var(--highlight); color: var(--link);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.product-name{ font-family: var(--font-heading); font-size: 19px; color: var(--text); font-weight: 700; }
.product-desc{ color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.product-footer{ display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-price{ font-weight: 700; color: var(--text); font-size: 16px; }
.add-to-cart{
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: 13px;
}

/* ---------- Articles (Nove ideje) ---------- */
.article-card{
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.article-image{ height: 140px; border-radius: 14px; overflow: hidden; }
.article-image img{ width: 100%; height: 100%; object-fit: cover; }
.article-title{ font-family: var(--font-heading); font-size: 19px; color: var(--text); font-weight: 700; line-height: 1.3; }
.article-excerpt{ color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ---------- Checkout ---------- */
.checkout-summary{ display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.checkout-line{
  display: flex; justify-content: space-between; font-size: 14px; color: var(--text);
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.checkout-total{
  display: flex; justify-content: space-between; font-weight: 700; font-size: 17px;
  color: var(--text); padding-top: 6px;
}
.payment-note{
  background: var(--bg-alt); border-radius: 14px; padding: 16px; color: var(--text);
  font-size: 14px; line-height: 1.5;
}
.state-box{ text-align: center; padding: 40px 20px; }
.state-box h1{ font-family: var(--font-heading); font-size: 36px; color: var(--text); margin: 0; }
.state-box p{ color: var(--text-muted); font-size: 16px; margin-top: 12px; line-height: 1.6; }

/* ---------- Forms ---------- */
.form{ display: flex; flex-direction: column; gap: 14px; }
.form-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea{
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  font-family: var(--font-body); font-size: 14px; width: 100%; background: #fff; color: var(--text);
}
.form textarea{ min-height: 80px; resize: vertical; }
.form .btn{ width: 100%; text-align: center; font-size: 16px; }
.honeypot{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note{
  border-radius: 18px; padding: 28px; text-align: center; background: var(--highlight);
}
.form-note-title{ font-family: var(--font-heading); font-size: 22px; color: var(--text); margin-bottom: 8px; }
.form-note-text{ color: var(--text-muted); font-size: 14px; }
.form-error{
  background: #fbeaea; border: 1px solid #e3b8b8; color: #7a2b2b; border-radius: 12px;
  padding: 12px 16px; font-size: 14px;
}

/* ---------- O nama ---------- */
.about-grid{
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px;
  align-items: center; margin-bottom: 40px;
}
.about-grid p{ color: var(--text-muted); line-height: 1.7; font-size: 16px; }
.about-image{ height: 220px; border-radius: 20px; overflow: hidden; }
.about-image img{ width: 100%; height: 100%; object-fit: cover; }
.timeline{ display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.timeline-item{ display: flex; gap: 16px; }
.timeline-year{ font-family: var(--font-heading); font-weight: 700; color: var(--link); min-width: 56px; }
.timeline-text{ color: var(--text-muted); line-height: 1.6; }
.values-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; }
.value-card{ background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.value-title{ font-weight: 700; color: var(--text); margin-bottom: 6px; }
.value-text{ color: var(--text-muted); font-size: 14px; line-height: 1.5; }
h2.section-h2{ font-family: var(--font-heading); font-size: 26px; color: var(--text); margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact-grid{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.contact-card{ background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
.contact-card-title{ font-weight: 700; color: var(--text); margin-bottom: 10px; }
.contact-card-text{ color: var(--text-muted); line-height: 1.7; font-size: 14px; }
.map-placeholder{
  height: 220px; border-radius: 16px; margin-top: 20px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  font-size: 13px; text-align: center; padding: 16px;
}

/* ---------- FAQ ---------- */
.faq-list{ display: flex; flex-direction: column; gap: 14px; }
.faq-item{ background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.faq-q{ font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: 16px; }
.faq-a{ color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ---------- Legal pages ---------- */
.legal h1{ font-family: var(--font-heading); font-size: 36px; margin: 0 0 20px; color: var(--text); }
.legal h2{ font-family: var(--font-heading); font-size: 22px; margin: 24px 0 10px; color: var(--text); }
.legal p, .legal li{ color: var(--text-muted); line-height: 1.7; }
.legal ul{ line-height: 1.8; padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--footer-bg); color: var(--footer-text); padding: 52px 24px 26px; margin-top: 0; }
.newsletter-box{
  max-width: 1160px; margin: 0 auto 36px; background: var(--footer-bg-alt); border-radius: 20px;
  padding: 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.newsletter-title{ font-family: var(--font-heading); font-size: 22px; color: #fff; margin-bottom: 4px; }
.newsletter-text{ color: var(--footer-muted); font-size: 14px; }
.newsletter-form{ display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input{
  padding: 12px 16px; border-radius: 999px; border: none; font-family: var(--font-body);
  font-size: 14px; min-width: 220px;
}
.newsletter-form button{
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; cursor: pointer;
}
.newsletter-thanks{ color: var(--highlight); font-weight: 700; }

.footer-grid{
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 32px;
}
.footer-col-title{ font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-col p{ font-size: 14px; color: var(--footer-muted); line-height: 1.6; margin: 0; }
.footer-heading{ font-weight: 700; margin-bottom: 10px; color: #fff; }
.footer-link-list{ display: flex; flex-direction: column; }
.footer-link{
  display: block; background: none; border: none; color: var(--footer-muted); font-size: 14px;
  text-align: left; padding: 4px 0; cursor: pointer; text-decoration: none;
}
.footer-link:hover{ color: #fff; }
.footer-bottom{
  max-width: 1160px; margin: 32px auto 0; border-top: 1px solid var(--footer-border); padding-top: 20px;
  font-size: 12px; color: var(--footer-copy); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px){
  .hero-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .seasonal-banner{ grid-template-columns: 1fr; text-align: center; }
  .hero h1{ font-size: 36px; }
  .page-wrap h1{ font-size: 30px; }
}
