/* =========================================
   BESTSELLER SECTION
========================================= */

.bestseller-section {
    padding: 80px 20px;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(
            circle at 50% 20%,
            #f8f4ea,
            #ead8a6,
            #f5efe3
        );
    overflow: hidden;
    position: relative;
}


/* =========================================
   TITLE
========================================= */

.bestseller-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin: 0 0 60px;
    color: #111;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}


/* =========================================
   BACKGROUND GLOW
========================================= */

.gold-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 600px;
    height: 600px;

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.25),
            transparent 70%
        );

    filter: blur(80px);

    z-index: 0;
    pointer-events: none;
}


/* =========================================
   CAROUSEL WRAPPER
========================================= */

.carousel-wrapper {
    max-width: 1100px;
    margin: auto;

    position: relative;
    z-index: 2;

    /*
    Space reserved for arrows
    */
    padding: 0 60px;

    box-sizing: border-box;
}


/* =========================================
   CAROUSEL VIEWPORT
========================================= */

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}


/* =========================================
   CAROUSEL TRACK
========================================= */

.premium-track {
    display: flex;
    gap: 30px;

    align-items: stretch;

    transition:
        transform 0.6s
        cubic-bezier(
            0.25,
            0.46,
            0.45,
            0.94
        );

    will-change: transform;
}


/* =========================================
   PRODUCT LINK
========================================= */

.product-link {
    flex: 0 0 260px;
    width: 260px;

    text-decoration: none;
    color: inherit;

    display: block;
}


/* =========================================
   PRODUCT CARD
========================================= */

.pCard {
    width: 100%;
    min-height: 360px;

    padding: 18px;

    box-sizing: border-box;

    text-align: center;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.10);

    cursor: pointer;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


.pCard:hover {
    transform:
        translateY(-6px)
        scale(1.02);

    box-shadow:
        0 20px 45px
        rgba(0, 0, 0, 0.14);
}


/* =========================================
   IMAGE WRAPPER
========================================= */

.product-image-wrapper {
    width: 100%;
    height: 180px;

    border-radius: 12px;

    overflow: hidden;

    background: #f7f3e8;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 12px;
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.product-image-wrapper img {
    width: 100%;
    height: 100%;

    /*
    IMPORTANT:
    contain prevents image cropping
    */
    object-fit: contain;

    display: block;

    transition:
        transform 0.5s ease;
}


.pCard:hover
.product-image-wrapper img {
    transform: scale(1.05);
}


/* =========================================
   PRODUCT CONTENT
========================================= */

.product-content h4 {
    margin: 8px 0;

    font-size: 16px;

    color: #111;
}


.product-content p {
    font-size: 13px;

    color: #555;

    margin:
        0 0 8px;
}


/* =========================================
   RATING
========================================= */

.rating {
    color: #f5b301;

    display: block;

    margin-bottom: 6px;
}


/* =========================================
   PRICE
========================================= */

.price {
    display: block;

    margin: 8px 0;

    font-size: 18px;

    color: #111;
}


/* =========================================
   VIEW DETAILS
========================================= */

.view-details {
    display: block;

    padding: 10px;

    background: #111;

    color: #fff;

    border-radius: 6px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.pCard:hover
.view-details {
    background: #d4af37;

    color: #000;

    transform: scale(1.03);
}


/* =========================================
   NAVIGATION BUTTONS
========================================= */

.navBtn {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(0, 0, 0, 0.75);

    color: #fff;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    z-index: 10;

    font-size: 18px;

    line-height: 1;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.navBtn:hover {
    background:
        rgba(0, 0, 0, 0.95);

    transform:
        translateY(-50%)
        scale(1.1);
}


/* =========================================
   ARROW POSITION
========================================= */

.navBtn.left {
    left: 5px;
}


.navBtn.right {
    right: 5px;
}


/* =========================================
   NO PRODUCTS
========================================= */

.no-products {
    text-align: center;

    color: #666;

    padding: 40px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .carousel-wrapper {
        padding: 0 50px;
    }

    .navBtn.left {
        left: 2px;
    }

    .navBtn.right {
        right: 2px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .bestseller-section {
        padding:
            60px 10px;
    }


    .bestseller-title {
        font-size: 27px;

        margin-bottom:
            40px;
    }


    .carousel-wrapper {
        padding:
            0 45px;
    }


    /*
    One product per slide
    */

    .product-link {
        flex:
            0 0 100%;

        width:
            100%;
    }


    .pCard {
        min-height:
            360px;
    }


    .product-image-wrapper {
        height:
            180px;
    }


    .navBtn {
        width:
            38px;

        height:
            38px;

        font-size:
            15px;
    }


    .navBtn.left {
        left:
            2px;
    }


    .navBtn.right {
        right:
            2px;
    }

}