﻿/* ======= Page Background ======= */
body {
    background: linear-gradient(135deg, #f6f9fc, #eef2f7);
    font-family: 'Poppins', sans-serif;
}

/* ======= Main Product Image Card ======= */
.product-image-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
}

    .product-image-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 30px 70px rgba(0,0,0,0.12);
    }

.main-product-img {
    max-height: 420px;
    transition: transform 0.4s ease;
}

.product-image-card:hover .main-product-img {
    transform: scale(1.08);
}

.no-image-box {
    padding: 140px 0;
    color: #aaa;
    font-size: 18px;
}

/* ======= Product Description ======= */
.product-description-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

    .product-description-card:hover {
        transform: translateY(-4px);
    }

/* ======= Right Side Info Panel ======= */
.product-info {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    padding: 35px;
    border-radius: 26px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

    .product-info:hover {
        transform: translateY(-6px);
    }

/* ======= Info Cards (Quantity, Addons) ======= */
.info-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: 0.3s ease;
}

    .info-card:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }

/* ======= Buttons ======= */
.upload-btn {
    background: linear-gradient(135deg,#0d6efd,#6ea8fe);
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .upload-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(13,110,253,0.35);
    }

.add-cart-btn {
    background: linear-gradient(135deg,#ffb300,#ff6f00);
    border: none;
    padding: 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

    .add-cart-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(255,111,0,0.35);
    }

    .add-cart-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: rgba(255,255,255,0.3);
        transform: skewX(-25deg);
        transition: 0.6s;
    }

    .add-cart-btn:hover::before {
        left: 120%;
    }

/* ======= Related Products Horizontal Scroll - Premium Style ======= */
.related-products-container {
    overflow-x: auto;
    padding-bottom: 15px;
    margin-top: 40px;
    scroll-behavior: smooth; /* smooth scroll */
}

.related-products-scroll {
    display: flex;
    gap: 25px; /* spacing between cards */
    flex-wrap: nowrap; /* horizontal scroll */
}

/* Related Product Card */
.related-product-card {
    flex: 0 0 270px; /* bigger cards */
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

    .related-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 50px rgba(0,0,0,0.15);
    }

    /* Product Image */
    .related-product-card .product-img {
        height: 200px; /* slightly taller */
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f7f8fb, #ffffff);
        overflow: hidden;
        transition: transform 0.3s ease;
    }

        .related-product-card .product-img img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

    .related-product-card:hover .product-img img {
        transform: scale(1.08);
    }

    /* Product Name */
    .related-product-card .product-name {
        font-size: 15px; /* slightly larger */
        font-weight: 600;
        color: #222;
        margin: 10px 12px 6px 12px;
        text-align: center;
        min-height: 42px; /* consistent height */
    }

    /* Explore Button */
    .related-product-card .btn-shop {
        border-radius: 999px;
        font-size: 10px; /* smaller and neat */
        padding: 4px 8px;
        margin: 0 12px 12px 12px;
        transition: all 0.25s ease;
        display: inline-block;
        text-align: center;
    }

        .related-product-card .btn-shop:hover {
            background: #0d6efd;
            color: #fff;
            border-color: #0d6efd;
            box-shadow: 0 6px 18px rgba(13,110,253,0.25);
        }

/* Hide scrollbar for modern look */
.related-products-container::-webkit-scrollbar {
    display: none;
}

.related-products-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .related-product-card {
        flex: 0 0 220px;
    }

        .related-product-card .product-img {
            height: 170px;
        }
}

@media (max-width: 768px) {
    .related-product-card {
        flex: 0 0 180px;
    }

        .related-product-card .product-img {
            height: 140px;
        }

        .related-product-card .product-name {
            font-size: 14px;
        }

        .related-product-card .btn-shop {
            font-size: 9px;
            padding: 3px 6px;
        }
}

@media (max-width: 576px) {
    .related-product-card {
        flex: 0 0 150px;
    }

        .related-product-card .product-img {
            height: 120px;
        }

        .related-product-card .product-name {
            font-size: 13px;
        }
}

/* Hide scrollbar */
.related-products-container::-webkit-scrollbar {
    display: none;
}

.related-products-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Refined Explore Button for Related Products */
.btn-explore {
    background: #0d6efd; /* Primary blue */
    color: #fff; /* White text */
    font-size: 12px; /* Slightly smaller font */
    padding: 6px 0; /* Compact height */
    border-radius: 999px; /* Pill shape */
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

    .btn-explore:hover {
        background: #0b5ed7; /* Darker blue on hover */
        color: #fff;
        box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
        transform: translateY(-2px);
    }


/* ======= Responsive ======= */
@media (max-width: 992px) {
    .product-info {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .related-product-card {
        flex: 0 0 150px;
    }

        .related-product-card .product-img {
            height: 120px;
        }

        .related-product-card .product-name {
            font-size: 13px;
        }
}

@media (max-width: 576px) {
    .product-image-card {
        padding: 20px;
    }

    .main-product-img {
        max-height: 300px;
    }

    .product-info {
        padding: 25px;
    }
}
