/* Product Detail Page - Dedicated CSS */
/* This file only affects product_detail.html */
/* Using high specificity to override existing styles */

/* Reset and base styles for this page */
body .product-detail-page {
    /*background: #fff;*/
    /*min-height: 100vh !important;*/
    overflow-x: hidden;
}

body .product-detail-page .background {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw; /* span the entire screen width */
    background-image: url('../uploads/Other-Products-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* fill the container, crop if needed */
    padding: clamp(24px, 4vw, 60px) 0; /* vertical spacing for the content */
}

body .product-detail-page .section-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    padding-left: 2rem !important;
}

/* Main product layout - Two column design */
body .product-detail-page .image-text.split-layout {
    display: flex !important;
    gap: 3rem !important;
    align-items: flex-start !important;
    margin-bottom: 3rem !important;
    width: 100% !important;
}

/* Left column - Product image */
body .product-detail-page .image-column {
    flex: 1 !important;
    min-width: 0 !important;
}

body .product-detail-page .image-column img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Right column - Product info and purchase options */
body .product-detail-page .info-column {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

/* Product title */
body .product-detail-page .info-column h2 {
    font-family: "Montserrat", sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin: 0 0 1rem 0 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

/* Product description */
body .product-detail-page .info-column p {
    font-size: 1.1rem !important;
    color: #4a5568 !important;
    line-height: 1.6 !important;
    margin: 0 0 2rem 0 !important;
}

/* Store action buttons */
body .product-detail-page .product-store-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
}

body .product-detail-page .btn-store-where-to-buy,
body .product-detail-page .btn-store-buy-online {
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 140px !important;
}

body .product-detail-page .btn-store-where-to-buy {
    background: #e2e8f0 !important;
    color: #2d3748 !important;
    border: 2px solid #e2e8f0 !important;
}

body .product-detail-page .btn-store-where-to-buy:hover {
    background: #cbd5e0 !important;
    border-color: #cbd5e0 !important;
    transform: translateY(-2px) !important;
}

body .product-detail-page .btn-store-buy-online {
    background: #a8ba3c !important;
    color: white !important;
    border: 2px solid #a8ba3c !important;
}

body .product-detail-page .btn-store-buy-online:hover {
    background: #8fa832 !important;
    border-color: #8fa832 !important;
    transform: translateY(-2px) !important;
}

/* Product info sections container */
body .product-detail-page .product-info-sections-container {
    width: 100% !important;
    margin: 2rem 0 !important;
    padding: 0 !important;
}

body .product-detail-page .product-info-sections {
    display: flex !important;
    gap: 2rem !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Product ingredients section */
body .product-detail-page .product-ingredients {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    border: 1px solid #e2e8f0 !important;
    flex: 1 !important;
    min-width: 0 !important;
}

body .product-detail-page .product-ingredients h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin: 0 0 1rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

body .product-detail-page .product-ingredients h3::before {
    content: "🌿" !important;
    font-size: 1.2rem !important;
}

body .product-detail-page .ingredients-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

body .product-detail-page .ingredient-item {
    padding: 0.75rem 1rem !important;
    background: white !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    color: #4a5568 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
    transition: none !important;
    transform: none !important;
}

body .product-detail-page .ingredient-item:hover {
    background: white !important;
    transform: none !important;
    border-color: #e2e8f0 !important;
}

/* Product storage section */
body .product-detail-page .product-storage {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    border: 1px solid #e2e8f0 !important;
    flex: 1 !important;
    min-width: 0 !important;
}

body .product-detail-page .product-storage h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin: 0 0 1rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

body .product-detail-page .product-storage h3::before {
    content: "❄️" !important;
    font-size: 1.2rem !important;
}

body .product-detail-page .storage-content {
    background: white !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    border: 1px solid #e2e8f0 !important;
}

body .product-detail-page .storage-content p {
    color: #4a5568 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    text-align: left !important;
}

/* Recipes section */
body .product-detail-page .recipes-section {
    margin-top: 3rem !important;

}

.recipe-bg {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw; /* span the whole viewport width */
    background-image: url('../uploads/Other-Recipes-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* fill section; crop if needed */
    padding: clamp(24px, 4vw, 64px) 0;
    --fade-color: #FFF8EA; /* set this to the exact cream of the section above */
}

.recipe-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* solid cream at very top -> fully transparent by ~220px */
    background: linear-gradient(
            to bottom,
            var(--fade-color) 0,
            rgba(255, 242, 224, 0.85) 80px,
            rgba(255, 242, 224, 0) 220px
    );
}

.recipe-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px; /* match last stop */
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
            to top,
            var(--fade-color) 0,
            rgba(255, 242, 224, 0.85) 80px,
            rgba(255, 242, 224, 0) 220px
    );
}

.recipe-bg .recipes-section {
    max-width: 1200px; /* match your site’s content width */
    margin: 0 auto;
    padding: 0 24px; /* side gutters; set to 0 for edge-to-edge cards */
}

body .product-detail-page .recipes-section h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    text-align: center !important;
    margin: 3rem 0 2rem 0 !important;
    text-transform: uppercase !important;
}

body .product-detail-page .recipe-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
}

body .product-detail-page .recipe-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e2e8f0 !important;
}

body .product-detail-page .recipe-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

body .product-detail-page .recipe-card img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
}

body .product-detail-page .recipe-card .info {
    padding: 1rem !important;
}

body .product-detail-page .recipe-card h3 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.3 !important;
}

body .product-detail-page .recipe-card p {
    font-size: 0.9rem !important;
    color: #718096 !important;
    margin: 0 !important;
}

/* Other products section */
body .product-detail-page .other-products {
    margin-top: 3rem !important;
}

body .product-detail-page .other-products h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    text-transform: uppercase !important;
}

/* Recipe Grid Styling */
body .product-detail-page .recipe-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
}

body .product-detail-page .recipe-card {
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #f0f0f0 !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
}

body .product-detail-page .recipe-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

body .product-detail-page .recipe-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

body .product-detail-page .recipe-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
    height: 160px !important;
}

body .product-detail-page .recipe-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

body .product-detail-page .recipe-card:hover .recipe-image {
    transform: scale(1.05) !important;
}

body .product-detail-page .recipe-card-content {
    padding: 1rem !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

body .product-detail-page .recipe-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.3s ease !important;
}

body .product-detail-page .recipe-card:hover .recipe-title {
    color: #a8ba3c !important;
}

body .product-detail-page .recipe-meta {
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
}

body .product-detail-page .recipe-time {
    font-size: 0.9rem !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

body .product-detail-page .recipe-time i {
    color: #a8ba3c !important;
}

/* Product Grid Styling - Updated Structure */
body .product-detail-page .product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
}

body .product-detail-page .product-card {
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #f0f0f0 !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
}

body .product-detail-page .product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

body .product-detail-page .product-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

body .product-detail-page .product-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
    height: 160px !important;
}

body .product-detail-page .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

body .product-detail-page .product-card:hover .product-image {
    transform: scale(1.05) !important;
}

body .product-detail-page .badge-img {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    max-width: 60px !important;
    max-height: 60px !important;
    z-index: 2 !important;
}

body .product-detail-page .product-card-content {
    padding: 1rem !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

body .product-detail-page .product-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.3s ease !important;
}

body .product-detail-page .product-card:hover .product-title {
    color: #a8ba3c !important;
}

body .product-detail-page .product-subtitle {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Team banner and yellow bar */
body .product-detail-page .team-banner {
    margin: 3rem 0 !important;
}

body .product-detail-page .team-banner img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

body .product-detail-page .yellow-bar {
    background: #f6e05e !important;
    padding: 1.5rem 0 !important;
    text-align: center !important;
}

body .product-detail-page .yellow-bar p {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Responsive design */
@media (max-width: 1024px) {
    body .product-detail-page .image-text.split-layout {
        gap: 2rem !important;
    }

    body .product-detail-page .info-column h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    body .product-detail-page .section-container {
        padding: 1rem !important;
    }

    body .product-detail-page .image-text.split-layout {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    body .product-detail-page .info-column h2 {
        font-size: 1.75rem !important;
    }

    body .product-detail-page .product-store-actions {
        flex-direction: column !important;
    }

    body .product-detail-page .product-info-sections {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    body .product-detail-page .recipe-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    body .product-detail-page .recipe-image-wrapper {
        height: 140px !important;
    }

    body .product-detail-page .recipe-title {
        font-size: 1rem !important;
    }

    body .product-detail-page .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    body .product-detail-page .product-image-wrapper {
        height: 140px !important;
    }

    body .product-detail-page .product-title {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    body .product-detail-page .info-column h2 {
        font-size: 1.5rem !important;
    }

    body .product-detail-page .recipe-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    body .product-detail-page .recipe-card-content {
        padding: 0.75rem !important;
    }

    body .product-detail-page .recipe-title {
        font-size: 1rem !important;
    }

    body .product-detail-page .product-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    body .product-detail-page .product-card-content {
        padding: 0.75rem !important;
    }

    body .product-detail-page .product-title {
        font-size: 1rem !important;
    }

    body .product-detail-page .yellow-bar p {
        font-size: 1rem !important;
    }
}
.recipes-grid {
    margin-bottom: 8rem !important;
}