
/* =================================
   PREMIUM PRODUCT SLIDER
================================= */

.featured-section2 {
    background: #f8f7f4;
    /* padding: 65px 0 45px; */
    overflow: hidden;
}

.featured-section2 .section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 45px;
}

.featured-section2 .eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    color: #9c8270;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.featured-section2 h2 {
    font-family: Georgia, serif;
    font-size: clamp(38px, 4vw, 66px);
    line-height: 1.05;
    font-weight: 400;
    color: #343c34;
    margin: 0;
}

.featured-section2 h2 em {
    color: #c78169;
    font-weight: 400;
}

.featured-section2 .under-link {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #28352e;
    text-decoration: none;
    border-bottom: 1px solid #bcb6ab;
    padding-bottom: 10px;
    white-space: nowrap;
    margin-bottom: 8px;
}

/* Slider viewport */

.product-slider-wrapper {
    width: 100%;
    position: relative;
}

.product-slider-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-slider-viewport::-webkit-scrollbar {
    display: none;
}

/* Product track */

.product-track {
    display: flex;
    align-items: stretch;
    gap: 28px;
    width: max-content;
    padding: 0 0 5px;
}

.marquee-item {
    flex: 0 0 clamp(250px, 23vw, 335px);
    width: clamp(250px, 23vw, 335px);
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    align-items: stretch;
}

/* Product card */

.marquee-item .product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eae6df;
    border-radius: 9px;
    overflow: hidden;
}

/* Product image */

.marquee-item .product-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* Product information */

.marquee-item .product-card .product-info,
.marquee-item .product-card .product-details {
    padding: 16px;
}

/* Product name */

.marquee-item .product-card h3,
.marquee-item .product-card .product-title {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #34443a;
    margin: 0 0 7px;
    overflow-wrap: anywhere;
}

/* Price */

.marquee-item .product-card .price,
.marquee-item .product-card .product-price {
    font-size: 17px;
    font-weight: 700;
    color: #34443a;
    white-space: nowrap;
}

/* Category */

.marquee-item .product-card .category {
    font-size: 12px;
    color: #88877e;
    margin-bottom: 12px;
}

/* Add to cart */

.marquee-item .product-card .add-to-cart,
.marquee-item .product-card button[type="submit"] {
    width: 100%;
    min-height: 46px;
    background: #34483d;
    color: #fff;
    border: 1px solid #34483d;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
}

/* Slider bottom */

.slider-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.slider-caption {
    font-size: 10px;
    letter-spacing: 3px;
    color: #a18e7c;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-btn {
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 1px solid #d8d1c7;
    border-radius: 0;
    color: #28352e;
    font-size: 25px;
    cursor: pointer;
}

/* Responsive */

@media(max-width: 991px) {

    .featured-section2 {
        padding: 50px 0 35px;
    }

    .product-track {
        gap: 20px;
    }

    .marquee-item {
        flex-basis: 280px;
        width: 280px;
    }

}

@media(max-width: 576px) {

    .featured-section2 {
        padding: 40px 0 30px;
    }

    .featured-section2 .section-top {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
        gap: 18px;
    }

    .featured-section2 h2 {
        font-size: 39px;
    }

    .product-track {
        gap: 14px;
    }

    .marquee-item {
        flex-basis: 78vw;
        width: 78vw;
    }

    .slider-bottom {
        margin-top: 22px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .slider-caption {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

}


/* FIX: Stop conflicting marquee animation */

.product-track {
    animation: none !important;
    transform: none !important;
    transition: none;
    will-change: auto;
}

/* Keep product cards properly aligned */

.product-slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.product-slider-viewport::-webkit-scrollbar {
    display: none;
}

.marquee-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 0;
}

/* Prevent text from being cut inside cards */

.marquee-item .product-card {
    min-width: 0;
    height: 100%;
}

.marquee-item .product-card h3,
.marquee-item .product-card .product-title {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
}

.marquee-item .product-card .price,
.marquee-item .product-card .product-price {
    white-space: nowrap;
}


/* Final scoped overrides for the index page product slider */
.featured-section2 .product-slider-wrapper {
    width: 100%;
    min-width: 0;
}

.featured-section2 .product-slider-viewport {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.featured-section2 .product-slider-viewport::-webkit-scrollbar {
    display: none;
}

.featured-section2 .product-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    gap: 28px;
    animation: none !important;
    transform: none !important;
}

.featured-section2 .marquee-item {
    flex: 0 0 clamp(250px, 23vw, 335px);
    width: clamp(250px, 23vw, 335px);
    min-width: 0;
    scroll-snap-align: start;
}

.featured-section2 .marquee-item .product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.featured-section2 .marquee-item .product-card .product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.featured-section2 .marquee-item .product-card .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-section2 .slider-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 28px;
}

.featured-section2 .slider-controls {
    display: flex;
    gap: 12px;
}

.featured-section2 .slider-btn {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #d8d1c7;
    color: #28352e;
    font-size: 25px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .featured-section2 .product-track { gap: 20px; }
    .featured-section2 .marquee-item {
        flex-basis: 280px;
        width: 280px;
    }
}

@media (max-width: 576px) {
    .featured-section2 .product-track { gap: 14px; }
    .featured-section2 .marquee-item {
        flex-basis: 78vw;
        width: 78vw;
    }
    .featured-section2 .slider-btn {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
}


/* Autoplay slider layout stabilization */
.featured-section2 .product-slider-viewport {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: contain;
}

.featured-section2 .product-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: max-content;
    align-items: stretch;
}

.featured-section2 .marquee-item {
    flex-shrink: 0;
}

.featured-section2 .product-card {
    width: 100%;
}



/* Multiple product sliders: slow, continuous marquee-style movement */
.featured-section2 .product-slider-wrapper {
    width: 100%;
    min-width: 0;
}

.featured-section2 .product-slider-viewport {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: touch;
}

.featured-section2 .product-slider-viewport::-webkit-scrollbar {
    display: none;
}

.featured-section2 .product-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    min-width: max-content;
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.featured-section2 .marquee-item {
    flex-shrink: 0;
    scroll-snap-align: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .featured-section2 .product-slider-viewport {
        scroll-behavior: auto !important;
    }
}
