/* Global Styles & Overall Design Aesthetic */
body {
    font-family: 'Lato', sans-serif; /* Example: Lato, fallback to sans-serif */
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color); /* Existing light gray for overall page */
    color: var(--text-color-on-light); /* Use softer dark text globally */
    line-height: 1.6;
}

.container {
    width: 90%; /* Mobile first: more width for content */
    margin: auto;
    overflow: hidden;
    padding: 0 15px; /* Adjusted padding for mobile */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.6em;
    line-height: 1.3;
}

h1 { font-size: 2em; } /* Base for mobile */
h2 { font-size: 1.7em; } /* Base for mobile */
h3 { font-size: 1.4em; } /* Base for mobile */
h4 { font-size: 1.1em; } /* Base for mobile */

p {
    margin-bottom: 1em;
    font-size: 0.95em; /* Base for mobile */
}

a {
    color: var(--accent-color); /* Updated to Gold for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Color Palette (Examples based on description) */
:root {
    --primary-color: #22573B; /* Forest Green */
    --secondary-color: #F0F0F0; /* Light Gray/Off-white for general page backgrounds */
    --accent-color: #B08D57; /* Gold */
    --copper-accent: #B87333; /* Copper */
    --text-color: #333333; /* Dark Grey */
    --light-text-color: #FFFFFF;
    --footer-bg: #1A432E; /* Darker Forest Green for footer */
    
    /* New RGB versions for semi-transparent backgrounds */
    --primary-color-rgb: 34, 87, 59;
    --copper-accent-rgb: 184, 115, 51;
    --accent-color-rgb: 176, 141, 87;

    /* New off-white/beige for main content backgrounds */
    --background-main-alt: #F7F5F2; /* Soft, warm off-white for sections previously pure white */
    --background-main-alt-rgb: 247, 245, 242;
    --card-bg-light: #FFFFFF; /* Retaining white for distinct cards like cart items, product details area */
    --text-color-on-light: #4A4A4A; /* Refined darker gray for text on light/off-white backgrounds */
    --border-color-soft: #E0DED9; /* Soft border for elements on off-white */
}

/* Header */
header {
    background: #FFFFFF;
    color: var(--primary-color);
    padding-top: 15px; /* Adjusted for mobile */
    padding-bottom: 10px; /* Add padding for mobile */
    min-height: auto; /* Remove min-height for mobile, let content dictate */
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    flex-direction: column; /* Mobile First: Stack logo and nav */
    align-items: center; /* Center items for mobile stacked view */
    width: 90%; /* More width for mobile content */
    margin: auto;
    padding: 0 10px; /* Adjust padding for mobile */
}

header #logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px; /* Space below logo on mobile */
}

header #logo img {
    max-height: 40px; /* Adjusted logo size for mobile */
    width: auto;
    vertical-align: middle;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: block; /* Show on mobile */
    background: transparent;
    border: 0;
    padding: 0.5em;
    cursor: pointer;
    position: absolute; /* Position relative to header */
    right: 1em;
    top: 1.2em; /* Adjust to vertically center with logo */
    z-index: 1001; /* Above other header content */
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background-color: var(--primary-color);
    width: 2em;
    height: 3px;
    border-radius: 1em;
    transition: transform 250ms ease-in-out, opacity 250ms linear;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before { top: -7px; } /* Spacing of hamburger lines */
.hamburger::after { bottom: -7px; }

/* Hamburger animation to X */
.nav-open .hamburger {
    transform: rotate(.125turn); /* 45 degrees */
}

.nav-open .hamburger::before {
    transform: rotate(90deg) translateX(-7px);
}

.nav-open .hamburger::after {
    opacity: 0;
}

header nav.main-nav {
    width: 100%;
    margin-top: 10px;
    /* Mobile: Hidden by default */
    display: none;
    position: absolute; /* Take out of flow to overlay */
    top: 100%; /* Position below the header */
    left: 0;
    right: 0;
    background: #FFFFFF; /* White background for dropdown */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding-bottom: 10px; /* Padding for the opened menu */
}

.nav-open header nav.main-nav {
    display: block; /* Show when .nav-open is on body */
}

header nav.main-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav.main-nav ul li {
    margin: 0; /* Remove individual margins */
    width: 100%; /* List items take full width */
    text-align: center; /* Center text in list items */
}

header nav.main-nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 1em 0; /* Larger tap target */
    display: block; /* Make link fill li */
    border-bottom: 1px solid var(--secondary-color); /* Separator */
}
header nav.main-nav ul li:last-child a {
    border-bottom: none;
}

header nav.main-nav ul li a:hover {
    color: var(--copper-accent);
    background-color: var(--secondary-color); /* Slight bg change on hover */
}

.cta-button {
    background-color: var(--accent-color); /* Gold */
    color: var(--light-text-color) !important; /* Ensure text color is light */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: block; /* Make it block for mobile full width */
    text-align: center;
    margin-top: 10px; /* Space above CTA on mobile */
    width: 100%; /* Full width for mobile */
    box-sizing: border-box; /* Include padding in width calculation */
}

.cta-button:hover {
    background-color: #9c7b4c; /* Darker Gold */
    text-decoration: none;
}

/* Tablet and Desktop Header Styles */
@media(min-width: 769px) {
    .nav-toggle {
        display: none; /* Hide hamburger on desktop */
    }
    header {
        padding-top: 20px;
        padding-bottom: 0; /* Reset bottom padding */
    }
    header .container {
        flex-direction: row; /* Horizontal layout for logo and nav */
        justify-content: space-between;
        align-items: center;
        width: 85%;
        padding: 0 20px;
    }
    header #logo {
        margin-bottom: 0; /* No margin below logo on desktop */
    }
    header #logo img {
        max-height: 50px; /* Restore or adjust logo size for desktop */
    }
    header nav.main-nav {
        display: block; /* Always show nav on desktop */
        width: auto;
        margin-top: 0;
        position: static; /* Reset positioning */
        background: transparent;
        box-shadow: none;
        padding-bottom: 0;
    }
    header nav.main-nav ul {
        flex-direction: row;
    }
    header nav.main-nav ul li {
        margin-left: 20px;
        width: auto; /* Reset width */
        border-bottom: none; /* No border for desktop links */
    }
     header nav.main-nav ul li:first-child {
        margin-left: 0;
    }
    .cta-button {
        display: inline-block; /* Inline block for desktop */
        margin-top: 0;
        width: auto; /* Auto width for desktop */
    }
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--light-text-color);
    padding: 30px 0 15px; /* Adjusted padding for mobile */
    text-align: center; /* Center text for mobile */
}

footer .container {
    display: flex;
    flex-direction: column; /* Stack columns on mobile */
    align-items: center; /* Center columns on mobile */
}

footer .footer-column {
    flex: 1; /* Allow to grow, but stacking handles width */
    min-width: auto; /* Remove min-width for mobile */
    margin: 15px 0; /* Vertical margin for stacked columns */
    padding: 0 10px;
    width: 100%; /* Ensure full width for stacking */
}

footer #footer-logo {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
}
footer #footer-logo img {
    max-height: 35px; /* Adjusted for mobile */
}

footer p {
    font-size: 0.85em; /* Adjusted for mobile */
    margin-bottom: 0.5em;
}

footer h4 {
    color: var(--light-text-color);
    margin-bottom: 10px;
    font-size: 1.0em; /* Adjusted for mobile */
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 6px; /* Adjusted for mobile */
}

footer ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9em; /* Adjusted for mobile */
}

footer ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

footer .copyright {
    text-align: center;
    margin-top: 20px; /* Adjusted for mobile */
    padding-top: 15px; /* Adjusted for mobile */
    border-top: 1px solid #3e5062;
    font-size: 0.75em; /* Adjusted for mobile */
    color: #bdc3c7;
}

footer .social-icons a {
    margin: 0 7px; /* Adjusted for mobile */
    color: var(--light-text-color);
    font-size: 1.1em; /* Adjusted for mobile */
}

footer .social-icons a:hover {
    color: var(--accent-color);
}

/* Tablet and Desktop Footer Styles */
@media(min-width: 769px) {
    footer {
        padding: 40px 0 20px;
        text-align: left;
    }
    footer .container {
        flex-direction: row; /* Horizontal layout for columns */
        justify-content: space-between;
        align-items: flex-start; /* Align items to top */
    }
    footer .footer-column {
        min-width: 200px; /* Restore min-width */
        margin: 10px; /* Restore original margin */
        padding: 0 15px;
        text-align: left; /* Align text left for columns */
        width: auto; /* Reset width */
    }
    footer #footer-logo img {
        max-height: 40px;
    }
    footer p {
        font-size: 0.9em;
    }
    footer h4 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    footer ul li {
        margin-bottom: 8px;
    }
    footer ul li a {
        font-size: 1em;
    }
    footer .copyright {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 0.8em;
    }
    footer .social-icons a {
        margin-right: 10px;
        margin-left: 0;
        font-size: 1.2em;
    }
}

/* Section Styling (General) */
.section {
    padding: 40px 0; 
    text-align: center;
}

.section:nth-child(even) { /* Sections that were #FFFFFF */
    background-color: var(--background-main-alt);
}
.section:nth-child(odd) { /* Sections that were page default #f4f7f6 (var(--secondary-color)) */
    background-color: var(--secondary-color); /* Keep these as is, or also use var(--background-main-alt) for less variation */
}

.section-title { /* This class is used for H1 and H2, so font-size is inherited */
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1em; /* Base for mobile */
    color: #555;
    margin-bottom: 30px; /* Adjusted for mobile */
    max-width: 90%; /* More width for subtitle on mobile */
    margin-left: auto;
    margin-right: auto;
}

/* Tablet and Desktop Typography & Section Adjustments */
@media(min-width: 769px) {
    .container {
        width: 85%;
        padding: 0 20px;
    }
    h1 { font-size: 2.8em; }
    h2 { font-size: 2.2em; } 
    .section-title { /* Used for H1s like in Hero, and H2s as section titles */
         /* Adjusting based on h1, h2 specifically for section titles if they are H2s */
        font-size: 2.5em; /* Overriding h2 if it's specifically a .section-title */
    }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.2em; }
    p {
        font-size: 1em;
    }
    .section {
        padding: 60px 0;
    }
    .section-subtitle {
        font-size: 1.2em;
        margin-bottom: 40px;
        max-width: 700px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.full-width-banner {
    width: 100%;
    padding: 80px 20px; /* Adjusted padding for better content visibility */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat; /* Added to prevent tiling */
    background-attachment: scroll; /* Changed from fixed to scroll for better mobile support */
    color: var(--light-text-color); /* Default text color for banners */
    text-align: center;
    position: relative; /* For potential pseudo-elements or overlays */
}

/* Enable parallax effect on full-width banners only on larger screens */
@media (min-width: 769px) and (min-height: 600px) {
    .full-width-banner {
        background-attachment: fixed; /* Enable parallax only on desktop/tablet */
    }
}

.full-width-banner h1, .full-width-banner h2, .full-width-banner p {
    color: var(--light-text-color); /* Ensure text is light on dark banners */
}

.btn {
    display: inline-block;
    background: var(--accent-color); /* Gold */
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #9c7b4c; /* Darker Gold */
    text-decoration: none;
}

.btn-secondary {
    background: var(--primary-color); /* Forest Green */
}
.btn-secondary:hover {
    background: #1A432E; /* Darker Forest Green */
}

/* NEW: Responsive Image Class - IMPROVED SCALING */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block; /* To allow margin auto for centering */
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px; /* Optional: consistent rounded corners for images */
    object-fit: cover; /* Ensure proper aspect ratio maintenance */
    object-position: center; /* Center the image within its container */
}

/* Specific max-widths for content images, ensuring they are responsive by default */
.diagram-img {
    max-width: 300px; /* Max width on larger screens */
    margin-bottom: 20px; /* Add some space if they stack */
    width: 100%; /* Take full width up to max-width */
}

.content-img-medium {
    max-width: 400px; /* Max width for medium content images */
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%; /* Take full width up to max-width */
}

.content-img-large {
    max-width: 500px; /* Max width for large content images */
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%; /* Take full width up to max-width */
}

.icon-feature-grid {
    display: flex;
    flex-direction: column; /* Stack items on mobile */
    align-items: center; /* Center items when stacked */
    gap: 25px; /* Space between items */
    margin-top: 30px; /* Adjusted for mobile */
}

.icon-feature-item {
    padding: 0; /* Reset padding, .content-textbox will handle it */
    background-color: transparent; /* Make original background transparent */
    box-shadow: none; /* Remove original shadow */
    border: none; /* Remove original border if any */
}

.icon-feature-item img, .icon-feature-item .icon-placeholder {
    width: 45px; /* Slightly smaller for mobile */
    height: 45px;
    margin-bottom: 12px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
}

.icon-feature-item h4 {
    font-size: 1.1em; /* Adjusted for mobile, inherits from base h4 */
    margin-bottom: 8px;
}

/* Tablet and Desktop Icon Feature Grid */
@media(min-width: 550px) { /* Start grid layout earlier for 2 columns */
    .icon-feature-grid {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    .icon-feature-item {
        flex-basis: calc(50% - 20px); /* 2 columns for smaller tablets */
        width: auto; /* Reset width */
        max-width: none; /* Reset max-width */
    }
}

@media(min-width: 992px) { /* For 4 columns on larger screens */
    .icon-feature-item {
        flex-basis: calc(25% - 20px);
    }
}


/* Placeholder for actual product image/mockup */
.product-shot-placeholder {
    width: 80%; /* More responsive for mobile */
    max-width: 280px; /* Max width for mobile */
    height: auto; /* Auto height */
    aspect-ratio: 1 / 1; /* Maintain square for placeholder */
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    font-style: italic;
    color: #777;
}

.product-shot {
    max-width: 250px; /* Responsive product shot */
    width: 100%; /* Take full width up to max-width */
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: contain; /* Maintain aspect ratio for product images */
}

.product-main-image {
    max-width: 100%;
    width: 100%; /* Take full width of container */
    height: auto;
    border-radius: 12px; 
    object-fit: contain; /* Maintain aspect ratio */
    object-position: center;
}

/* Tablet and Desktop Product Shot */
@media(min-width: 769px) {
    .product-shot-placeholder {
        width: 300px;
        max-width: none;
        /* height: 300px; */ /* height is auto now */
    }
    .product-shot {
        max-width: 350px; /* Slightly larger on desktop */
        max-height: 350px;
    }
    .diagram-img {
        max-width: 350px; /* Slightly larger on desktop */
    }
}


/* Commenting out old responsive blocks for icon-feature-item */
/* @media (max-width: 768px) {
    .icon-feature-item {
        flex-basis: calc(50% - 20px); 
    }
}

@media (max-width: 480px) {
    .icon-feature-item {
        flex-basis: 100%; 
    }
} */

.ingredient-section h3 {
    color: var(--primary-color); /* Forest Green for ingredient titles */
    margin-top: 0;
}

#business-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    /* color: var(--primary-color); Let's keep form labels standard dark grey for now */
}

.values-list li strong {
    color: var(--primary-color); /* Forest Green for strong text in values */
}

.contact-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color); /* Forest Green for contact form labels */
}

/* NEW: Hero Section Styles */
.hero-section {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Changed from fixed to scroll for better mobile support */
    color: var(--light-text-color);
    text-align: center;
    display: flex; /* Use flexbox for centering content */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    padding: 60px 20px; /* Default padding for mobile */
    position: relative; /* For pseudo-element overlay */
    overflow: hidden; /* Ensure pseudo-element doesn't cause scroll */
    min-height: 60vh; /* Default minimum height */
}

/* Enable parallax effect only on larger screens where it works well */
@media (min-width: 769px) and (min-height: 600px) {
    .hero-section {
        background-attachment: fixed; /* Enable parallax only on desktop/tablet */
    }
}

/* Ensure better mobile image quality and scaling */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* Force scroll on mobile */
        background-size: cover; /* Ensure full coverage */
        background-position: center center; /* Center the image */
        min-height: 50vh; /* Reduce height slightly on mobile for better performance */
    }
    
    /* Specific fixes for large/problematic images on mobile */
    #hero.hero-section {
        background-size: cover; /* Changed from contain to cover for better mobile display */
        background-position: center center; /* Keep centered */
        background-color: var(--secondary-color); /* Light background color in case image doesn't fully cover */
    }
    
    /* For very large background images, use different positioning */
    #contact-us.hero-section {
        background-size: cover;
        background-position: center center; /* Changed from center top to center center */
    }
    
    /* Science background - ensure good visibility */
    #how-it-works.hero-section {
        background-size: cover;
        background-position: center center;
    }
    
    /* Business background optimization */
    #for-businesses.hero-section {
        background-size: cover;
        background-position: center center;
    }
    
    /* Mission background optimization */
    #about-us.hero-section {
        background-size: cover;
        background-position: center center;
    }
    
    /* Additional mobile optimizations for hero sections */
    .hero-section {
        background-repeat: no-repeat; /* Ensure no image repetition */
        position: relative;
        overflow: hidden; /* Prevent any overflow issues */
    }
    
    /* Improve text readability on mobile with better overlay */
    .hero-section::before {
        background-color: rgba(0, 0, 0, 0.4); /* Slightly darker overlay on mobile for better text contrast */
    }
    
    /* Specific overlay adjustments for different sections */
    #hero.hero-section::before {
        background-color: rgba(0, 0, 0, 0.2); /* Lighter overlay for product hero to show product better */
    }
    
    /* Ensure hero content is properly contained and readable */
    .hero-section .hero-content {
        position: relative;
        z-index: 2;
        padding: 20px 15px; /* Add padding to content for better mobile spacing */
        max-width: 100%;
        width: 100%;
    }
    
    .hero-section .actual-section-content-wrapper {
        padding: 20px 15px; /* Consistent padding for content wrapper */
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Additional mobile optimizations for smaller screens */
@media (max-width: 480px) {
    .hero-section {
        min-height: 40vh; /* Reduce height further on very small screens */
        padding: 40px 15px; /* Reduce padding for smaller screens */
    }
    
    .hero-section .hero-content h1 {
        font-size: 1.8em; /* Slightly smaller hero titles on very small screens */
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-section .hero-content p {
        font-size: 1em; /* Adjust paragraph size for very small screens */
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .hero-section .actual-section-content-wrapper {
        padding: 15px 10px; /* Tighter padding on very small screens */
    }
}

/* Performance optimization for mobile hero images */
@media (max-width: 768px) {
    /* Ensure images are optimized for mobile loading */
    .hero-section {
        background-attachment: scroll !important; /* Force scroll to prevent mobile performance issues */
    }
    
    /* Add will-change for better performance on mobile */
    .hero-section .hero-content,
    .hero-section .actual-section-content-wrapper {
        will-change: transform; /* Optimize for animations */
    }
}

/* Ensure all direct children of .hero-section that are meant to contain the visible content 
   are treated by the .hero-content styling for animation and z-index. 
   The new .actual-section-content-wrapper will handle the inner layout. */
.hero-section > .hero-content {
    position: relative; /* Ensure content is above the overlay */
    z-index: 2;
    animation: fadeInText 1.5s ease-in-out 0.5s forwards; /* Animation */
    opacity: 0; /* Start hidden */
    max-width: 100%; /* Allow content to use more width initially */
    width: 100%; /* Occupy full width of parent flex item */
}

/* Wrapper for the actual content inside complex hero sections, replacing the old .container role within these sections */
.actual-section-content-wrapper {
    width: 90%; /* Similar to .container for mobile */
    margin: auto;
    padding: 20px 15px; /* Padding for the content within the wrapper */
    background-color: rgba(0, 0, 0, 0.1); /* Optional: slight dark background for the content area itself if needed, can be removed */
    border-radius: 8px;
}

/* Titles and subtitles within hero-sections should be light */
.hero-section .section-title,
.hero-section .section-subtitle,
.hero-section .h3-style,
.hero-section p:not(.content-textbox p):not(.content-textbox li p), /* Target p only if not in a .content-textbox */
.hero-section h4:not(.content-textbox h4), /* Target h4 only if not in a .content-textbox */
.hero-section li:not(.content-textbox li):not(.values-list li), /* Target li only if not in a .content-textbox or values-list */
.hero-section li strong:not(.content-textbox li strong) {
    color: var(--light-text-color);
}

/* For elements that should have a darker text on a light background inside a hero section (e.g. contact form, ingredient details) */
.hero-section .force-dark-text .section-title,
.hero-section .force-dark-text .section-subtitle,
.hero-section .force-dark-text .h3-style,
.hero-section .force-dark-text p,
.hero-section .force-dark-text h4,
.hero-section .force-dark-text li strong,
.hero-section .force-dark-text li {
    color: var(--text-color); /* Standard dark text */
}
.hero-section .force-dark-text summary {
    color: var(--primary-color); /* Accordion summary text */
}

.hero-section::before { /* Optional: Dark overlay for better text contrast */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Adjust darkness as needed */
    z-index: 1;
}

.hero-content h1, .hero-content h2 {
    color: var(--light-text-color); /* Ensure heading is light on dark background */
    margin-bottom: 0.5em;
}

.hero-content p {
    color: var(--light-text-color); /* Ensure paragraph text is light */
    font-size: 1.1em; /* Slightly larger for hero */
    margin-bottom: 1.5em;
}

.hero-section.hero-small { /* For less prominent pages like terms/privacy */
    min-height: 30vh;
    padding: 40px 20px;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific page styles for old hero sections - to be refactored or removed */
/* #hero {
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
    height: 80vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

#hero .container,
#hero-business .container {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
}

#hero .btn {
    margin-top: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
} */

/* #problem section - styling for its image/icon if needed */
#problem img {
    max-width: 80px;
    margin-bottom: 1em;
}

/* #hero-business {
    background: url('../images/business-hero-abstract-b2b.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
    height: 70vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
} */

.business-case-item {
    text-align: left;
    padding: 0; /* Reset padding, .content-textbox will handle it */
    background-color: transparent;
    box-shadow: none;
    border: none;
}
.business-case-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2em;
}

/* Contact Form Styles (originally #business-contact-form, now more general within .contact-form-container) */
.contact-form-container {
    /* Styles for the container are already in index.html inline, but can be centralized here */
    /* Example: background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
}

.contact-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color); /* Standard text color for labels */
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="number"],
.contact-form-container input[type="tel"], /* Added tel for completeness */
.contact-form-container textarea,
.contact-form-container select { /* Added select for completeness */
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #f9f9f9;
}

.contact-form-container textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-container button {
    width: 100%;
    padding: 12px 20px; /* Consistent padding with .btn */
    /* font-size: 1.1em; Ensure consistency or inherit from .btn */
}

/* UPDATED: Product Purchase Section Styles (Redesign) */
#try-nuro-section {
    background-color: var(--background-main-alt); /* Use new off-white */
    padding-top: 80px;
    padding-bottom: 80px;
}

#try-nuro-section .container {
    max-width: 1100px; /* Allow more width for a spacious layout */
}

#try-nuro-section .section-title {
    color: var(--primary-color);
    font-size: 2.6em;
    margin-bottom: 15px;
}
#try-nuro-section .section-subtitle {
    font-size: 1.25em;
    color: #555;
    max-width: 700px;
    margin-bottom: 50px;
}

.product-purchase-container {
    display: flex;
    flex-direction: column; /* Mobile first */
    gap: 30px;
    padding: 0; /* Remove padding, handled by inner areas */
    background-color: transparent; /* No longer has its own background */
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    border: none;
}

.product-purchase-image-area {
    flex: 1 1 45%; 
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color); /* Light gray, contrasts with off-white page */
    border-radius: 16px; 
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.product-main-image {
    max-width: 100%;
    max-height: 400px; /* Control max height */
    height: auto;
    border-radius: 12px; 
    object-fit: contain;
    object-position: center;
}

.product-purchase-details-area {
    flex: 1 1 55%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg-light); /* White card for details */
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.product-purchase-details-area h3 {
    font-size: 2.2em; /* Product title */
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.25;
}

.product-tagline {
    font-size: 1em;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}

.pricing-options {
    background-color: rgba(var(--primary-color-rgb), 0.02); /* Very subtle primary tint */
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
}

.price-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-original {
    font-size: 1em;
    color: #888;
    text-decoration: line-through;
}

.price-current {
    font-size: 2.6em;
    font-weight: 700;
    color: var(--accent-color); /* Gold for current price */
    line-height: 1;
}

.save-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
}

/* NEW Subscription Toggle Switch Styles */
.subscription-toggle-container {
    margin-top: 20px;
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.08);
    padding-top: 20px;
    background-color: var(--card-bg-light); 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subscription-toggle-label {
    font-size: 1.05em;
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 15px;
}

.subscription-toggle-label .price-subscribed {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    color: #4CAF50; 
    margin-top: 4px;
}

.subscription-toggle-label .billing-cycle {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
    color: #777;
    margin-top: 2px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0; /* Prevent shrinking if label text is long */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* End of Subscription Toggle Switch Styles */

.subscription-option {
    margin-top: 20px;
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.08);
    padding-top: 20px;
    background-color: var(--card-bg-light); /* White card for subscription details */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.subscription-option input[type="checkbox"] {
    margin-right: 12px;
    width: 22px;
    height: 22px;
    accent-color: var(--primary-color);
    vertical-align: middle;
    cursor: pointer;
}

.subscription-option label {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex; /* Align checkbox and text nicely */
    align-items: center;
}

.subscription-label-text strong {
    font-size: 1.1em;
}
.subscription-label-text .price-subscribed {
    display: block;
    font-size: 0.9em;
    font-weight: normal;
    color: #4CAF50; /* Green for subscribed price */
    margin-top: 4px;
}

.subscription-label-text .billing-cycle {
    display: block;
    font-size: 0.85em;
    font-weight: normal;
    color: #777;
    margin-top: 2px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: auto; /* Don't take full width */
    justify-content: flex-start;
}

.quantity-selector label {
    margin-right: 15px;
    font-size: 1.05em;
    font-weight: 500;
    color: var(--text-color-on-light);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded border for the group */
    overflow: hidden; /* To make child border-radius work */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.quantity-selector input[type="number"] {
    width: 60px;
    text-align: center;
    border: none; 
    padding: 12px 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    -moz-appearance: textfield;
}
.quantity-selector input[type=number]::-webkit-outer-spin-button,
.quantity-selector input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: none;
    color: var(--primary-color);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
    transition: background-color 0.2s ease;
}
.quantity-btn img {
    width: 12px; /* Adjust icon size if needed */
    height: 12px;
    vertical-align: middle;
}

.quantity-btn.quantity-minus {
    border-right: 1px solid #ccc;
    border-top-left-radius: 0; /* Adjusted for group */
    border-bottom-left-radius: 0;
}
.quantity-btn.quantity-plus {
    border-left: 1px solid #ccc;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.quantity-btn:hover {
    background-color: #e0e0e0;
}

.product-purchase-details-area .add-to-cart-btn {
    width: 100%;
    padding: 18px 25px; 
    font-size: 1.25em; 
    font-weight: bold;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--copper-accent), #c7803f); /* Gradient for button */
    color: var(--light-text-color);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(var(--copper-accent-rgb), 0.3);
    transition: all 0.3s ease;
}
.product-purchase-details-area .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #c7803f, var(--copper-accent));
    box-shadow: 0 6px 20px rgba(var(--copper-accent-rgb), 0.4);
    transform: translateY(-2px);
}

.trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align to left */
    align-items: center;
    margin-bottom: 20px;
    border-top: 1px solid #e8e8e8;
    padding-top: 25px;
    gap: 20px; /* Space between items */
}

.trust-signal-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #444;
}

.trust-signal-item img {
    width: 22px; 
    height: 22px;
    margin-right: 8px;
    opacity: 0.8;
}

.product-description-small {
    font-size: 0.95em;
    color: var(--text-color-on-light);
    line-height: 1.6;
    margin-top: 15px;
    text-align: left;
    background-color: var(--secondary-color); /* Light gray, distinct from details card */
    padding: 15px;
    border-radius: 8px;
}

/* Desktop Styles for Product Purchase Section */
@media(min-width: 769px) {
    .product-purchase-container {
        flex-direction: row;
        gap: 40px; /* Increased gap */
    }
     .product-purchase-details-area {
        padding: 30px;
    }
}

/* Page-specific styles from How Nuro Works (now in index.html) */
.section-content {
    margin-bottom: 40px; /* Add some space between content blocks within a section */
}

.section-content:last-child {
    margin-bottom: 0;
}

.h3-style {
    font-size: 1.7em; /* Consistent H3 styling for merged content */
    color: var(--primary-color);
    margin-top: 1.5em; 
    margin-bottom: 0.8em;
}

@media(min-width: 769px) {
    .h3-style {
        font-size: 2.0em; /* Larger for desktop */
    }
}


.ingredient-section {
    text-align: left;
    padding: 0; /* Reset padding */
    background-color: transparent;
    box-shadow: none;
    border: none;
}
.ingredient-section h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2em; /* Adjusted font size */
}

.ingredient-accordion summary {
    background-color: var(--secondary-color);
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 5px;
    list-style: none; /* Hide default marker */
    display: flex;
    align-items: center;
    color: var(--primary-color);
    border: 1px solid #ddd;
}
.ingredient-accordion summary::-webkit-details-marker { display: none; }
.ingredient-accordion summary::before { /* Custom marker */
    content: '+';
    margin-right: 10px;
    margin-left: auto; /* Pushes marker to the right */
    font-size: 1.2em; /* Adjusted size */
    font-weight: bold;
}
.ingredient-accordion[open] summary {
    background-color: #e0e0e0;
}
.ingredient-accordion[open] summary::before {
    content: '−';
}
.ingredient-category-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
.references-section {
    text-align: left;
    font-size: 0.9em;
    background-color: #fff; /* Give it a background if it stands alone */
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.references-section ul {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 0;
}
.references-section li {
    margin-bottom: 8px;
}

/* Page-specific styles from About Us (now in index.html) */
.values-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 20px auto;
    text-align: left;
}
.values-list li {
    font-size: 1.1em;
    padding: 0; /* Reset padding */
    background-color: transparent;
    box-shadow: none;
    border: none;
}
.values-list li strong {
    color: var(--primary-color);
}

/* Apply force-dark-text to specific elements if they appear on a light background within a hero-section */
.hero-section .values-list li {
    color: var(--text-color); /* Ensure text on these items is dark */
}

.hero-section .values-list li strong {
    color: var(--primary-color); /* Keep strong text as primary color */
}

.hero-section .ingredient-accordion summary {
    background-color: rgba(var(--secondary-color-rgb, 240, 240, 240), 0.85); /* Light background for accordion summary */
    color: var(--primary-color); /* Ensure text on summary is dark */
    border: 1px solid rgba(var(--primary-color-rgb),0.1);
}

.hero-section .ingredient-accordion[open] summary {
    background-color: rgba(var(--secondary-color-rgb, 224, 224, 224), 0.85);
}

.hero-section .ingredient-section {
    background-color: rgba(var(--background-main-alt-rgb), 0.85); /* Light background for ingredient details */
    color: var(--text-color-on-light); /* Ensure text is dark */
    border: 1px solid rgba(var(--primary-color-rgb),0.1);
}
.hero-section .ingredient-section h4,
.hero-section .ingredient-section p,
.hero-section .ingredient-section strong {
    color: var(--text-color-on-light); /* Ensure all text elements inside are dark */
}
.hero-section .ingredient-section strong { 
    color: var(--primary-color); /* Except strong, make it stand out */
}

.hero-section .business-case-item {
    background-color: rgba(var(--background-main-alt-rgb), 0.85);
    color: var(--text-color-on-light);
}
.hero-section .business-case-item h4,
.hero-section .business-case-item p {
    color: var(--text-color-on-light);
}
.hero-section .business-case-item h4 {
    color: var(--primary-color);
}

/* Ensure specific lists within hero sections also get light text if they don't have their own backgrounds */
.hero-section #implementation-content ul li {
    color: var(--light-text-color); /* For the implementation list */
}

/* References section text color if it's directly on parallax */
.hero-section .references-section,
.hero-section .references-section p,
.hero-section .references-section li,
.hero-section .references-section h3 {
    color: var(--light-text-color); 
}

/* Overriding for references if they are on their own light background inside a hero section */
.hero-section .references-section.section-content {
    background-color: rgba(var(--background-main-alt-rgb), 0.85);
    color: var(--text-color-on-light); 
}
.hero-section .references-section.section-content p,
.hero-section .references-section.section-content li {
    color: var(--text-color-on-light);
}
.hero-section .references-section.section-content h3 {
    color: var(--primary-color);
}

@media(min-width: 769px) {
    .actual-section-content-wrapper {
        width: 85%; /* Match .container on desktop */
         padding: 30px 20px;
    }
}

/* Scroll Animation Styling */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure hero section initial text animation still works if desired, and doesn't conflict */
/* The .hero-section > .hero-content animation is different and for initial page load */

/* Animated Content Textbox Styling */
.content-textbox {
    background-color: rgba(var(--background-main-alt-rgb), 0.75); /* Reduced from 0.92 to 0.75 for more transparency */
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color-soft);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    color: var(--text-color-on-light); 
    margin-top: 20px; 
    margin-bottom: 20px;
    text-align: left; /* Ensure text inside textboxes aligns left by default */
}

/* Ensure all direct text content within .content-textbox is dark */
.content-textbox,
.content-textbox p,
.content-textbox li,
.content-textbox div, /* Catch-all for other direct wrappers */
.content-textbox span {
    color: var(--text-color-on-light) !important; /* Force dark text */
}

.content-textbox h1,
.content-textbox h2,
.content-textbox h3,
.content-textbox h4,
.content-textbox h5,
.content-textbox h6,
.content-textbox summary,
.content-textbox strong {
    color: var(--primary-color) !important; /* Force primary color for headings/strong */
}

.content-textbox a {
    color: var(--accent-color) !important; /* Force accent color for links */
}
.content-textbox a:hover {
    color: var(--copper-accent) !important;
}

/* Specific overrides for hero sections if .content-textbox is used there */
.hero-section .content-textbox p,
.hero-section .content-textbox li,
.hero-section .content-textbox div,
.hero-section .content-textbox span {
    /* Already covered by the general .content-textbox rules with !important */
}

.hero-section .content-textbox h1,
.hero-section .content-textbox h2,
.hero-section .content-textbox h3,
.hero-section .content-textbox h4,
.hero-section .content-textbox h5,
.hero-section .content-textbox h6,
.hero-section .content-textbox summary,
.hero-section .content-textbox strong {
    /* Already covered by the general .content-textbox rules with !important */
}

.hero-section .content-textbox .ingredient-accordion summary {
    background-color: rgba(var(--secondary-color-rgb, 240, 240, 240), 0.95); /* Slightly more opaque */
    border: 1px solid rgba(var(--primary-color-rgb),0.15);
}
.hero-section .content-textbox .ingredient-accordion[open] summary {
    background-color: rgba(var(--secondary-color-rgb, 224, 224, 224), 0.95);
}

/* Parallax Buffer Styling - Updated to be invisible */
.parallax-buffer {
    height: 0; /* Remove height */
    background-color: transparent; /* Make background transparent */
    margin: 0;
    padding: 0;
    border: 0;
}

/* Cart Icon in Nav - IMPROVED TO ALWAYS BE VISIBLE */
.cart-nav-item {
    position: relative; /* For badge positioning */
}

.cart-nav-item a {
    position: relative; /* For badge positioning */
    display: flex; /* Align icon and badge */
    align-items: center;
    padding: 8px 12px; /* Better touch target */
}

.cart-nav-item svg {
    stroke: var(--primary-color); /* Match nav link color */
    width: 24px;
    height: 24px;
}

.cart-nav-item a:hover svg {
    stroke: var(--copper-accent); /* Match nav link hover color */
}

.cart-count-badge {
    position: absolute;
    top: 2px; /* Adjust for vertical alignment */
    right: 2px; /* Adjust for horizontal alignment */
    background-color: var(--accent-color); /* Gold for badge */
    color: var(--light-text-color);
    border-radius: 50%;
    padding: 2px 6px; /* Small padding */
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1;
    border: 1px solid var(--light-text-color); /* Optional: slight border for definition */
    min-width: 18px;
    text-align: center;
    box-sizing: border-box;
    display: none; /* Hidden by default */
}

.cart-count-badge.show {
    display: inline-block;
}

/* NEW: Cart Sidebar Panel - ENHANCED STYLING */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px; 
    width: 420px; 
    max-width: 90vw; 
    height: 100vh;
    background-color: var(--background-main-alt); /* Off-white for the main cart panel */
    box-shadow: -3px 0 15px rgba(0,0,0,0.12);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    overflow-y: auto;
    border-left: 1px solid var(--border-color-soft);
    display: flex;
    flex-direction: column; 
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    flex-shrink: 0; /* Prevent header from shrinking */
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: var(--light-text-color);
    font-weight: 600;
}

.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%; /* Circular hover effect */
    transition: background-color 0.2s ease;
    line-height: 0; /* Helps with icon alignment */
}

.cart-close-btn:hover {
    background-color: rgba(255,255,255,0.15);
}

.cart-close-btn svg {
    width: 22px; /* Slightly smaller */
    height: 22px;
    stroke: var(--light-text-color);
}

.cart-sidebar-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to take available space */
    overflow-y: auto; /* Scroll only content if needed */
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Try to center in available space */
}

.cart-empty p {
    margin-bottom: 25px;
    font-size: 1.1em;
}
.cart-empty .empty-cart-icon {
    font-size: 3em; /* Placeholder for a nice icon later */
    opacity: 0.3;
    margin-bottom: 20px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color-soft);
    gap: 20px;
    background-color: var(--card-bg-light); /* White for individual item cards */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.cart-item:last-child {
    border-bottom: none; /* Or keep if using individual cards */
}

.cart-item-image {
    width: 70px; /* Larger image */
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 1em;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.cart-item-subscription {
    font-size: 0.85em;
    margin-bottom: 10px;
    background-color: rgba(var(--primary-color-rgb),0.1); /* Primary color tint for subscription tag */
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cart-quantity-btn {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: var(--primary-color);
    width: 32px; /* Larger tap target */
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cart-quantity-btn img {
    width: 12px;
    height: 12px;
}

.cart-quantity-btn:hover {
    background-color: #f1f3f5;
    border-color: #adb5bd;
}

.cart-quantity-display {
    min-width: 35px;
    text-align: center;
    font-weight: 500;
    font-size: 1em;
    color: var(--text-color-on-light);
    padding: 0 5px;
}

.cart-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto; /* Push to the right */
    border-radius: 50%;
    transition: background-color 0.2s ease;
    line-height: 0;
}
.cart-remove-btn img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.cart-remove-btn:hover {
    background-color: #fdecea; /* Light red for hover */
}
.cart-remove-btn:hover img {
    opacity: 1;
    stroke: #c62828; /* Darker red for icon stroke on hover */
}


.cart-summary {
    border-top: 1px solid var(--border-color-soft);
    padding: 25px;
    background-color: var(--card-bg-light); /* White for summary footer */
    flex-shrink: 0; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cart-subtotal, .cart-shipping { /* Optional: if you add these details */
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #555;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-color), #c7803f); /* Match main CTA */
    color: var(--light-text-color);
    border: none;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.3);
}

.cart-checkout-btn:hover {
    background: linear-gradient(135deg, #c7803f, var(--accent-color));
    box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.4);
    transform: translateY(-2px);
}

.cart-continue-shopping {
    width: 100%;
    padding: 14px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cart-continue-shopping:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}

/* Mobile cart sidebar adjustments */
@media(max-width: 480px) {
    .cart-sidebar {
        width: 100%; /* Full width on mobile */
        right: -100%;
        max-width: 100vw;
    }
    .cart-sidebar.open {
        right: 0;
    }
    .cart-sidebar-content, .cart-sidebar-header, .cart-summary {
        padding-left: 20px;
        padding-right: 20px;
    }
    .product-purchase-details-area h3 {
        font-size: 1.8em;
    }
    .price-current {
        font-size: 2.2em;
    }
}

/* Styles for the add to cart notification - REMOVED as notification is removed */
/* .cart-notification { ... } */
/* .cart-notification.show { ... } */


:root {
    --primary-color: #22573B; 
    --secondary-color: #F0F0F0; 
    --accent-color: #B08D57; 
    --copper-accent: #B87333; 
    --text-color: #333333; /* Original dark grey, maybe too harsh */
    --light-text-color: #FFFFFF;
    --footer-bg: #1A432E; 
    
    --primary-color-rgb: 34, 87, 59;
    --copper-accent-rgb: 184, 115, 51;
    --accent-color-rgb: 176, 141, 87;
    --secondary-color-rgb: 240, 240, 240; /* Added for hero content textbox summaries */

    --background-main-alt: #F7F5F2; 
    --background-main-alt-rgb: 247, 245, 242;
    --card-bg-light: #FFFFFF;
    --text-color-on-light: #4A4A4A; /* Refined darker gray for text on light/off-white backgrounds */
    --border-color-soft: #E0DED9;
} 

/* Cart Item Subscription Toggle */
.cart-item-subscription-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9em;
}

.cart-item-subscription-toggle .switch {
    width: 44px; /* Smaller switch for cart */
    height: 24px;
}

.cart-item-subscription-toggle .slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
}

.cart-item-subscription-toggle input:checked + .slider:before {
    transform: translateX(19px); /* Adjust for smaller size */
}

.cart-item-subscription-toggle span {
    color: var(--text-color-on-light);
}

.cart-item-subscription-toggle .subscribed-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* Ingredients Layout Styles */
.ingredients-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ingredients-menu {
    flex: 0 0 350px;
    max-height: 600px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.15); /* Slightly more opaque for better visibility */
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4); /* More prominent border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Added shadow for depth */
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ingredient-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.ingredient-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.ingredient-item .ingredient-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.8;
}

.ingredient-item span:first-of-type {
    flex: 1;
    font-weight: 500;
    color: var(--light-text-color);
}

.ingredient-item .dosage {
    font-size: 0.85em;
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.ingredient-info-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.15); /* More transparent, reduced from 0.1 to 0.15 for consistency */
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4); /* More prominent border */
    min-height: 400px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Added shadow for depth */
}

.ingredient-info {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ingredient-info.active {
    display: block;
    opacity: 1;
}

.ingredient-info h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.ingredient-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--light-text-color);
}

.ingredient-info strong {
    color: var(--accent-color);
}

/* Custom scrollbar for ingredients menu - made more prominent */
.ingredients-menu::-webkit-scrollbar {
    width: 10px; /* Increased from 6px to 10px for better visibility */
}

.ingredients-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2); /* More opaque track */
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Added border for definition */
}

.ingredients-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6); /* More opaque thumb */
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Added border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Added shadow */
}

.ingredients-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8); /* Even more opaque on hover */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .ingredients-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .ingredients-menu {
        flex: none;
        max-height: 300px;
        order: 1;
    }
    
    .ingredient-info-panel {
        order: 2;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .ingredient-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .ingredient-item span:first-of-type {
        font-size: 0.9em;
    }
    
    .ingredient-item .dosage {
        font-size: 0.75em;
        padding: 1px 6px;
    }
    
    .ingredient-info-panel {
        padding: 20px;
    }
    
    .ingredient-info h4 {
        font-size: 1.1em;
    }
} 