/* ==================== Globális beállítás ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==================== Alap link stílus ==================== */
/* Minden link aláhúzás eltávolítása */
a {
    text-decoration: none;
    color: inherit; /* a szöveg színével megegyezzen */
}

/* Hover esetén se legyen aláhúzás */
a:hover {
    text-decoration: none;
}


/* ==================== Alapok ==================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

/* ==================== Header ==================== */
header {
    position: sticky;
    top: 0;
    background: #222;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
}

/* Kosár link alap stílus */
#cart-link,
#cart-link:visited {
    color: #fff;   /* ugyanaz mint a többi menüpont */
    text-decoration: none;
}

/* Hover állapot */
#cart-link:hover {
    color: #ffcc00; /* pl. sárga kiemelés, vagy amit szeretnél */
}

/* ===== Topheader logó és domain ===== */
.topheader-logo a {
    display: flex;
    align-items: center; /* Vertikálisan középre igazítja a szöveget a képhez */
    gap: 10px; /* Térköz a logó és a domain név között */
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.topheader-logo img {
    display: block;
    height: 50px; /* logó magasság */
}

/* ==================== Desktop menü ==================== */
nav.top-menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

nav.top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    position: relative;
}

nav.top-menu li {
    position: relative;
}

nav.top-menu li a {
    color: #fff;
    padding: 8px 12px;
    display: block;
}

nav.top-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    flex-direction: column;
}

nav.top-menu li:hover > ul {
    display: flex;
    flex-direction: column;
}

nav.top-menu li ul li a {
    color: #222;
}

nav.top-menu li ul li ul {
    top: 0;
    left: 100%;
}

/* Hamburger ikon és mobil menü alap */
.hamburger, .menu-items {
    display: none;
}

/* ==================== Mobil menü ==================== */
@media (max-width: 768px) {
    header {
        flex-direction: row;       /* egymás mellé */
        align-items: center;       /* függőlegesen középre */
        justify-content: space-between;
        flex-wrap: nowrap;         /* ne törjön sorra */
    }

    .topheader-logo {
        display: flex;
        align-items: center;
        gap: 10px;                 /* logó és domain közti távolság */
    }

    nav.top-menu {
        display: none !important;
    }

    .hamburger {
        display: block;
        font-size: 28px;
        cursor: pointer;
        margin: 0;
        margin-left: auto;         /* mindig jobbra igazítja */
    }

/* Menü alap állapot */
    .menu-items {
        display: flex;
        flex-direction: column;
        background: #333;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    /* Aktív (lenyitott) állapot — görgethető */
    .menu-items.active {
        max-height: 85vh;                 /* képernyő 85%-a, dinamikus */
        padding: 10px 0;
        overflow-y: auto;                 /* függőleges görgetés */
        -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
    }

    .menu-items a {
        font-size: 1.2rem;
        padding: 12px 18px;
        display: block;
        color: #fff;
    }

    .category-menu, .page-menu, .category-menu ul, .page-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .category-menu li, .page-menu li {
        position: relative;
        padding: 5px 15px;
    }

    .category-menu a, .page-menu a {
        color: #fff;
        display: inline-block;
    }

    .toggle-sub {
        cursor: pointer;
        margin-left: 8px;
        font-size: 32px;
    }

    .category-menu ul, .page-menu ul {
        display: none;
        padding-left: 15px;
    }

    .category-menu ul.active, .page-menu ul.active {
        display: block;
    }
	
	/* ==================== Mobil kategóriafa ==================== */
.mobile-category-menu {
    background: #333;
    color: #fff;
    padding: 10px 0;
}

.mobile-category-menu h4 {
    color: #ffcc00;
    margin: 10px 15px;
    font-size: 1.1rem;
}

.mobile-cat-tree {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.mobile-cat-tree {
        max-height: none;
        overflow: visible;
    }

.mobile-cat-tree li {
    position: relative;
    padding: 6px 15px;
}

.mobile-cat-tree a {
    color: #fff;
    text-decoration: none;
}

.mobile-cat-tree ul {
    display: none;
    padding-left: 15px;
}

.mobile-cat-tree ul.active {
    display: block;
}

.toggle-sub {
    cursor: pointer;
    margin-left: 6px;
    font-size: 32px;
}


}

/* ==================== Desktop hover submenu ==================== */
@media (min-width: 769px) {
    .page-menu ul, .category-menu ul {
        display: none;
        list-style: none;
        padding-left: 0;
        margin: 0;
        position: absolute;
        background: #fff;
        z-index: 100;
        min-width: 200px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .page-menu li:hover > ul,
    .category-menu li:hover > ul {
        display: block;
    }

    .page-menu li span.toggle-sub,
    .category-menu li span.toggle-sub {
        display: none;
    }

    .page-menu ul li a, .category-menu ul li a {
        color: #222;
        padding: 8px 12px;
        display: block;
        white-space: nowrap;
    }
}

/* ==================== Konténer ==================== */
.container {
    padding: 0px 20px 5px 20px;
    max-width: 1100px;
    margin: 0 auto;	
}

.container.layout-1col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.container.layout-2col {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.container.layout-3col {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
}

.content-left,
.content-right {
    background: #f9f9f9;
    padding: 10px;
}

.content-center {
    background: #fff;
    padding: 10px;
}

/* Responsive: mobil nézet */
@media (max-width: 768px) {
    .container.layout-2col,
    .container.layout-3col {
        grid-template-columns: 1fr; /* mindegyik full-width */
    }

    .content-left,
    .content-center,
    .content-right {
        width: 100%;
        padding: 10px 0;
    }
}

/* ==================== Kategória rács ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.category-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform .2s;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card a {
    display: inline-block;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform .2s;
}

.category-card img:hover {
    transform: scale(1.05);
}

/* ==================== Kategória oldal címsor ==================== */
.category-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 10px 0 20px 0;
    color: #222;
    text-align: left;
}

/* ==================== Terméklista oldal ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.product-card {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: transform .2s;
}

.product-card img:hover {
    transform: scale(1.05);
}

/* ==================== Termékoldal ==================== */
.product-page {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-gallery,
.product-images {
    flex: 1 1 300px;
}

.product-images #main-image,
.product-gallery .main-image {
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    object-fit: cover;
}

.product-gallery img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 6px;
}

.thumbnails,
.product-gallery .thumbnails {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.thumbnails .thumb,
.product-gallery .thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.thumbnails .thumb:hover,
.product-gallery .thumbnails img:hover {
    transform: scale(1.1);
    border-color: #0077cc;
}

.product-info {
    flex: 1 1 300px;
}

/* ==================== Gombok ==================== */
button {
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background .2s;
}

button:hover {
    background: #16a34a;
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
    font-size: 0.9rem;
    margin: 15px 0px 0px 10px;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
	text-decoration: none !important;
}

.breadcrumb span {
    color: #888;
}

.content .breadcrumb a {
    text-decoration: none;  /* aláhúzás eltávolítása */
    color: #555;
}

.content .breadcrumb a:hover {
    text-decoration: none; /* hover esetén se legyen aláhúzás */
    color: #222;            /* opcionális: hover szín */
}

/* ==================== Lightbox ==================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
}

.lightbox img,
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox .close:hover {
    color: #f00;
}

/* ==================== Footer ==================== */
div#footer {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    background: #222;
}

div#footer a, div#footer p, div#footer li, div#footer h4 {
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    list-style: none;
}

div#footer section {
    padding: 80px 13% 70px;
}

div#footer .footer {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,auto));
    gap: 3.5rem;
    background: #222;
}

div#footer .footer-content h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 20px;
}

div#footer .footer-content li {
    margin-bottom: 16px;
}

div#footer .footer-content li a {
    display: block;
    color: #d6d6d6;
    font-size: 15px;
    font-weight: 400;
    transition: all .40s ease;
}

div#footer .footer-content li a:hover {
    transform: translateY(-3px) translateX(-5px);
    color: #fff;
}

div#footer .footer-content p {
    color: #d6d6d6;
    font-size: 16px;
    line-height: 30px;
    margin: 20px 0;
}

div#footer .icons a {
    display: inline-block;
    font-size: 22px;
    color: #d6d6d6;            
    margin-right: 17px;
    transition: all .40s ease;
}

div#footer .icons a:hover {
    color: #fff;        
    transform: translateY(-5px);
}

@media (max-width: 1690px) {
    div#footer section {
        padding: 50px 5% 40px;
    }
}

@media (max-width: 1120px) {
    div#footer .footer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, auto));
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    div#footer .footer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, auto));
        gap: 2.5rem;
    }
}

/* ==================== Modul rendszer ==================== */

/* A header modulok konténere: függőlegesen rendezve */
.header-modules {
    display: flex;
    flex-direction: column; /* mindig egymás alatt legyenek */
    gap: 20px;              /* távolság a modulok között */
    background: #f9f9f9;
    /*padding: 20px;*/
    /*border: 1px solid #ddd;*/
    /*border-radius: 8px;*/
}

/* Alap modul stílus minden header modulhoz */
section.contact {
    width: 100%; /* mind ugyanakkora szélességű */
    background: #f2f2f2;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Például a contact modul finomhangolása */
section.contact {
    background: #e9f5ff;
    border: 1px solid #cce5ff;
}

section.header {
    text-align: center;
    margin-bottom: 0px;
    height: 300px;           /* maximális magasság */
    overflow: hidden;         /* levágjuk a felesleget */
    display: flex;
    justify-content: center;  /* vízszintes középre */
    align-items: center;      /* függőleges középre */
}

section.header img.header-image {
    width: 100%;             /* mindig teljes szélesség */
    max-height: 300px;       /* nem lesz magasabb 300px-nél */
    object-fit: cover;       /* kitölti a teret arányosan, középre vágva */
    display: block;
}

/* Mobil nézet: header modul */
@media (max-width: 768px) {
    section.header {
        height: 150px;        /* kisebb magasság mobilon */
    }
    section.header img.header-image {
        max-height: 150px;    /* kisebb magasság, de továbbra is 100% szélesség */
    }
}


/* ==================== Termékoldal Paraméterek (JSON) ==================== */
.product-page .product-parameters {
    margin-bottom: 10px;
    padding: 0; /* border és háttér elhagyva, ahogy kértük */
}

.product-page .product-parameters .param-item {
    margin: 3px 0;
}

/* ========================================================= */
/* === Mobil kategóriafa új stílus: inline nyíl + fix sortörés === */
/* ========================================================= */

.mobile-cat-tree,
.mobile-cat-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-cat-tree li {
    margin: 4px 0;
}

.mobile-cat-tree .cat-row {
    display: flex;
    align-items: center;
    gap: 20px; /* Ez lesz a távolság a név és a nyíl között */
    padding: 6px 12px;
    justify-content: flex-start; /* NE tolja jobbra a nyilat */
}

.mobile-cat-tree .cat-row .cat-link {
    flex: 0 0 auto; /* <<< EZT ÍGY MÓDOSÍTSD */
    color: #fff;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-cat-tree .toggle-sub {
    display: inline-block;
    width: auto; /* ne foglaljon fix szélességet */
    text-align: center;
    user-select: none;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 30px;
    line-height: 1;
    opacity: 0.8;
}

.mobile-cat-tree .child-list {
    padding-left: 12px;
    margin-top: 4px;
    border-left: 1px solid rgba(255,255,255,0.06);
}

.mobile-cat-tree .child-list li .cat-row {
    padding: 4px 10px;
    font-size: 0.95rem;
}

/* ==== Bal oldali modulhoz tartozó mobil menü stílusok ==== */
.module-scope-left .mobile-cat-tree .cat-row .cat-link {
    color:#333;
    text-decoration: none;
}

.module-scope-left .mobile-cat-tree .cat-row .cat-link:hover {
    color: #513d3d;
}

/* ==== Ha esetleg főoldalon is lenne, akkor így lehetne külön színezni ==== */
.module-scope-home .cat-link {
    color: #222;
}

.module-scope-home .cat-link:hover {
    color: #b60000;
}

/* ==== Toggle ikon színezése ==== */
.module-scope-left .toggle-sub {
    color: #333;	
    cursor: pointer;
}
.module-scope-left .toggle-sub:hover {
    color: #fff;
	color:#5e5959;
}

/* ==== Mobil nézetben a bal oldali menümodul elrejtése ==== */
@media (max-width: 768px) {
    .module-scope-left .mobile-category-menu {
        display: none !important;
    }
	.module-container.module-scope-left {
        display: none !important;
    }
}

/* ==================== Kapcsolat modul (térkép fölötti cím) ==================== */
.contact-module {
    padding: 30px 0;
    background: #fff;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Bal oldali infókártya --- */
.contact-card {
    flex: 1 1 350px;
    background: #f8faff;
    border: 1px solid #d0e2ff;
    border-radius: 6px;
    padding: 25px 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.contact-card h2 {
    font-size: 1.6rem;
    color: #1d3557;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card .subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-block {
    margin-bottom: 25px;
}

.contact-block h3 {
    font-size: 1.1rem;
    color: #0a3d62;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-list i {
    color: #0077cc;
    font-size: 1.1rem;
}

.contact-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* --- Jobb oldali térképek --- */
.contact-map-section {
    flex: 2 1 550px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* --- Egy térképkártya --- */
.contact-map-card {
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #e3e3e3;
}

/* --- Cím a térkép fölött --- */
.contact-map-card .map-title {
    background: #e7f0ff;
    color: #1d3557;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #d0ddee;
}

.contact-map-card .map-title i {
    color: #0077cc;
    font-size: 1.1rem;
}

/* --- A térkép maga --- */
.contact-map {
    width: 100%;
    height: 260px;
    display: block;
}

/* --- Linkek --- */
.contact-list a {
    color: #004b91;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* --- Mobil nézet --- */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
    }

    .contact-card {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        border-radius: 4px;
        padding: 20px;
    }

    .contact-map-section {
        width: 100%;
        max-width: 480px;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-map-card {
        border-radius: 4px;
    }

    .contact-map {
        height: 220px;
    }

    .contact-map-card .map-title {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
}

/* --- Finomított lekerekítések --- */
.contact-card,
.contact-map-card {
    border-radius: 2px !important;
}

.contact-map,
.contact-map-card .map-title,
.contact-block,
.contact-container {
    border-radius: 0 !important;
}