/* TermeszetFarm — main stylesheet */

:root{
  --bg: #F7F4EE;
  --bg: oklch(0.97 0.012 85);
  --text: #2E2A24;
  --text: oklch(0.22 0.015 90);
  --primary: #3F6B4A;
  --primary: oklch(0.42 0.07 150);
  --primary-dark: #2C4F35;
  --primary-dark: oklch(0.32 0.06 150);
  --muted-bg: #EDE8DF;
  --muted-bg: oklch(0.94 0.015 90);
  --border: #DAD5CB;
  --border: oklch(0.88 0.01 85);
  --muted-1: #7C766C;
  --muted-1: oklch(0.5 0.02 90);
  --muted-2: #6C665C;
  --muted-2: oklch(0.45 0.02 90);
  --muted-3: #5E584E;
  --muted-3: oklch(0.4 0.02 90);
  --accent: #C07A3E;
  --accent: oklch(0.58 0.11 45);
  --error: #C0432E;
  --error: oklch(0.55 0.15 30);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  line-height:1.5;
  min-height:100vh;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
::selection{ background: rgba(63,107,74,0.25); }
@keyframes fadeUp{ from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

.wrap{ max-width:1280px; margin:0 auto; padding:0 24px; }
.wrap-narrow{ max-width:1000px; margin:0 auto; padding:0 24px; }
.wrap-narrower{ max-width:760px; margin:0 auto; padding:0 24px; }

/* ===== Announcement bar ===== */
.announce-bar{
  background:var(--primary-dark);
  color:#F7F5F0;
  text-align:center;
  font-size:13px;
  padding:8px 16px;
  letter-spacing:0.02em;
}

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(247,244,238,0.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  max-width:1280px; margin:0 auto; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand-nav{ display:flex; align-items:center; gap:32px; flex:1; min-width:0; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; flex-shrink:0; }
.brand-mark{
  width:38px;height:38px;border-radius:50%;background:var(--primary);
  display:flex;align-items:center;justify-content:center;color:#fff;
  font-family:var(--font-serif);font-size:19px;font-weight:600;
}
.brand-name{ font-family:var(--font-serif); font-size:22px; font-weight:600; letter-spacing:-0.01em; }
.main-nav{ display:flex; gap:20px; font-size:15px; flex-wrap:wrap; }
.main-nav a{ text-decoration:none; color:var(--text); }
.main-nav a:hover, .main-nav a.active{ color:var(--primary); }
.header-actions{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.search-form{ display:flex; position:relative; align-items:center; }
.search-input{
  width:150px; padding:8px 12px; border-radius:20px; border:1px solid var(--border);
  background:#fff; font-size:13px; font-family:var(--font-sans); outline:none;
}
.icon-btn{ cursor:pointer; position:relative; font-size:19px; text-decoration:none; color:inherit; background:none; border:none; padding:0; }
.icon-badge{
  position:absolute; top:-6px; right:-9px; background:var(--accent); color:#fff;
  font-size:10px; border-radius:50%; width:16px; height:16px;
  display:flex; align-items:center; justify-content:center;
}
.mobile-nav-toggle{ display:none; }

/* ===== Buttons ===== */
.btn{
  border:none; padding:15px 30px; border-radius:4px; font-size:15px; font-weight:500;
  cursor:pointer; font-family:var(--font-sans); text-decoration:none; display:inline-block; text-align:center;
}
.btn-primary{ background:var(--primary); color:#fff; }
.btn-primary:hover{ background:var(--primary-dark); }
.btn-outline-dark{ background:transparent; color:var(--text); border:1.5px solid var(--text); }
.btn-outline-dark:hover{ border-color:var(--primary); color:var(--primary); }
.btn-outline-primary{ background:transparent; color:var(--primary-dark); border:1.5px solid var(--primary-dark); padding:13px 26px; font-size:14px; }
.btn-outline-primary:hover{ background:var(--primary-dark); color:#fff; }
.btn-accent{ background:var(--accent); color:#fff; border:none; }
.btn-small{ padding:10px 16px; font-size:13px; }
.btn-full{ width:100%; }

/* ===== Hero ===== */
.hero{ position:relative; padding:56px 24px 0; }
.hero-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:40px; align-items:center; }
.hero-copy{ animation: fadeUp 0.6s ease; }
.eyebrow{ font-size:13px; letter-spacing:0.12em; text-transform:uppercase; color:var(--primary); font-weight:600; margin-bottom:16px; }
.h1{ font-family:var(--font-serif); font-size:clamp(32px,5vw,52px); line-height:1.08; font-weight:600; margin:0 0 20px; }
.lede{ font-size:18px; color:var(--muted-2); max-width:480px; margin:0 0 32px; }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }
.img-hero{ width:100%; height:460px; object-fit:cover; border-radius:10px; background:var(--muted-bg); }

/* ===== Sections ===== */
.section{ max-width:1280px; margin:96px auto 0; padding:0 24px; }
.section:first-of-type{ margin-top:56px; }
.section-head{ text-align:center; margin-bottom:44px; }
.h2{ font-family:var(--font-serif); font-size:34px; font-weight:600; margin:0 0 10px; }
.section-sub{ color:var(--muted-2); font-size:16px; margin:0; }
.section-head-row{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:30px; flex-wrap:wrap; gap:12px; }
.section-head-row .h2{ margin:0; }
.link-arrow{ color:var(--primary); font-size:14px; font-weight:600; text-decoration:none; }

/* ===== Category grid ===== */
.cat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; }
.cat-card{
  cursor:pointer; background:#fff; border-radius:8px; overflow:hidden; border:1px solid var(--border);
  transition:transform 0.2s; text-decoration:none; color:inherit; display:block;
}
.cat-card:hover{ transform:translateY(-4px); }
.cat-card img{ width:100%; height:170px; object-fit:cover; }
.cat-card-body{ padding:18px 20px; }
.cat-card-title{ font-family:var(--font-serif); font-size:19px; font-weight:600; margin-bottom:6px; }
.cat-card-desc{ font-size:13px; color:var(--muted-2); margin-bottom:12px; }
.cat-card-cta{ font-size:13px; font-weight:600; color:var(--primary); }

/* ===== Product cards ===== */
.product-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; }
.product-card{
  background:#fff; border-radius:8px; overflow:hidden; border:1px solid var(--border);
  display:flex; flex-direction:column; height:100%; transition:transform 0.2s;
  text-decoration:none; color:inherit;
}
.product-card:hover{ transform:translateY(-3px); }
.product-card-media{ position:relative; }
.product-card-media img{ width:100%; height:170px; object-fit:cover; }
.product-badge{
  position:absolute; top:10px; left:10px; background:var(--primary-dark); color:#fff;
  font-size:11px; font-weight:600; padding:4px 10px; border-radius:20px;
}
.fav-btn{
  position:absolute; top:8px; right:8px; width:30px; height:30px; border-radius:50%;
  background:#fff; display:flex; align-items:center; justify-content:center; font-size:15px;
  cursor:pointer; border:none; padding:0;
}
.product-card-body{ padding:16px; display:flex; flex-direction:column; flex:1; }
.product-card-name-link{ text-decoration:none; color:inherit; display:block; }
.product-card-name{ font-weight:600; font-size:15px; margin-bottom:6px; }
.product-card-desc{ font-size:12px; color:var(--muted-1); margin-bottom:10px; flex:1; }
.product-card-price-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.product-card-price{ font-weight:600; font-size:16px; color:var(--primary-dark); }
.product-card-unit{ font-size:11px; color:var(--muted-1); }
.product-card-outofstock{
  width:100%; text-align:center; padding:10px; border-radius:4px; font-size:13px;
  color:var(--muted-1); background:var(--muted-bg);
}
.add-to-cart-btn{
  width:100%; background:transparent; border:1.5px solid var(--primary-dark); color:var(--primary-dark);
  padding:10px; border-radius:4px; font-weight:600; font-size:13px; cursor:pointer; font-family:var(--font-sans);
}
.add-to-cart-btn:hover{ background:var(--primary-dark); color:#fff; }

/* ===== About strip ===== */
.about-strip{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:40px; align-items:center;
  background:var(--muted-bg); border-radius:10px; padding:40px;
}
.about-strip img{ width:100%; height:340px; object-fit:cover; border-radius:8px; }

/* ===== Why us ===== */
.why-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:28px; text-align:center; }
.why-icon-wrap{ width:58px; height:58px; border-radius:50%; background:var(--muted-bg); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.why-icon{ width:22px; height:22px; }
.why-title{ font-family:var(--font-serif); font-size:17px; font-weight:600; margin-bottom:8px; }
.why-desc{ font-size:13px; color:var(--muted-2); }

/* ===== Seasons ===== */
.season-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:18px; }
.season-card{ position:relative; border-radius:8px; overflow:hidden; height:220px; cursor:pointer; display:block; text-decoration:none; }
.season-card img{ width:100%; height:100%; object-fit:cover; }
.season-overlay{ position:absolute; inset:0; background:linear-gradient(to top, rgba(46,42,36,0.65), transparent 55%); pointer-events:none; }
.season-label{ position:absolute; bottom:16px; left:16px; color:#fff; font-family:var(--font-serif); font-size:18px; font-weight:600; }

/* ===== Farm steps ===== */
.farm-steps{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; }
.farm-step{ display:flex; align-items:center; gap:8px; }
.farm-step-inner{ display:flex; flex-direction:column; align-items:center; gap:10px; width:120px; }
.farm-step-icon{ width:64px; height:64px; border-radius:50%; background:#fff; border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:22px; }
.farm-step-name{ font-size:14px; font-weight:600; text-align:center; }
.farm-step-arrow{ color:var(--muted-1); font-size:20px; }

/* ===== Newsletter ===== */
.newsletter{ background:var(--primary-dark); border-radius:10px; padding:52px 32px; text-align:center; color:#fff; }
.newsletter h2{ font-family:var(--font-serif); font-size:28px; font-weight:600; margin:0 0 12px; }
.newsletter p{ opacity:0.85; margin:0 0 26px; max-width:460px; margin-left:auto; margin-right:auto; }
.newsletter-form{ display:flex; gap:10px; max-width:420px; margin:0 auto; flex-wrap:wrap; justify-content:center; }
.newsletter-input{ flex:1; min-width:200px; padding:13px 16px; border-radius:4px; border:none; font-family:var(--font-sans); font-size:14px; }
.newsletter-success{ font-weight:600; }

/* ===== Breadcrumb ===== */
.breadcrumb{ font-size:13px; color:var(--muted-1); margin-bottom:16px; }
.breadcrumb a{ text-decoration:none; color:inherit; }
.breadcrumb a:hover{ color:var(--primary); }

/* ===== Products / catalog page ===== */
.catalog-grid{ display:grid; grid-template-columns:220px 1fr; gap:32px; }
.filters-block{ margin-bottom:28px; }
.filters-title{ font-weight:600; font-size:14px; margin-bottom:12px; }
.filter-item{ cursor:pointer; padding:7px 0; font-size:14px; color:var(--muted-3); background:none; border:none; display:block; text-align:left; width:100%; font-family:var(--font-sans); }
.filter-item.active{ color:var(--primary-dark); font-weight:700; }
.filter-checkbox-row{ display:flex; align-items:center; gap:8px; font-size:14px; padding:6px 0; cursor:pointer; }
.clear-filters{ cursor:pointer; font-size:13px; color:var(--accent); font-weight:600; background:none; border:none; padding:0; font-family:var(--font-sans); }
.catalog-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.results-count{ font-size:14px; color:var(--muted-2); }
.sort-select{ padding:9px 14px; border-radius:4px; border:1px solid var(--border); font-family:var(--font-sans); font-size:13px; background:#fff; }
.no-results{ padding:60px 0; text-align:center; color:var(--muted-1); }
@media (max-width: 780px){ .catalog-grid{ grid-template-columns:1fr; } }

/* ===== Product detail ===== */
.pd-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:44px; }
.pd-main-img{ width:100%; height:420px; object-fit:cover; border-radius:8px; margin-bottom:14px; background:var(--muted-bg); }
.pd-gallery{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.pd-gallery img{ width:100%; height:80px; object-fit:cover; border-radius:6px; }
.pd-badge{ display:inline-block; background:var(--muted-bg); color:var(--primary-dark); font-size:12px; font-weight:600; padding:4px 12px; border-radius:20px; margin-bottom:14px; }
.pd-title{ font-family:var(--font-serif); font-size:32px; font-weight:600; margin:0 0 12px; }
.pd-price{ font-size:26px; font-weight:600; color:var(--primary-dark); margin-bottom:6px; }
.pd-meta{ font-size:13px; color:var(--muted-1); margin-bottom:20px; }
.pd-desc{ color:var(--muted-3); font-size:15px; margin:0 0 24px; }
.qty-row{ display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.qty-control{ display:flex; align-items:center; border:1px solid var(--border); border-radius:4px; }
.qty-btn{ width:38px; height:38px; border:none; background:transparent; font-size:16px; cursor:pointer; }
.qty-value{ width:38px; text-align:center; font-weight:600; }
.fav-toggle-large{ cursor:pointer; font-size:22px; background:none; border:none; }
.pd-actions{ display:flex; gap:12px; margin-bottom:32px; flex-wrap:wrap; }
.pd-actions .btn{ flex:1; min-width:160px; padding:15px 20px; }
.pd-flash{ background:var(--muted-bg); color:var(--primary-dark); padding:12px 16px; border-radius:4px; font-size:13px; margin-bottom:20px; display:none; }
.pd-info{ border-top:1px solid var(--border); padding-top:24px; }
.pd-info-block{ margin-bottom:18px; }
.pd-info-title{ font-weight:600; font-size:14px; margin-bottom:6px; }
.pd-info-text{ font-size:13px; color:var(--muted-2); }
.related-title{ font-family:var(--font-serif); font-size:26px; font-weight:600; margin:0 0 24px; }

/* ===== Cart ===== */
.cart-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:40px; }
.cart-line{ display:flex; gap:16px; padding:20px 0; border-bottom:1px solid var(--border); align-items:center; }
.cart-line img{ width:88px; height:88px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.cart-line-info{ flex:1; min-width:0; }
.cart-line-name{ font-weight:600; font-size:15px; margin-bottom:4px; }
.cart-line-meta{ font-size:13px; color:var(--muted-1); margin-bottom:10px; }
.cart-line-side{ text-align:right; flex-shrink:0; }
.cart-line-total{ font-weight:600; font-size:15px; margin-bottom:10px; }
.cart-line-remove{ cursor:pointer; font-size:12px; color:var(--accent); background:none; border:none; padding:0; font-family:var(--font-sans); }
.summary-box{ background:var(--muted-bg); border-radius:8px; padding:26px; align-self:start; }
.summary-row{ display:flex; justify-content:space-between; margin-bottom:12px; font-size:14px; }
.summary-divider{ border-top:1px solid #d8d3c8; margin:14px 0; }
.summary-total{ display:flex; justify-content:space-between; margin-bottom:22px; font-size:17px; font-weight:600; }
.empty-cart{ text-align:center; padding:80px 0; }
.empty-cart-icon{ font-size:48px; margin-bottom:16px; }
.empty-cart-text{ font-size:16px; color:var(--muted-2); margin-bottom:24px; }

/* ===== Checkout / forms ===== */
.form-input, .form-select, .form-textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:4px;
  font-family:var(--font-sans); font-size:14px; margin-bottom:14px; background:#fff;
}
.form-textarea{ min-height:80px; resize:vertical; }
.form-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-row-2 .form-input{ margin-bottom:0; }
.form-row-2{ margin-bottom:14px; }
.form-row-zip{ display:grid; grid-template-columns:1fr 2fr; gap:14px; margin-bottom:14px; }
.form-row-zip .form-input{ margin-bottom:0; }
.form-section-title{ font-weight:600; font-size:16px; margin:28px 0 16px; }
.radio-card{
  display:flex; align-items:center; justify-content:space-between; padding:14px 16px;
  border:1.5px solid var(--border); border-radius:6px; margin-bottom:10px; cursor:pointer;
}
.radio-card input{ margin-right:10px; }
.radio-card-left{ display:flex; align-items:center; gap:10px; }
.checkbox-row{ display:flex; align-items:flex-start; gap:10px; margin-top:22px; font-size:13px; color:var(--muted-3); cursor:pointer; }
.checkbox-row input{ margin-top:2px; }
.checkout-summary-line{ display:flex; justify-content:space-between; font-size:13px; margin-bottom:8px; color:var(--muted-3); }
.form-error{ color:var(--error); font-size:12px; margin-top:10px; }
.order-success{ text-align:center; padding:60px 0; max-width:520px; margin:0 auto; }
.order-success-icon{ width:64px; height:64px; border-radius:50%; background:var(--primary); color:#fff; font-size:28px; display:flex; align-items:center; justify-content:center; margin:0 auto 24px; }

/* ===== FAQ ===== */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-question{
  cursor:pointer; padding:20px 0; display:flex; justify-content:space-between; align-items:center; gap:16px;
  font-weight:600; font-size:15px; background:none; border:none; width:100%; text-align:left; font-family:var(--font-sans); color:inherit;
}
.faq-icon{ font-size:18px; flex-shrink:0; }
.faq-answer{ padding:0 0 20px; color:var(--muted-2); font-size:14px; display:none; }
.faq-item.open .faq-answer{ display:block; }

/* ===== Contact ===== */
.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:44px; }
.contact-info-box{ background:var(--muted-bg); border-radius:8px; padding:32px; }
.contact-info-title{ font-family:var(--font-serif); font-size:19px; font-weight:600; margin-bottom:20px; }
.contact-info-text{ font-size:14px; color:var(--muted-3); line-height:1.8; }
.contact-success{ background:var(--muted-bg); border-radius:8px; padding:28px; color:var(--primary-dark); font-weight:600; }

/* ===== Legal / static content ===== */
.legal-body{ font-size:15px; color:var(--muted-3); line-height:1.8; }
.legal-body p{ margin:0 0 16px; }
.legal-box{ background:var(--muted-bg); border-radius:8px; padding:32px; font-size:14px; color:#4a453c; line-height:2; }
.info-section{ margin-bottom:32px; }
.info-section-title{ font-family:var(--font-serif); font-size:20px; font-weight:600; margin-bottom:10px; }
.info-section-text{ font-size:15px; color:var(--muted-3); }

/* ===== Footer ===== */
.site-footer{ background:var(--muted-bg); border-top:1px solid var(--border); margin-top:96px; }
.footer-grid{ max-width:1280px; margin:0 auto; padding:64px 24px 32px; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:40px; }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand-mark{ width:32px; height:32px; border-radius:50%; background:var(--primary); display:flex; align-items:center; justify-content:center; color:#fff; font-family:var(--font-serif); font-size:16px; font-weight:600; }
.footer-brand-name{ font-family:var(--font-serif); font-size:19px; font-weight:600; }
.footer-tagline{ font-size:13px; color:var(--muted-2); }
.footer-col-title{ font-weight:600; font-size:14px; margin-bottom:14px; }
.footer-links{ display:flex; flex-direction:column; gap:10px; font-size:13px; color:var(--muted-3); }
.footer-links a{ text-decoration:none; color:inherit; }
.footer-links a:hover{ color:var(--primary); }
.footer-bottom{
  max-width:1280px; margin:0 auto; padding:24px 24px 40px; border-top:1px solid var(--border);
  font-size:12px; color:var(--muted-1); display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px;
}

@media (max-width: 900px){
  .header-inner{ flex-direction:column; align-items:flex-start; }
  .main-nav{ gap:12px 16px; font-size:14px; }
  .header-actions{ width:100%; justify-content:space-between; }
  .search-input{ width:100%; }
}
