/* TermeszetSip — natural, alcohol-free drinks shop (Hungary) */

:root {
  --cream: #faf7f2;
  --cream-dark: #f2ecdf;
  --ink: #232f29;
  --ink-soft: #2c3a33;
  --muted: #5c6a63;
  --border: #e3ded4;
  --green: #3f9463;
  --green-dark: #2b6b48;
  --white: #fffdf9;
  --red: #c1503f;
  --yellow: #e8c468;
  --pink: #cf6f83;
  --font-heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

input, select, textarea, button { font-family: var(--font-body); }
::placeholder { color: #8b968f; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

main { flex: 1; width: 100%; }

/* Announcement bar */
.announcement {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(6px);
  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 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.main-nav a.active { font-weight: 700; color: var(--green-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}
.link-fav {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.link-cart {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 100px;
}
.mobile-menu {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: none;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--ink); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { color: var(--green-dark); border-color: var(--green-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 100px; }

/* Hero */
.hero {
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  margin: 0 0 20px;
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  aspect-ratio: 1.15 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream-dark);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 0 24px 64px; }
.section-title { font-size: 28px; margin: 0 0 24px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-head .section-title { margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; }

/* Category grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.category-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  display: block;
}
.category-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-dark); }
.category-img img { width: 100%; height: 100%; object-fit: cover; }
.category-label { padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--ink); }

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-dark); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 253, 249, 0.9);
  font-size: 15px;
  cursor: pointer;
}
.fav-btn.is-fav { color: var(--red); }
.product-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.product-volume { font-size: 12px; color: var(--muted); }
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.product-price { font-size: 15px; font-weight: 700; }

/* Brand block */
.brand-block { background: var(--cream-dark); padding: 72px 24px; text-align: center; }
.brand-block-inner { max-width: 1000px; margin: 0 auto; }
.brand-block h2 { font-size: 32px; margin: 0 0 20px; }
.brand-block p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 680px; margin: 0 auto; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.why-item { text-align: center; }
.why-icon { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px; }
.why-icon.c1 { background: var(--yellow); }
.why-icon.c2 { background: var(--green); }
.why-icon.c3 { background: var(--red); }
.why-icon.c4 { background: var(--green-dark); }
.why-item h3 { font-size: 17px; margin: 0 0 8px; }
.why-item p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Newsletter */
.newsletter-wrap { max-width: 800px; margin: 0 auto; padding: 0 24px 80px; text-align: center; }
.newsletter-box { background: var(--green); border-radius: 20px; padding: 48px 32px; color: var(--white); }
.newsletter-box h2 { font-size: 26px; margin: 0 0 10px; }
.newsletter-box p { font-size: 15px; opacity: 0.9; margin: 0 0 24px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 100px;
  border: none;
  font-size: 14px;
}
.newsletter-form button {
  background: var(--white);
  color: var(--green-dark);
  border: none;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.newsletter-success { font-size: 15px; font-weight: 600; margin: 0; }

/* Generic form fields */
.field {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  width: 100%;
  background: var(--white);
  color: var(--ink);
}
textarea.field { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}

/* Page main wrap */
.page-main { max-width: 1280px; margin: 0 auto; padding: 40px 24px 80px; width: 100%; }
.page-main-md { max-width: 1000px; margin: 0 auto; padding: 40px 24px 80px; width: 100%; }
.page-main-sm { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; width: 100%; }
.page-main-narrow { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; width: 100%; }
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.page-title { font-size: 34px; margin: 0 0 28px; }

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.filter-group h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--muted);
}
.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-btn {
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.filter-btn.active { background: var(--green); color: var(--white); font-weight: 600; }
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-count { font-size: 14px; color: var(--muted); }
.sort-select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  background: var(--white);
}
.empty-note { padding: 40px 0; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  .catalog-layout { grid-template-columns: 1fr; }
}

/* Product detail */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
.product-hero { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--cream-dark); }
.product-hero img { width: 100%; height: 100%; object-fit: cover; }
.product-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.product-title { font-size: 32px; margin: 8px 0 12px; }
.product-desc { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; }
.product-price-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.product-price-big { font-size: 28px; font-weight: 700; }
.product-price-unit { font-size: 14px; color: var(--muted); }
.stock-label { font-size: 13px; color: var(--green); font-weight: 600; margin: 0 0 24px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 100px; }
.qty-selector button { width: 38px; height: 38px; border: none; background: none; font-size: 18px; cursor: pointer; }
.qty-selector span { width: 32px; text-align: center; font-weight: 600; }
.fav-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.fav-toggle.is-fav { background: #f6dde0; }
.added-note { font-size: 13px; color: var(--green-dark); font-weight: 600; margin: 0 0 20px; display: none; }
.added-note.show { display: block; }
.tabs { border-top: 1px solid var(--border); margin-top: 8px; }
.tab-bar { display: flex; gap: 20px; border-bottom: 1px solid var(--border); }
.tab-btn { border: none; background: none; padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tab-btn.active { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--green); }
.tab-panel { padding: 20px 0; font-size: 14px; line-height: 1.7; color: var(--muted); display: none; }
.tab-panel.active { display: block; }
.related-title { font-size: 24px; margin: 0 0 20px; }
.related-wrap { margin-top: 64px; }

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* Cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.cart-item-thumb { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; overflow: hidden; background: var(--cream-dark); }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 15px; }
.cart-item-volume { font-size: 13px; color: var(--muted); }
.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item-controls .qty-selector button { width: 30px; height: 30px; font-size: 15px; }
.cart-item-controls .qty-selector span { width: 26px; font-size: 13px; }
.remove-link { border: none; background: none; color: var(--red); font-size: 13px; cursor: pointer; text-decoration: underline; }
.cart-item-total { font-weight: 700; font-size: 15px; white-space: nowrap; }
.summary-box { border: 1px solid var(--border); border-radius: 16px; padding: 24px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-total {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}
.empty-cart { text-align: center; padding: 60px 0; }
.empty-cart p { font-size: 16px; color: var(--muted); margin: 0 0 20px; }

@media (max-width: 760px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}

/* Order success */
.order-success { text-align: center; padding: 60px 0; }
.order-success h1 { font-size: 30px; margin: 0 0 14px; }
.order-success p { font-size: 15px; color: var(--muted); margin: 0 0 28px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}
.faq-answer { padding: 0 20px 18px; font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; display: none; }
.faq-item.open .faq-answer { display: block; }

/* About */
.about-hero { aspect-ratio: 2.2 / 1; border-radius: 16px; overflow: hidden; margin: 32px 0; background: var(--cream-dark); }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.value-grid h3 { font-size: 15px; margin: 0 0 6px; }
.value-grid p { font-size: 14px; color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* Legal */
.legal-box {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--cream-dark);
  padding: 20px 22px;
  border-radius: 14px;
}
.legal-notice {
  font-size: 13px;
  color: var(--red);
  background: var(--cream-dark);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 0 0 28px;
}

/* Footer */
.site-footer { margin-top: auto; background: var(--ink); color: #e9e6df; padding: 56px 24px 28px; }
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.footer-brand { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: #fff; }
.footer-tagline { font-size: 13px; line-height: 1.6; color: #c7cac5; margin-top: 10px; max-width: 220px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #c7cac5;
}
.footer-col a { display: block; font-size: 13px; color: #e9e6df; margin-bottom: 8px; }
.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  border-top: 1px solid #3a463f;
  padding-top: 20px;
  font-size: 12px;
  color: #a9ada7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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