/* ==================== 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;
}

/* ==================== Globális címsorok ==================== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em 0;
    font-weight: 700;
    line-height: 1.2;
    color: #4c4679; /* alap heading szín */
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.05rem;
	color: #6e737f;
}

h5 {
    font-size: 0.9rem;
	color: #69659d;
}


/* ==================== 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: 1300px;
    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: 20px 15px;
}

/* 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(220px, 280px));
    gap: 20px;
    justify-content: center;
	margin-top: 15px;
    margin-bottom: 15px;
}

/* ==================== Modern kategória kártya ==================== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* a teljes tartalom vertikálisan középre */
    background: linear-gradient(145deg, #ffffff, #f0f0f5);
    padding: 4px; /* kisebb padding a dobozon belül */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: linear-gradient(145deg, #f0f0f5, #e6e6ff);
}

.category-card a {
    display: flex;
    flex-direction: column;
    justify-content: center; /* ikon és név középre */
    align-items: center;
    padding: 2px 6px; /* kisebb belső padding */
    text-decoration: none;
    width: 100%;
    height: 100%; /* a tartalom vertikálisan kitölti a card-ot */
}

.category-card .cat-icon {
    width: 52px;   /* kisebb alapméret a hover-hoz képest */
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px; /* ikon és név közti távolság minimalizálva */
    border-radius: 50%;
    background: #f8f8ff;
    transition: background 0.3s, transform 0.3s;
}

.category-card:hover .cat-icon {
    background: #dce0ff;
    transform: scale(1.1); /* kisebb hover növelés */
}

.category-card .cat-icon svg {
    width: 36px;
    height: 36px;
    fill: #4c4679; /* svg ikon alap színe */
}

.cat-name {
    font-weight: 600;
    font-size: 17px; /* nagyobb és olvasható */
    line-height: 1.05; /* még közelebb a képhez */
    color: #4c4679; /* kategória szín */
    text-align: center;
    margin: 0; /* nincs extra margó */
}

/* ==================== 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 – teljes biztonságos ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
    padding: 10px; /* belső margó minden contenthez */
}

.product-card:hover {
    transform: translateY(-3px);
}

/* ==================== Kép ==================== */
.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s;
}

.product-card img:hover {
    transform: scale(1.05);
}

/* ==================== Terméknév ==================== */
.product-card h2 {
    font-size: 1.3rem;
    margin: 10px auto 5px auto; /* középre, ne érjen a szélekhez */
    max-width: 90%;
    line-height: 1.3;
    color: #111;
}

/* ==================== Ár ==================== */
.product-card p.price {
    font-size: 1.7rem;
    font-weight: bold;
    color: #4c4679;
    margin: 10px auto 10px auto;
    max-width: 90%;
}

/* ==================== Részletek gomb ==================== */
.product-card .product-details-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 auto 10px auto; /* középre */
    background-color: #22c55e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    max-width: 80%;           /* ne legyen teljes szélesség */
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-card .product-details-btn:hover {
    background-color: #16a34a;
}

/* ==================== Mobil nézet ==================== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .product-card h2 {
        font-size: 1.3rem;
        margin: 8px auto 5px auto;
    }

    .product-card p.price {
        font-size: 1.7rem;
    }

    .product-card .product-details-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* ==================== 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;
}

/* ==================== ÚJ Termékoldal struktúra ==================== */

.product-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.product-info {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title {
    font-size: 1.4rem; /* kisebb mint alap h2 */
    color: #4c4679;
}

.product-price {
    font-size: 1.8rem; /* nagyobb ár */
    color: #16a34a;
    margin: 0;
}

.product-info button {
    width: 40%;
    font-size: 1rem;
    padding: 14px;
}

.order-phone {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}

.order-phone-title {
    margin-bottom: 14px; /* ← ez adja a nagyobb távolságot */
}

.order-phone a {
    font-size: 1.1rem;
    font-weight: bold;
    color: #16a34a;
}

.order-phone-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-phone-number:hover {
    color: #16a34a;
}

.phone-icon {
    font-size: 1.3rem;
}

.order-phone-number .phone-icon {
	 color: #16a34a;
}

.money-back {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.money-back .icon {
    font-size: 1.4rem;
    color: #16a34a;
}

.product-bottom {
    margin-top: 0px;
}

.product-parameters {
    margin-bottom: 35px;
}

.product-parameters h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-parameters .param-item {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.product-description {
    line-height: 1.6;
    font-size: 1rem;
}

.product-description h3 {
    margin-bottom: 12px;
}

.description-content {
    line-height: 1.6;
    font-size: 1rem;
    color: #444;
}

/* ==================== 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: 30px;
    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;
    }
}

/* ==================== Hasznos információk – simple list + ikon ==================== */
.useful-info-simple {
    margin: 0px 0;
}

.useful-info-header {
    margin: 0px 0;
	padding:0;
	background:none;	
	padding: 0 0 10px 15px;
	text-transform: uppercase;
}

.useful-info-simple .useful-info-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.useful-info-simple .useful-info-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.useful-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.useful-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.useful-info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
	color:#2e385c;
	color:#829b27;
}

.useful-info-icon svg {
    width: 100%;
    height: 100%;
    fill: #829b27;
}

.useful-info-texts {
    display: flex;
    flex-direction: column;
	
}

.useful-info-text {
	text-transform: uppercase;
    font-size: 15px;
    font-weight: 600;
    color: #4f4c72;
}

.useful-info-text h5 {
	text-transform: lowercase;
    font-size: 14px;
    font-weight: 400;
    
}

.useful-info-subtext {
    font-size: 13px;
    font-weight: 500;    
    margin-top: 2px;
}

/* Mobil */
@media (max-width: 420px) {
    .useful-info-text {
        font-size: 15px;
    }
    .useful-info-subtext {
        font-size: 12px;
    }
}

/* Dark / footer safe */
.footer .useful-info-text,
.dark .useful-info-text {
    color: #f9fafb;
}

.footer .useful-info-subtext,
.dark .useful-info-subtext {
    color: #9ca3af;
}

/* ==================== 3 oszlopos modul ==================== */

.three-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
	margin: 20px auto;
}

@media (max-width: 900px) {
    .three-columns-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 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;
}

/* --- SEARCH MODUL --- */

/* Normál modul */
.search-module-normal {
    text-align: center;
    padding: 20px 0;
}

.search-module-normal .search-form {
    display: inline-flex;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid #ddd; /* asztali nézet border */
    transition: box-shadow 0.25s ease, border 0.25s ease;
}

/* Header modul pozíció */
.header-modules {
    position: relative;
}

.search-module-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    z-index: 10;
}

/* Header modul form */
.search-module-header .search-form {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

/* Input mező */
.search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 0; /* illeszkedjen a gombhoz */
    transition: all 0.25s ease;
}

/* Input fókusz animáció */
.search-form input:focus {
    box-shadow: 0 0 10px rgba(76, 70, 121, 0.5);
    background-color: #fff;
}

/* Gomb */
.search-form button {
    border: none;
    background: #4c4679;
    color: white;
    padding: 0 25px;
    cursor: pointer;
    border-radius: 0 50px 50px 0; /* csak a jobb oldala kerekített */
    transition: background 0.25s ease;
}

.search-form button:hover {
    background: #655ea0;
}

/* Search title */
.search-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

/* --- MOBIL NÉZET --- */
@media (max-width: 768px) {

    /* Input alapból rejtett */
    .search-module-header .search-form input {
        display: none;
    }

    /* Mobil form: kerek gomb */
    .search-module-header .search-form {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }

    /* Mobil gomb */
    .search-module-header .search-form button {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        font-size: 20px;
    }

    /* Search title mobilon nem látszik */
    .search-title {
        display: none;
    }

    /* Animált kinyíló állapot */
    .search-module-header .search-form.open {
        width: 100%;
        height: 60px;
        border-radius: 50px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    }

    .search-module-header .search-form.open input {
        display: block;
        flex: 1;
    }
}

/* --- 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;
}

/* 1. Bal oldali modul eltűnése, ha üres */
.content-left:empty {
    display: none;
    padding: 0;
    margin: 0;
    border: 0;
}

/* 3. Product-page mobil nézet */
@media (max-width: 768px) {
    .product-page {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
}

#calendar{
max-width:520px;
margin:20px auto;
font-size:12px;
}

.fc .fc-daygrid-day-frame{
min-height:24px !important;
height:24px !important;
padding:1px !important;
}

.fc-daygrid-day-number{
font-size:11px;
}

.fc-col-header-cell{
font-size:11px;
padding:2px 0 !important;
}

.fc-toolbar-title{
font-size:14px !important;
}

.fc-daygrid-day{
cursor:pointer;
}

.selected-range{
background:#8ce99a !important;
}

.calendar-legend{
max-width:520px;
margin:10px auto;
display:flex;
gap:15px;
}

.legend-box{
width:14px;
height:14px;
display:inline-block;
margin-right:5px;
}

.free{
background:#fff;
border:1px solid #ccc;
}

.pending{
background:#c084fc;
}

.booked{
background:#ff6b6b;
}

.booking-bar{
max-width:520px;
margin:auto;
display:flex;
gap:8px;
}

.booking-bar input{
flex:1;
padding:6px;
}

.booking-form{
max-width:520px;
margin:auto;
overflow:hidden;
max-height:0;
transition:max-height .4s;
}

.booking-form.open{
max-height:1000px;
}

.booking-form input{
width:100%;
padding:7px;
margin-top:6px;
}

.fc-scrollgrid-sync-table{
height:auto !important;
}

.fc-daygrid-body{
height:auto !important;
}

.fc-daygrid-day-frame{
min-height:22px !important;
height:22px !important;
}

.booking-success {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}

.booking-success-box {
background: #ffffff;
padding: 40px 60px;
border-radius: 10px;
font-size: 22px;
font-weight: bold;
color: #2c7a2c;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
text-align: center;
}

.fc .fc-today-button {
background-color: var(--fc-today-bg-color) !important;
border-color: var(--fc-today-bg-color) !important;
color:#000 !important;
}

.booking-form button{
display:block;
margin:20px auto 0 auto;
padding:10px 20px;
}

@media (max-width:600px){

#calendar{
max-width:100%;
font-size:14px;
}

.fc .fc-daygrid-day-frame{
min-height:46px !important;
height:46px !important;
}

.fc-daygrid-day-number{
font-size:15px;
font-weight:bold;
}

.fc-col-header-cell{
font-size:13px;
}

.fc-toolbar-title{
font-size:18px !important;
}

.booking-bar{
flex-direction:column;
align-items:center;
gap:10px;
}

.booking-bar input{
width:90%;
padding:12px;
font-size:16px;
}

.booking-form{
padding:0 10px;
}

.booking-form input{
padding:12px;
font-size:16px;
}

.booking-form button{
padding:14px 30px;
font-size:18px;
width:auto;
}

.calendar-legend{
flex-wrap:wrap;
justify-content:center;
}

}

/* ==================== Booking container (legend + bar + form) ==================== */
.booking-container {
    max-width:520px;
    margin:20px auto;
    padding:20px;
    border:1px solid #ccc;
    border-radius:12px;
    background:#f9f9f9;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
    gap:15px;
}

/* Belül minden input és button ne ragadjon a szélekhez */
.booking-container .booking-bar input,
.booking-container .booking-form input,
.booking-container .booking-bar button,
.booking-container .booking-form button{
    border-radius:6px;
    border:1px solid #ccc;
}

/* Mobil nézet */
@media (max-width:600px){
    .booking-container{
        padding:15px;
        margin:10px auto;
    }

    .booking-bar{
        flex-direction:column;
        align-items:center;
        gap:12px;
    }

    .booking-bar input{
        width:100%;
        font-size:16px;
        padding:12px;
    }

    .booking-form input{
        padding:12px;
        font-size:16px;
    }

    .booking-form button{
        padding:14px 30px;
        font-size:18px;
    }
}