/* Add to style.css */
.content-showcase {
    padding: 6rem 5% 4rem;
    /* Added top padding for fixed header */
    scroll-margin-top: 100px;
    /* Match other sections */
}

.origin {
    width: 100%;
    text-align: center;
}

.content-showcase h1 {
    margin-top: 1rem;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

/* Decorative underline */
.content-showcase h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1.5rem auto 0;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .content-showcase {
        padding: 5rem 5% 3rem;
        /* Less padding on mobile */
    }

    .content-showcase h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .content-showcase h1::after {
        width: 70px;
        height: 2px;
        margin: 1rem auto 0;
    }
}

/* Add to style.css */
.content-card {
    overflow: hidden;
    /* Contain all child elements */
}

.card-image {
    position: relative;
    height: 0;
    padding-top: 56.25%;
    /* 16:9 aspect ratio (adjust if needed) */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* For larger viewports - limit card width */
@media (min-width: 1200px) {
    .content-grid {
        max-width: 1200px;
        margin: 0 auto;
    }

    .content-card {
        max-width: 600px;
        /* Limits card expansion */
        margin: 0 auto;
        /* Center cards */
    }
}

/* Maintain clickable area while controlling image size */
.card-image:hover img {
    transform: scale(1.05);
}

/* Product Page Styles */
.product-page {
    margin-top: 60px;
}

.product-hero {
    height: 60vh;
    overflow: hidden;
    position: relative;
    margin: 0rem 3rem;
}

.product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.product-overview {
    padding: 0rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-details h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--neutral-dark);
}

.key-positives {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--neutral-light);
    border-bottom: 2px solid var(--neutral-light);
}

.positives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.positive-item {
    padding: 1.5rem;
    background: var(--neutral-light);
    border-radius: 8px;
}

.positive-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-cta {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
    margin-bottom: 3rem;
    background: var(--neutral-light);
    border-radius: 8px;
}

.product-cta .cta-primary {
    margin-top: 1.5rem;
    padding: 1rem 3rem;
}

@media (max-width: 768px) {
    .product-hero {
        height: 60vh;
        margin: 0rem;
    }

    .product-details h1 {
        font-size: 2rem;
    }

    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .positives-grid {
        grid-template-columns: 1fr;
    }

    .product-cta {
        padding: 2rem 1rem;
    }
}


.cta-content p {
    padding-bottom: 50px;
}

/* Gallery css */
.main-hero-container {
    height: 100%;
    position: relative;
}

.main-hero-image {
    width: 100%;
    max-height: 100vh;
    object-fit: cover;
}

.thumbnails-gallery {
    display: flex;
    gap: 1rem;
    padding: 1rem 5%;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.1);
    scrollbar-width: thin;
}

.thumbnail-item {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.thumbnail-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.thumbnail-item:hover::after {
    border-color: var(--secondary-color);
}

.thumbnail-item.active::after {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .thumbnails-gallery {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        padding: 2rem 5%;
    }

    .thumbnail-item {
        flex: 0 0 160px;
        height: 100px;
    }
}

/* Mobile touch optimization */
@media (hover: none) {
    .thumbnail-item:hover::after {
        border-color: transparent;
    }
}

/* Add these updates to producers.css */
.producer-hero {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.thumbnails-gallery {
    display: flex;
    gap: 1rem;
    padding: 1rem 5%;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.9);
    scrollbar-width: thin;
    position: relative;
    z-index: 2;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

/* Add minimum height to prevent collapse */
.thumbnail-item {
    flex: 0 0 120px;
    min-height: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    border: 2px solid transparent;
    background: #f0f0f0;
    /* Fallback color */
}

/* Ensure images are visible */
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.thumbnails-gallery {
    padding: 2rem 5%;
    justify-content: center;
}

@media (min-width: 768px) {
    .thumbnail-item {
        flex: 0 0 160px;
        height: 100px;
        min-height: 100px;
    }
}

/* Add this to ensure clickability */
.thumbnail-item {
    pointer-events: all;
}