/* Kávový Príbeh — hlavný štýl */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --cream: #F8F1E7;
  --cream-card: #FCF8F1;
  --cream-2: #F2E6D3;
  --border: #E4D5BC;
  --dark: #2B1B12;
  --brown-text: #4A2E1F;
  --brown-text-2: #6F4A32;
  --muted: #8A7A64;
  --accent: #A85A2A;
  --accent-hover: #8A4A22;
  --accent-2: #C4793D;
  --footer-text: #D8C8AE;
  --input-border: #C4B090;
  --font-heading: Georgia, 'Times New Roman', 'Cormorant Garamond', serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
}

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

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

.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.container-checkout { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

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

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}
.btn-dark { background: var(--dark); color: var(--cream); }
.btn-dark:hover { background: #402614; color: var(--cream); }
.btn-outline { background: transparent; border: 1px solid var(--dark); color: var(--dark); }
.btn-outline:hover { background: rgba(43,27,18,0.06); color: var(--dark); }
.btn-accent { background: var(--accent); color: var(--cream); }
.btn-accent:hover { background: var(--accent-hover); color: var(--cream); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 999px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; cursor: pointer; }
.brand .brand-name { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--dark); }
.brand .brand-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a.active,
.main-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.cart-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--dark);
  border-radius: 999px;
  padding: 9px 18px;
  background: none;
  font-family: var(--font-body);
}
.cart-toggle .cart-label { font-size: 14px; font-weight: 600; color: var(--dark); }
.cart-badge {
  background: var(--accent);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.cart-badge.show { display: flex; }

/* ===== TOAST ===== */
@keyframes kp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 80;
  background: var(--dark);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(43,27,18,0.25);
  animation: kp-fade 0.25s ease;
  display: none;
}
.toast.show { display: block; }

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(43,27,18,0.45);
  z-index: 60;
  display: none;
}
.cart-overlay.show { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: -440px; bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream-card);
  z-index: 70;
  box-shadow: -12px 0 32px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  transition: right 0.25s ease;
}
.cart-drawer.open { right: 0; }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--border);
}
.cart-drawer-head h2 { font-size: 22px; }
.cart-drawer-close { cursor: pointer; font-size: 22px; color: var(--brown-text-2); background: none; border: none; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--brown-text-2); font-size: 14px; }
.cart-empty a { text-decoration: underline; cursor: pointer; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cream-2); }
.cart-line-thumb {
  width: 64px; height: 64px; border-radius: 8px; flex: none;
  object-fit: cover; background: var(--cream-2);
}
.cart-line-body { flex: 1; }
.cart-line-name { font-weight: 600; font-size: 14px; }
.cart-line-unit { font-size: 12px; color: var(--brown-text-2); }
.cart-line-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn {
  cursor: pointer; width: 22px; height: 22px; border: 1px solid var(--accent-2);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: none; padding: 0; line-height: 1;
}
.qty-val { font-size: 13px; font-weight: 600; }
.line-remove { margin-left: auto; cursor: pointer; font-size: 12px; color: var(--accent); text-decoration: underline; background: none; border: none; padding: 0; }
.cart-line-total { font-weight: 700; font-size: 14px; white-space: nowrap; }
.cart-drawer-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; color: var(--brown-text-2); }
.cart-ship-note { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 14px; color: var(--muted); }

/* ===== SECTIONS ===== */
.section { padding: 70px 24px; }
.section-tight { padding: 0 24px 70px; }
.section-title-wrap { text-align: center; margin-bottom: 40px; }
.section-title-wrap h2 { font-size: 36px; margin: 8px 0; }

.hero {
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  padding: 64px 24px 80px;
}
.hero .container { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 14px 0; }
.hero p { font-size: 17px; color: var(--brown-text); max-width: 480px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { height: 380px; border-radius: 20px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.category-card {
  cursor: pointer; background: var(--cream-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; text-decoration: none; color: inherit; display: block;
  transition: transform 0.15s;
}
.category-card:hover { transform: translateY(-3px); }
.category-letter {
  width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); color: var(--accent);
  font-family: var(--font-heading); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.category-name { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.category-desc { font-size: 13.5px; color: var(--brown-text-2); }

.services-section { background: var(--dark); padding: 64px 24px; }
.services-section .eyebrow { color: var(--accent-2); }
.services-section h2 { color: var(--cream); }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.service-card { background: rgba(248,241,231,0.05); border: 1px solid rgba(248,241,231,0.15); border-radius: 16px; padding: 24px; }
.service-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.service-desc { font-size: 13.5px; color: var(--footer-text); }

.seasonal-banner {
  background: var(--cream-2); border-radius: 20px; padding: 40px;
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 32px; align-items: center;
}
.seasonal-banner h2 { font-size: 30px; margin: 10px 0; }
.seasonal-banner p { font-size: 15px; color: var(--brown-text); margin-bottom: 20px; }
.seasonal-photo { height: 180px; border-radius: 14px; overflow: hidden; }
.seasonal-photo img { width: 100%; height: 100%; object-fit: cover; }

.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.row-head h2 { font-size: 32px; }
.link-more { cursor: pointer; font-size: 14px; color: var(--accent); text-decoration: underline; }

/* Product card */
.product-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-photo { position: relative; height: 150px; overflow: hidden; background: var(--cream-2); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.seasonal-badge {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--cream);
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-weight: 600; font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.product-desc { font-size: 12.5px; color: var(--brown-text-2); margin-bottom: 10px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-weight: 700; font-size: 16px; color: var(--dark); }
.product-unit { font-size: 11px; color: var(--muted); }
.add-to-cart-btn {
  background: var(--dark); color: var(--cream); padding: 9px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-body);
}
.add-to-cart-btn:hover { background: #402614; }

/* Tips */
.tip-card { cursor: pointer; background: var(--cream-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.tip-photo { height: 130px; overflow: hidden; }
.tip-photo img { width: 100%; height: 100%; object-fit: cover; }
.tip-body { padding: 18px; }
.tip-readtime { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; }
.tip-title { font-weight: 600; font-size: 15px; }
.tip-excerpt { font-size: 13px; color: var(--brown-text-2); margin-top: 6px; }
.tip-detail-photo { height: 260px; border-radius: 16px; margin: 20px 0; overflow: hidden; }
.tip-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.tip-detail-body { font-size: 16px; color: var(--brown-text); white-space: pre-line; }
.back-link { cursor: pointer; font-size: 13px; color: var(--accent); text-decoration: underline; }

.testimonials-section { background: var(--cream-2); padding: 64px 24px; }
.testimonial-card { background: var(--cream-card); border-radius: 14px; padding: 24px; border: 1px solid var(--border); }
.testimonial-stars { color: var(--accent-2); font-size: 14px; margin-bottom: 10px; }
.testimonial-text { font-size: 14px; color: var(--brown-text); margin-bottom: 14px; }
.testimonial-name { font-size: 13px; font-weight: 600; color: var(--dark); }

.newsletter-section { max-width: 1220px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.newsletter-section h2 { font-size: 28px; margin-bottom: 10px; }
.newsletter-section p { font-size: 14px; color: var(--brown-text-2); margin: 0 0 22px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px; border-radius: 999px; border: 1px solid var(--input-border);
  min-width: 240px; font-size: 14px; font-family: var(--font-body);
}

/* Menu page */
.menu-hero { text-align: center; margin-bottom: 40px; }
.menu-hero h1 { font-size: 40px; margin: 8px 0; }
.menu-hero p { font-size: 14px; color: var(--brown-text-2); }
.menu-photo { height: 220px; border-radius: 16px; overflow: hidden; margin-bottom: 40px; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-section { margin-bottom: 36px; }
.menu-section h3 { font-size: 22px; color: var(--accent); border-bottom: 2px solid var(--border); padding-bottom: 8px; margin-bottom: 14px; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.menu-item-name { font-weight: 600; font-size: 15px; }
.menu-item-desc { font-size: 12.5px; color: var(--brown-text-2); }
.menu-item-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.menu-note { background: var(--cream-2); border-radius: 14px; padding: 20px 24px; font-size: 13px; color: var(--brown-text-2); }

/* Shop */
.shop-hero { text-align: center; margin-bottom: 30px; }
.shop-hero h1 { font-size: 38px; margin: 8px 0; }
.shop-hero p { font-size: 14px; color: var(--brown-text-2); max-width: 560px; margin: 0 auto; }
.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  cursor: pointer; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--cream-card); color: var(--brown-text); border: 1px solid var(--border);
  font-family: var(--font-body);
}
.filter-btn.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }

/* About */
.about-hero { text-align: center; margin-bottom: 44px; }
.about-hero h1 { font-size: 40px; margin: 8px 0; }
.about-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; margin-bottom: 50px; }
.about-photo { height: 320px; border-radius: 18px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-intro p { font-size: 15.5px; color: var(--brown-text); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; margin-bottom: 50px; }
.value-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.value-title { font-family: var(--font-heading); font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--accent); }
.value-desc { font-size: 13.5px; color: var(--brown-text); }
.team-title { font-size: 26px; margin-bottom: 20px; text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; }
.team-card { text-align: center; }
.team-photo { width: 100%; height: 150px; border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 600; font-size: 14.5px; }
.team-role { font-size: 12.5px; color: var(--accent); }

/* Contact */
.contact-hero { text-align: center; margin-bottom: 40px; }
.contact-hero h1 { font-size: 40px; margin: 8px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 40px; }
.contact-photo { height: 220px; border-radius: 16px; margin-bottom: 24px; overflow: hidden; position: relative; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo-caption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(43,27,18,0.7); color: var(--cream);
  font-size: 12px; padding: 6px 12px; border-radius: 6px;
}
.contact-info p { margin: 0 0 4px; font-size: 14.5px; color: var(--brown-text); }
.contact-info p.strong { font-weight: 600; color: var(--dark); }
.contact-form-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.contact-form-card h3 { font-size: 22px; margin-bottom: 18px; }

.field-stack { display: flex; flex-direction: column; gap: 12px; }
.field-stack input, .field-stack textarea, .field-stack select {
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--input-border);
  font-size: 14px; font-family: var(--font-body); width: 100%;
}
.field-stack textarea { resize: vertical; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; }
.field-label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.option-row { display: flex; gap: 10px; flex-wrap: wrap; }
.option-btn {
  cursor: pointer; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--cream-card); color: var(--brown-text); border: 1px solid var(--input-border);
  font-family: var(--font-body);
}
.option-btn.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.small-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.submit-btn { text-align: center; background: var(--dark); color: var(--cream); padding: 13px; border-radius: 999px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-body); font-size: 15px; margin-top: 8px; }
.submit-btn:hover { background: #402614; }

/* Checkout */
.checkout-title { font-size: 36px; margin: 0 0 24px; text-align: center; }
.order-summary { background: var(--cream-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 26px; }
.order-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.order-total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 700; font-size: 16px; }
.empty-cart-note { text-align: center; padding: 60px 0; color: var(--brown-text-2); }
.order-success { text-align: center; padding: 60px 0; }
.order-success .checkmark { font-size: 48px; margin-bottom: 16px; color: var(--accent); }
.order-success h1 { font-size: 30px; margin: 0 0 12px; }
.order-success p { font-size: 14.5px; color: var(--brown-text-2); margin: 0 0 6px; }

/* Legal pages */
.legal-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.legal-tab {
  cursor: pointer; padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--cream-card); color: var(--brown-text); border: 1px solid var(--border);
}
.legal-tab.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.legal-title { font-size: 32px; margin: 0 0 20px; }
.legal-body { font-size: 14.5px; color: var(--brown-text); white-space: pre-line; }

/* Footer */
.site-footer { background: var(--dark); color: var(--footer-text); padding: 56px 24px 26px; }
.footer-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 32px; margin-bottom: 36px; }
.footer-brand { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--cream); margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.social-circle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(216,200,174,0.4); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--footer-text); }
.footer-col-title { font-weight: 600; color: var(--cream); margin-bottom: 12px; font-size: 14px; }
.footer-link { display: block; cursor: pointer; font-size: 13px; margin-bottom: 9px; color: var(--footer-text); }
.footer-link:hover { color: var(--cream); }
.footer-contact p { font-size: 13px; margin: 0 0 8px; }
.footer-bottom {
  max-width: 1220px; margin: 0 auto; border-top: 1px solid rgba(216,200,174,0.2); padding-top: 20px;
  font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--dark); color: #F0E6D6;
  padding: 18px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
.cookie-banner.hide { display: none; }
.cookie-text { font-size: 13px; max-width: 640px; }
.cookie-text a { text-decoration: underline; cursor: pointer; color: var(--accent-2); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { cursor: pointer; padding: 10px 18px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--footer-text); background: none; color: #F0E6D6; font-family: var(--font-body); }
.cookie-btn.accept { background: var(--accent-2); color: var(--dark); border-color: var(--accent-2); }

/* Mobile nav toggle */
.nav-toggle { display: none; }

.form-msg { display:none; margin-top:12px; padding:12px 14px; border-radius:8px; font-size:13.5px; }
.form-msg.show { display:block; }
.form-msg.ok { background:#E7F3E4; color:#2C5E2A; border:1px solid #B9DDB4; }
.form-msg.err { background:#FBE7E4; color:#7A2A1F; border:1px solid #E9BDB4; }

@media (max-width: 860px) {
  .hero .container, .about-intro, .contact-grid, .seasonal-banner { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: 16px; }
}
