/* ===============================
   MODERN RELATED PRODUCTS CARDS
=============================== */


:root {
  --primary-dark: #1a1a1a;
  --primary-gold: #baad6a;
  --text-light: #f5f5f5;
  --bg-dark: #0d1117;
  --main-red: #D6001C;
  --main-red-4: #8B0000;
  --chill-red: #E71B23;
}

.related-products-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2rem;
    z-index: 120;
}

/* Cards Container - Version 3.0: Gap in middle for main product */
.products-cards-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 400px; /* LARGE GAP IN MIDDLE FOR MAIN PRODUCT */
    margin-top: 4rem;
    flex-wrap: nowrap;
    position: relative;
    min-height: 600px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    z-index: 5; /* BELOW main product (z-index: 15) */
}

/* Base Card Styles - Version 2.0: Cleaner, simpler */
.product-card {
    position: relative;
    width: 280px;
    height: 450px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(186, 173, 106, 0.3);
    border-color: #fff;
}

/* Product Images */
.card-product-image {
    position: absolute;
    width: 200px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.right-card:hover .card-product-image {
    transform: translateX(-50%) scale(1.05) rotate(3deg);
}
.left-card:hover .card-product-image {
    transform: translateX(-50%) scale(1.05) rotate(-3deg);
}

/* Card Content - Version 2.0: Cleaner styling */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--primary-gold);
}

.card-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.card-button {
    background: linear-gradient(135deg, var(--primary-gold), var(--main-red));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: var(--sans);
    font-weight: var(--medium);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

.card-button:hover {
    background: linear-gradient(135deg, #ff6600, #ff4400);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 140, 0, 0.4);
}

/* Side Cards: Initial state for GSAP animation */
.left-card,
.right-card {
    opacity: 0;
    transform: scale(0.8);
}

/* Animation Classes (applied by GSAP) */
.card-animated {
    transform: translateX(0) rotate(0);
    opacity: 1;
}

.center-card-animated {
    transform: scale(1);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-cards-container {
        gap: 1.5rem;
    }

    .product-card {
        width: 280px;
        height: 460px;
    }

    .card-product-image {
        width: 160px;
        max-height: 250px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .related-products-section {
        padding: 4rem 0;
    }

    .products-cards-container {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        min-height: auto;
    }

    .product-card {
        width: 300px;
        height: 420px;
        margin: 0 auto;
    }

    .card-product-image {
        width: 140px;
        max-height: 220px;
        top: 10%;
    }

    .card-content {
        padding: 1.25rem;
        margin: 0 15px 15px;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .card-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 280px;
        height: 380px;
    }

    .card-product-image {
        width: 120px;
        max-height: 180px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.125rem;
    }

    .card-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
