/* TELJES SZÉLESSÉGŰ KATEGÓRIA HERO */
.category-hero {
    width: 100%;
    height: 130px; /* picit magasabb jobb hatás */
    background-size: cover;
    background-position: center center; /* vagy csak: center */
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.products-section {
    position: relative; /* fontos, hogy a ::before a szekcióhoz viszonyítson */
    background: linear-gradient(90deg, rgb(39, 55, 69) 0%, rgb(29, 65, 97) 100%);
    overflow: hidden; /* hogy ne lógjon ki semmi */
    z-index: 1; /* a tartalom fölé kerül */
}

.products-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/bg_3.jpg') no-repeat center center fixed; /* parallax hatás */
    background-size: cover;
    opacity: 0.65;
    pointer-events: none;
    filter: blur(2px);
    z-index: 0;
}
/* Sötét overlay a jobb olvashatóságért */
.category-hero-overlay {
    width: 100%;
    height: 100%;
/*    background: rgba(0,0,0,0.25);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
     text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* Termék konténer középre */
.products-container {
    max-width: 1100px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

/* ===== DESKTOP GRID - 4 kártya soronként ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== A CARDOKHOZ NEM NYÚLTUNK ===== */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    padding: 8px;
    background: #033454;
    background: linear-gradient(132deg, rgba(3, 52, 84, 1) 0%, rgba(50, 99, 143, 1) 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.product-img {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.product-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 10px;
}

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

.product-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.title-dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 8px;
}

.product-description {
    font-size: 0.85rem;
    color: #e9e9e9;
    line-height: 1.3;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: auto;
}

.price-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 5px;
}

.size {
    color: #e9e9e9;
}

.price {
    color: #ffd700;
    font-weight: 700;
}

.btn-order {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #5291aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-order:hover {
    background-color: #43798f;
}

/* ===== TABLET ===== */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    .products-container {
        max-width: 1100px;
        margin: 0px auto 20px auto;
        padding: 0px;
    }

    .category-hero {
        height: 150px;
    }

    .category-hero-title {
        font-size: 1.4rem;
    }

    .product-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-pricing {
        align-items: flex-start;
    }
}

/* ===== MINI MOBILE ===== */
@media (max-width: 400px) {
    .products-section {
        position: relative;
        background: linear-gradient(90deg, rgb(39, 55, 69) 0%, rgb(29, 65, 97) 100%);
        overflow: hidden;
        z-index: 1;
    }

    .products-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../../images/service_pattern.png') repeat;
        background-size: auto;
        opacity: 0.15;
        pointer-events: none;
        z-index: 0;
    }

    .category-hero {
        background-image: none !important;
        height: auto;
        padding: 15px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-direction: column;
        border-top: 2px solid #627682;
    }

    .category-hero-overlay {
        background: none;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    .category-hero-title {
        color: #fff;
        font-size: 1.6rem;
        text-align: left;
        margin-left: 10px;
    }

    .product-card {
        flex-direction: column;
        align-items: flex-start;
        border: 1px solid #403f3f;
        padding: 10px;
        background: #395877;
    }

    .product-img {
        width: 100%;
        text-align: center;
    }

    .product-img img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 0px;
        display: block;
        margin: 0 auto;
        position: relative;
    }

    .product-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .product-name,
    .product-description {
        text-align: left;
        width: 100%;
        color: #fff;
    }

    .product-name {
        font-weight: 700;
        white-space: normal;  /* engedélyezzük a sortörést */
        word-wrap: break-word; /* a nagyon hosszú szavakat is törje */
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.8rem;
        color: #e9e9e9;
        margin-top: 4px;
        white-space: normal;
    }

    .product-pricing {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 10px;
    }

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

    .size {
        font-weight: 400;
        color: #e9e9e9;
    }

    .price {
        font-weight: 700;
        color: #e9e9e9;
    }

    .btn-order {
        margin-top: 6px;
        padding: 6px 12px;
        background-color: #bfd7e0;
        color: #154563;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1.1rem;
        align-self: flex-start;
    }
}

.page-hero_products {
    width: 100%;
    height: 400px;
    background-image: url('../../images/products_bg/Header_bg.jpg'); /* ide tegyél saját képet */
    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.45); /* sötét overlay a jobb olvashatóságért */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
}

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

/* ===== RESZPONZÍV ===== */

@media (max-width: 768px) {
    .page-hero_products {
        height: 320px;
    }

    .page-hero_products h1 {
        font-size: 32px;
    }
}