/* TEAVERA — gyógynövényes teák webáruháza. Alap stíluslap (önálló, külső CDN nélkül). */

:root {
  --cream: #FAF3E9;
  --cream-2: #FFFDF8;
  --ink: #2E2A26;
  --muted: #6B6058;
  --border: #E4D6C3;
  --panel: #F1E4D3;
  --orange: #C1663D;
  --maroon: #7A3B3B;
  --maroon-dark: #6a3232;
  --olive: #7C8363;
  --dark: #2E2A26;
  --dark-2: #3C352E;
  --cream-text-on-dark: #D8C9AF;

  --font-serif: Georgia, 'Times New Roman', 'Playfair Display', serif;
  --font-sans: 'Segoe UI', Roboto, 'Work Sans', Arial, Helvetica, sans-serif;
  --font-mono: 'Courier New', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.wrap-mid { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.logo {
  font-family: var(--font-serif); font-weight: 700; font-size: 26px;
  letter-spacing: 0.5px; color: var(--maroon); text-decoration: none;
}
.main-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
}
.main-nav a[aria-current="page"] { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-cart {
  background: var(--orange); color: var(--cream-2); border: none; border-radius: 999px;
  padding: 10px 18px; font-family: var(--font-sans); font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-menu {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 14px; cursor: pointer; color: var(--ink); font-family: var(--font-sans);
}
.mobile-menu {
  display: none; padding: 12px 24px 20px; flex-direction: column; gap: 14px; border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .main-nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: 10px; padding: 15px 26px; font-size: 15px;
  font-weight: 600; cursor: pointer; text-decoration: none; border: none; font-family: var(--font-sans);
}
.btn-primary { background: var(--orange); color: var(--cream-2); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-small { border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.btn-maroon { background: var(--maroon); color: var(--cream-2); border: none; }
.btn-pill {
  border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--font-sans);
}
.btn-pill.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.btn-quiz {
  border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--olive); background: transparent; color: var(--ink); font-family: var(--font-sans);
}
.btn-quiz.active { background: var(--olive); color: var(--cream-2); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px 64px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 13px; color: #8A5A3B; letter-spacing: 1px;
  text-transform: uppercase; margin: 0 0 14px;
}
.hero h1 { font-family: var(--font-serif); font-size: 48px; line-height: 1.15; margin: 0 0 18px; }
.hero p.lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.page-hero { max-width: 1240px; margin: 0 auto; padding: 48px 24px 40px; }
.page-hero h1 { font-family: var(--font-serif); font-size: 36px; margin: 0 0 8px; }
.page-hero p { color: var(--muted); margin: 0 0 12px; max-width: 640px; }

.split-hero {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-bottom: 48px;
}
.split-hero h1 { font-family: var(--font-serif); font-size: 34px; margin: 0 0 14px; }
.split-hero p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0; }
.split-hero .photo { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; }
.split-hero .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
section.section { max-width: 1240px; margin: 0 auto; padding: 56px 24px; }
section.section h2 { font-family: var(--font-serif); font-size: 30px; margin: 0 0 24px; }
.section-alt { background: var(--panel); }
.section-dark { background: var(--dark); color: var(--cream); }

.grid { display: grid; gap: 20px; }
.grid-6 { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.grid-8 { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
.grid-1x1 { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 22px; }
.grid-herbs { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 22px; }

/* Card: mood / category tile */
.tile { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.tile-photo { aspect-ratio: 5/4; border-radius: 16px; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-title { margin: 10px 0 0; font-weight: 600; font-size: 15px; text-align: center; }

.mood-card { background: var(--cream-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.mood-card .photo { aspect-ratio: 5/4; overflow: hidden; }
.mood-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.mood-card .label { padding: 16px; }
.mood-card .label p { margin: 0; font-family: var(--font-serif); font-size: 18px; font-weight: 600; }

.cat-tile { cursor: pointer; text-decoration: none; color: inherit; }
.cat-tile .photo { aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; }
.cat-tile .photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile p { margin: 10px 0 0; font-weight: 600; font-size: 15px; text-align: center; }

/* Product card */
.product-card {
  background: var(--cream-2); border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.product-card .photo { aspect-ratio: 4/3; overflow: hidden; }
.product-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .name { margin: 0; font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.product-card .desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.product-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-card .price { font-weight: 600; color: var(--ink); }
.add-to-cart { background: var(--maroon); color: var(--cream-2); border: none; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-sans); }

/* Herb card */
.herb-card { background: var(--cream-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.herb-card .photo { aspect-ratio: 16/9; overflow: hidden; }
.herb-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.herb-card .body { padding: 16px; }
.herb-card .name { margin: 0 0 8px; font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.herb-card p.field { margin: 0 0 4px; font-size: 13px; color: var(--ink); }
.herb-card p.field:last-child { margin: 0; color: var(--muted); }

/* Dark closeup section */
.closeup {
  max-width: 1000px; margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.closeup .photo { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; }
.closeup .photo img { width: 100%; height: 100%; object-fit: cover; }
.closeup h2 { font-family: var(--font-serif); font-size: 30px; margin: 0 0 16px; }
.closeup p { font-size: 16px; line-height: 1.7; color: var(--cream-text-on-dark); margin: 0; }

/* Quiz */
.quiz-wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.quiz-wrap h2 { font-family: var(--font-serif); font-size: 30px; margin: 0 0 8px; }
.quiz-wrap > p { color: var(--muted); margin: 0 0 28px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.quiz-result { margin-top: 28px; background: var(--cream-2); border-radius: 14px; padding: 22px; display: inline-block; }
.quiz-result p { margin: 0 0 12px; font-size: 15px; }

/* Tea colors */
.color-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 18px; }
.color-item { text-align: center; }
.color-swatch { aspect-ratio: 1/1; border-radius: 50%; margin: 0 auto 12px; box-shadow: inset 0 -8px 20px rgba(0,0,0,.15); }
.color-item p { margin: 0; font-weight: 600; font-size: 15px; }
.color-item p.desc { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 400; }

/* Quiet moment CTA */
.cta-box {
  max-width: 1000px; margin: 0 auto 56px; background: var(--maroon); color: var(--cream);
  border-radius: 20px; padding: 56px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.cta-box h2 { font-family: var(--font-serif); font-size: 28px; margin: 0 0 14px; }
.cta-box p { font-size: 15px; line-height: 1.7; margin: 0; opacity: .9; }
.cta-box .photo { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; }
.cta-box .photo img { width: 100%; height: 100%; object-fit: cover; }

/* Season card */
.season-card { background: var(--cream-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.season-card .photo { aspect-ratio: 4/3; overflow: hidden; }
.season-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.season-card .body { padding: 16px; }
.season-card .name { margin: 0 0 6px; font-family: var(--font-serif); font-weight: 600; font-size: 17px; }
.season-card .desc { margin: 0; font-size: 13px; color: var(--muted); }

/* Mood banners (1 cup - 1 mood) */
.mood-banner { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.mood-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mood-banner span { position: relative; z-index: 1; font-family: var(--font-serif); font-weight: 600; font-size: 18px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* Article / magazine */
.article-card {
  cursor: pointer; background: var(--cream-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start;
}
.article-card .photo { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; }
.article-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.article-card .cat { margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px; color: #8A5A3B; text-transform: uppercase; }
.article-card .title { margin: 0 0 8px; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.article-card .excerpt { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.article-card .body-text { margin: 12px 0 0; font-size: 14px; color: var(--ink); line-height: 1.7; display: none; }
.article-card.open .body-text { display: block; }
.article-card .toggle-label { margin: 10px 0 0; font-size: 13px; color: var(--maroon); font-weight: 600; }
@media (max-width: 560px) { .article-card { grid-template-columns: 1fr; } }

.faq-item { cursor: pointer; background: var(--panel); border-radius: 12px; padding: 16px 20px; }
.faq-item p.q { margin: 0; font-weight: 600; font-size: 15px; }
.faq-item p.a { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; display: none; }
.faq-item.open p.a { display: block; }

/* Recipe card */
.recipe-card { background: var(--cream-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.recipe-card .photo { aspect-ratio: 4/3; overflow: hidden; }
.recipe-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card .body { padding: 18px; }
.recipe-card .title { margin: 0 0 8px; font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.recipe-card .desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Iced category */
.iced-tile { cursor: pointer; text-decoration: none; color: inherit; background: var(--cream-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: block; }
.iced-tile .photo { aspect-ratio: 1/1; overflow: hidden; }
.iced-tile .photo img { width: 100%; height: 100%; object-fit: cover; }
.iced-tile p { margin: 0; padding: 14px; font-weight: 600; font-size: 15px; text-align: center; }

/* Home tea / kitchen blocks */
.home-article { background: var(--cream-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.home-article .photo { aspect-ratio: 4/3; overflow: hidden; }
.home-article .photo img { width: 100%; height: 100%; object-fit: cover; }
.home-article p { margin: 0; padding: 16px; font-weight: 600; font-size: 15px; }
.kitchen-block { background: var(--panel); border-radius: 14px; padding: 20px; text-align: center; font-weight: 600; font-size: 14px; }

/* Gift category */
.gift-tile { cursor: pointer; background: var(--cream-2); border: 1px solid var(--border); border-radius: 16px; padding: 22px; text-align: center; }
.gift-tile p { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 16px; }

/* About / legal */
.info-box { background: var(--panel); border-radius: 16px; padding: 28px; }
.info-box p.label { margin: 0 0 10px; font-weight: 600; }
.info-box p.addr { margin: 0; line-height: 1.7; }
.legal-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.legal-title { font-family: var(--font-serif); font-size: 28px; margin: 0 0 18px; }
.legal-body { font-size: 15px; line-height: 1.8; color: var(--ink); white-space: pre-line; }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack input, .form-stack textarea {
  padding: 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 15px;
  font-family: var(--font-sans); background: var(--cream-2); width: 100%;
}
.form-stack textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.alert-success { background: var(--olive); color: var(--cream-2); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.alert-error { background: #9C3B3B; color: var(--cream-2); border-radius: 12px; padding: 20px; margin-bottom: 20px; }

/* Contact box */
.contact-box { background: var(--panel); border-radius: 16px; padding: 24px; margin-bottom: 32px; }
.contact-box p.name { margin: 0; line-height: 1.7; font-weight: 600; }
.contact-box p.addr { margin: 4px 0 0; line-height: 1.7; color: var(--muted); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: var(--cream);
  padding: 18px 24px; display: none; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; z-index: 80;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 13px; max-width: 600px; }
.cookie-banner a { color: #E4C8A0; cursor: pointer; }
.cookie-banner button { background: var(--orange); color: var(--cream-2); border: none; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; flex-shrink: 0; font-family: var(--font-sans); }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 90; display: none; }
.cart-overlay.visible { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px,100vw); background: var(--cream); z-index: 91;
  padding: 24px; display: none; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.15); overflow-y: auto;
}
.cart-drawer.visible { display: flex; }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cart-head p { margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.cart-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.cart-empty-msg { color: var(--muted); }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.cart-item .info { flex: 1; }
.cart-item .info p.name { margin: 0 0 4px; font-weight: 600; font-size: 14px; }
.cart-item .info p.price { margin: 0; font-size: 13px; color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--cream-2); cursor: pointer; }
.qty-controls span { font-size: 14px; min-width: 16px; text-align: center; }
.cart-footer { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 12px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-weight: 600; }
.cart-order-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cart-order-fields input { padding: 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; font-family: var(--font-sans); background: var(--cream-2); }
.btn-place-order { width: 100%; background: var(--orange); color: var(--cream-2); border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font-sans); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--cream-text-on-dark); padding: 56px 24px 32px; margin-top: 40px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h3 { margin: 0 0 12px; font-weight: 600; color: var(--cream); font-size: 15px; }
.footer-brand p.logo-text { margin: 0 0 10px; font-family: var(--font-serif); font-size: 24px; color: var(--cream); }
.footer-brand p.tagline { margin: 0; font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--cream-text-on-dark); }
.footer-addr { margin: 0 0 12px; font-size: 13px; line-height: 1.6; }
.footer-copy { max-width: 1240px; margin: 36px auto 0; font-size: 12px; color: #8A7F70; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 800px) {
  .hero, .split-hero, .closeup, .cta-box { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
