:root {
  --green: #2f5243;
  --red: #9a3c2f;
  --turq: #4ebbae;
  --beige: #f7f5f2;
  --dark: #1d1d1d;
  --accent: #c9a968;
  --font-title: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--beige);
  color: #222;
  line-height: 1.6;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 5%;
    
    /* GLASSMORPHISM RECEPT: */
    background: rgba(47, 82, 67, 0.7); /* A zöld színed, de 70%-os átlátszósággal */
    backdrop-filter: blur(12px);      /* Ez mossa el a hátteret a menü alatt */
    -webkit-backdrop-filter: blur(12px); /* Safari támogatás */
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Finom csillanás az alján */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.main-nav .dropdown > a {
   padding-right: 0.5rem !important;
    position: relative;
}

/* A nyíl (vagy a ▾ karakter) pozicionálása */
/* Ha a HTML-ben a szövegben van a ▾, akkor ezt használd: */
.main-nav .dropdown > a::after {
    display: none !important;
    content: none !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent);
}
/* Csak a fő szintű lista – különben a .submenu is flex sor lesz (vízszintes „oszlopok”) */
.main-nav > ul {
    list-style: none;
    display: flex;
    gap: clamp(1.25rem, 3vw, 3.5rem);
    align-items: center;
}

.main-nav > ul > li {
  margin: 0 0.4rem;
}
.main-nav > ul > li:last-child {
  margin-right: 0;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}


.main-nav a:hover, .main-nav a.active { 
  color: var(--accent);
background:none; }

.main-nav a:hover::after, 
.main-nav a.active::after {
    width: 80%; /* Hoverre és aktív állapotra kihúzódik a vonal */
}
.dropdown {
  position: relative;
}

/* Hover-híd: a trigger és az almenü között ne vesszen el a :hover */
@media (min-width: 851px) {
  .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.6rem;
    z-index: 1099;
    pointer-events: auto;
  }
}

/* Desktop almenü: display nélkül animálható (opacity / transform) */
.submenu {
    list-style: none;
    display: block;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translate3d(-50%, 6px, 0);
    min-width: max(12rem, max-content);
    padding: 0.4rem 0 !important;
    margin: 0;
    background: rgba(20, 20, 20, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Almenü listaelemek */
.submenu li {
 margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    width: 100%;
}
.submenu li a {
    display: block;
    width: 100%;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

/* A hover állapot */
.submenu li a:hover {
    background: rgba(255, 255, 255, 0.1); /* Finom fehér áttetsző háttér */
    color: var(--accent);
    /* Ha korábban volt padding-left eltolásod, vedd ki, vagy tartsd meg kontrolláltan */

}

.submenu a {
    display: block;
    padding: 0.8rem 1.5rem;
    text-transform: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.dropdown:hover .submenu,
.dropdown:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}
/* Almenü hover dekoráció (vonal kikapcsolása itt, ha zavaró) */
.submenu a::after {
  display: none; 
}
.submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  transform: translateX(4px);
}

/* Shop gomb kiemelése */
.shop-link {
  color: var(--accent) !important;
  font-weight: 700 !important;
}
.header-extras {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.lang-switch-container {
  position: relative; /* Pozicionáláshoz */
 
}
.lang-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px); /* Üveghatás */
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Zászló ikon stílusa a gombon belül - ÚJ */
.lang-toggle .flag-icon {
  width: 15px; /* Zászló szélessége */
  height: auto;
  margin-right: 0.5rem; /* Távolság a zászló és a szöveg között */
}
.lang-toggle:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

/* Nyelvi választó lenyíló menü (folyamatosan láthatóra állítva) */
.lang-switch-dropdown {
  display: none; /* ELREJTI A MENÜT */
  position: absolute;
  top: 100%; /* Pontosan a gomb alá helyezi */
  left: 0;
  background: var(--green); /* Megegyezik a fejléc színével */
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 100; /* Minden felett jelenjen meg */
  width: 100%; /* Kitölti a gomb szélességét */
}
.lang-switch-dropdown.active {
  display: flex; /* MEGJELENÍTI A MENÜT, flex-et használunk az elemek elrendezéséhez */
  flex-direction: column; /* Egymás alá rendezi a nyelveket */
  align-items: flex-start; /* Balra igazítja a nyelveket */
}

/* Nyelvi linkek stílusa */
.lang-switch-dropdown a {
  display: flex;
  align-items: center; /* Függőlegesen középre igazítja a zászlót és a szöveget */
  padding: 0.3rem 0.5rem;
  margin: 0.1rem 0;
  width: 100%; /* Kitölti a szélességet */
  border-radius: 4px;
  color: #fff; /* FEHÉRRE ÁLLÍTJA A SZÖVEG SZÍNÉT */
  text-decoration: none; /* ELTÁVOLÍTJA AZ ALÁHÚZÁST */
  transition: background 0.3s ease; /* Finom átmenet a háttérszín változásához */
}

/* Nyelvi link hover és active */
.lang-switch-dropdown a:hover,
.lang-switch-dropdown a.active {
  background: rgba(255, 255, 255, 0.1);
}

/* Zászlók stílusa */
.lang-switch-dropdown img {
  width: 15px; /* Zászló szélessége */
  height: auto;

  margin-right: 0.2rem; /* Távolság a zászló és a szöveg között */
}
.menu-toggle { display:none; 
  font-size:1.8rem; 
  background:none; 
  border:none; 
  color:white; 
  cursor:pointer; 
position: absolute;
  right: 1rem;
  top: 1rem;}
.lang-switch { 
  margin-left:1rem; 
  font-size:0.9rem; }
.lang-switch a {
   color:#fff; 
   text-decoration:none; 
   padding: 0.3rem;}
.cart-icon {
  font-size: 1.3rem;
  cursor: pointer;
  position: relative;
  margin-right:1.3rem;
  transition: transform 0.3s ease;
}
.cart-icon:hover {
    transform: scale(1.1);
}
  #cart-count {
  background: var(--red); /* Piros háttér a kosár darabszámának */
  color: #fff;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 0.75rem;
  position: absolute;
  top: -8px; /* Kicsit feljebb mozgatja a darabszámot */
  right: -10px; /* Kicsit balrább mozgatja a darabszámot */
}

/* HERO */
.hero {
  position:relative;
  height:80vh;
  background:url('../img/hero-bg.jpg') center/cover no-repeat;
  display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center;
  color:white;
}
.hero::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.45);}
.hero-logo{width: 425px;max-width:90vw;height:auto;position:relative;z-index:2;margin-bottom:1rem;}
.hero-text{position:relative;z-index:2;}
.hero h1{font-family:var(--font-title);font-size:2.8rem;}
.hero p{font-size:1.2rem;margin-bottom:1.2rem;}
.btn, .btn-outline{
  display:inline-block; margin:0.3rem; padding:0.8rem 1.8rem;
  font-weight:600; border-radius:4px; text-decoration:none;
}
.btn{background:var(--red);color:#fff;}
.btn:hover{background:var(--accent);color:var(--dark);}
.btn-outline{border:2px solid white;color:white;}
.btn-outline:hover{background:white;color:var(--green);}

/* Kezdőlap: .home-intro, .home-bestsellers (a régi .grid-section / sector-card kártyák eltávolítva) */

.home-intro {
  background: linear-gradient(180deg, #f6faf7 0%, #eef5f0 100%);
  padding: 2.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(47, 82, 67, 0.12);
  border-bottom: 1px solid rgba(47, 82, 67, 0.08);
}
.home-intro__inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  color: var(--dark);
}
.home-intro__inner h2 {
  font-size: 1.35rem;
  color: var(--green);
  margin: 0 0 0.75rem;
}
.home-intro__inner p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  font-size: 0.98rem;
}
.home-intro__links {
  margin-top: 1rem !important;
  font-size: 0.95rem;
}
.home-intro__links a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 82, 67, 0.35);
}
.home-intro__links a:hover {
  border-bottom-color: var(--green);
}

.home-price-note {
  max-width: 42rem;
  margin: 0 auto 0.75rem;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3d5a4d;
  text-align: center;
}
.home-price-note.shop-price-note {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.home-bestsellers {
  padding: 1.75rem 0 2.5rem;
  background: #f8faf9;
}
/* Vékony sor: cím + link, nem „banner”, nem takarja a rácsot */
.home-bestsellers__head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
}
.home-bestsellers__head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-family: var(--font-title), serif;
  color: var(--green);
  font-weight: 700;
}
.home-bestsellers__all {
  display: inline-block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid rgba(47, 82, 67, 0.4);
  white-space: nowrap;
}
.home-bestsellers__all:hover {
  border-bottom-color: var(--green);
}
.home-bestsellers .shop-grid {
  margin: 0 auto;
  max-width: 1200px;
  padding: 1rem 1.25rem 2rem;
}

/* CONTACT */
.contact-section {
  background:var(--red); color:#fff; text-align:center;
  padding:3rem 2rem;
}
.contact-section .btn {background:white; color:var(--red);}

/* FOOTER */
footer {background:var(--dark);color:#ccc;text-align:center;padding:1.5rem;}

.footer-links {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
  font-size: 0.92rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Jogi oldalak: figyelmeztető doboz + külső hivatkozások */
.legal-notice {
  background: #fff8e6;
  border-left: 4px solid #b8922a;
  padding: 0.85rem 1rem;
  margin-bottom: 1.35rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #333;
}
.legal-notice strong {
  color: #1a1a1a;
}
.legal-refs {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #444;
}
.legal-refs h2 {
  font-size: 1rem;
  margin-top: 0;
}
.legal-refs ul {
  padding-left: 1.2rem;
  margin: 0.35rem 0 0;
}
.legal-refs a {
  word-break: break-word;
}

.legal-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 5% 3rem;
}

.legal-content h2 {
  margin-top: 1.4rem;
  color: var(--green);
}

.legal-content p,
.legal-content li {
  color: #2f2f2f;
}

.legal-content ul {
  margin: 0.75rem 0 0.75rem 1.2rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4000;
  background: rgba(20, 20, 20, 0.95);
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn--primary {
  background: var(--accent);
  color: #1a1a1a;
}

.cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* Belső szektor-oldalak (menü aloldalak) */
.hero.sub-hero {
  min-height: 42vh;
  padding: 2.5rem 1rem;
}
.hero.sub-hero .hero-logo {
  display: none;
}
.hero.sub-hero .hero-text h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}
.page-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 5% 3rem;
}
.page-content p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: #333;
}
.page-content .btn {
  margin-top: 0.5rem;
}

/* RESPONSIVE – navigáció (egyetlen blokk, kevesebb ütközés) */
@media (max-width: 850px) {
  header {
    flex-wrap: wrap;
    position: relative;
    min-height: 3.25rem;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    left: 1.5rem;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2100;
    padding: 0.25rem;
    line-height: 1;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .main-nav > ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    height: 100dvh;
    width: min(280px, 86vw);
    margin: 0;
    padding: 4.5rem 0 2rem;
    background: var(--green);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav > ul.active {
    display: flex;
    animation: slideInLeft 0.28s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  }

  .main-nav > ul > li {
    margin: 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    box-sizing: border-box;
  }

  .dropdown::after {
    display: none;
  }

  .main-nav > ul.active li.dropdown > .submenu:not(.open) {
    display: none;
  }

  .submenu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none;
    z-index: auto;
  }

  .submenu.open {
    display: block;
  }

  .submenu a {
    padding: 0.75rem 1.25rem 0.75rem 2rem !important;
    font-size: 0.95rem !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .submenu li:last-child a {
    border-bottom: none;
  }

  .main-nav > ul > li.nav-extras {
    margin-left: 0;
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .header-extras {
    margin-left: auto;
    margin-right: 0;
  }

  .lang-switch-container {
    margin-right: 0;
    margin-bottom: 0;
  }

  .lang-switch-dropdown {
    width: 100%;
    align-items: center;
  }

  .lang-switch-dropdown a {
    justify-content: center;
  }

  .logo {
    max-width: 130px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .submenu,
  .main-nav a,
  .main-nav a::after {
    transition-duration: 0.01ms !important;
  }

  .main-nav > ul.active {
    animation: none !important;
  }
}

/* Shop: stabil kártyaelrendezés (szöveg nem csúszik össze, törés hosszú soroknál) */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  align-items: stretch;
}

.shop-grid > .product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, #eef5f0 0%, #e2ebe4 100%);
}

.product-card h3 {
  font-family: var(--font-title), sans-serif;
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--green);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

.product-card .price {
  display: block;
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green);
}

.product-card button {
  margin-top: auto;
  align-self: center;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}

.product-card button:hover {
  background: var(--accent);
  color: var(--dark);
}

.cart-section {
  padding: 2rem;
  text-align: center;
  background: #fafafa;
}
.cart-line {
  display: flex; justify-content: space-between;
  padding: .5rem 0; border-bottom: 1px solid #ddd;
}

#cart-items {
  max-width: 44rem;
  margin: 0 auto;
  text-align: left;
}

.cart-empty {
  text-align: center;
  padding: 1.25rem 0.75rem 1.75rem;
}

.cart-empty__title {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.cart-empty__hint {
  color: #666;
  margin-bottom: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.cart-item__title {
  font-weight: 600;
  color: var(--green);
  font-size: 1.05rem;
}

.cart-item__unit {
  font-size: 0.88rem;
  color: #666;
  margin-top: 0.2rem;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cart-qty-btn {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid #c8c8c8;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: #333;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cart-qty-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: #f8faf8;
}

.cart-qty-input {
  width: 3.25rem;
  padding: 0.45rem 0.25rem;
  text-align: center;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  background: #fff;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-qty-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.cart-item__line-total {
  font-weight: 700;
  color: var(--green);
  font-size: 1.05rem;
  min-width: 5.5rem;
  text-align: right;
}

.cart-item__remove.remove-btn {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
}

.cart-item__remove.remove-btn:hover {
  background: rgba(154, 60, 47, 0.08);
  border-color: rgba(154, 60, 47, 0.25);
}

.cart-summary {
  margin-top: 1rem;
  border-top: 2px solid var(--accent);
  padding-top: 0.85rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.3rem 0;
  color: #3a3a3a;
}

.cart-summary__row--total {
  margin-top: 0.3rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d1d1d;
}

.cart-clear-btn {
  margin-top: 0.9rem;
  border: 1px solid #d3d3d3;
  background: #fff;
  color: #444;
  border-radius: 8px;
  padding: 0.52rem 0.85rem;
  cursor: pointer;
}

.cart-clear-btn:hover {
  border-color: #b5b5b5;
  background: #f8f8f8;
}

.remove-btn {
  background: none; border: none; color: var(--red);
  cursor: pointer; font-weight: 700;
}

.cart-toast {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 4100;
  background: rgba(20, 20, 20, 0.95);
  color: #f4f4f4;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cart-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.checkout-paid-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(47, 82, 67, 0.35);
  background: #ecf6f1;
  color: #1f3c32;
  border-radius: 10px;
}

.checkout-paid-banner strong {
  font-size: 1rem;
}

.checkout-paid-banner span {
  font-size: 0.92rem;
}

.checkout-paid-banner--muted {
  background: #f4f4f2;
  color: #3a3a38;
  border-color: rgba(0, 0, 0, 0.12);
}

@media (max-width: 560px) {
  .cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .cart-item__main {
    width: 100%;
  }

  .cart-item__controls {
    flex: 0 0 auto;
  }

  .cart-item__line-total {
    margin-left: auto;
    flex: 0 0 auto;
    text-align: right;
  }

  .cart-item__remove {
    flex: 0 0 auto;
  }
}

/* Kosár oldal: űrlap világos háttéren olvasható legyen */
main.content .order-form label {
  color: #444;
}

main.content .order-form input,
main.content .order-form textarea {
  color: #111;
  background: #fff;
  border: 1px solid #ccc;
}

/* --- Kosár / checkout oldal (mai UX + a11y) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 5000;
  width: auto;
  height: auto;
  padding: 0.65rem 1.1rem;
  background: #fff;
  color: var(--green);
  font-weight: 600;
  border: 2px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: visible;
  clip: auto;
}

.cart-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.cart-page__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .cart-page__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: 2.5rem;
  }

  .cart-page__checkout {
    position: sticky;
    top: 1rem;
  }
}

.cart-page__panel {
  background: #fff;
  border: 1px solid rgba(47, 82, 67, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cart-page__h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--green);
  font-family: var(--font-title), serif;
}

.cart-page__lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555;
}

.cart-page__hint {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #666;
}

.cart-page__legal {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #666;
}

.cart-page__legal a {
  color: var(--green);
  font-weight: 600;
}

.cart-page .order-form .form-row {
  margin-bottom: 1rem;
}

.cart-page .order-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.25rem;
}

.cart-page .order-form input,
.cart-page .order-form textarea,
.cart-page .order-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  line-height: 1.35;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  background: #fff;
  color: #111;
  min-height: 44px;
}

.cart-page .order-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.cart-page .order-form select {
  cursor: pointer;
}

.cart-address-fields {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  min-width: 0;
}

.cart-address-fields__legend {
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
  margin: 0 0 0.65rem;
  padding: 0;
}

.cart-address-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 520px) {
  .cart-address-2col {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .cart-address-fields__legend {
  color: #c5d0c8;
}

.cart-page__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.checkout-trust {
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(47, 82, 67, 0.2);
  border-radius: 10px;
  background: #f6faf7;
}

.checkout-trust__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--green);
  font-size: 0.92rem;
}

.checkout-trust__list {
  margin: 0;
  padding-left: 1.1rem;
  color: #4b5750;
  font-size: 0.84rem;
  line-height: 1.45;
}

.cart-page__actions .btn,
.cart-page__actions .btn-outline {
  width: 100%;
  margin: 0;
  min-height: 48px;
  font-size: 1rem;
}

.field-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #9a2e2e;
}

.field-error:empty,
.field-error[hidden] {
  display: none;
  margin: 0;
  min-height: 0;
}

.form-row--error .order-form input,
.form-row--error .order-form textarea,
.form-row--error .order-form select,
.field-input--error {
  border-color: #c44 !important;
  box-shadow: 0 0 0 1px rgba(196, 68, 68, 0.25);
}

.form-order-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #6b1c1c;
  background: #fdeaea;
  border: 1px solid #e8a4a4;
  border-radius: 8px;
}

.form-order-error:empty,
.form-order-error[hidden] {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.cart-page :is(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.cart-qty-btn {
  touch-action: manipulation;
}

#cart-total:empty {
  display: none;
}

/* LOGÓ KONTÉNER ÉS KÉP */
.logo {
    display: flex;
    align-items: center;
    max-width: 180px; /* Ez a maximum szélesség desktopon - állítsd be ízlés szerint */
    transition: transform 0.3s ease;
}

.logo img {
    width: 100%;    /* Kitölti a .logo konténert */
    height: auto;   /* Megtartja az arányokat */
    display: block;
}

.logo:hover {
    transform: scale(1.05); /* Egy kis interakció, ha ráviszik az egeret */
}
.order-form input, 
.order-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    box-sizing: border-box;
}

.order-form label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.order-form .btn {
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

/* --- Theme toggle (header) --- */
.theme-toggle-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Dark mode (data-theme on <html>) --- */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: #121814;
  color: #e4eae6;
}

[data-theme="dark"] header {
  background: rgba(22, 38, 30, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .home-intro {
  background: linear-gradient(180deg, #1a221c 0%, #141c18 100%);
  border-top-color: rgba(201, 169, 104, 0.15);
  border-bottom-color: rgba(201, 169, 104, 0.1);
}

[data-theme="dark"] .home-intro__inner {
  color: #dce5df;
}

[data-theme="dark"] .home-intro__inner h2,
[data-theme="dark"] .home-bestsellers__head h2,
[data-theme="dark"] .home-bestsellers__all {
  color: #a8c9b5;
}

[data-theme="dark"] .home-intro__links a {
  color: #c9dcb8;
  border-bottom-color: rgba(168, 201, 181, 0.45);
}

[data-theme="dark"] .home-price-note {
  color: #9fb5a8;
}

[data-theme="dark"] .home-bestsellers {
  background: #161d19;
}

[data-theme="dark"] .shop-grid > .product-card {
  background: #1a221d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .product-card img {
  background: linear-gradient(180deg, #243028 0%, #1a221d 100%);
}

[data-theme="dark"] .product-card h3 {
  color: #b8d4c4;
}

[data-theme="dark"] .product-card p {
  color: #aeb8b0;
}

[data-theme="dark"] .product-card .price {
  color: #c9e0d0;
}

[data-theme="dark"] .page-content p {
  color: #c5cec8;
}

[data-theme="dark"] .legal-content h2 {
  color: #a8c9b5;
}

[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li {
  color: #cfd6d1;
}

[data-theme="dark"] .legal-notice {
  background: #2a2618;
  border-left-color: #c9a968;
  color: #e8e4d8;
}

[data-theme="dark"] .legal-notice strong {
  color: #f5f2ea;
}

[data-theme="dark"] .legal-refs {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #aeb8b0;
}

[data-theme="dark"] .legal-refs a {
  color: #c9dcb8;
}

[data-theme="dark"] .cart-section {
  background: #161d19;
}

[data-theme="dark"] .cart-line,
[data-theme="dark"] .cart-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cart-empty__hint,
[data-theme="dark"] .cart-item__unit {
  color: #9aa89e;
}

[data-theme="dark"] .cart-qty-btn,
[data-theme="dark"] .cart-qty-input {
  background: #0f1512;
  border-color: #3d5248;
  color: #e4eae6;
}

[data-theme="dark"] .cart-qty-btn:hover {
  background: #1a2620;
  color: #c9dcb8;
}

[data-theme="dark"] .cart-summary__row {
  color: #c5cec8;
}

[data-theme="dark"] .cart-summary__row--total {
  color: #eef4f0;
}

[data-theme="dark"] .cart-clear-btn {
  background: #1a221d;
  border-color: #3d5248;
  color: #dce5df;
}

[data-theme="dark"] .cart-clear-btn:hover {
  background: #243028;
  border-color: #5a7266;
}

[data-theme="dark"] .checkout-paid-banner {
  background: #1a2e24;
  color: #d4ebe0;
  border-color: rgba(78, 187, 174, 0.35);
}

[data-theme="dark"] .checkout-paid-banner--muted {
  background: #222420;
  color: #d8d8d4;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .cart-page__panel {
  background: #1a221d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .cart-page__lead,
[data-theme="dark"] .cart-page__hint,
[data-theme="dark"] .cart-page__legal {
  color: #a8b4ac;
}

[data-theme="dark"] .checkout-trust {
  background: #1b2822;
  border-color: rgba(168, 201, 181, 0.22);
}

[data-theme="dark"] .checkout-trust__title {
  color: #b8d4c4;
}

[data-theme="dark"] .checkout-trust__list {
  color: #b7c3bb;
}

[data-theme="dark"] .cart-page .order-form label {
  color: #c5d0c8;
}

[data-theme="dark"] .cart-page .order-form input,
[data-theme="dark"] .cart-page .order-form textarea,
[data-theme="dark"] .cart-page .order-form select,
[data-theme="dark"] main.content .order-form input,
[data-theme="dark"] main.content .order-form textarea {
  background: #0f1512;
  color: #e8eeea;
  border-color: #3d5248;
}

[data-theme="dark"] main.content .order-form label {
  color: #b8c4bc;
}

[data-theme="dark"] .field-error {
  color: #f0a8a8;
}

[data-theme="dark"] .form-order-error {
  color: #ffd4d4;
  background: #3a1c1c;
  border-color: #7a3a3a;
}

[data-theme="dark"] .skip-link:focus {
  background: #1a221d;
  color: #c9dcb8;
  border-color: #5a7266;
}

[data-theme="dark"] footer {
  background: #0a0d0b;
  color: #a8b4ac;
}

[data-theme="dark"] .footer-links a {
  color: #c5cec8;
}

[data-theme="dark"] .btn:hover {
  color: #0e1210;
}

[data-theme="dark"] .lang-switch-dropdown {
  background: #1e3228;
}

@media (max-width: 850px) {
  [data-theme="dark"] .main-nav > ul {
    background: #1a2e24;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.5);
  }

  [data-theme="dark"] .submenu {
    background: rgba(0, 0, 0, 0.35) !important;
  }
}

/* Admin (orders.html inline classes) */
[data-theme="dark"] .admin-wrap h1 {
  color: #e8eeea;
}

[data-theme="dark"] .admin-muted {
  color: #9aa89e;
}

[data-theme="dark"] .admin-controls input {
  background: #0f1512;
  border-color: #3d5248;
  color: #e4eae6;
}

[data-theme="dark"] .admin-controls button {
  background: #3d6b56;
  color: #fff;
}

[data-theme="dark"] .admin-table {
  background: #1a221d;
  color: #dce5df;
}

[data-theme="dark"] .admin-table th {
  background: #243028;
  color: #c9dcb8;
}

[data-theme="dark"] .admin-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .status-actions button {
  background: #0f1512;
  border-color: #3d5248;
  color: #dce5df;
}