/* ZS Product Display Section - Enhanced with Staggered Reveal & Red Glow Effects */
.zsprod-display {
    background: linear-gradient(to bottom, #ffffff 0%, rgba(163, 30, 49, 0.02) 100%); /* Subtle red fade for cohesion */
    padding: 60px 20px; /* More breathing room */
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #000000; /* Black for high contrast */
    position: relative;
    overflow: hidden;
}

/* Products Grid - Masonry-inspired with stagger */
.zsprod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* Slightly more space */
    max-width: 1400px;
    margin: 40px auto 0; /* Space from potential heading */
}

/* Staggered animation delays for dynamic reveal */
.zsprod-grid .zsprod-item:nth-child(1) { animation-delay: 0.1s; }
.zsprod-grid .zsprod-item:nth-child(2) { animation-delay: 0.2s; }
.zsprod-grid .zsprod-item:nth-child(3) { animation-delay: 0.3s; }
.zsprod-grid .zsprod-item:nth-child(4) { animation-delay: 0.4s; }

/* Individual Product Item - Premium with Red Ripple & Glow */
.zsprod-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.9) 100%); /* Subtle gradient shine */
    border-radius: 16px; /* Softer corners */
    box-shadow: 0 6px 20px rgba(163, 30, 49, 0.15); /* Red-tinted shadow */
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy transition */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px; /* More padding for premium feel */
    position: relative;
    overflow: hidden;
    animation: zsprodFadeInUp 1s ease-out forwards; /* Enhanced stagger entry */
    opacity: 0;
    transform: translateY(30px) scale(0.95); /* Start smaller */
    border: 1px solid rgba(163, 30, 49, 0.08); /* Subtle red outline */
    cursor: pointer;
}

/* Unique Ripple Shine Effect */
.zsprod-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(163, 30, 49, 0.08), transparent);
    transition: left 0.6s;
    z-index: 0;
}

.zsprod-item:hover::before {
    left: 100%; /* Sweep shine on hover */
}

/* Featured Badge on First Item (Unique Highlight) */
.zsprod-grid .zsprod-item:nth-child(1)::after {
    content: '⭐ Featured';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #a31e31, #8b1a28);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.zsprod-item:hover {
    transform: translateY(-8px) scale(1.02); /* Lift & subtle zoom */
    box-shadow: 0 12px 30px rgba(163, 30, 49, 0.25); /* Deeper red glow */
    border-color: #a31e31; /* Red border on hover */
}

/* Product Image - With Red Frame & Tilt */
.zsprod-item img {
    width: 100%;
    height: 160px; /* Taller for impact */
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    border: 2px solid transparent; /* For glow frame */
}

.zsprod-item:hover img {
    transform: scale(1.08) rotate(1deg); /* Zoom + playful tilt */
    box-shadow: 0 4px 12px rgba(163, 30, 49, 0.15); /* Red-tinted shadow */
    border-color: rgba(163, 30, 49, 0.2); /* Subtle red frame */
}

/* Product Title - Red Accent with Hover Lift */
.zsprod-item h3 {
    font-size: 1.05rem;
    color: #a31e31; /* Red for titles */
    margin: 0 0 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    z-index: 1;
}

.zsprod-item:hover h3 {
    color: #8b1a28; /* Darker red on hover */
    transform: translateY(-1px); /* Subtle lift */
    letter-spacing: 0.5px; /* Expand for emphasis */
}

/* Price Block - Bold Black with Red Pulse */
.zsprod-price {
    text-align: center;
    margin-top: auto; /* Push to bottom */
    z-index: 1;
}

.zsprod-price .zsprod-price-value {
    font-size: 1.2rem; /* Larger for emphasis */
    color: #000000; /* Black for contrast */
    font-weight: 700;
    transition: all 0.3s ease;
}

.zsprod-item:hover .zsprod-price-value {
    transform: scale(1.05); /* Pulse for CTA */
    color: #a31e31; /* Red tint on hover */
    text-shadow: 0 1px 3px rgba(163, 30, 49, 0.3); /* Subtle glow */
}

/* Enhanced Animation Keyframes - Staggered Fade with Scale */
@keyframes zsprodFadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Error Message - Styled with Red Alert Box */
.zsprod-error {
    color: #a31e31; /* Red for errors */
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
    background: rgba(163, 30, 49, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid #a31e31;
    animation: shakeIn 0.5s ease-out;
}

@keyframes shakeIn {
    0% { transform: translateX(-10px); opacity: 0; }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); opacity: 1; }
}

/* Responsive Design - Optimized for 2-Column Mobile */
@media (max-width: 1200px) {
    .zsprod-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .zsprod-display {
        padding: 50px 15px;
    }
    .zsprod-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        max-width: 100%;
        gap: 18px;
    }
    .zsprod-item img {
        height: 140px;
    }
    /* Simplified hovers for touch */
    .zsprod-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(163, 30, 49, 0.18);
    }
    .zsprod-item:hover img {
        transform: scale(1.03) rotate(0deg); /* No tilt on mobile */
    }
}

@media (max-width: 480px) {
    .zsprod-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on tiny screens */
        max-width: 100%;
        gap: 12px;
    }
    .zsprod-item {
        padding: 16px;
    }
    .zsprod-item img {
        height: 120px;
    }
    .zsprod-item h3 {
        font-size: 0.95rem;
    }
    .zsprod-price .zsprod-price-value {
        font-size: 1.1rem;
    }
    /* Hide badge on very small screens */
    .zsprod-grid .zsprod-item:nth-child(1)::after {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}