/* Ajándék cola elrejtése */
.product-card[data-product-id="276"] { display: none !important; }

/* Products Section */
.products-section {
    padding: 0 16px 16px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    background: #1E1C1F;
    position: relative;
}

/* Összezárt nézet */
.product-collapsed {
    display: flex;
    min-height: 150px;
    position: relative;
}

.product-card.expanded .product-collapsed {
    display: none;
}

.product-image {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    flex: 1;
    padding: 12px;
    padding-right: 12px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.product-description {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    position: absolute;
    right: 92px;
    bottom: 8px;
    display: flex;
    align-items: center;
}

.product-price {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #fff;
}

.product-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 40px;
    background: #d9d9d9;
    border: none;
    border-radius: 10px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-toggle img {
    width: 28px;
    height: 28px;
}

/* Lenyitott nézet */
.product-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.product-card.expanded .product-expanded {
    max-height: 1500px !important;
}

.product-close {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.product-card.expanded .product-close {
    opacity: 1;
}

.product-image-full {
    width: 100%;
}

.product-image-full img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-details {
    padding: 16px;
}

.product-details .product-title {
    font-size: 18px;
}

.product-description-full {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    margin: 8px 0 0;
}

.product-price-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.product-extras {
    margin-top: 20px;
}

.extras-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    margin: 0 0 12px;
}

.extras-list {
    background: #d9d9d9;
    border-radius: 10px;
    padding: 12px;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
}

.extra-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1C1B1F;
}

.extra-name {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #1e1e1e;
    flex: 1;
}

.extra-price {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: rgba(30, 30, 30, 0.5);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.qty-selector {
    flex: 0 0 33.333%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #d9d9d9;
    border-radius: 10px;
    padding: 0 8px;
    height: 48px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-family: 'Figtree', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e1e1e;
    cursor: pointer;
}

.qty-value {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
}

.product-add-cart {
    flex: 0 0 calc(66.666% - 12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    background: #4285F4;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.product-add-cart img {
    width: 24px;
    height: 24px;
}

.cart-total-price {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.product-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 37px;
    height: 37px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-close img {
    width: 37px;
    height: 37px;
}

.no-products {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: #1e1c1f;
    text-align: center;
    padding: 24px;
}

/* ===========================================
   Desktop - Products
   =========================================== */
@media (min-width: 1024px) {
    .products-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

    .product-collapsed {
        flex: 1;
        display: flex;
        min-height: 160px;
    }

    .product-content {
        padding-bottom: 54px;
    }

    .product-title {
        font-size: 17px;
    }

    /* Popup - alapból rejtett */
    .product-expanded {
        display: none;
        max-height: none;
    }

    /* Popup overlay - FULL CENTER */
    .product-card.popup-open .product-expanded {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
    }

    /* Popup content wrapper */
    .product-card.popup-open .product-image-full,
    .product-card.popup-open .product-details {
        width: 100%;
        max-width: 480px;
        flex-shrink: 0;
    }

    .product-card.popup-open .product-image-full {
        border-radius: 16px 16px 0 0;
        overflow: hidden;
        position: relative;
    }

    .product-card.popup-open .product-image-full img {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    .product-card.popup-open .product-image-full .product-close {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .product-card.popup-open .product-details {
        background: #000;
        border-radius: 0 0 16px 16px;
        padding: 20px;
    }

    .product-card.popup-open .product-details .product-title {
        font-size: 24px;
    }

    /* Extras látható a popupban */
    .product-card.popup-open .product-extras {
        display: block;
        margin-top: 16px;
    }

    .product-card.popup-open .extras-title {
        font-size: 18px;
    }

    /* Close gomb - svg ikon, háttér nélkül */
    .product-card.popup-open .product-close {
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        opacity: 1;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-card.popup-open .product-close img {
        width: 36px;
        height: 36px;
    }
}
