﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #0F260E; /* header, footer */
    --secondary-green: #283618; /* buttons, accents */
    --accent-yellow: #DEC55F; /* summary cards, highlights */
    --cream-bg: #FEFAE0; /* main background */
    --light-cream: #FAF8F3; /* subtle background blocks */
    --orange-brown: #BC6C25; /* (spare) */
    --forest-green: #436B38; /* body text, headings */
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--forest-green);
    background-color: var(--cream-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.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;
}

/* Header Styles */
.header {
    background-color: var(--primary-green);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 3000;
    top: 0;
}

.navbar {
    position: relative;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

    .logo-circle:hover {
        transform: scale(1.05);
    }

    .logo-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.logo-text {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--forest-green);
}

.nav-menu {
    display: flex;
    flex: auto;
    list-style: none;
    gap: 2rem;
    margin: 0 0 0 40px;
    padding: 0;
}

    .nav-menu a {
        color: var(--text-light);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
        position: relative;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--accent-yellow);
        }

            .nav-menu a.active::after {
                content: '';
                position: absolute;
                bottom: -5px;
                left: 0;
                right: 0;
                height: 2px;
                background-color: var(--accent-yellow);
            }

.nav-icons {
    display: flex;
    gap: 1rem;
}

.search-btn,
.cart-btn,
.user-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

    .search-btn svg,
    .cart-btn svg,
    .user-btn svg {
        stroke: var(--text-light);
        transition: stroke 0.3s ease;
    }

    .search-btn:hover,
    .cart-btn:hover,
    .user-btn:hover {
        color: var(--accent-yellow);
    }

    .search-btn:hover svg,
    .cart-btn:hover svg,
    .user-btn:hover svg {
        stroke: var(--accent-yellow);
    }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background-color: var(--cream-bg);
    padding: 2rem 0;
    min-height: 360px;
    position: relative;
}

.hero-background {
    background: url('/images/hero_strawberries_spiral_1920x580.png') center/cover;
    border-radius: 10px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.produce-border {
    background: linear-gradient( rgba(15, 38, 14, 0.45), rgba(15, 38, 14, 0.45) );
    padding: 150px 20px;
    text-align: center;
}

.hero-content h1 {
    color: var(--cream-bg);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Products Showcase */
.products-showcase {
    background-color: var(--accent-yellow);
    padding: 2rem 0;
}
/*
    .products-showcase .container {
        
    }*/

    .products-showcase .products-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        align-items: center;
        justify-items: center;
        max-width: 1200px;
        max-width: fit-content;
        margin: 0 auto;
    }

.products-showcase .product-card {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--cream-bg);
}

    .products-showcase .product-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

    .products-showcase .product-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-logo {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-badge {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, #fff 30%, var(--accent-yellow) 70%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 5px solid var(--forest-green);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

    .logo-badge:hover {
        transform: scale(1.05);
    }

    .logo-badge img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.logo-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--forest-green);
    font-weight: 600;
}

/* About Section */
.about-section {
    background-color: var(--cream-bg);
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2rem;
    color: var(--forest-green);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--forest-green);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.cta-button {
    background-color: var(--cream-bg);
    color: var(--secondary-green);
    border: 2px solid var(--secondary-green);
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    padding: 6px 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

    .cta-button:hover {
        background-color: var(--secondary-green);
        color: var(--cream-bg);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

    .footer-nav a:hover {
        color: var(--accent-yellow);
    }

/*@media(max-width: 1198px) {

}*/

/* Responsive Design */
@media (max-width: 1198px) {
    .products-showcase .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

        /* hide first and last */
        .products-showcase .products-grid > :nth-child(1),
        .products-showcase .products-grid > :nth-child(5) {
            display: none;
        }

    /* .products-grid .product-card:nth-child(1),
    .products-grid .product-card:nth-child(5) {
        grid-column: none;
    } */

    .logo-center {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-green);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

        .nav-menu.active {
            display: flex;
        }

    .nav-wrapper {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .nav-wrapper .logo {
        order: 1;
        flex: 0 0 auto;
    }

    .nav-wrapper .nav-icons {
        order: 2;
        flex: 0 0 auto;
    }

    .nav-wrapper .mobile-menu-btn {
        order: 3;
        flex: 0 0 auto;
    }

    .products-showcase .products-grid {
        grid-template-columns: 1fr;
    }

        /* hide everything except item 3 */
        .products-showcase .products-grid > :not(:nth-child(3)) {
            display: none;
        }

    .logo-center {
        grid-column: span 2;
        grid-row: 2;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .products-showcase .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-showcase .product-card,
    .products-showcase .main-logo {
        width: 200px;
        height: 200px;
    }

    .products-showcase .about-text h2 {
        font-size: 1.5rem;
    }

    .products-showcase .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* LOGIN / REGISTER PANELS */
.login-panel,
.register-panel {
    position: fixed;
    top: 72px;
    right: 0;
    width: 32%;
    min-width: 360px;
    height: calc(100vh - 72px);
    background: rgba(40, 54, 24, 0.95); /* secondary green overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 2000;
}

/* Checkbox only controls slide-in */
#login-toggle:checked ~ .login-panel,
#login-toggle:checked ~ .register-panel {
    transform: translateX(0);
}

/* Which one is visible */
body.show-login .login-panel {
    opacity: 1;
    pointer-events: auto;
}

body.show-login .register-panel {
    opacity: 0;
    pointer-events: none;
}

body.show-register .login-panel {
    opacity: 0;
    pointer-events: none;
}

body.show-register .register-panel {
    opacity: 1;
    pointer-events: auto;
}

.login-inner {
    width: 80%;
    max-width: 360px;
}

    .login-inner h2 {
        margin-top: 0;
        margin-bottom: 24px;
        font-size: 22px;
        color: var(--text-light);
    }

.field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text-light);
}

.field-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: none;
    background: var(--accent-yellow);
    border-radius: 3px;
    font-size: 14px;
}

.error-message,
.warning-message {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.4;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.btn-link {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    margin-top: 4px;
}

.btn-link:hover {
    text-decoration: none;
}

.forgot-link {
    display: block;
    margin: 4px 0 22px;
    font-size: 11px;
    color: var(--accent-yellow);
    text-decoration: none;
}

.login-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

    .btn.yellow {
        background: var(--accent-yellow);
        color: var(--secondary-green);
    }

    .btn.yellow-outline {
        background: transparent;
        border: 2px solid var(--accent-yellow);
        color: var(--accent-yellow);
    }

/* PAGE BACKGROUND FOR CART */
.cart-page {
    background-color: var(--cream-bg);
    padding: 40px 0 80px;
    min-height: calc(100vh - 72px - 80px);
}

/* STEP INDICATOR */
.cart-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 32px;
}

.cart-step {
    text-align: center;
    font-size: 14px;
    color: var(--forest-green);
}

.cart-step-number {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    border: 1px solid var(--accent-yellow);
    background: var(--cream-bg);
}

.cart-step.active .cart-step-number {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.cart-step-label {
    margin-top: 10px;
}

.cart-step-line {
    flex: 1;
    border-bottom: 1px solid var(--accent-yellow);
    margin: 0 8px;
}

/* TITLE */
.cart-title {
    font-size: 26px;
    color: var(--forest-green);
    margin: 0 0 24px;
}

/* LAYOUT: TABLE + SUMMARY */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
    gap: 40px;
}

/* CART TABLE */
.cart-table {
    background: transparent;
    border-radius: 4px;
}

.cart-header-row,
.cart-row {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 2fr auto;
    align-items: center;
    column-gap: 24px;
}

.cart-header-row {
    font-size: 13px;
    font-weight: 600;
    color: var(--forest-green);
    border-bottom: 1px solid var(--accent-yellow);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

    .cart-header-row > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.sort-arrow {
    font-size: 18px;
    opacity: 0.8;
    margin-left: 8px;
}

/* Optional: ensure arrow sticks to right */
.cart-col-product .sort-arrow,
.cart-col-price .sort-arrow,
.cart-col-qty .sort-arrow,
.cart-col-subtotal .sort-arrow {
    margin-left: auto;
}

.cart-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--accent-yellow);
    font-size: 14px;
    color: var(--forest-green);
}

.cart-col-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .cart-col-product img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 1px;
    }

.product-name {
    font-weight: 500;
}

/* QTY controls */
.cart-col-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-bg);
    border: 1px solid var(--forest-green);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-sizing: content-box;
}

    .cart-col-qty * {
        border: none !important;
        box-shadow: none !important;
    }

.cart-header-row .cart-col-qty {
    border: none !important;
}

/* BUTTONS */
.cart-col-qty .qty-btn {
    width: 50px;
    height: 30px;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--forest-green) !important;
    border-radius: 6px;
}

    .cart-col-qty .qty-btn:last-child {
        border-right: none !important;
        border-left: 1px solid var(--forest-green) !important;
    }

/* VALUE TEXT */
.cart-col-qty .qty-value {
    width: 80px;
    height: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* remove button */
.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* SUMMARY CARD */
.cart-summary {
    background: var(--accent-yellow);
    padding: 24px 28px 28px;
    border-radius: 3px;
    align-self: flex-start;
    color: var(--primary-green);
}

.summary-title {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 18px;
    border-bottom: 1px solid var(--secondary-green);
    padding-bottom: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    margin-bottom: 10px;
}

.summary-separator-top {
    margin-top: 10px;
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--secondary-green);
    margin: 14px 0 16px;
}

.summary-total {
    font-size: 16px;
    margin-bottom: 24px;
}

.summary-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 3px;
    border: none;
    background: var(--secondary-green);
    color: var(--cream-bg);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .summary-btn:hover {
        background: var(--primary-green);
    }

/* simple responsive tweak */
@media (max-width: 960px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        order: -1;
        margin-bottom: 24px;
    }

    .cart-header-row,
    .cart-row {
        grid-template-columns: 2fr 1.5fr 2fr 1.5fr auto;
    }
}

/* SHARED PAGE BACKGROUND (cart + delivery + payment) */
.cart-page,
.checkout-page {
    background-color: var(--cream-bg);
    padding: 40px 0 80px;
    min-height: calc(100vh - 72px - 80px);
}

/* DELIVERY LAYOUT */
.delivery-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
    gap: 40px;
}

/* LEFT FORM */
.delivery-form {
    color: var(--forest-green);
}

.delivery-group {
    margin-bottom: 18px;
}

.delivery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

.delivery-group-title {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--forest-green);
}

.delivery-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 2px;
    border: none;
    background: var(--accent-yellow);
    font-size: 14px;
}

/* reuse summary-btn style from cart for main button */
.delivery-next {
    margin-top: 20px;
    max-width: 200px;
}

/* RIGHT: ORDER PREVIEW inside the yellow card */
.order-preview {
    align-self: flex-start;
}

.summary-small {
    margin-bottom: 14px;
}

.order-preview-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.order-preview-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 14px;
    padding: 8px 0;
}

.order-preview-thumb {
    width: 60px;
    height: 60px;
    background: var(--cream-bg);
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.order-preview-name {
    margin: 0 0 4px;
    font-size: 14px;
}

.order-preview-meta {
    margin: 0 0 6px;
    font-size: 12px;
}

.order-preview-details {
    font-size: 11px;
    text-decoration: none;
    color: var(--primary-green);
    border-bottom: 1px solid var(--primary-green);
}

.order-preview-separator {
    border: none;
    border-top: 1px solid #a3913c;
    margin: 8px 0;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .delivery-layout {
        grid-template-columns: 1fr;
    }

    .order-preview {
        order: -1;
        margin-bottom: 24px;
    }

    .delivery-row {
        grid-template-columns: 1fr;
    }
}

/* PAYMENT LAYOUT – same background as other checkout steps */
.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
    gap: 40px;
}

/* LEFT SIDE – Payment form */
.payment-form {
    color: var(--forest-green);
}

.payment-section {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--accent-yellow);
    padding-bottom: 20px;
}

    .payment-section.payment-terms {
        border-bottom: none;
        padding-bottom: 0;
    }

.payment-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--forest-green);
}

.payment-check,
.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

    .payment-check input,
    .payment-option input {
        width: 14px;
        height: 14px;
    }

/* button reuses summary-btn from cart; extra spacing */
.payment-btn {
    margin-top: 24px;
    max-width: 220px;
}

/* RIGHT SIDE – summary tweaks for payment page */
.payment-summary {
    align-self: flex-start;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-summary {
        order: -1;
        margin-bottom: 24px;
    }
}


/*.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}*/

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #95d5b2; 
    color: #1b4332; 
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* here is the cart page */
/* Cart Page */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

    .cart-header h1 {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 2rem;
        color: #2d6a4f;
    }

        .cart-header h1 svg {
            stroke: #2d6a4f;
        }

.continue-shopping {
    color: #2d6a4f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

    .continue-shopping:hover {
        color: #40916c;
    }

/* Empty Cart */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

    .empty-cart svg {
        stroke: #d0d0d0;
        margin-bottom: 1.5rem;
    }

    .empty-cart h2 {
        color: #666;
        margin-bottom: 0.5rem;
    }

    .empty-cart p {
        color: #999;
        margin-bottom: 2rem;
    }

/* Loading */
.cart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2d6a4f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Cart Grid */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

@media (max-width: 968px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

/* Cart Items Section */
.cart-items-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .cart-items-header h2 {
        font-size: 1.5rem;
        color: #2d6a4f;
    }

.clear-cart-btn {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

    .clear-cart-btn:hover {
        background: #dc3545;
        color: white;
    }

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

    .cart-item:last-child {
        border-bottom: none;
    }

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.item-details h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.item-price {
    color: #666;
    font-size: 0.9rem;
}

/* Quantity Controls */
.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d0d0d0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .qty-btn:hover {
        background: #f5f5f5;
        border-color: #2d6a4f;
    }

    .qty-btn svg {
        stroke: #666;
    }

.qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1rem;
}

.item-subtotal strong {
    font-size: 1.1rem;
    color: #2d6a4f;
}

.item-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff5f5;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .item-remove:hover {
        background: #dc3545;
    }

        .item-remove:hover svg {
            stroke: white;
        }

    .item-remove svg {
        stroke: #dc3545;
    }

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .summary-card h3 {
        font-size: 1.3rem;
        color: #2d6a4f;
        margin-bottom: 1.5rem;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: #666;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 1rem 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d6a4f;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-checkout:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
    }

.trust-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

    .badge svg {
        stroke: #2d6a4f;
    }

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

    .btn-primary:hover {
        transform: translateY(-2px);
    }

/* ========================================
   USER DROPDOWN STYLES (Header specific)
   ======================================== */

/* Dropdown container */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 1000;
}

.user-dropdown-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    animation: userDropdownSlideDown 0.2s ease;
}

@keyframes userDropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-header {
    padding: 1rem;
}

    .user-dropdown-header strong {
        display: block;
        color: #2d3436;
        margin-bottom: 0.25rem;
    }

    .user-dropdown-header small {
        color: #6c757d;
        font-size: 0.85rem;
    }

.user-dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #2d3436;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    font-family: inherit;
}

    .user-dropdown-item:hover {
        background: #f8f9fa;
    }

    .user-dropdown-item svg {
        color: #6c757d;
        flex-shrink: 0;
    }

    /* Admin menu item styling */
    .user-dropdown-item.user-dropdown-admin-link {
        color: #3498db !important;
        font-weight: 600;
    }

        .user-dropdown-item.user-dropdown-admin-link svg {
            color: #3498db !important;
        }

    /* Logout menu item styling */
    .user-dropdown-item.user-dropdown-logout {
        color: #e74c3c;
    }

        .user-dropdown-item.user-dropdown-logout svg {
            color: #e74c3c;
        }

/* Ensure dropdown parent has relative positioning */
.header .nav-icons {
    position: relative;
}

/* ========================================
   USER ORDERS PAGE STYLES
   ======================================== */

.orders-page {
    background-color: var(--cream-bg);
    padding: 40px 0 80px;
    min-height: calc(100vh - 72px - 80px);
}

.page-header {
    margin-bottom: 2rem;
}

    .page-header h1 {
        font-size: 2rem;
        color: var(--forest-green);
        font-weight: 700;
    }

/* Loading/Empty States */
.loading-state, .empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h2 {
    color: var(--forest-green);
    margin: 1rem 0 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

/* Orders Container */
.orders-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Order Card */
.order-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .order-card.expanded {
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

/* Order Header (clickable) */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    background: var(--accent-yellow);
}

    .order-header:hover {
        background: #d4b84f;
    }

.order-main-info {
    flex: 1;
}

.order-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-green);
}

.order-divider {
    color: var(--forest-green);
}

.order-summary-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.order-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--forest-green);
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--cream-bg);
    color: var(--forest-green);
}

/* Order Details (expandable) */
.order-details {
    padding: 2rem;
    background: var(--light-cream);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-yellow);
}

.info-item {
    font-size: 0.95rem;
}

.info-label {
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--secondary-green);
}

/* Order Items */
.order-items-section {
    margin-top: 1.5rem;
}

.order-items-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.order-item-name {
    font-weight: 600;
    color: var(--forest-green);
}

.order-item-details {
    color: var(--secondary-green);
    font-size: 0.9rem;
    text-align: right;
}

.order-total {
    padding: 1rem;
    background: var(--accent-yellow);
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--forest-green);
    border-radius: 8px;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .order-summary-info {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-item-details {
        text-align: left;
    }
}

/* ========================================
   USER PROFILE PAGE STYLES
   ======================================== */

.profile-page {
    background-color: var(--cream-bg);
    padding: 40px 0 80px;
    min-height: calc(100vh - 72px - 80px);
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

/* Profile Form */
.profile-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-section-title {
    font-size: 1.3rem;
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--secondary-green);
    color: var(--secondary-green);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: var(--secondary-green);
    color: white;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-info-card,
.profile-links-card {
    background: var(--accent-yellow);
    padding: 1.5rem;
    border-radius: 12px;
}

.profile-info-title {
    font-size: 1.1rem;
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(67, 107, 56, 0.2);
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-weight: 600;
    color: var(--forest-green);
    font-size: 0.9rem;
}

.profile-info-value {
    color: var(--secondary-green);
    font-weight: 500;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--forest-green);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.profile-link:hover {
    background: rgba(67, 107, 56, 0.1);
}

.profile-link svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-form {
        padding: 1.5rem;
    }

    .profile-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .summary-btn {
        width: 100%;
    }
}

.profile-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--light-cream);
}

.modal-header h2 {
    color: var(--forest-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--forest-green);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--light-cream);
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn-cancel,
    .modal-actions .summary-btn {
        width: 100%;
    }
}

/* Contact Page Styles */
.contact-section {
    background-color: var(--cream-bg);
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.contact-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--forest-green);
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--forest-green);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-card a {
    color: var(--forest-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form-container h2 {
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--forest-green);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--forest-green);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .submit-btn:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 2rem 0;
    }
}
