/* Base Colors */
:root {
    --color-primary: #407945;
    /* Dark Green */
    --color-secondary: #f8f8f4;
    /* Light Cream Background */
    --color-text-dark: #333;
    --color-text-light: #555;
    --color-card-bg: #fff;
    --color-accent: #6b7a6c;
    /* Ingredient background/muted green */
}

/* Base Reset */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    min-height: 100vh;
}

/*  */
.product-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- Main Layout: Two Columns --- */
.product-layout {
    display: flex;
    gap: 40px;
}

.image-section {
    flex: 0 0 400px;
    /* Fixed width for image container on desktop */
    background-color: var(--color-secondary);
    border-radius: 8px;
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.details-section {
    flex: 1;
}

/* --- Details Styling --- */
.product-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin: 0 0 10px;
}

.short-description {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Price and Savings */
.price-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 30px;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-right: 15px;
}

.old-price {
    font-size: 1.2rem;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-right: 15px;
}

.save-tag {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Key Benefits */
.benefits-section h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.benefits-list li {
    flex: 0 0 45%;
    /* Two items per row on desktop */
    font-size: 1rem;
    color: var(--color-text-dark);
}

.benefits-list li::before {
    content: "\2022";
    /* Bullet point */
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Ingredients */
.ingredients-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.ingredient-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.ingredient-tag {
    background-color: var(--color-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Usage & Net Weight */
.usage-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.usage-section p {
    font-size: 1rem;
    color: var(--color-text-dark);
    margin: 0 0 5px 0;
}

.net-weight {
    font-weight: bold;
    color: var(--color-text-light);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

/* Action Buttons */
.action-buttons button {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: opacity 0.2s;
}

.action-buttons button:hover {
    opacity: 0.9;
}

.order-now-btn {
    background-color: var(--color-primary);
    color: white;
}

.add-to-cart-btn {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .product-layout {
        flex-direction: column;
        /* Stack image above details */
    }

    .image-section {
        flex: 1 1 auto;
        max-width: 100%;
        margin-bottom: 20px;
        height: 300px;
        /* Slightly smaller image on tablet */
    }
}

@media (max-width: 600px) {
    .product-detail-container {
        padding: 15px;
    }

    .product-title {
        font-size: 2rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .old-price {
        font-size: 1rem;
    }

    .benefits-list li {
        flex: 0 0 100%;
        /* Single column benefits on mobile */
    }
}



        @keyframes scroll-animation {
            from { transform: translateX(-50%); } 
            to { transform: translateX(0); } 
        }

        .reviews-scroller-container {
            overflow-x: hidden;
            position: relative;
            border-radius: 0.75rem;
            background-color: #ffffff;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
            padding-top: 1.5rem;
            padding-bottom: 1.5rem;
            margin-top: 1.2rem;
            border: 2px solid #407945;
            
        }


        .reviews-scroller-inner {
            display: flex;
            width: max-content; 
            animation: scroll-animation 30s linear infinite;
        }

        /* Pause the animation on hover/focus */
        .reviews-scroller-container:hover .reviews-scroller-inner,
        .reviews-scroller-container:focus-within .reviews-scroller-inner {
            animation-play-state: paused;
        }


        .review-set {
            display: flex;
            padding-left: 1rem; /* px-4 */
            padding-right: 1rem; /* px-4 */
            gap: 1.5rem; /* space-x-6 */
        }

        @media (min-width: 768px) {
            .review-set {
                padding-left: 1.5rem; /* md:px-6 */
                padding-right: 1.5rem; /* md:px-6 */
            }
        }


        /* --- Review Card Styling (Shorter, Text-focused Card) --- */
        .review-card {
            flex-shrink: 0; 
            display: flex;
            flex-direction: column;
            justify-content: flex-start; 
            
            background-color: #ffffff;
            padding: 0.75rem; /* Slightly more padding now that the visual is gone */
            border-radius: 0.75rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
            border: 1px solid #e0e7ff; 
            transition: all 0.3s ease-in-out;
            text-align: left; 
            
            /* FIXED RECTANGULAR SIZE (14rem wide, shorter height) */
            width: 14rem;
            min-height: 8rem; /* Reduced height as visual element is removed */
            box-sizing: border-box;
        }

        .review-card:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        /* --- Review Card Content Styles --- */

        .author-name {
            font-weight: 600; 
            font-size: 1.125rem; 
            color: #111827;
            margin-bottom: 0.25rem;
        }

        .review-text {
            color: #374151; /* Darker text for better focus */
            line-height: 1.4;
            font-size: 0.875rem; 
            margin-bottom: 0.75rem;
            flex-grow: 1; /* Pushes the footer down */
            font-style: italic; /* Use italic for the quote itself */
        }

        .review-footer {
            /* Simplfied: only score remains. We just need padding and border. */
            display: flex;
            justify-content: flex-end; /* Align score to the right */
            align-items: center;
            padding-top: 0.75rem; 
            border-top: 1px solid #f0f0f0; 
            margin-top: auto; 
        }

        /* Removed .review-tag styling */

        .author-title {
            font-weight: 600;
            font-size: 1.25rem; 
            color: #4f46e5; /* Highlight the score/price */
        }

        /* Removed unused visual/icon styles */
        .review-visual, .icon-placeholder, .review-tag, .quote-icon, .author-info {
            display: none; 
        }

        