

/* =========================================================
   Karácsonyfa Express – Prémium front-end stylesheet
   ========================================================= */

.checkout-card input,
.checkout-card select,
.checkout-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
}


/* ---------- Alap változók ---------- */
:root {
  --green: #0e6b3a;
  --green-dark: #0a4b28;
  --red: #c62828;
  --gold: #f7c768;
  --bg: #f5f5f7;
  --text: #222222;
  --muted: #666666;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1100px;
}

/* ---------- Reset / alapok ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.muted {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,245,247,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-dark);
}

/* Fenyőfa logó ikon */
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, #ffffff 0, #2e7d32 35%, #0a4b28 75%);
  position: relative;
  overflow: hidden;
}
.logo-icon::before { /* Törzs */
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 18px;
  background: #6d4c41;
  border-radius: 18px;
}
.logo-icon::after { /* Fenyő */
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 24px solid #1b5e20;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Kosár gomb */
.cart-button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-dark), #148244);
  color: var(--white);
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cart-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.cart-count {
  background: var(--gold);
  color: #4e2a00;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Mobilos menü (Hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

/* =========================================================
   GOMBOK / BATCHEK
   ========================================================= */

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--green-dark), #148244);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  filter: brightness(1.02);
}

.btn-submit {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--green-dark);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  filter: brightness(1.03);
}

.btn-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* =========================================================
   HERO (főoldal teteje)
   ========================================================= */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 3.2vw + 1rem, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--green-dark);
}

.hero-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
}

.hero-mini-tag {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Ha valamikor hero-inner-t használsz (mint a demo HTML-ben), az is szépen nézzen ki */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.hero-title span {
  color: var(--green-dark);
}

.hero-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Jobb oldali hero-kártyák (főoldal második szekciója is ezt használja) */
.hero-cards-section {
  padding-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.5rem;
}

.hero-card {
  background: radial-gradient(circle at top, #ffffff 0, #f1f8f4 45%, #e3f2ea 100%);
  border-radius: var(--radius-xl);
  padding: 1.7rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  min-height: 230px;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(198, 40, 40, 0.06);
  right: -80px;
  top: -40px;
}

.hero-illustration {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-illustration-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
}

.hero-steps {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Kis „pill” címke */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #fff3e0;
  color: #8d4700;
  margin-bottom: 0.6rem;
}

.pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

/* =========================================================
   SZEKCIÓ CÍMEK
   ========================================================= */

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
  text-align: center;
  color: var(--green-dark);
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   FŐOLDALI TERMÉKLISTA – product-grid / product-card
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.product-image {
  aspect-ratio: 1 / 1;     /* <<< NÉGYZET */
  width: 100%;             /* Töltse ki a kártya szélességét */
  border-radius: 12px;
  background: linear-gradient(135deg, #0c5b30, #1b8c4b);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

/* Ha használod a képragasztó SVG hegyet */
.product-image::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -18px;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 70px solid #e8f5e9;
}

/* Ha képet raksz bele */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fontos! vágja, hogy szépen töltse a négyzetet */
  border-radius: 12px;
}


.product-info h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--green-dark);
}

.product-info p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.price-tag {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1rem;
}

/* =========================================================
   TERMÉK OLDAL – product-page + leíró kártya
   ========================================================= */

.product-page {
  margin: 2.5rem auto 3rem auto;
  max-width: 1100px;
  padding: 0 1.5rem;
}

.product-page h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--green-dark);
}

/* Leírás blokk a termékoldalon */
.product-info-text {
  max-width: 1100px;
  margin: 0 auto 3rem auto;
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.product-info-text h2 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.product-info-text h3 {
  font-size: 1.1rem;
  color: var(--green);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-info-text p {
  margin-bottom: 0.5rem;
}

.product-info-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.3rem;
}

.product-info-text li {
  margin-bottom: 0.4rem;
  padding-left: 1.5rem;
  position: relative;
}

/* Emoji jelölő a listáknál */
.product-info-text li::before {
  content: "🎄";
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================================================
   TERMÉK VARIÁCIÓK – variant-grid / variant-card
   ========================================================= */

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.variant-card {
  background: radial-gradient(circle at top left, #ffffff 0, #f1f8f4 45%, #e3f2ea 100%);
  border-radius: 16px;
  padding: 1.3rem 1.3rem 1.1rem 1.3rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.variant-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  color: var(--green-dark);
  font-weight: 700;
}

.variant-size {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.price-line {
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--green-dark);
}

/* Kosár gomb termékkártyán */
.variant-card .btn-add {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-top: auto;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.variant-card .btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  filter: brightness(1.03);
}

/* =========================================================
   SZÁLLÍTÁS / TIPPEK SZEKCIÓ – .split, .check-list
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin: 0.8rem 0 0.4rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  margin-right: 0.6rem;
  color: var(--green-dark);
  font-weight: 700;
}

/* =========================================================
   FELDOBOTT, PRÉMIUM KAPCSOLAT SZEKCIÓ
   ========================================================= */
/* =============================================
   KAPCSOLAT SZEKCIÓ – KÁRTYÁK EGYSÉGESÍTÉSE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

/* Mobil nézetre stackeljen */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact-box egységes spacing */
.contact-info-card,
.contact-form-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.contact-info-card,
.contact-form-card {
  background: linear-gradient(145deg, #ffffff, #f6f8f7);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
}

/* Jobb oldali kártya igazítása a balhoz */
.contact-form-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* A címek és margók egységesítése */
.contact-info-card h2,
.contact-form-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--green-dark);
}

/* A form ne legyen túl keskeny */
.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Inputok egységes belső térrel */
input[type="text"],
input[type="email"],
textarea {
  padding: 1rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #d8e2dc;
  background: #fcfcfc;
}

/* Gomb méret igazítás */
.contact-form-card .btn-submit {
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 14px;
}

   CONTACT FORM – LABEL FELETT, INPUT ALATTA
   ============================================= */

.contact-form-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-form-card label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #d9e3dd;
  font-size: 1rem;
  background: #ffffff;
}


/* =========================================================
   LÁBLÉC
   ========================================================= */

footer {
  background: #1e3f2d;
  color: #c7d8ce;
  padding: 3rem 0 2.3rem 0;
  font-size: 0.9rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  color: #c7d8ce;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #aabbb1;
}

/* =========================================================
   TOAST ÉRTESÍTÉS (#toastNotification – PHP-s kosárhoz)
   ========================================================= */

#toastNotification {
  visibility: hidden;
  min-width: 260px;
  background-color: #1b5e20;
  color: var(--white);
  text-align: center;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  position: fixed;
  z-index: 9999;
  left: 50%;
  transform: translateX(-50%);
  top: 26px;
  font-size: 0.9rem;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

#toastNotification.show {
  visibility: visible;
  animation: toastFadeIn 0.3s ease-out, toastFadeOut 0.4s ease-in 1.7s;
}

@keyframes toastFadeIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastFadeOut {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* =========================================================
   RESZPONZÍV BEÁLLÍTÁSOK
   ========================================================= */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: minmax(0,1fr);
  }

  .hero-inner {
    grid-template-columns: minmax(0,1fr);
  }

  .split {
    grid-template-columns: minmax(0,1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .nav-links {
    position: absolute;
    top: 54px;
    right: 0;
    background: rgba(245,245,247,0.98);
    padding: 0.75rem 1.2rem 1rem;
    border-radius: 0 0 0 16px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* A JS .active-t kapcsol – ezt használjuk */
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .product-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }
}

.toast-success {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #2ecc71;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  transform: translateY(20px);
  z-index: 9999;
}

.toast-success.show {
  opacity: 1;
  transform: translateY(0);
}

