/* OrganicaPece.shop — hlavní stylopis */
:root {
  --bg: #FAF6EE;
  --bg-alt: #F1EAD9;
  --bg-alt2: #E7DFCB;
  --text: #2E2B22;
  --text-muted: #6E6A57;
  --text-body: #3B3826;
  --border: #E1D8C4;
  --green: #6E7C4E;
  --green-dark: #55613B;
  --green-light: #97A87E;
  --terracotta: #A9744F;
  --white: #FFFFFF;
  --footer-bg: #2E2B22;
  --footer-text: #E7E2D3;
  --footer-link: #C9C4B2;
  --footer-border: #4A4636;
  --footer-muted: #8A8571;
  --font-heading: Georgia, 'Times New Roman', Cambria, serif;
  --font-body: 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { 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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
input, select, textarea, button { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; margin: 0; }
p { margin: 0; }
button { font-family: var(--font-body); }
.container { max-width: 1400px; margin: 0 auto; width: 100%; padding: 0 32px; }
.container-narrow { max-width: 800px; margin: 0 auto; width: 100%; padding: 0 32px; }
.container-md { max-width: 1000px; margin: 0 auto; width: 100%; padding: 0 32px; }
.container-lg { max-width: 1100px; margin: 0 auto; width: 100%; padding: 0 32px; }
.container-blog { max-width: 1300px; margin: 0 auto; width: 100%; padding: 0 32px; }
.container-post { max-width: 760px; margin: 0 auto; width: 100%; padding: 0 32px; }
.container-product { max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; max-width: 1400px; margin: 0 auto; }
.logo { font-family: var(--font-heading); font-size: 26px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.main-nav a { padding: 6px 2px; font-size: 14.5px; color: var(--text); white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.search-form { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 2px; background: var(--white); overflow: hidden; }
.search-form input { border: none; outline: none; padding: 9px 10px; font-size: 13.5px; width: 160px; background: transparent; color: var(--text); }
.search-form button { border: none; background: var(--green); color: var(--white); padding: 9px 14px; font-size: 13px; cursor: pointer; }
.header-link { background: none; border: none; padding: 0; cursor: pointer; font-size: 14px; color: var(--text); white-space: nowrap; }
a.header-link { display: inline-block; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-badge { background: var(--terracotta); color: var(--white); border-radius: 50%; min-width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; padding: 0 4px; }
.mobile-toggle { display: none; background: none; border: 1px solid var(--text); padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--text); }
.mobile-panel { display: none; padding: 16px 24px 22px; border-top: 1px solid var(--border); background: var(--white); flex-direction: column; gap: 4px; }
.mobile-panel.open { display: flex; }
.mobile-panel a { display: block; padding: 10px 2px; text-align: left; font-size: 15px; color: var(--text); border-bottom: 1px solid #F1EAD9; }
.mobile-panel .search-form { margin-bottom: 10px; }
.mobile-panel .search-form input { flex: 1; padding: 11px 10px; font-size: 14px; }
.mobile-panel .search-form button { padding: 11px 16px; }

@media (max-width: 860px) {
  .main-nav, .header-actions .search-form { display: none; }
  .mobile-toggle { display: inline-block; }
}

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin: 0 0 6px; }
.breadcrumb a { color: var(--text-muted); text-decoration: underline; }

/* Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; padding: 70px 32px; overflow: hidden; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(46,43,34,0.42); }
.hero-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; width: 100%; }
.hero-content h1 { font-size: 54px; line-height: 1.1; color: var(--white); margin: 0 0 20px; }
.hero-content p { font-size: 17px; line-height: 1.6; color: var(--white); margin: 0 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; border: none; padding: 15px 30px; font-size: 15px; letter-spacing: 0.02em; cursor: pointer; text-align: center; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--text); border: 1px solid var(--text); padding: 13px 22px; font-size: 14px; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }

section.section { padding: 70px 32px; }
section.section-tight { padding: 0 32px 70px; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 34px; margin: 0 0 8px; }
.section-sub { font-size: 15px; color: var(--text-muted); margin: 0 0 36px; }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }

/* Grids */
.grid-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.grid-advantages { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.grid-blog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* Category card */
.card { background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; text-align: left; }
.card-photo { aspect-ratio: 1/1; background-size: cover; background-position: center; }
.card-photo-16-10 { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.card-body { padding: 18px; }
.card-body h3 { font-size: 20px; margin: 0 0 6px; }
.card-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* Product card */
.product-card { background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; }
.product-card .card-photo { display: block; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 15.5px; margin: 0; font-weight: 600; }
.product-card h3 a { color: var(--text); }
.product-card .desc { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; flex: 1; }
.product-card .meta { font-size: 11.5px; color: var(--text-muted); margin: 0; }
.product-card .price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.price { font-size: 15.5px; font-weight: 600; }

/* Process steps */
.steps-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.step { flex: 1 1 180px; max-width: 220px; text-align: center; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 20px; margin: 0 auto 14px; }
.step h3 { font-size: 15.5px; margin: 0 0 8px; }
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Advantages */
.advantage-icon { width: 38px; height: 38px; background: var(--green-light); border-radius: 0 50% 0 50%; margin-bottom: 16px; }
.advantage h3 { font-size: 16.5px; margin: 0 0 8px; }
.advantage p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* Blog card */
.blog-card { background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; }
.blog-card .body { padding: 18px; }
.blog-card .date { font-family: 'Courier New', monospace; font-size: 11px; color: var(--text-muted); }
.blog-card h3 { font-size: 19px; margin: 8px 0; }
.blog-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Catalog layout */
.catalog-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.filters { flex: 1 1 260px; min-width: 240px; background: var(--white); border: 1px solid var(--border); padding: 22px; }
.filters h2 { font-size: 16px; margin: 0 0 18px; }
.filters label { font-size: 12.5px; color: var(--text-muted); display: block; margin-bottom: 6px; }
.filters select, .filters input[type=range] { width: 100%; padding: 9px; border: 1px solid var(--border); background: var(--white); font-size: 13.5px; margin-bottom: 18px; }
.filters input[type=range] { padding: 0; }
.filters .checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 20px; cursor: pointer; }
.filters .reset-btn { width: 100%; background: transparent; border: 1px solid var(--text); padding: 11px; font-size: 13.5px; cursor: pointer; }
.catalog-results { flex: 3 1 600px; min-width: 280px; }
.results-count { font-size: 13.5px; color: var(--text-muted); margin: 0 0 20px; }
.empty-state { padding: 60px 20px; text-align: center; background: var(--white); border: 1px solid var(--border); }
.empty-state p { font-size: 15px; color: var(--text-muted); margin: 0 0 16px; }

/* Product page */
.product-detail { display: flex; flex-wrap: wrap; gap: 44px; }
.product-gallery { flex: 1 1 380px; min-width: 280px; }
.product-gallery .main-photo { aspect-ratio: 1/1; background-size: cover; background-position: center; margin-bottom: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbs .thumb { aspect-ratio: 1/1; background-size: cover; background-position: center; }
.product-info { flex: 1 1 380px; min-width: 280px; }
.product-info .eyebrow { font-size: 12.5px; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; }
.product-info h1 { font-size: 32px; margin: 0 0 12px; }
.product-info .price-big { font-size: 24px; font-weight: 600; margin: 0 0 16px; }
.product-info .avail { font-size: 13.5px; color: var(--text-muted); margin: 0 0 20px; }
.product-info .lead { font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; font-size: 13px; color: var(--text-muted); }
.spec-grid strong { color: var(--text); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); }
.qty-stepper button { width: 38px; height: 38px; background: none; border: none; font-size: 16px; cursor: pointer; }
.qty-stepper input { width: 36px; text-align: center; font-size: 14px; border: none; background: transparent; }
.add-to-cart-form { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.add-to-cart-form .btn { flex: 1; padding: 14px 20px; font-size: 14.5px; }
.product-sections { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.product-sections h3 { font-size: 14.5px; margin: 0 0 8px; }
.product-sections p, .product-sections ul { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.product-sections ul { padding-left: 18px; line-height: 1.7; }
.related-title { font-size: 26px; margin: 0 0 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.related-grid .card-body { padding: 14px; }
.related-grid h3 { font-size: 14px; margin: 0 0 6px; }
.related-grid .price { font-size: 14px; }

/* Cart */
.cart-item { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--border); padding: 16px; flex-wrap: wrap; }
.cart-item .thumb { width: 72px; height: 72px; flex-shrink: 0; background-size: cover; background-position: center; }
.cart-item .info { flex: 1; min-width: 160px; }
.cart-item .info h3 { font-size: 14.5px; margin: 0 0 4px; }
.cart-item .info p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.cart-item .subtotal { width: 90px; text-align: right; font-size: 14.5px; font-weight: 600; margin: 0; }
.remove-link { background: none; border: none; padding: 0; cursor: pointer; font-size: 12.5px; color: var(--terracotta); text-decoration: underline; }
.cart-summary { background: var(--bg-alt); padding: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.cart-summary .label { font-size: 13.5px; color: var(--text-muted); margin: 0 0 4px; }
.cart-summary .total { font-size: 24px; font-weight: 600; margin: 0; }
.cart-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Checkout */
.checkout-form { display: flex; flex-wrap: wrap; gap: 36px; }
.checkout-fields { flex: 1 1 420px; min-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.checkout-fields .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-fields .row-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.checkout-fields input, .checkout-fields textarea { padding: 12px; border: 1px solid var(--border); font-size: 14px; width: 100%; }
.checkout-fields textarea { min-height: 70px; resize: vertical; }
.checkout-fields h3 { font-size: 14.5px; margin: 16px 0 4px; }
.radio-row { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.order-summary { flex: 1 1 300px; min-width: 260px; }
.order-summary-box { background: var(--bg-alt); padding: 22px; }
.order-summary-box h3 { font-size: 15px; margin: 0 0 16px; }
.order-line { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
.order-total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; }
.order-summary-box .btn { width: 100%; margin-top: 20px; padding: 14px; font-size: 15px; }

/* Forms generic */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack input, .form-stack textarea { padding: 12px; border: 1px solid var(--border); font-size: 14px; width: 100%; }
.form-stack textarea { min-height: 120px; resize: vertical; }

/* Contact */
.contact-layout { display: flex; flex-wrap: wrap; gap: 36px; }
.contact-info { flex: 1 1 320px; min-width: 260px; }
.contact-info h3 { font-size: 16px; margin: 0 0 14px; }
.contact-info address { font-style: normal; font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0 0 20px; }
.contact-map { aspect-ratio: 4/3; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.contact-map span { font-size: 13px; color: var(--text-muted); }
.contact-form-wrap { flex: 1 1 340px; min-width: 260px; }

/* About / legal / blog post */
.banner-photo { aspect-ratio: 16/7; background-size: cover; background-position: center; margin-bottom: 32px; }
.about-text p { font-size: 15.5px; line-height: 1.75; color: var(--text-body); margin: 0 0 20px; }
.legal-section { margin-bottom: 22px; }
.legal-section h3 { font-size: 15px; margin: 0 0 8px; }
.legal-section p { font-size: 14px; line-height: 1.7; color: var(--text-body); }
.post-photo { aspect-ratio: 16/8; background-size: cover; background-position: center; margin-bottom: 28px; }
.post-body p { font-size: 15.5px; line-height: 1.75; color: var(--text-body); margin: 0 0 18px; }
.back-link { background: none; border: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--text-muted); text-decoration: underline; margin-bottom: 20px; display: inline-block; }

/* Empty page sections */
.simple-page { padding: 80px 32px; max-width: 600px; margin: 0 auto; width: 100%; text-align: center; }
.simple-page h1 { font-size: 30px; margin: 0 0 16px; }
.simple-page p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 26px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 32px 26px; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.footer-grid h3 { font-family: var(--font-heading); font-size: 20px; margin: 0 0 16px; font-weight: 600; color: var(--white); }
.footer-grid a { display: block; padding: 6px 0; font-size: 13.5px; color: var(--footer-link); }
.footer-grid a:hover { color: var(--white); }
.footer-grid address { font-style: normal; font-size: 13.5px; color: var(--footer-link); line-height: 1.7; margin: 0 0 12px; }
.footer-bottom { max-width: 1400px; margin: 40px auto 0; border-top: 1px solid var(--footer-border); padding-top: 20px; font-size: 12px; color: var(--footer-muted); }

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--footer-bg); color: var(--footer-text); padding: 18px 24px; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; z-index: 100; }
.cookie-banner p { font-size: 13px; margin: 0; max-width: 520px; }
.cookie-banner a { color: var(--green-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button { padding: 9px 16px; font-size: 12.5px; cursor: pointer; }
.cookie-reject { background: transparent; border: 1px solid var(--footer-muted); color: var(--footer-text); }
.cookie-accept { background: var(--green); border: none; color: var(--white); }
.cookie-banner.hidden { display: none; }

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

/* Success box */
.success-box { padding: 70px 20px; text-align: center; background: var(--white); border: 1px solid var(--border); }
.success-box h1 { font-size: 30px; margin: 0 0 14px; }
.success-box p { font-size: 14.5px; color: var(--text-muted); margin: 0 0 6px; }
.success-box p.spaced { margin: 0 0 26px; }

@media (max-width: 600px) {
  .hero-content h1 { font-size: 38px; }
  .section-title { font-size: 28px; }
}
