/* /css/featured-product.css */

.featured-product-section {
    padding: var(--space-6) 0;
    background-color: var(--clr-white);
    font-family: var(--font-primary);
}

.featured-product-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-product-text .product-collection-eyebrow {
    font-family: var(--font-primary);
    color: var(--clr-gray-700);
    text-align: left;
}

.featured-product-title {
    font-size: 1.4rem;
    font-weight: var(--fw-regular);
    letter-spacing: 3px;
    font-family: var(--font-primary);
    text-transform: none;
    line-height: 1.6;
    color: var(--clr-gray-700);
    margin-top: var(--space-2);
    margin-bottom: var(--space-4);

}

.featured-product-text p {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--clr-gray-700);
    margin-bottom: var(--space-4);
}

.featured-product-button {
    display: inline-block;
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    padding: var(--space-2) var(--space-4);
    font-size: 0.9rem;
    font-weight: var(--fw-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
}

.featured-product-button:hover {
    opacity: 0.85;
}

/* --- Image Styling --- */
.featured-product-images {
    position: relative;
    /* Create space for the absolutely positioned images */
    min-height: 550px;
}

.featured-image-1,
.featured-image-2 {
    position: absolute;
    max-width: 100%;
    height: auto;
}

.featured-image-1 {
    /* Product with ingredients */
    width: 45%;
    top: 52%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
}

.featured-image-2 {
    width: 60%;
    top: 60%;
    right: 0;
    transform: translateY(-60%);
    z-index: 1;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .featured-product-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }

    .featured-product-text {
        order: 2;
        /* Move text below images on mobile */
    }

    .featured-product-images {
        order: 1;
        margin-bottom: 0;
        min-height: 250px;
    }

    .featured-product-text .product-collection-eyebrow {
        text-align: center;
    }
}


/* testimonials */

.testimonial-section {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: var(--space-6) 0;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.testimonial-section .splide__slide {
    padding: 0 var(--space-5);

}


.testimonial-section .splide__track {
    padding-bottom: var(--space-1);
}

.testimonial-quote {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    line-height: 1.7;
    font-style: italic;
    font-weight: var(--fw-regular);
    max-width: 750px;
    margin: 0 auto var(--space-4);
    border: none;
    padding: 0;
    width: 100%;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
}

.testimonial-author {
    display: block;
    font-family: var(--font-headings);
    font-weight: var(--fw-regular);
    font-style: normal;
    font-size: 0.8rem;
    opacity: 0.9;
    letter-spacing: 1.5px;
}

/* --- Splide Controls for Testimonials --- */
#testimonial-slider-section .splide__pagination {
    position: static;
    margin-top: var(--space-4);
    padding: 0;
}

#testimonial-slider-section .splide__pagination__page {
    background: rgba(255, 255, 255, 0.4);
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 1;
    border: none;
    transition: all var(--transition-speed);
}

#testimonial-slider-section .splide__pagination__page.is-active {
    background: var(--clr-white);
    transform: scale(1.3);
}

#testimonial-slider-section .splide__arrows {
    display: none;
}

/*
==========================================================================
## Bestsellers Product Slider
==========================================================================
*/

/* --- Mobile Slider Styles (default) --- */
/* On mobile, Splide's JS will handle the layout. We just style the dots. */
#bestsellers-product-slider .splide__pagination {
    position: static;
    margin-top: var(--space-5);
}

#bestsellers-product-slider .splide__pagination__page {
    background: rgba(0, 45, 143, 0.4);
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 1;
    border: none;
    transition: all var(--transition-speed);
}

#bestsellers-product-slider .splide__pagination__page.is-active {
    background: var(--clr-primary);
    transform: scale(1.3);
}

/* --- Desktop Grid Styles (override) --- */
@media (min-width: 769px) {
    #bestsellers-product-slider .splide__track {
        overflow: visible;
    }

    #bestsellers-product-slider.is-initialized .splide__list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5);
    }

    #bestsellers-product-slider .splide__slide {
        width: auto;
        /* Let the grid control the width */
    }

    #bestsellers-product-slider .splide__pagination {
        display: none;
    }
}

@media (max-width: 768px) {

    .featured-product-section {
        padding: var(--space-4);
        background-color: var(--clr-white);
        font-family: var(--font-primary);
    }

    .featured-product-section .container {
        padding: 0;
    }

    .featured-product-text {
        text-align: left;
    }

    .testimonial-quote {
        font-size: 1rem;
        width: 30%;
        /* FIX: Was 25%, which is too narrow for mobile */
    }
	
	#scrolling-feature-mobile-slider .scrolling-feature-mobile-slide-content img{
		height:35vh;
		width:250px;
		object-fit:cover;
		margin:0 auto;
	}
	
	.product-card .product-image-container img{
		height:40vh;
		max-height:500px;
	}
}


/*
==========================================================================
## Scrolling Feature Section
==========================================================================
*/
/* The styles for .scrolling-feature-grid, .scrolling-feature-sticky etc. remain unchanged. */

/*
==========================================================================
## NEW: Responsive Logic & Mobile Slider Styles
==========================================================================
*/

.scrolling-feature-mobile-view {
    display: none;
    /* Hidden by default on desktop */
}

.scrolling-feature-mobile-slide-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
}

.scrolling-feature-mobile-image {
    width: 100%;
    height: 400px;
    /* Give a consistent height */
    object-fit: cover;
    object-position: center;
}

.scrolling-feature-mobile-text-wrapper {
    padding: 0 var(--space-4) var(--space-5);
}

/* Styles for the mobile slider pagination dots */
#scrolling-feature-mobile-slider .splide__pagination {
    position: static;
    margin-top: var(--space-4);
}

#scrolling-feature-mobile-slider .splide__pagination__page {
    background: rgba(255, 255, 255, 0.4);
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 1;
    border: none;
    transition: all var(--transition-speed);
}

#scrolling-feature-mobile-slider .splide__pagination__page.is-active {
    background: var(--clr-white);
    transform: scale(1.3);
}


/* Responsive Media Query to switch views */
@media (max-width: 992px) {
    .scrolling-feature-desktop-view {
        display: none;
        /* Hide desktop version on mobile */
    }

    .scrolling-feature-mobile-view {
        display: block;
        /* Show mobile version */
    }

    .scrolling-feature-section {
        padding: var(--space-5) 0;
        /* Adjust padding for mobile */
    }

    /* The old responsive styles for desktop are no longer needed */
    .scrolling-feature-grid {
        grid-template-columns: 1fr;
    }

    .scrolling-feature-sticky {
        position: static;
        height: auto;
        padding: 0 var(--space-4);
        margin-bottom: var(--space-5);
    }
}


/*
==========================================================================
## Partner Section
==========================================================================
*/
.partner-section {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    background-color: var(--clr-white);
}

.partner-section .header-title,
.partner-section .header-eyebrow {
    text-align: left;
}

.partner-item {
    text-align: left;
    height: 100%;
}

.partner-icon {
    margin-bottom: var(--space-4);
}

.partner-icon img {
    width: 100%;
    height: auto;
    color: var(--clr-secondary);
}

.partner-item-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: var(--fw-bold);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-text);
    margin: 0 0 var(--space-3);
}

.partner-item-desc {
    font-family: var(--font-headings);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--clr-gray-700);
}

.partner-item-desc p:last-child {
    margin-bottom: 0;
}

.partner-item-link {
    display: inline-block;
    margin-top: var(--space-3);
    font-family: var(--font-headings);
    font-weight: var(--fw-bold);
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--clr-text);
    transition: color var(--transition-speed);
}

.partner-item-link:hover {
    color: var(--clr-secondary);
}

/*
==========================================================================
## Partner Section Slider Styles
==========================================================================
*/

/* Mobile-first: Default is slider mode */

#partner-section-slider .splide__pagination {
    position: static;
    margin-top: var(--space-5);
    padding: 0;
}

#partner-section-slider .splide__pagination__page {
    background: rgba(0, 45, 143, 0.4);
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 1;
    border: none;
    transition: all var(--transition-speed);
}

#partner-section-slider .splide__pagination__page.is-active {
    background: var(--clr-primary);
    transform: scale(1.3);
}

/*
==========================================================================
## Blog Posts Section Slider/Grid
==========================================================================
*/
/* Mobile-first: Default is slider mode */
.blog-posts-section {
    padding: var(--space-6) 0;
    text-align: center;
}

.blog-post-card {
    background-color: var(--clr-white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-post-image-link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed);
}

.blog-post-image-link:hover img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-card {
    height: 100%; /* Make cards fill the slide height for consistency */
}

#blog-posts-slider .splide__pagination {
    position: static;
    margin-top: var(--space-5);
    padding: 0;
}

.blog-post-meta {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-gray-500);
    margin: 0 0 var(--space-2);
}

.blog-post-title a {
    color: var(--clr-gray-700);
}

#blog-posts-slider .splide__pagination__page {
    background: rgba(0, 45, 143, 0.4);
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 1;
    border: none;
    transition: all var(--transition-speed);
}


.blog-post-title {
    font-size: 1.2rem;
    margin: 0 0 var(--space-3);
    line-height: 1.4;
    letter-spacing: 2px;
    font-family: var(--font-primary);
    font-weight: var(--fw-regular);
    text-transform: uppercase;
}

#blog-posts-slider .splide__pagination__page.is-active {
    background: var(--clr-primary);
    transform: scale(1.3);
}

.blog-post-excerpt {
    font-family: var(--font-headings);
    color: var(--clr-gray-700);
    font-size: 0.9rem;
    flex-grow: 1;
}

.blog-post-excerpt p:last-of-type {
    margin-bottom: var(--space-4);
}

.blog-post-read-more {
    font-family: var(--font-headings);
    font-weight: var(--fw-regular);
    color: var(--clr-gray-700);
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: auto;
}

.blog-posts-section .header-eyebrow,
.blog-posts-section .header-title {
    text-align: center;
}

.blog-posts-section .view-collection-button {
    background-color: var(--clr-secondary);
}

.blog-posts-section .view-collection-button:hover {
    background-color: var(--clr-white);
    color: var(--clr-secondary);
    border-color: var(--clr-secondary);
}


/*
==========================================================================
## Partner & Blog Responsive Styles
==========================================================================
*/

/* Desktop: Revert to grid layout */
@media (min-width: 993px) {
    #blog-posts-slider .splide__track {
        overflow: visible;
    }

    #blog-posts-slider.is-initialized .splide__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }

    #blog-posts-slider .splide__pagination {
        display: none;
    }
}

@media (min-width: 993px) {
    #partner-section-slider .splide__track {
        overflow: visible;
    }

    #partner-section-slider.is-initialized .splide__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
        margin-top: var(--space-5);
    }

    #partner-section-slider .splide__slide {
        width: auto;
    }

    #partner-section-slider .splide__pagination {
        display: none;
    }

    /* Reset mobile-specific styles */
    #partner-section-slider .partner-item {
        background-color: transparent;
        padding: 0;
        border-radius: 0;
    }
}


@media (max-width: 992px) {
    .partner-section .container {
        padding: 0;
    }

}

.blog-post-title a:hover {
    color: var(--clr-gray-700);
}

.product-image-container img{
	height:400px;
	width:auto;
}