:root {
      --color-dark-bar: #2a3138;
      --color-mid-bar: #384855;
      --color-nav-bar: #a8c8ba;
      --color-nav-selected: #435b69;
      --color-hero-bg: #1f272e;
      --color-text-white: #ffffff;
      --color-text-light: #eeeeee;
      --color-text-orange: #ff7800;
      --color-link: #007bff;
      --color-link-hover: #0056b3;
    }
    body { margin: 0; font-family: Arial, sans-serif; background-color: #f7f7f7; color: #333; }
    
    h1, h2, h3 { color: var(--color-nav-selected); }
    /* MÓDOSÍTÁS: Eltávolított vonal és hozzáadott stílus a címhez, de csak a .listing-header-row-combined-ban definiált h2-nél lesz hatása a margin:0 miatt. */
    h2 { border-bottom: none; padding-bottom: 5px; margin-top: 40px; } 
    a { color: var(--color-link); text-decoration: none; }
    a:hover { color: var(--color-link-hover); text-decoration: underline; }
    
    .header-section { 
        background-color: var(--color-mid-bar); 
        padding: 5px 20px; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        min-height: 70px; 
    }
    
    .social-icons-left { 
        display: flex; 
        align-items: center; 
        gap: 15px; 
        flex-grow: 1; 
        min-width: 100px; 
    }
    /* ÚJ JAVÍTÁS: Kép méretének egységesítése a fejlécben */
    .social-icon-img {
        width: auto; 
        max-height: 30px; /* Rögzített maximális magasság */
        object-fit: contain;
    }
    
    .logo-center {
        display: flex;
        justify-content: center;
        flex-grow: 1; 
    }
    /* ÚJ JAVÍTÁS: Kép méretének egységesítése a fejlécben */
    .main-logo-img {
        width: auto;
	max-width: 100%;
        max-height: 60px; 
        object-fit: contain;
    }

    .phone-number-right {
        display: flex; 
        align-items: center; 
        color: var(--color-text-white);
        font-size: 0.9em; 
        flex-grow: 1; 
        justify-content: flex-end; 
        font-weight: normal; 
        white-space: nowrap;
        min-width: 150px;
    }
    .single-line-phone {
        font-weight: 500;
    }

    /* --- ÚJ MENÜ CSS UL/LI ALAPON --- */
    .nav-bar { 
        background-color: var(--color-nav-bar); 
        height: auto;
        padding: 0;
    }
    
    .nav-main-ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex; /* Asztali: Vízszintes elrendezés */
        justify-content: space-around;
        width: 100%;
        font-weight: bold;
    }
    
    .nav-li {
        position: relative; 
        flex-grow: 1; /* Egyenlő helyelosztás */
        text-align: center;
        /* Állandó szegély elválasztó (tisztább, mint a margin) */
        border-right: 1px solid rgba(0, 0, 0, 0.1); 
    }
    .nav-li:last-child {
        border-right: none;
    }

    .nav-item { 
        padding: 0 10px;
        display: block; 
        width: 100%;
        text-decoration: none; 
        color: #333; 
        transition: background-color 0.3s; 
        font-size: 0.9em;
        min-height: 50px;
        line-height: 50px; /* Vertikális centrálás */
        box-sizing: border-box;
    }
    .nav-item:hover { background-color: rgba(0, 0, 0, 0.05); }
    .nav-item.active { background-color: var(--color-nav-selected); color: var(--color-text-white); }
    .nav-item.sale-highlight { 
        background-color: #ff7800; 
        color: var(--color-text-white); 
        animation: pulse 1.5s infinite;
    }
    .nav-item.sale-highlight:hover { background-color: #e56a00; }
    
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(255, 120, 0, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(255, 120, 0, 0); }
        100% { box-shadow: 0 0 0 0 rgba(255, 120, 0, 0); }
    }

    /* Legördülő menü CSS */
    .nav-sub-menu {
        display: none; /* Alapértelmezetten rejtett */
        position: absolute;
        top: 100%; 
        left: 0;
        background-color: var(--color-nav-bar); 
        min-width: 250px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 10;
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: left;
    }
    .nav-li:hover > .nav-sub-menu { 
        display: block; /* Asztali: Hoverre megjelenik */
    }
    
    .nav-sub-li {
        border-right: none; /* Eltávolítja a szülő elválasztót */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
        flex-grow: 0;
    }
    .nav-sub-li:last-child {
        border-bottom: none;
    }
    
    .nav-sub-item {
        color: #333;
        padding: 10px 15px;
        display: block;
        line-height: 1.2;
        font-weight: normal;
        font-size: 0.9em;
        min-height: auto;
    }
    .nav-sub-item:hover {
        background-color: rgba(0, 0, 0, 0.08); 
        text-decoration: none;
    }
    .nav-sub-item.active {
        background-color: var(--color-nav-selected); 
        color: var(--color-text-white);
    }
    /* --- VÉGE: ÚJ MENÜ CSS UL/LI ALAPON --- */


    .main-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
    
    /* Hero Section */
    .hero {
        background: var(--color-hero-bg);
        color: var(--color-text-white);
        padding: 80px 20px;
        text-align: center;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    .hero h1 { color: var(--color-text-light); margin-top: 0; font-size: 2.5em; }
    .hero p { font-size: 1.2em; max-width: 600px; margin: 20px auto; }
    .hero-button {
        display: inline-block;
        background-color: var(--color-text-orange);
        color: var(--color-text-white);
        padding: 12px 30px;
        border-radius: 5px;
        font-weight: bold;
        margin-top: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .hero-button:hover {
        background-color: #e56a00;
        text-decoration: none;
    }
    
    /* Grid Layouts */
    .content-grid { display: grid; gap: 20px; margin-top: 20px; }
    .static-content-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .product-list-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    /* JAVÍTVA: Fix 2 oszlop, és beállítva az egyenlő magasságú sorok (1fr) a vizuális elcsúszás elkerülésére */
    .product-list-grid-2-col { 
         grid-template-columns: repeat(2, 1fr);
         grid-auto-rows: 1fr; /* <<< ÚJ SOR A GRID PROBLÉMA JAVÍTÁSÁRA: egyenletes sor magasság */
    }
    
    /* Cards */
    .card { 
        background: var(--color-text-white); 
        padding: 20px; 
        border-radius: 8px; 
        box-shadow: 0 4px 8px rgba(0,0,0,0.05); 
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .card h3 { 
        color: var(--color-text-orange); 
        margin-top: 0; 
        font-size: 1.2em;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
    
    /* Product Card Specific */
    .product-card { text-align: left; }
    .product-card img { 
        width: 100%; 
        height: 400px; 
        object-fit: cover; 
        border-radius: 4px; 
        margin: 10px 0;
        display: block;
    }
    .product-info-body { flex-grow: 1; }
    .product-card p { font-size: 0.9em; color: #666; margin: 0 0 10px; }
    .product-card ul { list-style: none; padding: 0; margin: 0 0 10px; font-size: 0.9em; border-top: 1px solid #eee; padding-top: 10px; }
    .product-card li { margin-bottom: 5px; }
    .price-tag { padding: 0 15px 15px; color: var(--color-text-orange); font-size: 1.2em; display: block; text-align: center; }

    /* Akciós, áthúzott ár kiemelése sárgával */
    .price-tag-container del {
        background-color: #fff3c9; 
        color: #999;
        font-size: 0.9em;
        margin-right: 10px;
        padding: 2px 4px;
        border-radius: 3px;
        text-decoration-color: #cc0000; 
    }
    
    .product-card .hero-button { border: none; border-radius: 0; padding: 12px 25px; }
    
    /* ÚJ CSS a kompakt rendezéshez és gyorsugráshoz (A kérésre módosítva az egy soros megjelenítéshez) */
    .listing-header-row-combined { 
        display: flex;
        justify-content: space-between; /* Széthúzza a címet (balra) és a rendezőt (jobbra) */
        align-items: center; /* Vertikális centrálás */
        margin-top: 40px; 
        margin-bottom: 20px; 
        flex-wrap: wrap; 
    }

    .listing-header-row-combined h2 {
        margin: 0; /* Eltávolítjuk a H2 elemi margóját, hogy jobban illeszkedjen */
        padding-bottom: 0; 
        flex-shrink: 0; 
        font-size: 1.8em;
    }
    
    .sort-selector-dropdown {
        flex-shrink: 0; /* Ne zsugorodjon össze */
        margin-left: auto; /* Jobbra igazítás */
    }
    .sort-selector-dropdown label {
        font-weight: bold;
        margin-right: 10px;
        color: #555;
    }
    .sort-selector-dropdown select {
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: white;
        font-size: 1em;
        cursor: pointer;
        min-width: 250px;
    }
    
    /* ELTÁVOLÍTVA A sub-category-jump-list CSS-e a felhasználói kérésre */

    /* Product Detail Page */
    .product-detail-container {
        display: flex;
        gap: 30px;
        margin-top: 20px;
        text-align: left;
    }
    .product-images-section {
        flex: 1;
        min-width: 0; /* JAVÍTVA: Megoldja a flex-box túlnyúlást nagy kép esetén */
    }
    .product-info-section {
        flex: 1;
    }
    .main-image-display img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        cursor: pointer;
    }
    .product-thumbnails {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        overflow-x: auto;
    }
    .product-thumbnails img {
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.2s;
    }
    .product-thumbnails img:hover, .product-thumbnails img.active {
        border-color: var(--color-text-orange);
    }
    
    .price-detail-tag {
        font-size: 2em;
        color: var(--color-text-orange);
        font-weight: bold;
        display: block;
        margin: 10px 0 20px 0;
    }
    
    .old-price-detail-tag {
        font-size: 1.2em;
        color: #999;
        display: block;
        margin-bottom: 5px;
        background-color: #fff3c9; 
        padding: 5px 10px;
        display: inline-block;
        border-radius: 4px;
        text-decoration: line-through #cc0000;
    }
    
    .description-block, .technical-specs-block {
        margin-top: 25px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    .technical-specs-block table {
        width: 100%;
        border-collapse: collapse;
    }
    .technical-specs-block th, .technical-specs-block td {
        padding: 8px;
        border: 1px solid #ddd;
        text-align: left;
        font-size: 0.95em;
    }
    .technical-specs-block th {
        background-color: #f7f7f7;
        width: 40%;
    }
    
    /* --- Videó Beágyazás --- */
    .product-video-container {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
        max-width: 100%;
        background: #000;
        margin-top: 20px; 
        border-radius: 8px;
    }
    .product-video-container h4 {
        margin-bottom: 5px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
        color: var(--color-nav-selected);
    }
    .product-video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Lightbox Modal */
    .lightbox {
        display: none; 
        position: fixed; 
        z-index: 1000; 
        padding-top: 20px; 
        left: 0;
        top: 0;
        width: 100%; 
        height: 100%; 
        overflow: auto; 
        background-color: rgb(0,0,0); 
        background-color: rgba(0,0,0,0.9); 
        align-items: center; /* Centrálás */
        justify-content: center; /* Centrálás */
    }
    .lightbox-content {
        margin: auto;
        display: block;
        width: 90%;
        max-width: 900px;
        max-height: 90vh; 
        object-fit: contain; 
    }
    .lightbox-close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        padding: 0 5px;
        z-index: 1001;
    }
    .lightbox-close:hover,
    .lightbox-close:focus {
        color: #ccc;
        text-decoration: none;
        cursor: pointer;
    }
    .prev, .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 16px;
        margin-top: -50px;
        color: white;
        font-weight: bold;
        font-size: 25px;
        transition: 0.6s ease;
        user-select: none;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 0;
    }
    .prev { left: 0; border-radius: 0 3px 3px 0; }
    .next { right: 0; border-radius: 3px 0 0 3px; }
    .prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.8); }
    .prev, .next { outline: none; }
    
    /* ÚJ: Kapcsolat űrlap CSS */
    .inquiry-form-container {
        /* Alapértelmezett beállítások */
        padding: 20px;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #555;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box; 
        font-size: 1em;
    }
    .form-group input[readonly] {
        background-color: #eee;
        color: #777;
        font-style: italic;
    }
    
    /* Blog styles */
    .blog-list-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .blog-post-summary { text-align: left; padding: 20px; }
    .blog-post-summary h3 a { color: var(--color-nav-selected); text-decoration: none; }
    .blog-post-summary h3 a:hover { text-decoration: underline; }
    .blog-excerpt { color: #666; margin-top: 5px; margin-bottom: 10px; }
    .blog-date { font-size: 0.8em; color: #999; margin-bottom: 15px; }

    .blog-post-detail h1 {
        color: var(--color-text-orange);
        border-bottom: 2px solid #ddd;
        padding-bottom: 10px;
    }
    .blog-content {
        line-height: 1.8;
        font-size: 1.1em;
        margin-top: 30px;
        padding: 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .back-link {
        display: inline-block;
        margin-bottom: 20px;
        font-weight: bold;
    }
    
    /* Reszponzív módosítások */
    @media (max-width: 768px) {
        .header-section { flex-direction: column; align-items: center; padding: 5px 10px; }
        .social-icons-left { order: 3; justify-content: center; width: 100%; margin-top: 5px; gap: 30px; }
        .logo-center { order: 1; margin-bottom: 5px; }
        .phone-number-right { order: 2; align-items: center; width: 100%; margin-bottom: 5px; justify-content: center; font-size: 0.9em; }
        .main-logo-img { max-height: 50px; }
        
        /* ÚJ MOBIL MENÜ: Függőleges stack */
        .nav-main-ul {
             flex-direction: column; 
             border-top: 1px solid rgba(0, 0, 0, 0.1);
        }
        .nav-li {
             width: 100%;
             border-right: none;
             border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
        }
        .nav-li:last-child {
            border-bottom: none;
        }
        
        /* A legördülő menü mobilon nem jelenik meg hoverre (csak kattintásra jelenne meg, de a JS-t nem írjuk át) */
        .nav-li:hover > .nav-sub-menu { 
             display: none; 
        }

        .static-content-grid { grid-template-columns: 1fr; }
        /* Kisebb képernyőn csak egy oszlop, ami teljes szélességet kitölt */
        .product-list-grid-2-col { grid-template-columns: 1fr; }
        .product-detail-container { flex-direction: column; gap: 20px; }
        .product-images-section { order: 1; }
        .product-info-section { order: 2; }
        
        /* MÓDOSÍTÁS: Egy soros fejléc mobilra */
        .listing-header-row-combined {
            flex-direction: column; /* Mobilon függőlegesre vált */
            align-items: flex-start;
        }
        .listing-header-row-combined h2 {
            width: 100%;
            margin-bottom: 15px; /* Hely a cím és a rendező között */
        }
        .sort-selector-dropdown {
            margin-left: 0; 
            width: 100%;
        }
        .sort-selector-dropdown select {
            width: 100%;
        }
        
        /* Kapcsolat oldal mobil elrendezés */
        .kapcsolat-content-wrapper {
            flex-direction: column;
        }
    }
    
    /* ÚJ: Kapcsolat oldal asztali elrendezés */
    @media (min-width: 769px) {
        .kapcsolat-content-wrapper {
            display: flex;
            gap: 30px;
            align-items: flex-start;
        }
        .inquiry-form-container {
            flex: 1 1 500px; /* 500px min/alap szélesség, vagy nagyobb ha van hely */
            max-width: 60%;
            margin: 0;
        }
        .static-content-grid {
             /* MEGERŐSÍTVE: Visszaállítja a többoszlopos gridet a flex konténeren belül. */
             grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        }
        /* ÚJ JAVÍTÁS: Két oszlop megerősítése 769px felett */
        .product-list-grid-2-col { 
             grid-template-columns: repeat(2, 1fr);
             grid-auto-rows: 1fr; /* MEGERŐSÍTÉS A GRID KONZISZTENCIA ÉRDEKÉBEN */
        }
    }