/* ===== LAYOUT ===== */
.products-container_2 {
  max-width: 1400px;
  margin: 80px auto 60px auto;
  padding: 0 20px;
   z-index: 2;
}

.products-layout {
    display: flex;
    gap: 40px;
}

/* ===== SIDEBAR ===== */

.products-sidebar {
    width: 220px;
    z-index: 1;
    margin-top: 20px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255,255,255,0.62);
    color: #192d43;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.category-list a:hover {
    background: rgba(147,194,212,0.2);
    border-color: rgba(147,194,212,0.6);
}

.category-list li.active a {
    background: linear-gradient(90deg, #93c2d4, #3da7d4);
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== GRID ===== */

.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

/* ===== PRODUCT CARD ===== */

.product-card {
    display: flex;
    gap: 18px;
    background-color: rgba(0,0,0,0.25);
    border-radius: 14px;
    padding: 18px;
    align-items: flex-start;
    max-width: 100%;
    min-height: unset;
    height: auto;
    z-index: 1;
}

/* ===== IMAGE ===== */

.product-img {
    flex: 0 0 clamp(60px, 6vw, 90px);
}

.product-img img {

    object-fit: cover;
    border-radius: 10px;
}

/* ===== INFO ===== */

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.product-name {
    font-weight: 700;
    white-space: normal;      /* sortörés engedélyezve */
    word-break: break-word;   /* hosszú szó törhető */
    max-width: 220px;         /* egységes szélesség */
    font-weight:700;
    font-size:clamp(0.85rem, 0.9vw, 1rem);
}

.title-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255,255,255,0.4);
    margin: 0 8px;
}

.product-description {
    font-size:clamp(0.75rem, 0.8vw, 0.85rem);
    color: #ccc;
    margin-top: 6px;
}

/* ===== PRICING ===== */

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
}

.price-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.size {
    font-weight: 400;
}

.price {
    font-weight: 700;
}

/* ===== BUTTON ===== */

.btn-order {
    margin-top: 8px;
    padding: 6px 14px;
    background: linear-gradient(90deg, #93c2d4, #3da7d4);
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-order:hover {
    transform: translateY(-2px);
}

/* ===== HERO ===== */

.page-hero_products {
    width: 100%;
    height: 400px;
    background-image: url('../../images/products_bg/Header_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-overlay_products {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-hero_products h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 600;
    margin: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {

    .products-layout {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        z-index: 1;
    }

    .product-card {
        flex-direction: column;
    }

    .product-pricing {
        align-items: flex-start;
        margin-top: 10px;
    }

    .page-hero_products {
        height: 300px;
    }

    .page-hero_products h1 {
        font-size: 32px;
    }
}
.price{
    color: #ffd700;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px){

    .desktop-only { display: none; }
    .mobile-only { 
        display: block; 
        margin-bottom: 20px; 
    }

    .mobile-only select {
        width: 100%;
        padding: 12px 45px 12px 15px;
        font-size: 16px;
        font-weight: 500;
        border-radius: 12px;
        border: 2px solid #1c4e6c;
        background-color: #ffffff;
        color: #1c4e6c;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: all 0.2s ease;
    }

    .mobile-only select:focus {
        outline: none;
        border-color: #e74c3c;
        box-shadow: 0 0 0 3px rgba(231,76,60,0.2);
    }

    /* Egyedi lenyíló nyíl */
    .mobile-only {
        position: relative;
    }

    .mobile-only::after {
        content: "▾";
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: #1c4e6c;
        pointer-events: none;
    }
}
/* csak étlap oldal */
body.view-products2 .products-container_2 {
    min-height: calc(100vh - 100px);
}

/* Mobilon az egész oldalt görgetjük, nem a grid-et */
@media (max-width: 768px) {
    .products-grid {
        max-height: none !important;  /* ne korlátozza a magasságot */
        overflow-y: visible !important; /* ne legyen belső scroll */
    }
}
@media (min-width: 769px) and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}