/* Kvetinový obchod — shared stylesheet */

:root {
  --bg: #FAF6EE;
  --text: #2B2A22;
  --text-muted: #4A4636;
  --text-soft: #5B5643;
  --text-faint: #8A8368;
  --primary: #3F5A45;
  --primary-dark: #2E3B2A;
  --accent: #6F8F63;
  --pink: #E9C6C1;
  --pink-text: #3F2A28;
  --sage: #B9CBA9;
  --tan: #F0D9BC;
  --border: #E4DCC8;
  --border2: #EDE5D0;
  --border3: #DCD2B8;
  --card-bg: #F1E9D8;
  --footer-text: #D9E3D2;
  --footer-muted: #AEC2A4;
  --footer-border: #435243;
  --danger: #B08578;
  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

input, textarea, select, button { font-family: var(--font-body); }

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

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

.page-body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-name { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--primary); }

.desktop-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.desktop-nav a {
  color: #5B5646; font-weight: 500; border-bottom: 2px solid transparent;
  padding-bottom: 4px; white-space: nowrap;
}
.desktop-nav a:hover { color: var(--primary); }
.desktop-nav a.active { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.cart-btn {
  position: relative; background: var(--primary); color: var(--bg); border: none;
  border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.cart-badge {
  background: var(--pink); color: var(--pink-text); border-radius: 999px;
  min-width: 20px; height: 20px; padding: 0 5px; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-badge[hidden] { display: none; }

.mobile-toggle {
  display: none; background: none; border: 1px solid var(--border3); border-radius: 8px;
  width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-toggle .bars { width: 18px; display: flex; flex-direction: column; gap: 4px; }
.mobile-toggle .bars span { height: 2px; background: var(--primary); display: block; }

.mobile-menu {
  border-top: 1px solid var(--border); padding: 14px 24px; display: none;
  flex-direction: column; gap: 14px; font-size: 15px; background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; font-size: 15px; font-weight: 600;
  padding: 14px 26px; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-sm { padding: 10px; font-size: 13px; width: 100%; }
.btn-tan { background: var(--tan); color: #2E3B2A; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--container); margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--accent); font-weight: 600; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 14px 0 18px; }
.hero p { font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 480px; margin: 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-image {
  aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; background: var(--card-bg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

/* ---------- Feature strip ---------- */
.features {
  max-width: var(--container); margin: 0 auto; padding: 20px 24px 50px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.feature-card { background: var(--card-bg); border-radius: 16px; padding: 22px; }
.feature-dot { width: 34px; height: 34px; border-radius: 999px; margin-bottom: 12px; }
.feature-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--text-soft); }

/* ---------- Section headers ---------- */
.section { max-width: var(--container); margin: 0 auto; padding: 20px 24px 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; }
.section-link { font-size: 14px; color: var(--primary); cursor: pointer; font-weight: 600; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--border2); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.product-photo { aspect-ratio: 4/3; background: var(--card-bg); overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
  position: absolute; top: 10px; left: 10px; background: var(--pink); color: var(--pink-text);
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; z-index: 2;
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-weight: 600; font-size: 15px; color: #2E3B2A; }
.product-desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.product-price { font-size: 14px; color: var(--accent); font-weight: 700; }
.product-add { margin-top: auto; }

/* ---------- Category tiles ---------- */
.category-section { background: var(--card-bg); padding: 56px 24px; }
.category-section h2 { font-size: 28px; text-align: center; margin: 0 0 24px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: var(--container); margin: 0 auto; }
.category-tile { background: #fff; border-radius: 16px; padding: 24px; text-align: center; cursor: pointer; }
.category-tile-title { font-weight: 700; font-size: 16px; color: #2E3B2A; margin-bottom: 6px; }
.category-tile-link { font-size: 13px; color: var(--accent); }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border: 1px solid var(--border2); border-radius: 16px; padding: 22px; }
.testimonial-text { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0 0 14px; }
.testimonial-name { font-size: 13px; font-weight: 600; color: #2E3B2A; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--primary); padding: 48px 24px; }
.newsletter-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter h2 { font-size: 24px; color: var(--bg); margin: 0 0 10px; }
.newsletter p { color: var(--footer-text); font-size: 14px; margin: 0 0 20px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 12px 16px; border-radius: 999px; border: none; font-size: 14px;
}
.newsletter-success { color: var(--bg); font-size: 14px; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border3);
  background: #fff; color: #3F3A2C; cursor: pointer; font-size: 14px;
}
.filter-btn.active { border: 1px solid var(--primary); background: var(--primary); color: var(--bg); }

/* ---------- Page header (catalog / legal) ---------- */
.page-section { max-width: var(--container); margin: 0 auto; padding: 48px 24px 60px; }
.page-section-narrow { max-width: 800px; margin: 0 auto; padding: 48px 24px 70px; }
.page-section-legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 70px; font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.page-section-legal h1 { font-size: 32px; margin-bottom: 8px; }
.page-section-legal h3 { color: #2E3B2A; margin-top: 24px; }
.back-link { font-size: 13px; color: var(--accent); font-weight: 600; cursor: pointer; }
.page-title { font-size: 36px; margin: 12px 0 10px; }
.page-lead { font-size: 15px; color: var(--text-muted); max-width: 600px; margin: 0 0 24px; }

/* ---------- Care accordion ---------- */
.care-list { display: flex; flex-direction: column; gap: 12px; }
.care-item { background: #fff; border: 1px solid var(--border2); border-radius: 14px; padding: 20px; cursor: pointer; }
.care-item-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.care-item-title { font-weight: 600; font-size: 16px; color: #2E3B2A; }
.care-item-plus { font-size: 20px; color: var(--accent); transition: transform .15s ease; }
.care-item.open .care-item-plus { transform: rotate(45deg); }
.care-item-summary { font-size: 13px; color: var(--accent); margin-top: 6px; }
.care-item-body { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin: 14px 0 0; display: none; }
.care-item.open .care-item-body { display: block; }

/* ---------- About ---------- */
.about-hero { aspect-ratio: 16/7; border-radius: 20px; overflow: hidden; margin-bottom: 24px; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-section-narrow p { font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 14px; }
.team-photo { aspect-ratio: 1; border-radius: 999px; overflow: hidden; margin: 0 auto 10px; width: 140px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member { text-align: center; }
.team-name { font-weight: 600; font-size: 14px; }
.team-role { font-size: 12px; color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { max-width: 1000px; margin: 0 auto; padding: 48px 24px 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.contact-map { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; margin-top: 20px; border: 0; width: 100%; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack input, .form-stack textarea {
  padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border3); font-size: 14px; width: 100%;
}
.form-stack textarea { resize: vertical; }
.form-row { display: flex; gap: 12px; }
.form-row .zip { width: 120px; flex: none; }
.form-success { background: var(--card-bg); border-radius: 16px; padding: 24px; font-size: 14px; color: #2E3B2A; }
.pay-options { margin-top: 6px; }
.pay-options-title { font-size: 14px; font-weight: 600; color: #2E3B2A; margin-bottom: 8px; }
.pay-option { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; cursor: pointer; }
.legal-note { font-size: 12px; color: var(--text-faint); text-align: center; }

/* ---------- Cart & checkout ---------- */
.cart-section { max-width: 900px; margin: 0 auto; padding: 48px 24px 70px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--accent); }
.cart-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.cart-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border2); border-radius: 14px; padding: 14px; }
.cart-item-photo { width: 70px; height: 70px; border-radius: 10px; background: var(--card-bg); flex-shrink: 0; overflow: hidden; }
.cart-item-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; color: #2E3B2A; }
.cart-item-subtotal { font-size: 13px; color: var(--accent); }
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border3); background: #fff; cursor: pointer; }
.qty-value { min-width: 16px; text-align: center; font-size: 14px; }
.remove-btn { background: none; border: none; color: var(--danger); font-size: 13px; cursor: pointer; }
.cart-summary { background: var(--card-bg); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.summary-hint { font-size: 12px; color: var(--accent); }
.summary-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; color: #2E3B2A; border-top: 1px solid var(--border3); padding-top: 10px; margin-top: 4px; }
.checkout-section { max-width: 700px; margin: 0 auto; padding: 48px 24px 70px; }
.order-confirm { text-align: center; padding: 40px 0; }
.order-confirm h1 { font-size: 30px; margin: 0 0 12px; }
.checkout-total { background: var(--card-bg); border-radius: 14px; padding: 16px; display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; color: #2E3B2A; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: var(--footer-text); padding: 48px 24px 24px; margin-top: 20px; }
.footer-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.footer-brand { font-family: var(--font-heading); font-size: 19px; color: var(--bg); margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.7; color: var(--footer-muted); }
.footer-col-title { font-weight: 600; color: var(--bg); margin-bottom: 10px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a { color: var(--footer-text); cursor: pointer; }
.footer-links a:hover { color: var(--tan); }
.footer-contact { font-size: 13px; line-height: 1.8; color: var(--footer-muted); }
.footer-bottom {
  max-width: var(--container); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--footer-border);
  font-size: 12px; color: #8FA485; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary-dark); color: var(--footer-text);
  padding: 16px 24px; z-index: 100; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 13px; max-width: 600px; margin: 0; }
.cookie-banner a { color: var(--tan); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-decline { background: none; border: 1px solid var(--accent); color: var(--footer-text); padding: 9px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.cookie-accept { background: var(--tan); border: none; color: #2E3B2A; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--primary); color: var(--bg);
  padding: 12px 20px; border-radius: 10px; font-size: 14px; z-index: 200; opacity: 0;
  transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 10px 16px; z-index: 300; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
