:root {
    /* Green Scale */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    /* Orange Scale */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #374151;
    /* gray-700 */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.text-green-700 {
    color: var(--green-700) !important;
}

.text-green-800 {
    color: var(--green-800) !important;
}

.text-orange-300 {
    color: var(--orange-300) !important;
}

.text-orange-500 {
    color: var(--orange-500) !important;
}

.text-orange-600 {
    color: var(--orange-600) !important;
}

.bg-green-50 {
    background-color: var(--green-50) !important;
}

.bg-green-100 {
    background-color: var(--green-100) !important;
}

.bg-green-700 {
    background-color: var(--green-700) !important;
}

.bg-green-800 {
    background-color: var(--green-800) !important;
}

.bg-green-900 {
    background-color: var(--green-900) !important;
}

.bg-orange-50 {
    background-color: var(--orange-50) !important;
}

.bg-orange-100 {
    background-color: var(--orange-100) !important;
}

.bg-orange-500 {
    background-color: var(--orange-500) !important;
}

.bg-yellow-50 {
    background-color: #fefce8 !important;
}

.text-yellow-800 {
    color: #854d0e !important;
}

.bg-yellow-100 {
    background-color: #fef9c3 !important;
}

.text-yellow-700 {
    color: #a16207 !important;
}

.hover-text-green-700:hover {
    color: var(--green-700) !important;
}

.hover-bg-green-50:hover {
    background-color: var(--green-50) !important;
}

/* Navbar Overrides */
.navbar-brand {
    font-weight: bold;
    color: var(--green-800);
}

.nav-link {
    color: #374151;
    /* gray-700 */
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-700) !important;
}

.custom-logo {
    height: auto !important;
    width: 30% !important;
}

.footer-logo{
    height: auto !important;
    width: 50% !important;
}


/* Buttons */
.btn-primary {
    background-color: var(--green-700);
    border-color: var(--green-700);
}

.btn-primary:hover {
    background-color: var(--green-800);
    border-color: var(--green-800);
}

.btn-secondary {
    background-color: var(--orange-500);
    border-color: var(--orange-500);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--orange-600);
    border-color: var(--orange-600);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Cards */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hero Carousel */
.carousel-item {
    height: 500px;
}

.single-product .woocommerce-product-gallery img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

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

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), transparent);
    z-index: 1;
}

/* Replaced .carousel-caption with custom .hero-caption to avoid conflicts */
.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: #fff;
    /* Ensure text is white */
    z-index: 10;
    /* High z-index to sit above overlay */
    padding-bottom: 3rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Mobile Menu */
@media (max-width: 768px) {
    /* No special padding needed for custom hero-caption if container handles it */
}

/* ---------------------------------------------------------
   PLUGIN OVERRIDES: Contact Form 7 to Bootstrap 5
   --------------------------------------------------------- */
.green-forest-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1rem;
}

.green-forest-form input[type="text"],
.green-forest-form input[type="email"],
.green-forest-form input[type="tel"],
.green-forest-form textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.green-forest-form input:focus, 
.green-forest-form textarea:focus {
    border-color: #4D7C0F;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(77, 124, 15, 0.25);
}

.green-forest-form input[type="submit"] {
    padding: 0.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background-color: #166534; /* Darker green */
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.green-forest-form input[type="submit"]:hover {
    background-color: #14532d;
}

/* --- Match Contact Form 7 to your Static HTML Design --- */

/* 1. Remove the extra height/margins CF7 adds to spans */
.green-forest-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* 2. Style the Labels (matches your fw-medium text-secondary) */
.green-forest-form label {
    display: block;
    font-weight: 500;
    color: #6c757d; /* Bootstrap text-secondary */
    margin-bottom: 0.5rem;
}

/* 3. Style the Inputs (matches Bootstrap form-control) */
.green-forest-form input[type="text"],
.green-forest-form input[type="email"],
.green-forest-form input[type="tel"],
.green-forest-form textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6; /* Light border like shadow-sm items */
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* 4. Focus State (Green theme color) */
.green-forest-form input:focus, 
.green-forest-form textarea:focus {
    border-color: #4D7C0F;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(77, 124, 15, 0.25);
}

/* 5. The Submit Button (matches btn-primary btn-lg) */
.green-forest-form input[type="submit"] {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 1.25rem; /* btn-lg */
    font-weight: 400;
    color: #fff;
    background-color: #166534; /* Your green-800/700 color */
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    margin-top: 1rem;
}

.green-forest-form input[type="submit"]:hover {
    background-color: #14532d;
}
/* 6. Fix for CF7's default "Spinning" loader and validation messages */
.wpcf7-spinner {
    position: absolute;
    visibility: hidden;
}

.wpcf7-spinner.is-active {
    visibility: visible;
}

.wpcf7-not-valid-tip {
    color: #dc3545; /* Bootstrap danger red */
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* CF7 Response Messages */
.wpcf7-response-output {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 1rem 0 !important;
    padding: 1rem !important;
    border-radius: 0.375rem !important;
    border-width: 1px !important;
}

/* Success Message */
.wpcf7-mail-sent-ok {
    border-color: #4D7C0F !important;
    background-color: #f0fdf4 !important;
    color: #166534 !important;
}

/* Error Message */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-failed,
.wpcf7-aborted,
.wpcf7-spam-blocked {
    border-color: #dc3545 !important;
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

/* Individual Field Errors */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Spinner */
.wpcf7-spinner {
    visibility: hidden;
}

.wpcf7-spinner.is-active {
    visibility: visible;
}

/* Make sure the response output is visible when it has content */
.wpcf7-response-output:not(:empty) {
    display: block !important;
}

/* css for add to cart: */
/* Container for the badge to allow AJAX swapping */
.header-cart-count-container {
    display: inline-block;
}

/* The orange badge styling */
.header-cart-link .badge {
    background-color: #EA580C !important; /* Your brand orange */
    color: white;
    line-height: 1;
    min-width: 1.25em;
    padding: 0.35em 0.45em;
}

/* Animation trigger */
.animate-pop {
    animation: cart-badge-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cart-badge-pop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}