/* ==========================================================================
   1. CATALOGUE HERO (Sötét, elegáns bevezető rész)
   ========================================================================== */

.catalogue-hero {
    position: relative;
    overflow: hidden;
    padding: 140px 20px 80px; /* Egyenletes, szép belső margók */
    text-align: center;

    background:
        linear-gradient(
            rgba(18, 16, 13, 0.70),
            rgba(18, 16, 13, 0.85)
        ),
        url("../assets/pince.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #2a2621;
}

.catalogue-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 57, 0.15) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.catalogue-hero > * {
    position: relative;
    z-index: 1;
}

.catalogue-hero h1 {
    font-size: clamp(3rem, 5vw, 4.2rem);
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.catalogue-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #dfdad3;
}

.catalogue-hero p strong {
    color: #d4af39;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
}

/* ==========================================================================
   2. SORT BAR (Új, tiszta elrendezés a krémszínű háttéren)
   ========================================================================== */

.catalogue-sort {
    display: flex;
    align-items: center;
    gap: 14px;
    
    /* Középre igazítja a dobozt a krémszínű részen */
    width: max-content;
    margin: 40px auto 0; 
    
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #ebe3d8;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(18, 16, 13, 0.05);
}

.catalogue-sort label {
    font-weight: 600;
    color: #444;
}

.catalogue-sort select {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .2s;
}

.catalogue-sort select:focus {
    outline: none;
    border-color: #d4af39;
}

/* ==========================================================================
   3. CATEGORY (Kategória elválasztó távolsága a rendezősávtól)
   ========================================================================== */

#catalogue-content {
    /* Már nincs szükség hatalmas paddingra, mert a gomb magától kitolja a helyet */
    padding-top: 20px; 
    position: relative;
    z-index: 2;
}

.catalogue-group {
    margin-bottom: 80px;
}

.catalogue-group-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f1f1f;
    padding-bottom: 12px;
    border-bottom: 2px solid #7ba547;
}


/* Keresd meg a CSS alján a @media részt, és cseréld erre a tisztább elrendezésért 
/* ==========================================================================
   4. PRODUCT IMAGE (Finomított, prémium palack megjelenítés)
   ========================================================================== */

.product-image {
    height: 200px;
    padding: 5px;
    
    /* Meleg, lágy krém-pezsgő háttér, ami illeszkedik a főoldal fényeihez */
    background: #fdfbf7; 
    
    /* Lekerekítjük a kép tetejét, hogy kövesse a kártya formáját */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    
    /* Finom belső sötétedés a sarkokban, ami mélységet ad a palack mögött */
    box-shadow: inset 0 0 20px rgba(18, 16, 13, 0.04);
    
    /* Alsó elválasztó vonal, ami lágyan átvezet a szöveges részhez */
    border-bottom: 1px solid #f3ece2;
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    
    /* Finom árnyék maguknak a borosüvegeknek, hogy térbelinek tűnjenek */
    filter: drop-shadow(0 8px 12px rgba(18, 16, 13, 0.12));
    
    /* Finom mozgás animáció előkészítése */
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* ==========================================================================
   5. PRODUCT CARD & CONTENT (Egyforma magasság és hover leírás)
   ========================================================================== */


/* Ha ráviszik az egeret a kártyára, a borosüveg minimálisan megemelkedik */
.product-card:hover .product-image img {
    transform: scale(1.04) translateY(-4px);
    filter: drop-shadow(0 12px 18px rgba(18, 16, 13, 0.18));
}



.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.product-header h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  min-height: 3.51rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}


.product-year {
    color: #888;
    white-space: nowrap;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.product-meta span {
    padding: 6px 12px;
    background: #e8f5e4;
    color: #3d7d3e;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
}

/* ==========================================================================
   6. SIZE & QUANTITY (Méretválasztó és Mennyiség)
   ========================================================================== */

.product-size {
    margin-bottom: 20px;
}

.product-size label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-size select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.orderItem-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.qty-minus,
.qty-plus {
    min-width: 0px;
    padding: 0px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #3d7d3e;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: .2s;
}

.qty-minus:hover,
.qty-plus:hover {
    background: #2d5d2e;
}

/* ==========================================================================
   7. Age controll
   ========================================================================== */

/* Maga a teljes képernyős háttér */
.age-restriction {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; 
    background-color: #f3eee8;
    z-index: 9999;
}

/* Csak a korhatár ablakon belüli konténer */
.age-restriction .restriction-container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

/* Csak a korhatár ablakon belüli ikontartó */
.age-restriction .icon-container {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: center; 
    margin-bottom: 20px;
}

/* Csak a korhatár ablakon belüli 18-as kör */
.age-restriction .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-style: solid;
    border-radius: 50%;
    border-width: 8px;
    border-color: red;
    font-size: 50px;
    font-weight: bold;
}

/* Csak a korhatár ablakon belüli szöveges üzenet */
.age-restriction .message {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.age-restriction .buttons-section {
    width:100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.age-restriction .buttons-section button{
    flex-grow: 1;
}


/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES (Mobil optimalizálás)
   ========================================================================== */

@media (max-width:768px){
    .catalogue-hero {
        padding: 120px 20px 60px;
    }

 .catalogue-sort {
        width: calc(100% - 40px); /* Szépen igazodik a mobil képernyő széléhez */
        max-width: 340px;
        margin: 30px auto 0;
        justify-content: center;
    }

    #catalogue-content {
        padding-top: 10px;
    }

    .catalogue-group-title {
        font-size: 1.8rem;
        text-align: center; /* Mobilon jobban mutat középen a cím */
    }

    .catalogue-hero{
        padding: 120px 20px 50px;
    }

    .catalogue-hero h1{
        font-size: 2.5rem;
    }

    .product-card {
        width: 100%; /* Mobilon a kártyák teljes szélességben jelennek meg */
    }
    .product-image{
        height: 240px;
        padding: 20px;
    }
}
