/* Products Section Styles */

.products-section {
    background: var(--color-seductive-black);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--color-deep-black) 0%, transparent 100%);
    z-index: 1;
}

/* Product Grid */
.products-grid {
    position: relative;
    z-index: 2;
}

/* Product Card Styling */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-fire);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.product-card:hover::before {
    opacity: 0.3;
}

/* Product Image */
.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    /* Dark background to ensure product images are visible */
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Image Styling */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.product-card:hover .product-img {
    transform: scale(0.95);
}

/* Subtle gradient backgrounds to make product images visible */
.product-card[data-flavor="hot-honey"] .product-image {
    background: radial-gradient(ellipse at center, rgba(255, 183, 77, 0.15) 0%, rgba(255, 183, 77, 0.05) 40%, #1a1a1a 70%);
}

.product-card[data-flavor="spicy"] .product-image {
    background: radial-gradient(ellipse at center, rgba(255, 68, 68, 0.15) 0%, rgba(255, 68, 68, 0.05) 40%, #1a1a1a 70%);
}

/* Ensure badge is above image */
.product-badge {
    z-index: 10;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-size: var(--text-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.placeholder-image.hot-honey {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
    color: var(--color-gold);
}

.placeholder-image.spicy {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.2) 0%, rgba(139, 0, 0, 0.2) 100%);
    color: var(--color-fire-red);
}

.placeholder-text {
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 0 20px currentColor;
}

/* Hover Effect for Product Image */
.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-image {
    transition: transform var(--transition-slow);
}

/* Product Content */
.product-content {
    padding: var(--space-xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: var(--font-primary);
    font-size: var(--text-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-tagline {
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.product-description {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

/* Product Features Animation */
.product-features {
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.product-card:hover .product-features {
    opacity: 1;
}

.product-features .feature {
    animation: feature-pulse 2s ease-in-out infinite;
}

.product-features .feature:nth-child(1) {
    animation-delay: 0s;
}

.product-features .feature:nth-child(2) {
    animation-delay: 0.2s;
}

.product-features .feature:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes feature-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Product-specific hover effects */
.product-card[data-flavor="hot-honey"]:hover {
    background: rgba(255, 215, 0, 0.05);
}

.product-card[data-flavor="hot-honey"]:hover .product-name {
    text-shadow: 0 0 30px var(--color-gold);
}

.product-card[data-flavor="spicy"]:hover {
    background: rgba(255, 51, 51, 0.05);
}

.product-card[data-flavor="spicy"]:hover .product-name {
    text-shadow: 0 0 30px var(--color-fire-red);
}

/* Entrance Animation */
.product-card {
    opacity: 0;
    transform: translateY(50px);
    animation: card-entrance 0.8s ease-out forwards;
}

.product-card:nth-child(1) {
    animation-delay: 0.2s;
}

.product-card:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes card-entrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Products */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-content {
        padding: var(--space-lg);
    }
    
    .product-features {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Background Pattern */
.products-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.01) 10px,
            rgba(255, 255, 255, 0.01) 20px
        );
    pointer-events: none;
}
