/*
Theme Name: A meglepi
Theme URI: https://ameglepi.hu
Author: A meglepi
Description: Egyedi h�mzett �s f�nyk�pes aj�nd�kok � Debrecen.
Version: 1.0.0
Text Domain: ameglepi
*/

:root {
  --ink: #2c1418;
  --teal: #d4001a;
  --teal-deep: #8e0014;
  --aqua: #f0a000;
  --cream: #fff7f5;
  --paper: #ffffff;
  --coral: #e10600;
  --gold: #f0a000;
  --line: #f3d5d2;
  --muted: #6e5458;
  --shadow: 0 18px 50px rgba(142, 0, 20, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { font-family: "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 140px; }
.brand { display: flex; flex-direction: row; align-items: center; gap: 16px; line-height: 1.15; text-align: left; flex: 0 0 auto; }
.brand img { height: 124px; width: auto; max-width: none; }
.brand span, .foot-brand span { font-family: "Nunito", sans-serif; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 2px; font-weight: 600; }
.brand span { margin-top: 0; max-width: 7.2em; line-height: 1.25; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 12px; }
.foot-brand img { height: 78px; width: auto; }
.foot-brand span { color: #ffd56a; }
.nav { display: flex; gap: 18px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 650; font-size: 15px; }
.nav a.cart-link { background: var(--teal); color: white; padding: 8px 14px; border-radius: 999px; }
.nav a.cart-link:hover { background: var(--coral); color: white; }
.nav a.lang-en,
.nav a.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav a.lang-en:hover,
.nav a.lang-switch:hover { border-color: var(--teal); color: var(--teal); }
.nav a.lang-en .lang-flag,
.nav a.lang-switch .lang-flag {
  display: block;
  width: 22px;
  height: 11px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.nav a.lang-switch .lang-flag-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav a.lang-switch .lang-flag-wrap[hidden] { display: none !important; }
.nav a.lang-en .lang-code,
.nav a.lang-switch .lang-code { font-family: "Nunito", sans-serif; }
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}
.ameg-checkout-upload {
  margin: 24px 0;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ameg-checkout-upload strong { display: block; margin-bottom: 8px; }
.ameg-checkout-upload input[type=file] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-weight: 700; }

.hero-bleed {
  position: relative;
  width: 100%;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 85% 45%, rgba(255, 220, 140, 0.55) 0%, transparent 55%),
    linear-gradient(135deg, #ff9a1a 0%, #f0a000 42%, #e88900 100%);
}
.hero-bleed__inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr);
  gap: 36px;
  align-items: center;
}
.hero-copy { max-width: 540px; }
.kicker { color: #7a2e00; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; }
.hero-copy h1 { font-size: clamp(40px, 5vw, 68px); color: #6b0010; }
.hero-copy p.lead { font-size: 19px; color: #4a2a18; max-width: 520px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--coral); color: white; border: 0; border-radius: 999px;
  padding: 13px 22px; font-weight: 750; cursor: pointer; font-family: inherit; font-size: 16px;
}
.btn:hover { background: #b83d28; color: white; }
.btn.ghost { background: rgba(255, 255, 255, 0.55); color: #6b0010; border: 1.5px solid rgba(107, 0, 16, 0.35); }
.btn.ghost:hover { background: var(--teal); color: white; border-color: var(--teal); }

.hero-table {
  position: relative;
  height: min(62vh, 560px);
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 236, 196, 0.22) 0%, transparent 28%),
    linear-gradient(180deg, #c56a12 0%, #a85208 55%, #8a4206 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 24px 50px rgba(120, 40, 0, 0.22);
  transform: perspective(900px) rotateY(-6deg);
  transform-origin: center right;
}
.hero-table__rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: 100%;
  padding: 18px 16px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hero-table__col {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.hero-table__track {
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap, 14px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.hero-table__set {
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap, 14px);
  flex: 0 0 auto;
}
.hero-item {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: var(--hero-item-h, 206px);
  color: #3a1c10;
  text-decoration: none;
}
.hero-item__pic {
  display: block;
  width: 100%;
  height: var(--hero-pic-h, 168px);
  border-radius: 18px;
  overflow: hidden;
  background: #d27a1c;
  box-shadow: 0 12px 24px rgba(70, 25, 0, 0.28);
}
.hero-item__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #d27a1c;
}
.hero-item__name {
  display: block;
  margin-top: 8px;
  height: 30px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
  color: #fff3dc;
  text-shadow: 0 1px 2px rgba(80, 30, 0, 0.35);
}
.hero-table__edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(60, 20, 0, 0.28));
  pointer-events: none;
}
.hero-table.is-ready .hero-table__track[data-dir="up"] {
  animation: hero-scroll-up var(--hero-duration, 40s) linear infinite;
}
.hero-table.is-ready .hero-table__track[data-dir="down"] {
  animation: hero-scroll-down var(--hero-duration-alt, 46s) linear infinite;
}
@keyframes hero-scroll-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, calc(-1 * var(--hero-shift)), 0); }
}
@keyframes hero-scroll-down {
  from { transform: translate3d(0, calc(-1 * var(--hero-shift)), 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-table.is-ready .hero-table__track { animation: none !important; }
}
.promo {
  background: #fff6ea; border: 1px solid #f0d7b5; border-radius: 16px;
  padding: 14px 18px; margin: 10px 0 30px; color: #6a4a1e;
}

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 20px; }
.cat {
  background: var(--paper); border-radius: 20px; padding: 22px; border: 1px solid var(--line);
  min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow);
}
.cat:hover { transform: translateY(-3px); }
.cat em { font-style: normal; color: var(--gold); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.cat strong { font-family: "Nunito", serif; font-size: 26px; color: var(--teal-deep); }

.section { padding: 28px 0 10px; }
.section h2 { font-size: 40px; color: var(--teal-deep); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--paper); border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.step b { display: block; color: var(--aqua); font-family: "Nunito", serif; font-size: 28px; }

.page-main, .shop-wrap { padding: 36px 0 60px; }
.page-main { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.page-main h1, .shop-wrap h1 { color: var(--teal-deep); font-size: 46px; }

ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
ul.products li.product {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 18px;
  width: auto !important; margin: 0 !important; float: none !important;
}
ul.products li.product img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; background: #efe7da; }
ul.products li.product .woocommerce-loop-product__title { font-size: 22px; padding: 12px 8px 0; color: var(--teal-deep); }
ul.products li.product .price { color: var(--coral); font-weight: 800; padding: 0 8px 8px; display: block; }
ul.products li.product .button {
  display: inline-block;
  margin: 8px;
  padding: 10px 22px !important;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  line-height: 1.2;
  white-space: nowrap;
}
.woocommerce-Price-amount { font-weight: 800; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.woocommerce div.product .summary, .woocommerce div.product div.images { width: auto !important; float: none !important; }
.single_add_to_cart_button, .checkout-button, button.button, a.button.alt, button.button.alt {
  background: var(--coral) !important;
  color: white !important;
  border-radius: 999px !important;
  border: 0 !important;
  padding: 12px 28px !important;
  line-height: 1.2;
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--teal); }
.personalize { background: #fff; border: 1px dashed var(--gold); border-radius: 16px; padding: 16px; margin: 12px 0 18px; }
.personalize label { display: block; font-weight: 750; margin: 10px 0 4px; }
.personalize input[type=file] { padding: 10px; background: var(--cream); }
.photo-hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.personalize input, .personalize textarea, .personalize select,
.contact-form input, .contact-form textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: white;
}
.site-footer { background: var(--teal-deep); color: #e7f3f1; margin-top: 40px; padding: 42px 0 22px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer h3 { color: white; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 14px; font-size: 13px; color: #c9ddd9; }
/* .cookie floating bar removed – kept empty for cache safety */

@media (max-width: 900px) {
  .cats, .steps, .foot-grid, .woocommerce div.product, ul.products { grid-template-columns: 1fr 1fr; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 0; gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .nav { display: none; width: 100%; grid-column: 1 / -1; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .brand img { height: 84px; }
  .brand span { font-size: 12px; }
  .hero-bleed {
    min-height: 0;
  }
  .hero-bleed__inner {
    grid-template-columns: 1fr;
    padding: 40px 0 28px;
    gap: 22px;
  }
  .hero-table {
    height: 340px;
    min-height: 340px;
    transform: none;
    order: -1;
  }
  .hero-item__name { font-size: 12px; }
}
@media (max-width: 640px) {
  .cats, .steps, .foot-grid, ul.products, .woocommerce div.product { grid-template-columns: 1fr; }
  .hero-bleed { min-height: 0; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-table { height: 280px; min-height: 280px; }
}


.sponsor-logos {
  margin-top: 22px;
  padding-top: 8px;
  text-align: center;
}
.sponsor-logos img {
  max-width: min(300px, 90%);
  height: auto;
  display: inline-block;
}
