/* ==========================================================================
   PRODUCTS - Product list, product cards
   ========================================================================== */

.product-list-section {
    border-radius: 8px;
    color: #f5f5f5;
}

.product-list-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-divider {
    border: none;
    height: 1px;
    background-color: #555;
    margin-bottom: 1.5rem;
}

/* Product List Container */
.product-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    max-height: 200rem;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

    .product-list.hidden {
        max-height: 0;
        opacity: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 1.5s ease, padding 0.5s linear;
    }

/* Product Card */
.product-card {
    background: radial-gradient(circle at 40% 70%, rgba(150, 0, 0, 0.2), rgba(15, 13, 15, 1));
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1rem;
    flex: 0 0 24rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

    .product-card:hover {
        box-shadow: 0 4px 10px rgba(255, 50, 50, 0.15);
        background: radial-gradient(circle at 50% 60%, rgba(150, 10, 10, 0.2), rgba(15, 13, 15, 1));
    }

.product-image {
    width: 100%;
    height: 10rem;
    padding: 1.5rem;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 6px;
    background: #16121788;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-description, .product-description * {
    font-size: 0.85rem;
    color: #aaaaaaaa;
}
    .product-description li {
        margin-bottom: 0.2rem;
    }

.product-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.product-price {
    font-weight: bold;
    color: #ff4d4d;
    font-size: 1rem;
    text-wrap: nowrap;
}

.add-to-cart-btn {
    background: #b22222;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.add-to-cart-btn:hover {
    background: #e74c3c;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 1300px) {
    .product-list {
        gap: 1rem;
    }

    .product-card {
        flex: 0 0 20rem;
    }
}

@media (max-width: 768px) {
    .product-list-section {
        margin-top: 2rem;
    }

    .product-list-heading {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .product-list {
        flex-direction: column;
        overflow-x: visible;
    }

    .product-card {
        flex: 1 1 auto;
        width: 100%;
    }

    .product-image {
        height: 12rem;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .product-footer * {
        text-align: center;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 0.65rem;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 10rem;
        padding: 1rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-description {
        font-size: 0.8rem;
    }

}