/* ===================================================================
   CREATEDBYLARINA — WEBOLDAL MEGJELENÉS
   ===================================================================
   01. Színek és általános beállítások
   02. Fejléc, logó és navigáció
   03. Gombok és közös elemek
   04. Kereső és kategóriaválasztó
   05. Termékkártyák
   06. Lábléc
   07. Rendelés / érdeklődés ablak
   08. Adminfelület
   09. Mobilos megjelenés
   =================================================================== */

/* 01. SZÍNEK ÉS ÁLTALÁNOS BEÁLLÍTÁSOK -------------------------- */
:root {
  --bg: #faf8f3;
  --paper: #fffefb;
  --ink: #282e25;
  --ink-muted: #71776d;
  --line: #e5e5db;
  --sage: #e8ebdf;
  --green: #354736;
  --terracotta: #ba7d60;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(29, 40, 29, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.04em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; }
em { color: var(--terracotta); font-weight: 400; }

.shell { max-width: 1210px; margin-inline: auto; padding-inline: 32px; }
.overline {
  display: inline-block;
  color: #7b8977;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }

/* 02. FEJLÉC, LOGÓ ÉS NAVIGÁCIÓ -------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: 235px; height: auto; mix-blend-mode: multiply; }
.navigation { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; }
.navigation a:not(.nav-contact):hover, .footer a:hover { color: var(--terracotta); }
.nav-contact {
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 40px;
  white-space: nowrap;
}
.nav-contact:hover { background: var(--green); color: #fff; }
.nav-contact span { margin-left: 7px; }
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--ink);
}
.mobile-nav {
  display: grid;
  gap: 15px;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

/* 03. GOMBOK ÉS KÖZÖS ELEMEK ----------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 47px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: 0.65; }
.button-dark { background: var(--green); color: #fff; }
.button-dark:hover:not(:disabled) { background: #253927; }
.button-outline { background: transparent; border-color: #bdc3b9; color: var(--ink); }
.button-outline:hover { background: var(--sage); }
.loading { padding: 40px 0; color: var(--ink-muted); }

/* 04. KERESŐ ÉS KATEGÓRIAVÁLASZTÓ ------------------------------- */
.catalog { min-height: 55vh; padding-top: 24px; padding-bottom: 90px; }
.catalog-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 31px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  height: 46px;
  padding: 0 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.search-box span { font-size: 28px; color: #899483; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-box:focus-within { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.select-wrap {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 195px;
  padding-right: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.select-wrap select {
  width: 100%;
  height: 45px;
  padding: 0 16px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #465145;
  font-size: 13px;
}
.select-wrap span:not(.sr-only) { pointer-events: none; }

/* 05. TERMÉKKÁRTYÁK ------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.product-card { min-width: 0; }
.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.04;
  border-radius: var(--radius);
  background: #ecece5;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.product-card:hover .product-image-wrap img { transform: scale(1.04); }
.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  max-width: calc(100% - 30px);
  padding: 7px 12px;
  border-radius: 40px;
  background: #fffcf7;
  font-size: 10px;
  font-weight: 600;
}
.product-details { padding: 18px 2px 2px; }
.product-meta { color: #929a8d; text-transform: uppercase; font-size: 11px; letter-spacing: 0.13em; }
.product-title-price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 8px 0; }
.product-title-price h2 { margin: 0; font-family: inherit; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.price { color: #3b503b; font-size: 16px; font-weight: 800; white-space: nowrap; }
.product-description { min-height: 46px; margin: 0 0 15px; color: #81887d; font-size: 13px; line-height: 1.7; }
.product-action {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--green);
  background: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.product-action:hover { color: var(--terracotta); border-color: var(--terracotta); }
.empty-state { padding: 65px 20px; text-align: center; color: var(--ink-muted); }
.empty-state span { font-size: 45px; color: var(--terracotta); }
.empty-state h2 { margin: 10px; color: var(--ink); font-size: 25px; }

/* 06. LÁBLÉC ------------------------------------------------- */
.footer { padding: 46px 0 29px; background: #303e31; color: #eff2e8; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.footer-brand { font-size: 19px; font-weight: 800; letter-spacing: 0.03em; }
.footer-brand small { display: block; margin: 7px 0; color: #bdcbbb; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12px; }
.copyright { color: #bec7b8; font-size: 11px; }

/* 07. RENDELÉS / ÉRDEKLŐDÉS ABLAK ----------------------------- */
.contact-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: min(88dvh, 950px);
  overflow-y: auto;
  padding: 30px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 25px 120px #10181040;
}
.contact-dialog::backdrop { background: rgba(31, 39, 32, 0.55); backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog-top h2 { margin: 7px 0 0; font-size: 32px; }
.icon-button { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef0e9; font-size: 23px; }
.field { display: grid; gap: 6px; margin: 12px 0; color: #546052; font-size: 12px; font-weight: 800; }
.field input, .field textarea,
.admin-form input, .admin-form textarea,
.admin-form select, .admin-login input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dbe0d6;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline-color: #6a8a72;
  font-size: 14px;
}
.field textarea { resize: vertical; }
.product-picker { min-width: 0; margin: 21px 0; padding: 0; border: 0; }
.product-picker legend { padding: 0; color: #546052; font-size: 13px; font-weight: 800; }
.product-picker-help { margin: 5px 0 12px; color: var(--ink-muted); font-size: 12px; font-weight: 400; }
.product-choice-list { display: grid; gap: 8px; max-height: 235px; overflow-y: auto; padding-right: 2px; }
.product-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.product-choice:has(input:checked) { border-color: var(--green); background: var(--sage); }
.product-choice input { flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--green); }
.product-choice-name { flex: 1; font-size: 13px; }
.product-choice-price { color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.form-actions p { max-width: 220px; margin: 0; color: var(--ink-muted); font-size: 11px; }
.form-feedback { min-height: 20px; margin: 13px 0 0; color: var(--green); font-size: 12px; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

/* 08. ADMINFELÜLET -------------------------------------------- */
.admin-view { min-height: 70vh; padding-top: 55px; padding-bottom: 95px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.admin-heading h1 { margin: 10px 0 8px; font-size: 51px; }
.admin-heading p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.admin-login { max-width: 460px; margin: 45px auto; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.admin-login h2 { font-size: 30px; }
.admin-login label { display: grid; gap: 7px; margin: 17px 0; font-size: 12px; font-weight: 700; }
.admin-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0; }
.admin-tab-group { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tab { padding: 11px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #596258; font-size: 13px; font-weight: 700; }
.admin-tab.active { border-color: var(--green); background: var(--green); color: #fff; }
.admin-session { color: var(--ink-muted); font-size: 12px; }
.admin-panel { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.admin-panel h2 { font-family: inherit; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 18px 0 30px; }
.admin-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.admin-form .full { grid-column: 1 / -1; }
.admin-form .inline-checkbox { display: flex; align-items: center; gap: 9px; }
.inline-checkbox input { width: auto; }
.admin-form .form-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-hint { color: var(--ink-muted); font-size: 12px; font-weight: 400; }
.admin-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.admin-item-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; background: #e5e7df; }
.admin-item h3 { margin: 0 0 3px; font-size: 14px; letter-spacing: 0; }
.admin-item p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.admin-item-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; }
.small-btn { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; font-weight: 650; }
.small-btn:hover { background: #f2f4ee; }
.small-btn.danger { color: #a34731; }
.status-line { min-height: 19px; margin: 14px 0; color: #697b64; font-size: 13px; }
.pill { display: inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 30px; background: #edf3e8; color: #4d7951; font-size: 10px; }
.pill.off { background: #f3eae4; color: #98705f; }
.inquiry { padding: 18px 0; border-top: 1px solid var(--line); }
.inquiry h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.inquiry p { margin: 9px 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.inquiry .date { color: var(--ink-muted); font-size: 11px; }
.inquiry a { color: #496d4b; text-decoration: underline; }

/* 09. MOBILOS MEGJELENÉS -------------------------------------- */
@media (max-width: 920px) {
  .product-grid { gap: 20px; }
  .product-title-price { display: block; }
  .price { display: block; margin: 6px 0; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 650px) {
  .shell { padding-inline: 20px; }
  .header-inner { min-height: 70px; }
  .brand-logo { width: 170px; }
  .navigation { display: none; }
  .menu-button { display: block; }
  .catalog { padding-top: 20px; padding-bottom: 65px; }
  .catalog-controls { flex-direction: column; margin: 4px 0 24px; }
  .search-box, .select-wrap { width: 100%; max-width: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 13px; }
  .product-image-wrap { border-radius: 12px; }
  .product-title-price h2 { font-size: 15px; }
  .price { font-size: 14px; }
  .product-description { min-height: 65px; font-size: 12px; }
  .footer-inner { display: grid; gap: 25px; }
  .footer-links { gap: 14px 22px; }
  .contact-dialog { padding: 22px; }
  .dialog-top h2 { font-size: 27px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions p { max-width: none; }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-heading h1 { font-size: 41px; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-tabs { align-items: start; flex-direction: column; }
  .admin-panel { padding: 16px; }
  .admin-item { align-items: start; flex-direction: column; }
  .admin-item-actions { justify-content: start; margin-left: 88px; }
}

@media (max-width: 370px) {
  .brand-logo { width: 145px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-description { min-height: auto; }
  .product-choice { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-image-wrap img, .button { transition: none; }
}

/* 10. Éles űrlap: biztonsági ellenőrzés, adatvédelem */
.turnstile-area { margin: 18px 0 8px; min-height: 65px; }
.privacy-link { text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.privacy-link:hover { color: var(--terracotta); }
.legal-page { padding-block: 50px 90px; max-width: 880px; }
.legal-page h1 { font-size: clamp(35px, 5vw, 62px); }
.legal-page h2 { font-size: 27px; margin-top: 30px; }
.legal-page p, .legal-page li { line-height: 1.8; }
.legal-warning { border-left: 4px solid var(--terracotta); padding: 14px 22px; background: #fff0e8; }
.inquiry .small-btn { margin-top: 12px; }
@media (max-width: 540px) { .turnstile-area { overflow: visible; } }
