/* =======================================================
   GLOBAL + HEADER
======================================================= */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #2f3b2f;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    background: white;
    border-bottom: 1px solid #e2e2e2;
}

.logo img {
    height: 100px;
}

.search-container {
    flex: 1;
    display: flex;
    margin: 0 40px;
}

.search-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 15px;
}

.search-btn {
    padding: 12px 18px;
    background: #7e846b;
    border: none;
    color: white;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 18px;
}

.header-buttons .btn {
    margin-left: 12px;
    padding: 10px 10px;
    background: white;
    border: 1px solid #3a4b38;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    color: #3a4b38;
    transition: 0.2s;
}

.header-buttons .btn:hover {
    background: #3a4b38;
    color: white;
}

/* =======================================================
   MAIN MENU BAR
======================================================= */

.menu-bar {
    background: #2f3b2f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    position: relative;
    z-index: 100;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 25px;
}

.menu-links {
    display: flex;
    gap: 25px;
    margin-left: auto;
    margin-right: 0;
    padding: 0;
    list-style: none;
}

.menu-links li {
    list-style: none;
}

.menu-links li a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-links li a:hover {
    color: #c7d7c0 !important;
}

/* =======================================================
   MEGA MENU
======================================================= */

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 780px;
    background: #f4f6f2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1500;
    margin-top: 2px;
}

.mega-menu.open {
    display: flex;
}

/* =======================================================
   LEFT SIDE – MAIN CATEGORIES
======================================================= */

.main-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 240px;
    background: #f0f2ec;
    border-right: 1px solid #d7dbd0;
}

.main-categories li {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 17px;
    color: #2f3b2f;
    font-weight: 600;
    transition: 0.2s;
}

.main-categories li span {
    margin-right: 10px;
    font-size: 22px;
}

.main-categories li:hover,
.main-categories li.active {
    background: #d8dcd2;
    color: #2f3b2f;
}

/* =======================================================
   RIGHT SIDE – SUBMENU PANEL
======================================================= */

.submenu-panel {
    flex: 1;
    padding: 25px;
    background: #f7f9f5;
    display: flex;
}

.submenu {
    display: none;
    width: 100%;
    color: #2f3b2f;
}

.submenu.active {
    display: block;
}

.submenu h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    color: #2f3b2f;
}

.columns {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 50px;
}

.columns li {
    margin-bottom: 8px;
    font-size: 15px;
    cursor: pointer;
    color: #2f3b2f;
}

.columns li:hover {
    text-decoration: underline;
    color: #4a5c48;
}



/* =======================================================
   Termék megjelenités
======================================================= */

/* =======================================================
   Termék megjelenítés (KONTÉNER JAVÍTVA)
======================================================= */

.product-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px; /* Lecsökkentve 20px-ről, hogy közelebb legyen a tetejéhez */
}

/* FEJLÉC SÁV - Keret és háttér nélkül, átrendezve */
.filter-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 70%;
    margin-left: auto;
    padding: 5px 0; /* Kisebb függőleges padding a távolság csökkentéséhez */
    margin-bottom: 5px; /* Lecsökkentve 15px-ről, hogy közelebb legyen a lapozóhoz */
    background: transparent;
    box-shadow: none;
    border: none;
}

/* ÚJ ELRENDEZÉS ELEMEI */
.total-count-left {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #4b6346;
    text-align: left; /* Balra igazítva */
}

.limit-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.sort-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Egységes select formázás (a te stílusod alapján) */
.filter-sort-bar select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.product-list {
    width: 70%;
    margin-left: auto;
}

/* mobil */
@media (max-width: 1100px) {
    .product-list, .filter-sort-bar, .pagination {
        width: 100%;
        margin-left: 0;
    }
}

/* =======================================================
   Termékkártyák 
======================================================= */

.product-list-row{
  display: grid;
  grid-template-columns: 80px 1fr 32px 120px 120px 110px 120px;
  align-items: center;
  background: #fff;
  padding: 8px 12px;          /* VÉKONYABB */
  border-radius: 6px;
  margin-bottom: 8px;         /* kisebb rés */
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* kép doboz kisebb */
.pl-image{
  display:flex;
  justify-content:center;
  align-items:center;
}
.pl-image img{
  max-width: 70px;
  max-height: 50px;
  object-fit: contain;
}

/* szövegek kisebb + sűrűbb */
.pl-info{ display:flex; flex-direction:column; gap:2px; }
.pl-name{ font-size: 16px; font-weight: 600; color:#222; line-height:1.1; }
.pl-meta{ font-size: 12px; color:#888; line-height:1.1; }

.pl-wishlist{ font-size:18px; color:#ddd; text-align:center; }

.pl-price{ text-align:right; font-size:20px; font-weight:800; color:#222; }
.pl-price span{ font-size:14px; }

.pl-stock{ text-align:center; font-size:13px; font-weight:700; }
.pl-stock.in-stock{ color:#82b440; }
.pl-stock.out-of-stock{ color:#cc0000; }

/* qty + gomb kisebb */
.pl-qty{ display:flex; align-items:center; justify-content:center; gap:6px; }
.pl-qty input{
  width: 50px;
  height: 28px;              /* VÉKONYABB */
  text-align:center;
  border:1px solid #ccc;
  font-size:13px;
}
.pl-qty span{ font-size:13px; color:#666; }

.pl-cart{ display:flex; justify-content:center; }
.pl-cart button{
  height: 28px;              /* VÉKONYABB */
  padding: 0 14px;
  border: 1px solid #4b6346;
  background: #4b6346;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}


/* =======================================================
   ÚJ: LAPOZÓ (PAGINATION)
======================================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 70%;
    margin-left: auto;
    margin-top: 5px; /* Lecsökkentve 30px-ről, hogy közelebb legyen a fejléc sávhoz */
    padding-bottom: 20px; /* Lecsökkentve 50px-ről */
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.pagination a.active {
    background: #4b6346;
    color: #fff;
    border-color: #4b6346;
}

.pagination a:hover:not(.active) {
    background: #f4f4f4;
}

.pagination .dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    font-weight: bold;
    color: #888;
}




/* A teljes mega-menu alapbeállítása */
/* 1. A jobb oldali nagy fehér panel beállítása */
.submenu {
    display: none; 
    position: absolute;
    left: 250px; /* A bal oldali főkategória sáv szélessége */
    top: 0;
    width: 700px; /* Megnövelt szélesség a két oszlophoz */
    min-height: 100%;
    background: #ffffff;
    padding: 30px;
    box-shadow: 10px 0 20px rgba(0,0,0,0.05);
    z-index: 100;
    
    /* Az alkategóriák oszlopokba rendezése */
    column-count: 2; 
    column-gap: 40px;
}

/* 2. Listajelek (pontok) teljes eltüntetése */
.sub-list, .sub-list li {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

/* 3. Alkategória csoportok távolsága */
.sub-item {
    display: block;
    break-inside: avoid; /* Ne törje ketté az oszlop a csoportot */
    margin-bottom: 25px;
}

/* 4. ALKATEGÓRIA NEVE - Bold, nyíl nélkül */
.sub-link {
    display: block;
    font-weight: bold !important;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
    padding: 0;
    border: none;
}

/* 5. TÍPUSOK LISTÁJA - Fixen az alkategória alatt */
.type-flyout {
    display: block !important; /* Felülírjuk a hover-kényszert */
    position: static; /* Nem ugrik ki, hanem marad a név alatt */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* 6. Típus linkek stílusa - Szürkébb, normál súlyú */
.type-link {
    display: block;
    font-weight: normal !important;
    font-size: 14px;
    color: #777;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.type-link:hover {
    color: #c43b1d;
}

/* --- TÖRLÉSEK: Nyilak, pontok és "típusai" szövegek elrejtése --- */

/* Minden lista-pötty eltüntetése minden szinten */
ul, li {
    list-style-type: none !important;
}

/* Nyilak elrejtése, ha a HTML-ben benne maradtak volna */
.arrow-icon, .flyout-arrow, .arrow-right, .sub-link span {
    display: none !important;
}

/* Bármilyen automatikus fejléc szöveg törlése */
.type-popup-header, .flyout-title, .panel-header {
    display: none !important;
}


/* --- Termékpanel--- */


/* Modál háttér (sötétítés) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

/* A termék panel (fehér doboz) */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 35px;
    cursor: pointer;
    color: #aaa;
}

/* Belső elrendezés (Kép balra, adatok jobbra) */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.modal-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.modal-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #444;
}

.modal-price {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0;
}

.modal-stock {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Kosár gomb a kép alapján */
.modal-add-to-cart {
    background: #2e4d2a;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
}








/* Modál alapok */
.modal {
    display: none; /* Alapból rejtve */
    position: fixed;
    z-index: 99999 !important; /* Brutál magas érték, hogy minden felett legyen */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Sötétítés */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 30px; cursor: pointer; color: #999;
}

/* Termék elrendezés */
.product-view-container {
    display: flex;
    gap: 40px;
}

.pv-left { flex: 0 0 45%; }
.pv-left img { width: 100%; height: auto; object-fit: contain; }

.pv-right { flex: 1; }

.pv-category-path { font-size: 12px; color: #999; text-transform: uppercase; margin-bottom: 10px; }
.pv-title { font-size: 28px; font-weight: bold; color: #333; margin: 0 0 15px 0; }
.pv-meta { font-size: 14px; color: #666; margin-bottom: 5px; }

.pv-divider { border: 0; border-top: 1px solid #eee; margin: 20px 0; }

.pv-status.instock { color: #2e4d2a; font-weight: bold; margin-bottom: 15px; }
.pv-status.outstock { color: #c43b1d; font-weight: bold; margin-bottom: 15px; }

.pv-price { font-size: 36px; font-weight: 800; color: #222; }
.pv-unit { font-size: 18px; color: #888; }

.pv-action-row { display: flex; align-items: center; gap: 15px; margin-top: 30px; }

.pv-qty-box input {
    width: 60px; height: 45px; text-align: center;
    border: 1px solid #ddd; font-size: 18px;
}

.pv-cart-btn {
    background: #2e4d2a; color: #fff; border: none;
    padding: 0 40px; height: 45px; font-weight: bold;
    cursor: pointer; transition: 0.2s;
}

.pv-cart-btn:hover { background: #1f351c; }

.pv-wish-btn {
    background: #f4f4f4; border: 1px solid #ddd;
    width: 45px; height: 45px; font-size: 20px; cursor: pointer;
}


.pd-wrap {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

.pd-breadcrumb {
  font-size: 14px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 18px;
}

.pd-breadcrumb a {
  color: #2f3e2f;
  text-decoration: none;
}

.pd-breadcrumb .sep {
  color: #bbb;
}

.pd-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 28px;
  align-items: start;
}

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

.pd-image-main {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pd-image-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pd-noimg {
  color: #999;
}

.pd-thumbbar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-thumb.active {
  border-color: #2f3e2f;
}

.pd-title {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #9a9a8f;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pd-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 8px 0 14px;
}


.pd-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 1;
  user-select:none;
}

/* inaktív állapot: halványabb, de keret marad */
.pd-badge:not(.is-active){
  opacity: .45;
}

.pd-badge.is-active{
  opacity: 1;
  background: #4E8DF5;
  border-color: #4E8DF5;
  color: #fff;
}


.pd-hr {
  border: none;
  border-top: 2px solid #e9e9e6;
  margin: 16px 0;
}

.pd-meta-grid {
  display: grid;
  gap: 10px;
}

.pd-meta-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.pd-meta-row .k {
  min-width: 160px;
  color: #666;
}

.pd-meta-row .v {
  color: #222;
}

.pd-ship-note {
  margin: 18px 0;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pd-buyrow {
  margin-top: 14px;
  border-top: 2px solid #e9e9e6;
  padding-top: 18px;
}

.pd-stock {
  font-size: 28px;
  font-weight: 800;
  text-align: right;
  margin-bottom: 10px;
}

.pd-stock.instock {
  color: #8dbb00;
}

.pd-stock.outstock {
  color: #c0392b;
}

.pd-price {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.pd-price-label {
  color: #666;
}

.pd-price-value {
  font-size: 52px;
  font-weight: 900;
  color: #222;
}

.pd-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-qty {
  display: flex;
  align-items: center;
  background: #f3f3f3;
  border-radius: 10px;
  overflow: hidden;
}

.pd-qty input {
  width: 70px;
  border: none;
  background: transparent;
  padding: 12px 10px;
  text-align: center;
  font-size: 16px;
  outline: none;
}

.pd-unit {
  padding: 0 12px;
  color: #666;
}

.pd-cart-btn {
  background: #2f3e2f;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.pd-cart-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pd-wish-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
}

.pd-desc {
  margin-top: 18px;
  color: #444;
  line-height: 1.55;
}
/* a bal oldali “kártya”/doboz legyen teljesen háttér nélküli */
.pd-left,
.pd-image-main{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ne legyen fix magasság -> ne legyen üres fehér rész */
.pd-image-main{
  height: auto !important;
  overflow: visible !important;
}

/* a kép maga */
.pd-image-main img{
  display: block;
  width: 86% !important;
  height: auto !important;     /* arányt tart */
  max-height: none !important;
  object-fit: initial !important;
}



/* ===== KOSÁR NÉZET (cart.php) ===== */

/* teljes kosár wrapper, középre igazítva */
.cart-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 0;
}

/* fejléc sor: cím + meta */
.cart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px 0 14px;
}

.cart-title {
  font-size: 22px;
  font-weight: 700;
}

.cart-meta {
  opacity: 0.75;
  font-size: 13px;
}

/* üres kosár kártya */
.cart-empty {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 18px;
}

.cart-empty-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-empty-sub {
  opacity: 0.8;
  margin-bottom: 14px;
  line-height: 1.35;
}

.cart-btn {
  padding: 8px 12px;
}

/* 2 oszlop: bal oldalt termékek, jobb oldalt összesítés */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
}

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

/* bal oldal konténer */
.cart-items {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 10px;
}

/* 1 sor / 1 tétel */
.cart-row {
  display: grid;
  grid-template-columns: 86px 1fr 120px 170px 140px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-row:last-child {
  border-bottom: 0;
}

/* mobilon egymás alá tördel */
@media (max-width: 900px) {
  .cart-row {
    grid-template-columns: 86px 1fr;
    grid-auto-rows: auto;
  }

  .cart-price,
  .cart-qty,
  .cart-line {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
  }
}

/* kép */
.cart-img img {
  width: 86px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* ha nincs kép */
.cart-img-ph {
  width: 86px;
  height: 62px;
  border-radius: 8px;
  border: 1px dashed #ddd;
  background: #fafafa;
}

/* név + sku */
.cart-name {
  font-weight: 700;
  line-height: 1.25;
}

.cart-sku {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 3px;
}

/* ár blokk */
.cart-price-unit {
  font-weight: 700;
}

.cart-price-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

/* mennyiség blokk */
.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #dcdcdc;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.cart-qty-input {
  width: 64px;
  height: 30px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 0 8px;
}

.cart-unit {
  font-size: 12px;
  opacity: 0.75;
  width: 28px;
  text-align: left;
}

/* sor vége: sorösszeg + törlés */
.cart-line {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-line-sum {
  font-weight: 700;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: #b00020;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

/* alsó gombok */
.cart-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 4px 2px;
}

/* jobb oldali összesítő */
.cart-summary {
  align-self: start;
}

.cart-summary-box {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 12px;
  position: sticky;
  top: 12px;
}

.cart-sum-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.cart-sum-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.cart-sum-divider {
  height: 1px;
  background: #eee;
  margin: 8px 0;
}

.cart-sum-total {
  font-size: 16px;
}

.cart-checkout {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
}

.cart-note {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 8px;
  line-height: 1.35;
}

/* az egész cart-view középre igazítása a page-en */
#cart-view {
  max-width: 1200px;
  margin: 0 auto;
}



.header-cart-btn{position:relative}
.cart-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#b00020;
  color:#fff;
  font-size:12px;
  line-height:18px;
  text-align:center;
  font-weight:700;
  border:2px solid #fff;
}

/* product area 30/70 split, CSAK a product list zónában */
.pl-split{
  display:flex;
  gap:20px;
  align-items:flex-start;
}


.pl-right{
  width:100%;
}

/* üres bal doboz */
.pl-left-box{
  min-height: px;
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius:10px;
  padding:16px;
}

/* a jobb oldalon ne a régi 70%-os trükk legyen */
.pl-right .filter-sort-bar,
.pl-right .product-list,
.pl-right .pagination{
  width: 80% !important;
  margin-left: 0 !important;
}

/* mobil */
@media (max-width:1100px){
  .pl-split{flex-direction:column;}
  .pl-left,.pl-right{width:100%;}
}

.supplier-logos{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.supplier-logo-item{
  width:100%;
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.supplier-logo-item img{
  max-width:100%;
  max-height:70px;
  object-fit:contain;
  display:block;
}

/* ===== LOGÓ SOR + FIX LAYOUT (TELJES, JAVÍTOTT) ===== */

:root{
  --top-offset: 180px;      /* JS felülírja */
  --bottom-gap: 10px;

  --logo-offset: 40px;      /* + lejjebb, - feljebb */
  --logo-box-h: 60%;        /* keretes doboz magassága (a bal oszlophoz képest) */

  --logo-col-w: 70px;      /* a LOGÓOSZLOP (belső) szélessége */
  --logo-gap: 10px;         /* a KERET és a logóoszlop közti hézag (padding) */
}

/* oldal ne scrollozzon, csak a listák */
html, body{
  height: 100%;
  overflow: hidden;
}

/* main fix magasság a fejléc+menü alatt */
main{
  height: calc(100vh - var(--top-offset));
  overflow: hidden;
}

/* split zóna kitölti a maradék helyet */
.product-list-container{
  height: 100%;
  box-sizing: border-box;
}

.pl-split{
  height: 100%;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* BAL/JOBB oszlop magasság egyezzen */
.pl-left,
.pl-right{
  height: 100%;
}

/* BAL oszlop */
.pl-left{
  width: 15%;
  display: flex;
  flex-direction: column;
 
  align-items: flex-end;        /* jobbra */
  box-sizing: border-box;
  padding-bottom: var(--bottom-gap);
}

/* JOBB oszlop: fix felső sávok + görgetős lista */
.pl-right{
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: var(--bottom-gap);
}

/* felső sávok ne scrollozzanak */
.pl-right .filter-sort-bar,
.pl-right .pagination{
  flex: 0 0 auto;
  width: 100% !important;
  margin-left: 0 !important;
}

/* csak ez a rész scrollozik jobbra */
.pl-right-scroll{
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-right: 10px;
  padding-bottom: 0;
}

/* jobb oldali régi 70% trükk kikapcs */
.pl-right .product-list{
  width: 100% !important;
  margin-left: 0 !important;
}

/* ===== BAL: “kártya” stílusok kilövése ===== */
.pl-left,
.pl-left-box{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ===== KERETES KONTÉNER (EZ KÖRBEVESZI A LOGÓOSZLOPOT) ===== */
/* ===== 1. KÜLSŐ KERET (FELTOLVA A TETEJÉRE) ===== */
.supplier-box{
  width: calc(var(--logo-col-w) * 2);
  height: var(--logo-box-h);

  border: 2px solid #B0B0B0;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;

  margin-top: 30px;

  display: flex;
  flex-direction: column;     /* EZ KELL */
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.supplier-box .box-cap{
  height: 30px;
  background: #B0B0B0;
  margin: -6px -6px 6px;      /* a supplier-box padding-ja miatt */
  display:flex;
  align-items:center;
  padding: 0 10px;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  flex: 0 0 auto;
}


/* ===== 2. BELSŐ LOGÓLISTA ===== */
.pl-left-box.supplier-logos{
  overflow-y: auto;

  width: 100%; 
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Fentről induljanak a logók */
  align-items: center;
  margin: 0;
  padding: 0;
  touch-action: pan-y;               /* engedi az ujj scrollt */
  scrollbar-width: none;
  overscroll-behavior: contain;
  -ms-overflow-style: none;
   -webkit-overflow-scrolling: touch; /* iOS momentum */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
/* Scrollbar elrejtése Chrome/Safari */
.pl-left-box.supplier-logos::-webkit-scrollbar {
  display: none;
}

/* ===== 3. LOGÓ ELEMEK ===== */
.supplier-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0; /* Kicsit több hely a logók között */
  width: 100%;
}

.supplier-logo-item img {
  display: block;
  max-width: 90%;
  max-height: 60px;
  object-fit: contain;
}
.supplier-logo-item.is-active img {
  transform: scale(1.2);
}

/* ===== 4. SZŰRŐ ÉS RENDEZŐ SÁV ===== */
.filter-sort-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.fs-btn, .fs-form select {
  padding: 8px 14px;
  border: 1px solid #cfcfcf;
  background: #fff;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.fs-count {
  margin-left: auto;
  font-weight: 700;
  color: #4b6346;
   white-space: nowrap;
}

.fs-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* MOBILON ne tiltsd a page scrollt */
@media (max-width: 1100px){
  html, body{
    height: auto;
    overflow: auto;                  /* EZ KELL */
  }

  main{
    height: auto;
    overflow: visible;
  }

  /* a logó doboz kapjon fix magasságot, hogy legyen mit görgetni */
  .supplier-box{
    height: 60vh;                    /* állítsd ízlésre */
    transform: none;                 /* ne legyen felcsúsztatás mobilon */
  }

  .pl-left-box.supplier-logos{
    height: 100%;
    overflow-y: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}



/* MEGA MENU – bal oldali kategória linkek (zöld, nem lila, nem default underline) */
.main-categories li a{
  display:block;
  width:100%;
  color:#2f3b2f;
  font-weight:700;
  text-decoration:none;
  
  /* “aláhúzás” modern módon */
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .18s ease, color .18s ease;
}

.main-categories li a:visited{
  color:#2f3b2f;           /* ne legyen lila */
}

.main-categories li:hover a,
.main-categories li.active a{
  color:#4b6346;           /* zöld hover/aktív */
  background-size: 100% 2px;
}


/* SZŰRŐK – ugyanaz a “keret + felső sáv” mint a logo box */
.filters-wrap{
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;   /* jobbra, mint a logóbox */
}

.filters-box{
  width: calc(var(--logo-col-w) * 2);  /* ugyanaz a szélesség, mint a supplier-box */
  border: 2px solid #B0B0B0;
 
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  padding: 12px 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* a felső szürke “sáv” */
.filters-box .box-cap{
  height: 30px;               /* ugyanaz mint eddig a border-top */
  background: #B0B0B0;
  margin: -12px -10px 12px;   /* felhúzza a sávot a doboz tetejére */
  display:flex;
  align-items:center;
  padding: 0 10px;
  font-weight: 800;
  color: #fff;                /* vagy #2f3b2f */
  font-size: 14px;
}

/* gombok maradhatnak, csak picit igazítsuk a dobozhoz */
.filter-btn{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #f7f7f7;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.filter-btn:hover{ background:#efefef; }

.filter-btn.active{
  background:#2e7d32;
  border-color:#2e7d32;
  color:#fff;
}

/* egységes akciógomb (mint a kosár gomb) */
.action-btn{
  height: 28px;
  padding: 0 14px;
  border: 1px solid #4b6346;
  background: #4b6346;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* a két gomb egy sorban */
.top-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}


/* ===== mini kosár layout: 70/30 csak ha van tartalom ===== */

.pl-right-main{
  flex: 1 1 auto;
  display: flex;
  gap: 14px;
  height: 100%;
  overflow: hidden;
}

/* alapból a lista tölt mindent */
.pl-right-scroll{
  flex: 1 1 auto;
  min-width: 0;
}

/* ha mini kosár nyitva: lista 70% */
.pl-right.mini-open .pl-right-scroll{
  flex: 0 0 70%;
}

/* mini kosár doboz */
.mini-cart{
  flex: 0 0 30%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* fejcsík mint a beszállítók/szűrők */
.mini-cart-cap{
  height: 30px;
  background: #B0B0B0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
}

.mini-cart-body{
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px;
  min-height: 0;
}

.mini-cart-item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mini-cart-item:last-child{ border-bottom: 0; }

.mini-cart-name{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.mini-cart-meta{
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.mini-cart-price{
  font-weight: 800;
  white-space: nowrap;
}

.mini-cart-footer{
  border-top: 1px solid #eee;
  padding: 10px;
  flex: 0 0 auto;
}

.mini-cart-sum{
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mini-cart-btn{
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #cfcfcf;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* mobilon inkább ne legyen jobb oldali mini-kosár */
@media (max-width: 1100px){
  .mini-cart{ display: none !important; }
  .pl-right.mini-open .pl-right-scroll{ flex: 1 1 auto; }
}

/* 2026-11-06: kosárból megnyitható termékek és logógörgető nyilak. */
.cart-product-link {
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
}
a.cart-name { display: inline-block; }
.cart-product-link:hover { color: #315e3c; }
.cart-img.cart-product-link { display: block; }
.cart-img.cart-product-link:hover img { box-shadow: 0 0 0 2px #83a78b; }
.cart-product-link:focus-visible { outline: 2px solid #315e3c; outline-offset: 3px; }
.supplier-box .supplier-scroll-btn {
  display: flex;
  flex: 0 0 23px;
  width: 100%;
  height: 23px;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f0f3ee;
  color: #506348;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.supplier-box .supplier-scroll-btn:hover:not(:disabled) { background: #dde8d8; }
.supplier-box .supplier-scroll-btn:disabled { opacity: 0.3; cursor: default; }
.supplier-box .supplier-scroll-btn:focus-visible { outline: 2px solid #315e3c; outline-offset: -2px; }
.supplier-box .supplier-scroll-btn[hidden] { display: none; }
.supplier-box .pl-left-box.supplier-logos {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  -webkit-mask-image: none;
  mask-image: none;
}
.supplier-box .supplier-logo-item { flex: 0 0 auto; }
.filters-box a.filter-btn { display: block; box-sizing: border-box; text-decoration: none; text-align: center; color: inherit; }
.filters-box a.filter-btn.active { color: #fff; }
.filters-box a.filter-btn:focus-visible { outline: 2px solid #315e3c; outline-offset: 2px; }
.filters-clear { text-align: center; font-size: 12px; color: #506348; }


/* Részletes szűrőpanel – előkészített felület, termékszűrés nélkül. */
.dn-catalog-filters {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 30px 0 16px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b5b9ac transparent;
}
.dn-catalog-filters-title {
  margin: 0 0 12px;
  padding: 0 10px;
  color: #8c947f;
  font: 700 13px/1.4 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dn-filter-group { padding: 12px; border-radius: 7px; }
.dn-filter-group-olive { background: #999e8c; }
.dn-catalog-filters h3 {
  margin: 0 0 10px;
  font: 700 14px/1.3 Arial, sans-serif;
  text-transform: uppercase;
}
.dn-filter-group-olive h3 { color: #fff; padding: 2px 4px 0; }
.dn-filter-options {
  max-height: 178px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #d5d8cd;
  border-radius: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #969c8c #f2f3ef;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.dn-filter-options::-webkit-scrollbar { width: 7px; }
.dn-filter-options::-webkit-scrollbar-track { background: #f2f3ef; }
.dn-filter-options::-webkit-scrollbar-thumb { background: #969c8c; border-radius: 8px; }
.dn-filter-options label, .dn-stock-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 5px 6px;
  border-radius: 4px;
  font: 400 14px/1.4 Arial, sans-serif;
  color: #354332;
  cursor: pointer;
  box-sizing: border-box;
}
.dn-filter-options label:hover, .dn-stock-option:hover { background: #f2f5ee; }
.dn-catalog-filters input[type="radio"], .dn-catalog-filters input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: #78846b;
  cursor: pointer;
}
.dn-catalog-filters input:focus-visible, .dn-catalog-filters button:focus-visible,
.dn-general-filters summary:focus-visible { outline: 2px solid #4d6947; outline-offset: 3px; }
.dn-general-filters {
  margin-top: 22px;
  padding: 0;
  border: 1px solid #e8eae4;
  border-radius: 8px;
  background: #efefed;
}
.dn-general-filters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 16px;
  color: #394635;
  font: 400 17px/1.3 Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.dn-general-filters summary::-webkit-details-marker { display: none; }
.dn-filter-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #55674b;
  border-bottom: 2px solid #55674b;
  transform: rotate(45deg);
  margin: -4px 2px 0 0;
}
.dn-general-filters[open] .dn-filter-chevron { transform: rotate(225deg); margin-top: 4px; }
.dn-general-filters-body { padding: 0 12px 12px; }
.dn-filter-brands { padding: 12px; background: #fff; border-radius: 4px; }
.dn-filter-brands h3 { color: #475340; }
.dn-filter-brands .dn-filter-options { max-height: 178px; }
.dn-stock-option { margin: 10px 0 0; padding: 9px 6px; }
.dn-filter-search {
  display: flex;
  min-width: 0;
  height: 46px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #e0e3da;
  border-radius: 7px;
  background: #efefed;
}
.dn-filter-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #354332;
  font: 400 13px Arial, sans-serif;
}
.dn-filter-search input::placeholder { color: #7a8174; opacity: 1; }
.dn-filter-search button {
  flex: 0 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #959c85;
  color: #fff;
  cursor: pointer;
}
.dn-filter-search button:hover { background: #7e896b; }
.dn-filter-search svg { width: 23px; height: 23px; }
@media (min-width: 1101px) {
  .product-list-container { max-width: 1880px; padding: 10px 24px; }
  .pl-split {
    display: grid;
    grid-template-columns: clamp(200px, 15.5vw, 280px) 140px minmax(0, 1140px);
    gap: 20px;
    justify-content: start;
  }
  .pl-split > .pl-left { width: 140px; min-width: 0; }
  .pl-split > .pl-right { min-width: 0; width: auto; }
}
@media (max-width: 1100px) {
  .dn-catalog-filters { width: 100%; max-width: 400px; height: auto; padding-top: 18px; margin: 0 auto 10px; }
  .pl-split { height: auto; }
}

/* LOGÓPANEL MAGASSÁGJAVÍTÁS: a termékszám nem növelheti a grid sorát. */
@media (min-width: 1101px) {
  .product-list-container { min-height: 0; overflow: hidden; }
  .pl-split {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
  .pl-split > .pl-left,
  .pl-split > .pl-right {
    min-height: 0;
    max-height: 100%;
  }
  .pl-split > .pl-left {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }
  .pl-left > .supplier-box {
    flex-shrink: 1;
    min-height: 110px;
    max-height: min(520px, 60vh);
  }
  .pl-left > .filters-wrap { flex: 0 0 auto; }
  .pl-right-main {
    min-height: 0;
    height: auto;
  }
  .pl-right-scroll { min-height: 0; }
}

/* 2026-11-07: közös keresési állapot és kategóriához kötött szűrőpanel. */
.dn-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; }
.top-header .search-container { min-width:0; }
.search-container input[type="search"] { min-width:0; width:100%; box-sizing:border-box; }
.top-header .header-buttons { display:flex; flex:0 0 auto; align-items:center; }
.logo { flex:0 0 auto; }
.dn-catalog-context { flex:0 0 auto; padding:16px 0 0; min-width:0; }
.dn-scope-title { font-size:21px; line-height:1.3; margin:10px 0; color:#35462f; }
.dn-breadcrumb { display:flex; gap:7px; flex-wrap:wrap; font-size:13px; line-height:1.5; }
.dn-breadcrumb a { color:#5b6b50; text-decoration:none; }
.dn-breadcrumb a[aria-current] { font-weight:700; }
.dn-filter-chips { display:flex; flex-wrap:wrap; gap:7px; }
.dn-filter-chips a { display:inline-flex; align-items:center; gap:9px; padding:6px 10px; border:1px solid #d9dfd2; border-radius:16px; background:#edf1e7; color:#3d5038; text-decoration:none; font-size:12px; overflow-wrap:anywhere; }
.dn-filter-chips a:hover { background:#dce5d4; }
.dn-filter-chips a span { font-size:18px; line-height:1; }
.dn-category-options a { display:flex; gap:8px; justify-content:space-between; padding:9px 8px; text-decoration:none; color:#43513b; font-size:14px; line-height:1.4; }
.dn-category-options a:hover { background:#edf2e8; }
.dn-filter-hint { font-size:12px; line-height:1.5; margin:0 4px 9px; color:#fff; }
.dn-pending-subgroups { margin-top:16px; }
.dn-pending-subgroups label { cursor:default; color:#72786c; }
.dn-general-filters { margin-top:20px; }
.dn-general-filters-body { margin:0; }
.dn-filter-options small { color:#78816e; white-space:nowrap; }
.dn-apply-filters { display:block; width:100%; padding:10px 8px; border:1px solid #4b6346; border-radius:5px; color:#fff; background:#4b6346; font-weight:700; cursor:pointer; }
.dn-apply-filters:hover { background:#3b5237; }
.dn-filter-search { margin-top:20px; min-width:0; }
.dn-filter-search input[type="search"] { min-width:0; width:0; box-sizing:border-box; padding:12px 9px; font-size:12px; }
.dn-filter-search button { flex:0 0 42px; padding:10px; }
.dn-catalog-message { padding:35px 20px; text-align:center; line-height:1.6; }
.dn-catalog-message a { color:#435f3a; }
.welcome-screen img { opacity:.65; }
.dn-supplier-clear { color:#4b6346; text-align:center; font-size:12px; padding:4px 2px 7px; }
.supplier-box .supplier-logo-item { box-sizing:border-box; flex-direction:column; gap:4px; min-height:100px; padding:10px 6px; text-decoration:none; text-align:center; color:#41523b; }
.supplier-box .supplier-logo-item img { max-height:51px; max-width:95px; }
.supplier-box .supplier-logo-item img[hidden] { display:none; }
.supplier-box .supplier-logo-item span { font-size:12px; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.supplier-box .supplier-logo-item small { font-size:10px; color:#7c8575; }
.supplier-box .supplier-logo-item.is-active { border-color:#68805a; background:#edf3e7; box-shadow:inset 0 0 0 1px #68805a; }
.supplier-logo-item.is-active img { transform:none; }
.supplier-logo-item:focus-visible, .dn-category-options a:focus-visible, .dn-filter-chips a:focus-visible { outline:2px solid #44613a; outline-offset:-3px; }
.pl-left-box.supplier-logos { mask-image:none; -webkit-mask-image:none; scrollbar-width:thin; }
.pl-left-box.supplier-logos::-webkit-scrollbar { display:block; width:5px; height:5px; }
.dn-empty-suppliers { padding:10px 4px; font-size:12px; text-align:center; }
.filter-sort-bar { flex-wrap:wrap; }
.fs-count { margin-left:0; margin-right:auto; }
.fs-form { flex-wrap:wrap; }
.fs-note { font-size:11px; opacity:.7; flex-basis:100%; }
.pl-right .pagination.fs-pagination { width:auto !important; padding:0; margin:0; gap:6px; }
.dn-sort-submit { border:1px solid #cfcfcf; border-radius:5px; background:white; padding:8px; cursor:pointer; }
.dn-js .dn-sort-submit { display:none; }
/* Külön nyíl nyitja az ágat; a felirat mindig valódi kategórialink. */
.mega-menu { width:min(900px, calc(100vw - 20px)); max-height:calc(100vh - var(--top-offset) - 12px); overflow-y:auto; }
.main-categories { flex:0 0 230px; width:230px; }
.main-categories li { padding:0; gap:3px; }
.main-categories li a { flex:1; min-width:0; padding:11px 14px; font-size:15px; }
.dn-category-expand, .dn-type-expand { flex:0 0 34px; border:0; border-radius:4px; min-height:36px; background:transparent; color:#41543a; font-size:23px; cursor:pointer; }
.dn-category-expand:hover, .dn-type-expand:hover { background:#d8e2cf; }
.dn-category-expand:focus-visible, .dn-type-expand:focus-visible, .menu-toggle:focus-visible { outline:2px solid #9bb184; outline-offset:-2px; }
.submenu-panel { min-width:0; padding:14px; }
.mega-menu .submenu { position:static; left:auto; top:auto; width:100%; min-height:0; padding:0; background:transparent; box-shadow:none; column-count:1; column-gap:0; box-sizing:border-box; }
.mega-menu .sub-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 16px; }
.dn-category-all { display:block; padding:8px; margin-bottom:8px; font-weight:700; color:#41543a; }
.dn-category-row { display:flex; align-items:center; }
.sub-item .sub-link { flex:1; padding:10px 8px; min-width:0; font-size:15px; }
.mega-menu .sub-item { position:static; }
.mega-menu .type-flyout { display:none !important; position:static; width:auto; min-width:0; margin:0 0 8px 14px; padding:4px 0 4px 10px; border:0; border-left:2px solid #cbd7c1; box-shadow:none; background:transparent; }
.mega-menu .sub-item.types-open > .type-flyout,
.mega-menu .sub-item:focus-within > .type-flyout { display:block !important; }
.mega-menu .type-flyout .type-link { padding:7px 8px; font-size:14px; }
@media (hover:hover) { .mega-menu .sub-item:hover > .type-flyout { display:block !important; } }
@media (min-width:1101px) {
  .product-list-container:has(.no-category) { max-width:1440px; }
  .pl-split.no-category { grid-template-columns:140px minmax(0,1fr); }
  .pl-split.has-category { grid-template-columns:clamp(210px,17vw,280px) 140px minmax(0,1fr); }
  .pl-left > .supplier-box { margin-top:20px; }
  .dn-catalog-filters { padding-top:20px; }
}
@media (min-width:1101px) and (max-width:1450px) {
  .product-list-row { grid-template-columns:60px minmax(0,1fr) 22px 92px 90px 74px 86px; padding:8px; gap:4px; }
  .pl-name { font-size:14px; line-height:1.25; }
  .pl-price { font-size:17px; }
  .pl-cart button { padding:0 8px; }
  .pl-stock { font-size:11px; }
  .fs-form select { padding:7px; font-size:12px; }
}
@media (max-width:1100px) {
  .top-header { flex-wrap:wrap; gap:8px; padding:10px; }
  .logo img { height:65px; }
  .search-container { margin:0 12px; }
  .header-buttons .btn { font-size:12px; margin-left:5px; }
  .product-list-container { padding:10px 14px; }
  .pl-split { display:grid; grid-template-columns:140px minmax(0,1fr); gap:16px; align-items:start; }
  .pl-split > .pl-left { width:140px; height:auto; align-items:stretch; min-width:0; }
  .pl-split > .pl-right { width:auto; min-width:0; height:auto; }
  .supplier-box { margin-top:15px; width:140px; height:360px; max-height:55vh; }
  .filters-wrap { width:140px; }
  .dn-catalog-filters { grid-column:1 / -1; max-width:none; margin:0; padding:8px 0; }
  .product-list-row { grid-template-columns:60px minmax(0,1fr) 90px; gap:6px; padding:10px; }
  .pl-info { min-width:0; overflow-wrap:anywhere; }
  .pl-wishlist { display:none; }
  .pl-price { grid-column:3; font-size:17px; }
  .pl-stock { grid-column:2; text-align:left; }
  .pl-qty { grid-column:2; justify-content:flex-start; }
  .pl-cart { grid-column:3; grid-row:2 / span 2; }
  .fs-form { gap:6px; }
  .fs-form select { padding:7px; font-size:12px; max-width:190px; }
  .fs-note { display:none; }
}
@media (max-width:700px) {
  .logo img { height:53px; }
  .top-header .header-buttons { margin-left:auto; }
  .search-container { order:3; flex-basis:100%; margin:4px 0 0; }
  .search-container input { font-size:14px; padding:11px; }
  .menu-toggle { font-size:17px; }
  .mega-menu.open { display:block; }
  .main-categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; border:0; }
  .main-categories li a { padding:10px 8px; font-size:13px; }
  .submenu-panel { border-top:1px solid #d7dbd0; }
  .mega-menu .sub-list { grid-template-columns:1fr; }
  .pl-split { display:flex; flex-direction:column; gap:8px; }
  .pl-split > .pl-left, .pl-split > .pl-right { width:100%; }
  .pl-left > .supplier-box { position:relative; display:grid; grid-template-columns:26px minmax(0,1fr) 26px; grid-auto-rows:auto; gap:4px; width:100%; height:auto; max-height:none; margin-top:0; padding:6px; }
  .supplier-box .box-cap { grid-column:1 / -1; height:24px; margin:-6px -6px 0; padding-left:10px; }
  .supplier-box .dn-supplier-clear { grid-column:1 / -1; }
  .supplier-box .supplier-scroll-btn { margin:0; padding:0; height:104px; width:26px; }
  .supplier-box .supplier-scroll-btn[data-scroll-direction="-1"] { grid-column:1; }
  .supplier-box .supplier-scroll-btn[data-scroll-direction="1"] { grid-column:3; }
  .supplier-box .pl-left-box.supplier-logos { grid-column:2; flex-direction:row; width:100%; height:104px; min-height:0; overflow-x:auto; overflow-y:hidden; touch-action:pan-x; }
  .supplier-box .supplier-logo-item { width:115px; height:98px; min-height:0; flex:0 0 115px; padding:6px; }
  .supplier-box .supplier-logo-item img { max-height:42px; }
  .filters-wrap { width:100%; margin-top:6px; }
  .filters-box { display:flex; flex-wrap:wrap; gap:5px; width:100%; height:auto; padding:6px; }
  .filters-box .box-cap { display:none; }
  .filters-box a.filter-btn { flex:1 1 100px; margin:0; padding:8px 5px; font-size:12px; }
  .dn-catalog-context { padding-top:5px; }
  .dn-scope-title { font-size:19px; }
  .dn-catalog-filters { width:100%; }
}

/* A kiválasztott kategória panelje minden képernyőméreten azonnal látszik. */
.pl-split.has-category > .dn-catalog-filters { display:block; visibility:visible; }
.pl-split.no-category > .dn-catalog-filters { display:none; }
@media (min-width:900px) and (max-width:1100px) {
  .pl-split.has-category { grid-template-columns:minmax(190px,230px) 120px minmax(0,1fr); }
  .pl-split.has-category > .dn-catalog-filters { grid-column:auto; padding-top:15px; }
  .pl-split.has-category > .pl-left,
  .pl-split.has-category .supplier-box,
  .pl-split.has-category .filters-wrap { width:120px; }
}

/* Állandó hely a szűrőknek: csak a listák belseje görgethető. */
.dn-catalog-filters .dn-filter-options {
  height:178px;
  min-height:178px;
  max-height:178px;
  overflow:auto;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:stable;
}
.dn-catalog-filters .dn-subcategory-panel {
  box-sizing:border-box;
  height:232px;
  min-height:232px;
  max-height:232px;
}
.dn-catalog-filters .dn-subcategory-panel > h3,
.dn-catalog-filters .dn-filter-brands > h3 {
  box-sizing:border-box;
  height:18px;
  padding:0;
  line-height:18px;
  margin:0 0 10px;
}
.dn-catalog-filters .dn-general-filters[open] {
  box-sizing:border-box;
  height:396px;
  min-height:396px;
  max-height:396px;
}
.dn-catalog-filters .dn-general-filters > summary {
  box-sizing:border-box;
  height:56px;
  min-height:56px;
}
.dn-catalog-filters .dn-general-filters-body {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:230px 38px 38px;
  align-content:start;
  gap:10px;
  height:338px;
  min-height:338px;
  max-height:338px;
  padding:0 12px 12px;
}
.dn-catalog-filters .dn-general-filters:not([open]) > .dn-general-filters-body { display:none; }
.dn-catalog-filters .dn-filter-brands {
  box-sizing:border-box;
  flex:0 0 230px;
  height:230px;
  min-height:230px;
  padding:12px;
}
.dn-catalog-filters .dn-stock-option {
  flex:0 0 38px;
  height:38px;
  min-height:38px;
  margin:0;
}
.dn-catalog-filters .dn-apply-filters {
  box-sizing:border-box;
  flex:0 0 38px;
  height:38px;
  min-height:38px;
  padding:8px 6px;
  font-size:13px;
  line-height:20px;
  white-space:nowrap;
}
.dn-filter-empty {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  min-height:100%;
  margin:0;
  padding:10px 8px;
  color:#7a8173;
  font:400 13px/1.5 Arial,sans-serif;
}
.dn-subcategory-panel.is-inactive { background:#aeb3a3; }
.dn-subcategory-panel.is-inactive .dn-filter-options,
.dn-filter-brands.is-inactive .dn-filter-options { background:#f6f7f3; }
.dn-filter-option-heading { margin:6px 8px; color:#7a8173; font:400 12px/1.5 Arial,sans-serif; }
.dn-catalog-filters .dn-disabled-option,
.dn-catalog-filters .dn-disabled-option input { cursor:default; }
.dn-catalog-filters .dn-disabled-option { color:#7a8173; }
.dn-catalog-filters .dn-disabled-option:hover { background:transparent; }
@media(min-width:701px) {
  .pl-left > .supplier-box.is-empty { flex:0 0 110px; height:110px; min-height:110px; max-height:110px; }
}

.pd-zoom-open {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.pd-zoom-open:focus-visible { outline: 3px solid #405b39; outline-offset: -3px; }
dialog.pd-zoom[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 14px;
  border: 0;
  background: transparent;
  overflow: hidden;
  cursor: zoom-out;
}
.pd-zoom::backdrop { background: rgba(0, 0, 0, .92); }
.pd-zoom-photo { width: 100%; height: 100%; min-height: 0; object-fit: contain; pointer-events: none; }
.pd-zoom form { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.pd-zoom-close { width: 46px; height: 46px; border: 1px solid #aaa; border-radius: 50%; color: white; background: #222; font: 32px/1 sans-serif; cursor: pointer; }
html:has(.pd-zoom[open]) { overflow: hidden; }

.dn-mobile-filter { display:none; }
@media (max-width:700px) {
  .menu-bar:has(> .search-container) { gap:8px; padding:7px 10px; }
  .menu-bar .menu-toggle { margin:0; padding:6px 3px; font-size:14px; }
  .menu-bar > .search-container { flex:1; order:0; min-width:0; margin:0; }
  .menu-bar .search-container input[type=search] { width:0; font-size:16px; padding:7px; }
  .menu-bar .search-btn { padding:6px 10px; }
  .dn-mobile-ready .pl-split > .dn-catalog-filters,.dn-mobile-ready .pl-left > .filters-wrap { display:none; }
  .pl-left > .supplier-box { border:0; box-shadow:none; grid-template-columns:minmax(0,1fr); gap:4px; padding:4px 0; background:transparent; }
  .supplier-box .box-cap { margin:0; background:transparent; color:#2f4336; padding:0; font-weight:700; }
  .supplier-box .supplier-scroll-btn { display:none; }
  .supplier-box .pl-left-box.supplier-logos { grid-column:1/-1; height:auto; padding:3px; gap:8px; scroll-snap-type:x proximity; }
  .supplier-box .supplier-logo-item { flex:0 0 90px; width:90px; height:auto; padding:3px; border:0; background:transparent; box-shadow:none; scroll-snap-align:start; }
  .supplier-box .supplier-logo-item img { box-sizing:border-box; width:66px; height:66px; max-height:66px; padding:4px; border-radius:50%; border:1px solid #d7dfd4; background:white; object-fit:contain; }
  .supplier-box .supplier-logo-item.is-active { background:#e7efdf; border-radius:12px; }
  .supplier-box .supplier-logo-item small { display:none; }
  .dn-mobile-filter {
    position:fixed; left:0; top:50%; transform:translateY(-50%); z-index:110;
    display:inline-flex; align-items:center; justify-content:center; gap:5px;
    writing-mode:vertical-rl; padding:10px 4px; min-width:25px; min-height:70px;
    border:1px solid #29432e; border-left:0; border-radius:0 9px 9px 0;
    background:#35503b; color:white; font:600 12px/1.2 system-ui,sans-serif;
    cursor:pointer; touch-action:pan-y; user-select:none;
  }
  .dn-mobile-filter::after { content:""; width:4px; height:4px; border:solid currentColor; border-width:1.5px 1.5px 0 0; transform:rotate(45deg); }
  .dn-mobile-filter:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
  .pl-right .product-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .product-list .product-list-row { min-width:0; display:flex; flex-direction:column; align-items:stretch; margin:0; gap:4px; padding:0 9px 9px; border:1px solid #dce2d8; border-radius:12px; overflow:hidden; }
  .product-list-row .pl-image { width:auto; height:auto; aspect-ratio:1; margin:0 -9px 4px; background:#f8f7f1; }
  .product-list-row .pl-image img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
  .product-list-row .pl-name { color:#263f2c; font:600 16px/1.2 Georgia,serif; overflow-wrap:anywhere; }
  .product-list-row .pl-meta,.product-list-row .pl-wishlist { display:none; }
  .product-list-row .pl-price { margin-top:auto; padding-top:4px; text-align:left; font-size:18px; }
  .product-list-row .pl-stock { font-size:12px; text-align:left; }
  .product-list-row .pl-qty { justify-content:flex-start; }
  .product-list-row .pl-cart button { width:100%; min-height:36px; border-radius:8px; background:#35503b; }
  .product-list-row .pl-cart button:disabled { opacity:.5; }
  .pl-right .pl-right-scroll { padding-right:0; }
  #dn-mobile-panel[open] { display:flex; flex-direction:column; position:fixed; inset:0 auto 0 0; margin:0; width:min(50vw,18rem); max-width:50vw; height:100%; height:100dvh; max-height:none; box-sizing:border-box; padding:0; border:0; background:#fbfbf7; color:#283e30; animation:dn-panel-in .18s ease-out; }
  @keyframes dn-panel-in { from { transform:translateX(-100%); } }
  @media(prefers-reduced-motion:reduce) { #dn-mobile-panel[open] { animation:none; } }
  #dn-mobile-panel::backdrop { background:#17251d66; }
  html:has(#dn-mobile-panel[open]) { overflow:hidden; }
  #dn-mobile-panel header { display:flex; position:static; align-items:center; justify-content:space-between; padding:8px 10px; background:#304838; color:white; }
  #dn-mobile-panel header button { background:none; color:inherit; font-size:24px; border:0; width:36px; height:36px; }
  #dn-mobile-panel form { flex:1; min-height:0; display:flex; flex-direction:column; }
  .dn-mobile-options { flex:1; overflow:auto; overscroll-behavior:contain; padding:12px; }
  .dn-mobile-options fieldset { min-width:0; padding:0 0 10px; margin:0 0 12px; border:0; border-bottom:1px solid #dce2d7; }
  .dn-mobile-options legend { padding:0; margin-bottom:6px; font-size:14px; font-weight:700; }
  .dn-mobile-options label { display:inline-block; position:relative; max-width:100%; margin:2px 2px 3px 0; }
  .dn-mobile-options label input { position:absolute; opacity:0; width:1px; height:1px; }
  .dn-mobile-options label span { display:block; padding:8px 9px; border:1px solid #c3cfc2; border-radius:18px; font-size:13px; line-height:1.25; overflow-wrap:anywhere; background:white; cursor:pointer; }
  .dn-mobile-options input:checked + span { color:white; background:#36583d; border-color:#36583d; }
  .dn-mobile-options input:focus-visible + span { outline:2px solid #386f92; outline-offset:1px; }
  .dn-mobile-options input[type=search] { width:100%; min-width:0; box-sizing:border-box; font-size:16px; }
  #dn-mobile-panel footer { position:static; padding:8px 10px max(8px,env(safe-area-inset-bottom)); background:white; border-top:1px solid #dce2d7; }
  #dn-mobile-panel footer button { width:100%; padding:11px 4px; background:#35503b; border:0; color:white; border-radius:8px; font-weight:700; }
}
