/* --- FONTS --- */
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/eb-garamond-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/eb-garamond-italic-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- RESET & VARIABLES --- */
:root {
    --color-sage: #74837c;
    --primary-color: var(--color-sage);
    /* Define primary color */
    --color-slate: #53605b;
    --color-cream: #fcfbf9;
    --color-white: #ffffff;
    --font-main: 'EB Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-cream);
    color: var(--color-slate);
    font-family: var(--font-main);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1.125rem;
    color: rgba(83, 96, 91, 0.85);
}

@media (min-width: 768px) {
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 3.5rem;
    }
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-sage {
    color: var(--color-sage);
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.italic {
    font-style: italic;
}

.italic-quote {
    font-style: italic;
    font-size: 1.35rem;
    font-weight: normal;
}

.text-cream {
    color: var(--color-cream);
}

.mt-0-5 {
    margin-top: 0.5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 3rem;
}

/* Soft Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* For visually hiding labels but keeping them accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
    color: var(--color-slate);
}

.navbar.scrolled {
    background-color: rgba(252, 251, 249, 0.95);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 2rem;
    font-weight: 600;
    /* letter-spacing: 0.1em; */
}

.logo-brand {
    height: 2.5rem;
    width: auto;
    pointer-events: none;
}

.nav-links {
    display: none;
    /* Hidden by default on mobile, styled as overlay below */
}

.nav-links a {
    margin-left: 2.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-actions .ec-cart-widget {
    display: flex;
    align-items: center;
}

/* Delivery schedule dropdown in navbar */
.nav-delivery {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-delivery-btn {
    background: none;
    border: none;
    color: #53605b;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.nav-delivery-btn:hover {
    color: #74837c;
}

.nav-delivery-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--color-white);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    padding: 1rem;
    z-index: 1100;
}

.nav-delivery.open .nav-delivery-dropdown {
    display: block;
}

.nav-delivery-dropdown h4 {
    font-family: var(--font-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-sage);
    margin-bottom: 0.75rem;
}

.nav-delivery-dropdown table {
    width: 100%;
    border-collapse: collapse;
}

.nav-delivery-dropdown th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-sage);
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(116, 131, 124, 0.2);
}

.nav-delivery-dropdown td {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    color: var(--color-slate);
    border-bottom: 1px solid rgba(116, 131, 124, 0.08);
}

/* Base styles for the hamburger button */
.hamburger {
    display: block;
    /* Visible on mobile */
    cursor: pointer;
    z-index: 1001;
    /* Reset button styles */
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    /* Default color on hero */
}

.navbar.scrolled .hamburger,
.navbar.menu-open .hamburger {
    color: var(--color-slate);
    /* Dark color on scrolled/open nav */
}

.nav-links a:hover {
    color: var(--color-sage);
}

/* --- Nav Link Hover Underline --- */
.nav-links a {
    position: relative;
    padding-bottom: 6px;
    /* Creates space for the underline */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar:not(.scrolled) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar:not(.scrolled) .logo a,
.navbar:not(.scrolled) .nav-links a {
    color: #fff;
}

.navbar:not(.scrolled):not(.menu-open) {
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        /* Reset mobile styles */
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        transform: none;
        transition: none;
    }

    .hamburger {
        display: none;
    }
}

/* --- MOBILE NAVIGATION (using .nav-links) --- */
@media (max-width: 767px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 999;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.5rem;
    }

    /* When menu is open, slide nav-links into view */
    .navbar.menu-open .nav-links {
        transform: translateX(0);
    }

    /* Ensure navbar has a background when menu is open, even at top of page */
    .navbar.menu-open {
        background-color: var(--color-cream);
        border-bottom: none;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #333 center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 1.5rem;
}

/* Ensure all text inside hero is white, overriding default 'p' styles */
.hero-content p {
    color: var(--color-white);
    opacity: 0.9;
    /* Slightly soften the subtitle text */
}

.hero-subtitle {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.hero-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
    /* Add a subtle dark background */
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: var(--color-white);
    color: var(--color-slate);
}

/* --- ABOUT SECTION --- */
.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.img-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 133%;
    /* 3:4 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background-color: #e5e5e5;
    /* Placeholder color */
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.img-wrapper.landscape-img {
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .order-2 {
        order: 2;
    }

    /* Text right */
}

/* --- MISSION (Divider) --- */
.mission-section {
    background-color: rgba(116, 131, 124, 0.1);
    /* Sage with opacity */
    padding: 6rem 0;
}

.divider-line {
    width: 100px;
    height: 1px;
    background-color: var(--color-sage);
    margin: 2rem auto;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

@media (min-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- PRODUCTS --- */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.product-card {
    cursor: pointer;
}

.product-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.product-card:hover h3 {
    color: var(--color-sage);
}

.square-img {
    padding-bottom: 100%;
    /* 1:1 Aspect Ratio */
}

.btn-outline {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-sage);
    color: var(--color-sage);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-slate);
    z-index: -1;
    transition: width 0.4s ease;
}

.btn-outline:hover {
    color: var(--color-white);
}

.btn-outline:hover::before {
    width: 100%;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* --- DELIVERY INFO --- */
.delivery-section {
    background-color: var(--color-slate);
    color: var(--color-cream);
}

.delivery-section p {
    color: rgba(252, 251, 249, 0.8);
}

.link-arrow {
    display: inline-block;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(252, 251, 249, 0.5);
    padding-bottom: 0.25rem;
    font-size: 1.25rem;
}

.link-arrow:hover {
    border-bottom-color: var(--color-cream);
}

.delivery-accordion {
    color: var(--color-cream);
}

.delivery-accordion summary {
    cursor: pointer;
    list-style: none;
}

.delivery-accordion summary::-webkit-details-marker {
    display: none;
}

.delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: transparent;
}

.delivery-table th,
.delivery-table td {
    background: transparent;
    color: rgba(252, 251, 249, 0.85);
}

.delivery-table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(252, 251, 249, 0.3);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-cream);
}

.delivery-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid rgba(252, 251, 249, 0.1);
    font-size: 1rem;
}

.delivery-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-cream);
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(116, 131, 124, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.footer-col h4 {
    color: var(--color-sage);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 0.5rem;
    color: var(--color-slate);
}

.newsletter-tagline {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(83, 96, 91, 0.3);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    background: transparent;
    border: none;
    width: 100%;
    outline: none;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-slate);
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--color-sage);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* Subscribe Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--color-cream);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: var(--color-sage);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-close {
    padding: 0.6rem 2rem;
    background: var(--color-sage);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--color-slate);
}

.modal-dismiss {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.modal-dismiss:hover {
    color: var(--color-slate);
}

/* Contact button */
.contact-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-sage);
    background: transparent;
    color: var(--color-sage);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-btn:hover {
    background: var(--color-sage);
    color: var(--color-white);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--color-sage);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--color-cream);
}

/* Contact modal */
.contact-modal-content {
    position: relative;
    text-align: left;
    max-width: 480px;
}

.contact-field {
    margin-bottom: 1rem;
}

.contact-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-sage);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-field textarea {
    resize: vertical;
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9rem;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Page-specific styles for charts and tabs */
[data-tab-content] {
    display: none;
}

[data-tab-content].active {
    display: block;
}

/* =============================================
        Subpage & Report Styles
        ============================================= */

/* --- Subpage Hero Section --- */
.sub-hero {
    position: relative;
    height: 40vh;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.sub-hero--eggs {
    background-image: url('../images/eggsbowldisplay.jpg');
}

.sub-hero--regen {
    background-image: url('../images/basket.jpg');
}

.sub-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sub-hero .hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sub-hero h1 {
    font-size: 3rem;
    font-family: 'EB Garamond', serif;
}

.sub-hero p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #fff;
}

/* --- Page Content Layout --- */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem 2rem;
}

.report-section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.report-section:last-child {
    border-bottom: none;
}

.report-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

.report-intro h2 {
    font-size: 2.5rem;
    font-family: 'EB Garamond', serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.report-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.alternate-bg {
    background-color: #f1f3f5;
    border-radius: 8px;
    padding: 3rem 2rem;
}

/* --- Report Grids & Cards (Flexbox for centering) --- */
.report-grid-3,
.report-grid-4,
.report-grid-5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.report-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: center;
}

.report-grid-3 .report-card {
    flex-basis: 300px;
}

.report-grid-4 .report-card {
    flex-basis: 400px;
}

.report-grid-5 .report-card {
    flex-basis: 250px;
}

.report-card h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.report-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

.report-card .text-4xl {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Chart & Tab Styles --- */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-link {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #555;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background: #eee;
}

.tab-link.active {
    background-color: var(--primary-color);
    color: var(--color-white);
    border-color: var(--primary-color);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.chart-grid-single {
    max-width: 800px;
    margin: 0 auto;
}

.chart-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/* --- Comparison Table Styles --- */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table-container th,
.table-container td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table-container thead th {
    background-color: #f9f9f9;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-container tbody tr:last-child td {
    border-bottom: none;
}

.table-container tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5);
}

.table-container tbody tr:hover {
    background-color: #fcfcfc;
}

.table-container td.highlight {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Navbar Dropdown Styles --- */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0.5rem 0.5rem 0;
    /* Remove left padding to counteract browser default */
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    overflow: hidden;
    /* Ensures children respect border-radius */
}

.dropdown-menu a {
    color: #333;
    padding: 0.75rem 1.5rem;
    display: block;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.dropdown-menu a:hover {
    background-color: #f1f3f5;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Remove hover underline from dropdown toggle */
.dropdown-toggle::after {
    display: none !important;
}

/* --- Dropdown style for transparent navbar state --- */
.navbar:not(.scrolled) .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* For Safari support */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 4px 4px;
}

.navbar:not(.scrolled) .dropdown-menu a {
    color: #fff;
}

/* Corrected hover state for transparent dropdown */
.navbar:not(.scrolled) .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Shop Page Layout (Netcash) --- */
.shop-section {
    padding: 5rem 0 4rem;
}

.shop-header {
    margin-bottom: 2rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-sage);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.chat-fab:hover {
    transform: scale(1.1);
}

.chat-fab.open {
    background: var(--color-slate);
}

.chat-window {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    max-height: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.chat-window.open {
    display: flex;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: var(--color-sage);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.chat-clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.2rem;
    margin-right: 0.5rem;
    transition: color 0.2s;
}

.chat-clear:hover {
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 180px;
    max-height: 260px;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-bubble--bot {
    background: rgba(116, 131, 124, 0.1);
    color: var(--color-slate);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble--user {
    background: var(--color-sage);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-typing {
    padding: 0.6rem 1.2rem;
}

.typing-dots span {
    display: inline-block;
    font-size: 1.6rem;
    line-height: 0.5;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.chat-input-area {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #eee;
}

.chat-name-input {
    width: 100%;
    padding: 0.55rem 1rem;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.chat-compose {
    display: flex;
    align-items: center;
}

.chat-compose input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.chat-send {
    background: none;
    border: none;
    color: var(--color-sage);
    cursor: pointer;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.chat-send:hover {
    color: var(--color-slate);
}

@media (max-width: 400px) {
    .chat-window {
        width: calc(100vw - 2rem);
        right: -0.5rem;
    }
}