/* ==========================================================================
   Babičkina cukráreň — shared stylesheet
   ========================================================================== */

:root{
  --font-heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --bg: #faf6f0;
  --bg-alt: #f5efe4;
  --border: #e3dbcd;
  --border-soft: #ece4d8;

  --heading: #3a2a1e;
  --text: #46362b;
  --text-body: #5c4c3f;
  --muted: #8a7867;
  --muted-2: #7d6c5c;

  --accent: #b5502f;
  --accent-dark: #96401f;
  --gold: #d4a24e;
  --gold-text: #2e2015;
  --brown: #4a3628;
  --brown-darker: #362619;

  --white: #ffffff;
  --radius: 4px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
button{ font-family: inherit; }
h1,h2,h3{ font-family: var(--font-heading); color: var(--heading); }

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

/* ---------- header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,240,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 24px;
}
.brand{ cursor: pointer; text-decoration: none; display: block; }
.brand-name{
  font-family: var(--font-heading); font-style: italic; font-weight: 600;
  font-size: 26px; color: #3d2b1c; line-height: 1;
}
.brand-tag{
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 2px;
}
.nav{ display: flex; gap: 22px; align-items: center; }
.nav a{
  padding: 6px 2px; color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent; font-size: 14px; letter-spacing: 0.02em;
  cursor: pointer; white-space: nowrap;
}
.nav a:hover, .nav a.active{ color: #96341a; border-bottom-color: #b57f56; }
.header-actions{ display: flex; align-items: center; gap: 10px; }
.btn-cart{
  border: 1px solid #3d2b1c; background: transparent; color: #3d2b1c;
  padding: 9px 16px; border-radius: 2px; font-size: 13px; letter-spacing: 0.04em; cursor: pointer;
}
.mobile-toggle{
  border: none; background: transparent; font-size: 22px; line-height: 1;
  cursor: pointer; color: #3d2b1c; display: none;
}
.mobile-nav{
  border-top: 1px solid var(--border); padding: 14px 24px;
  display: none; flex-direction: column; gap: 12px;
}
.mobile-nav a{ text-decoration: none; color: var(--text); font-size: 14px; }
.mobile-nav.open{ display: flex; }

@media (max-width: 860px){
  .nav.desktop-nav{ display: none; }
  .mobile-toggle{ display: inline-block; }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-block; padding: 15px 26px; border-radius: 2px; font-size: 14px;
  letter-spacing: 0.03em; cursor: pointer; text-decoration: none; border: none; text-align: center;
}
.btn-primary{ background: var(--accent); color: #fff; }
.btn-primary:hover{ background: var(--accent-dark); }
.btn-outline{ background: transparent; color: #3d2b1c; border: 1px solid #3d2b1c; }
.btn-outline:hover{ background: rgba(61,43,28,0.06); }
.btn-gold{ background: var(--gold); color: var(--gold-text); border: none; }
.btn-dark{ background: #3d2b1c; color: #fff; border: none; }
.btn-small{ padding: 10px 16px; font-size: 12px; }

/* ---------- cart drawer & modals ---------- */
.overlay{
  position: fixed; inset: 0; background: rgba(30,20,15,0.35); z-index: 80;
  display: none;
}
.overlay.open{ display: block; }
.cart-drawer{
  position: fixed; top: 0; right: -400px; bottom: 0; width: 380px; max-width: 92vw;
  background: #fefcfa; z-index: 81; box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  padding: 28px 24px; overflow-y: auto; transition: right 0.25s ease;
}
.cart-drawer.open{ right: 0; }
.cart-drawer-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cart-drawer-head h3{ font-size: 24px; margin: 0; }
.close-x{ cursor: pointer; font-size: 20px; background: none; border: none; color: var(--text); }
.cart-item{ display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.cart-item img{ width: 56px; height: 56px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.cart-item-name{ font-size: 14px; font-weight: 600; }
.cart-item-price{ font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.qty-row{ display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-btn{ width: 22px; height: 22px; border: 1px solid #d8cebf; background: #fff; cursor: pointer; border-radius: 2px; }
.remove-link{ margin-left: auto; font-size: 12px; color: var(--muted-2); cursor: pointer; text-decoration: underline; background: none; border: none; }
.cart-total-row{ display: flex; justify-content: space-between; padding: 18px 0 6px; font-size: 16px; font-weight: 600; }
.cart-empty{ color: var(--muted-2); font-size: 14px; margin-top: 30px; }
.cart-empty a{ text-decoration: underline; cursor: pointer; }

.modal-overlay{
  position: fixed; inset: 0; background: rgba(30,20,15,0.45); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open{ display: flex; }
.modal-box{ background: #fff; max-width: 460px; width: 100%; padding: 32px; border-radius: 4px; max-height: 90vh; overflow-y: auto; }
.modal-box h3{ font-size: 26px; margin: 0 0 12px; }
.modal-close-line{ text-align: right; margin-top: 14px; }
.modal-close-line span{ font-size: 12px; cursor: pointer; color: var(--muted-2); text-decoration: underline; }

/* ---------- forms ---------- */
form{ display: flex; flex-direction: column; gap: 12px; }
input, textarea{
  padding: 12px 14px; border: 1px solid #d8cebf; border-radius: 2px;
  font-family: var(--font-body); font-size: 14px; width: 100%;
}
textarea{ resize: vertical; }
.form-note{ font-size: 11px; color: var(--muted-2); line-height: 1.5; margin: 0; }
.form-note a{ text-decoration: underline; cursor: pointer; }
.method-row{ display: flex; gap: 8px; }
.method-row .chip{ flex: 1; }
.field-error{ color: var(--accent-dark); font-size: 12px; }
.form-success{ background: var(--bg-alt); border-radius: 4px; padding: 32px; }
.form-success h3{ font-size: 22px; margin: 0 0 8px; }

/* ---------- chips ---------- */
.chip{
  padding: 10px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 13px; cursor: pointer; font-family: var(--font-body);
}
.chip.active{ border-color: var(--accent); background: var(--accent); color: #fff; }
.chip-row{ display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }

/* ---------- hero / generic sections ---------- */
.eyebrow{ font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #a34a29; margin-bottom: 14px; }
.eyebrow-light{ color: #dcb87e; }

.hero{ padding: 56px 24px 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1{ font-size: 52px; line-height: 1.08; margin: 0 0 20px; }
.hero p{ font-size: 16px; line-height: 1.7; color: var(--text-body); max-width: 460px; margin: 0 0 28px; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media, .about-media, .specialty-media{ aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; }
.hero-media img, .about-media img, .specialty-media img{ width: 100%; height: 100%; object-fit: cover; }

.stats-band{ background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid{ padding: 32px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-num{ font-family: var(--font-heading); font-size: 34px; color: var(--accent); }
.stat-label{ font-size: 13px; color: var(--muted-2); margin-top: 4px; }

.section{ padding: 72px 24px; }
.section-title{ font-size: 34px; text-align: center; margin: 0 0 8px; }
.section-sub{ text-align: center; color: var(--muted-2); font-size: 14px; margin: 0 0 40px; }

.cat-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cat-card{ cursor: pointer; text-decoration: none; color: inherit; display: block; }
.cat-img{ aspect-ratio: 1; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.cat-img img{ width: 100%; height: 100%; object-fit: cover; }
.cat-name{ font-family: var(--font-heading); font-size: 20px; }
.cat-desc{ font-size: 13px; color: var(--muted-2); margin-top: 2px; }

.specialty{ background: var(--brown); color: #f4ece1; }
.specialty-inner{ padding: 72px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.specialty h2{ color: #fff; font-size: 36px; margin: 0 0 16px; }
.specialty p{ font-size: 15px; line-height: 1.7; opacity: 0.85; margin: 0 0 24px; max-width: 440px; }

.testi-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card{ background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 26px; }
.testi-quote{ font-family: var(--font-heading); font-style: italic; font-size: 18px; line-height: 1.5; margin: 0 0 14px; color: #45311f; }
.testi-name{ font-size: 13px; font-weight: 600; }
.testi-role{ font-size: 12px; color: var(--muted-2); }

.newsletter-box{
  background: #ecd6c6; border-radius: 4px; padding: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.newsletter-box h3{ font-size: 26px; margin: 0 0 8px; }
.newsletter-box p{ font-size: 14px; color: var(--text-body); margin: 0; }
.newsletter-form{ display: flex; gap: 10px; flex-direction: row; }
.newsletter-form input{ min-width: 220px; }

/* ---------- generic page header ---------- */
.page-main{ max-width: 1240px; margin: 0 auto; padding: 56px 24px 80px; }
.page-main h1{ font-size: 44px; margin: 0 0 32px; max-width: 700px; }

/* ---------- about ---------- */
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.about-grid p{ font-size: 15px; line-height: 1.8; color: var(--text-body); }
.values-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 64px; }
.value-card{ padding: 28px; border: 1px solid var(--border); border-radius: 4px; }
.value-card .title{ font-family: var(--font-heading); font-size: 22px; margin-bottom: 8px; }
.value-card p{ font-size: 14px; line-height: 1.6; color: var(--muted-2); margin: 0; }
.team-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 56px; }
.team-photo{ aspect-ratio: 1; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.team-photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-name{ font-weight: 600; font-size: 15px; }
.team-role{ font-size: 13px; color: var(--muted-2); }
.compliance-box{ background: var(--bg-alt); border-radius: 4px; padding: 32px; font-size: 14px; line-height: 1.7; color: var(--text-body); }

/* ---------- menu / shop products ---------- */
.allergen-info{ background: var(--bg-alt); border-radius: 4px; padding: 28px; font-size: 13px; line-height: 1.7; color: var(--muted-2); }
.allergen-info strong{ color: var(--heading); }

.product-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 48px; }
.product-card{ border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; }
.product-img{ aspect-ratio: 4/3; overflow: hidden; }
.product-img img{ width: 100%; height: 100%; object-fit: cover; }
.product-body{ padding: 18px; }
.product-head{ display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.product-name{ font-family: var(--font-heading); font-size: 19px; }
.product-price{ font-size: 15px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.product-desc{ font-size: 13px; color: var(--muted-2); line-height: 1.5; margin: 8px 0 10px; }
.product-allergen{ font-size: 11px; color: var(--muted-2); }

.shop-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 48px; }
.shop-card{ border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.shop-img{ aspect-ratio: 1; overflow: hidden; }
.shop-img img{ width: 100%; height: 100%; object-fit: cover; }
.shop-body{ padding: 14px; display: flex; flex-direction: column; flex: 1; }
.shop-name{ font-family: var(--font-heading); font-size: 17px; margin-bottom: 4px; }
.shop-desc{ font-size: 12px; color: var(--muted-2); line-height: 1.4; margin: 0 0 10px; flex: 1; }
.shop-foot{ display: flex; justify-content: space-between; align-items: center; }
.shop-price{ font-size: 14px; font-weight: 600; color: var(--accent); }
.add-btn{ padding: 7px 12px; background: #3d2b1c; color: #fff; border: none; border-radius: 2px; font-size: 12px; cursor: pointer; }

.info-cards{ display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.info-card{ background: var(--bg-alt); border-radius: 4px; padding: 22px; }
.info-card .title{ font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.info-card p{ font-size: 13px; color: var(--text-body); line-height: 1.6; margin: 0; }

/* ---------- wedding ---------- */
.wedding-hero{ background: var(--brown); color: #fff; text-align: center; }
.wedding-hero-inner{ max-width: 1240px; margin: 0 auto; padding: 64px 24px; }
.wedding-hero h1{ color: #fff; font-size: 44px; margin: 0 0 16px; }
.wedding-hero p{ max-width: 560px; margin: 0 auto; font-size: 15px; line-height: 1.7; opacity: 0.85; }

.steps-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step{ text-align: center; }
.step-num{
  width: 44px; height: 44px; border-radius: 50%; background: #ecd6c6;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  font-family: var(--font-heading); font-size: 18px; color: var(--accent);
}
.step .title{ font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.step p{ font-size: 13px; color: var(--muted-2); line-height: 1.5; margin: 0; }

.styles-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.style-card{ border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; }
.style-img{ aspect-ratio: 3/4; overflow: hidden; }
.style-img img{ width: 100%; height: 100%; object-fit: cover; }
.style-body{ padding: 20px; }
.style-name{ font-family: var(--font-heading); font-size: 20px; margin-bottom: 6px; }
.style-desc{ font-size: 13px; color: var(--muted-2); line-height: 1.5; margin: 0 0 10px; }
.style-price{ font-size: 14px; font-weight: 600; color: var(--accent); }

.faq-wrap{ max-width: 820px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--border); padding: 16px 0; cursor: pointer; }
.faq-q{ display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; background: none; border: none; width: 100%; text-align: left; padding: 0; cursor: pointer; color: var(--text); }
.faq-a{ font-size: 14px; color: var(--text-body); line-height: 1.6; margin: 10px 0 0; display: none; }
.faq-item.open .faq-a{ display: block; }

/* ---------- blog ---------- */
.article-row{ border-bottom: 1px solid var(--border); padding: 26px 0; display: grid; grid-template-columns: 160px 1fr; gap: 20px; }
.article-img{ aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; }
.article-img img{ width: 100%; height: 100%; object-fit: cover; }
.article-date{ font-size: 11px; color: #a34a29; margin-bottom: 4px; }
.article-title{ font-family: var(--font-heading); font-size: 22px; margin-bottom: 8px; cursor: pointer; }
.article-teaser{ font-size: 14px; color: var(--text-body); line-height: 1.6; margin: 0; }
.article-body{ font-size: 14px; color: var(--text-body); line-height: 1.7; margin: 12px 0 0; display: none; }
.article-row.open .article-body{ display: block; }
.toggle-link{ font-size: 12px; text-decoration: underline; cursor: pointer; color: var(--muted-2); display: inline-block; margin-top: 8px; background: none; border: none; padding: 0; }

/* ---------- contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-block{ margin-bottom: 28px; }
.contact-block .title{ font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.contact-block p{ font-size: 14px; color: var(--text-body); line-height: 1.6; margin: 0; }
.hours-row{ display: flex; justify-content: space-between; font-size: 14px; color: var(--text-body); padding: 5px 0; max-width: 280px; border-bottom: 1px solid var(--border-soft); }
.map-box{
  aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; position: relative;
  background: #dfe6dc; display: flex; align-items: center; justify-content: center;
}
.map-box iframe{ width: 100%; height: 100%; border: 0; }
.map-caption{ position: absolute; bottom: 10px; left: 10px; font-size: 11px; background: rgba(255,255,255,0.9); padding: 5px 9px; border-radius: 3px; }

/* ---------- legal ---------- */
.legal-content{ font-size: 14px; line-height: 1.75; color: var(--text-body); }
.legal-content h1{ font-size: 34px; margin: 0 0 24px; }
.legal-content p{ margin: 0 0 16px; }
.legal-pane{ display: none; }
.legal-pane.active{ display: block; }

/* ---------- footer ---------- */
.site-footer{ background: var(--brown); color: #d9cec2; }
.footer-grid{ max-width: 1240px; margin: 0 auto; padding: 56px 24px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand{ font-family: var(--font-heading); font-style: italic; font-size: 22px; color: #fff; margin-bottom: 10px; }
.footer-grid p{ font-size: 12px; line-height: 1.7; opacity: 0.75; max-width: 280px; margin: 0; }
.footer-col-title{ font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-links{ display: flex; flex-direction: column; gap: 8px; font-size: 13px; opacity: 0.8; }
.footer-links a{ text-decoration: none; color: inherit; cursor: pointer; }
.footer-contact{ font-size: 13px; opacity: 0.8; line-height: 1.8; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 24px; text-align: center; font-size: 12px; opacity: 0.6; }

/* ---------- cookie banner ---------- */
.cookie-banner{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--brown-darker);
  color: #fff; padding: 18px 24px; display: none; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.cookie-banner.open{ display: flex; }
.cookie-banner p{ font-size: 13px; line-height: 1.5; max-width: 600px; margin: 0; opacity: 0.9; }
.cookie-banner p a{ text-decoration: underline; cursor: pointer; }
.cookie-actions{ display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn{ padding: 10px 16px; border-radius: 2px; font-size: 12px; cursor: pointer; border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff; }
.cookie-btn.accept{ background: var(--gold); border: none; color: var(--gold-text); font-weight: 600; }

/* ---------- 404 ---------- */
.notfound{ text-align: center; padding: 120px 24px; }
.notfound h1{ font-size: 90px; margin: 0; color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .cat-grid{ grid-template-columns: repeat(2,1fr); }
  .specialty-inner{ grid-template-columns: 1fr; }
  .testi-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .values-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: repeat(3,1fr); }
  .product-grid{ grid-template-columns: repeat(2,1fr); }
  .shop-grid{ grid-template-columns: repeat(2,1fr); }
  .info-cards{ grid-template-columns: 1fr; }
  .steps-grid{ grid-template-columns: repeat(2,1fr); }
  .styles-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .article-row{ grid-template-columns: 100px 1fr; }
  .newsletter-box{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px){
  .hero h1{ font-size: 38px; }
  .page-main h1{ font-size: 32px; }
  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .cat-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: 1fr; }
  .shop-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .article-row{ grid-template-columns: 1fr; }
  .newsletter-form{ flex-direction: column; width: 100%; }
  .newsletter-form input{ min-width: 0; }
}
