/* Modern Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Green Olive Color Palette */
:root {
    --gold: #D4AF37;
    --light-gold: #E8C547;
    --olive: #6B8E23;          /* Olive Drab Green */
    --dark-olive: #556B2F;     /* Dark Olive Green */
    --light-olive: #9ACD32;    /* Yellow Green */
    --medium-olive: #808000;   /* Olive */
    --cream: #F5F5DC;
    --pure-white: #FFFFFF;
    --brown: #654321;
    --dark-brown: #4A2C17;
    --light-brown: #8B6F47;
    --soft-shadow: rgba(0, 0, 0, 0.1);
    --medium-shadow: rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --small-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--pure-white) 100%);
    color: var(--dark-brown);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
}

/* Elegant decorative elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--olive) 50%, var(--gold) 100%);
    z-index: 100;
}

/* CSS Sprite Base Classes */
.sprite-logo {
    background-image: url('attached_assets/logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    width: 120px;
    height: 80px;
    background-position: center;
    filter: drop-shadow(3px 3px 0 var(--gold));
}

.sprite-product {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 250px;
    height: 250px;
    background-color: white;
    border: var(--pixel-border) solid var(--brown);
    margin-bottom: 15px;
    padding: 10px;
}

.sprite-product-smooth {
    background-image: url('attached_assets/1000031226.jpg');
}

.sprite-product-organic {
    background-image: url('attached_assets/1000031227.jpg');
}

.sprite-product-premium {
    background-image: url('attached_assets/1000031223.png');
}

.sprite-icon {
    background-image: url('sprites/icon-sprite.svg');
    background-repeat: no-repeat;
    background-size: 96px 32px; /* Total sprite sheet size */
    width: 32px;
    height: 32px;
}

.hamburger-icon {
    background-position: 0 0;
    width: 24px;
    height: 24px;
}

/* Modern Header */
header {
    background: linear-gradient(135deg, var(--dark-olive) 0%, var(--olive) 100%);
    padding: 0;
    box-shadow: 0 4px 20px var(--soft-shadow);
    position: relative;
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: var(--small-radius);
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--pure-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--gold);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }
    
    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 1.1rem;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-wrapper {
        padding: 10px 15px;
        position: relative;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Modern Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(85, 107, 47, 0.8), rgba(107, 142, 35, 0.6)),
                url('attached_assets/olives.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(27, 54, 93, 0.4) 100%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--pure-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--pure-white);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

/* Modern Button */
.pixel-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--dark-olive);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
}

.pixel-btn:hover {
    background: linear-gradient(135deg, var(--light-gold), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: var(--dark-olive);
}

/* Modern Products Section */
.products {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--pure-white) 0%, var(--cream) 100%);
}

.products h2 {
    color: var(--primary);
    margin-bottom: 50px;
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 2px;
}

/* Modern Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: var(--pure-white);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--soft-shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--light-gold));
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--medium-shadow);
}

.product-img {
    width: 100%;
    height: 280px;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: var(--small-radius);
    box-shadow: 0 4px 15px var(--soft-shadow);
    background: var(--pure-white);
    object-fit: contain;
    padding: 15px;
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--dark-olive);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-card p {
    margin-bottom: 15px;
    color: var(--light-brown);
    line-height: 1.6;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: var(--small-radius);
    margin-bottom: 20px;
    background: var(--pure-white);
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
}

/* Product Detail Page Styles */
.product-detail {
    padding: 40px 0;
    min-height: 80vh;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--light-brown);
}

.breadcrumb a {
    color: var(--olive);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--dark-olive);
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.product-image-section {
    text-align: center;
}

.main-product-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px var(--soft-shadow);
    background: var(--pure-white);
    padding: 20px;
    object-fit: contain;
}

.product-info-section h1 {
    font-size: 2.5rem;
    color: var(--dark-olive);
    margin-bottom: 10px;
    font-weight: 700;
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--light-brown);
    margin-bottom: 20px;
    font-style: italic;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
}

.rating-text {
    color: var(--light-brown);
    font-size: 0.9rem;
}

.product-price {
    margin-bottom: 30px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-olive);
}

.price-unit {
    color: var(--light-brown);
    font-size: 1rem;
}

.product-highlights {
    background: var(--cream);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 111, 71, 0.2);
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-item strong {
    color: var(--dark-olive);
}

.highlight-item span {
    color: var(--light-brown);
    text-align: right;
}

.product-details-tabs {
    margin-bottom: 60px;
}

.tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--cream);
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    color: var(--light-brown);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--dark-olive);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

.tab-btn:hover {
    color: var(--olive);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.tab-content h3 {
    color: var(--dark-olive);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tab-content h4 {
    color: var(--olive);
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--cream);
    border-radius: var(--small-radius);
}

.spec-item strong {
    color: var(--dark-olive);
}

.spec-item span {
    color: var(--light-brown);
}

.review-item {
    background: var(--cream);
    padding: 20px;
    border-radius: var(--small-radius);
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-olive);
}

.usage-section ul {
    margin-bottom: 25px;
}

.usage-section li {
    margin-bottom: 8px;
    color: var(--light-brown);
}

.related-products {
    border-top: 2px solid var(--cream);
    padding-top: 40px;
}

.related-products h3 {
    color: var(--dark-olive);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-item {
    text-align: center;
    background: var(--pure-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--soft-shadow);
}

.related-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    border-radius: var(--small-radius);
}

.related-item h4 {
    color: var(--dark-olive);
    margin-bottom: 10px;
}

.related-item p {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.btn-secondary {
    background: var(--olive);
    color: var(--pure-white);
    padding: 10px 20px;
    border-radius: var(--small-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--dark-olive);
    transform: translateY(-2px);
}

/* Mobile responsiveness for product details */
@media (max-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-info-section h1 {
        font-size: 2rem;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Add to Cart Button Styles */
.cta-button {
    background: linear-gradient(135deg, var(--olive) 0%, var(--dark-olive) 100%);
    color: var(--pure-white);
    padding: 18px 40px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(75, 123, 75, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--dark-olive) 0%, #2d5016 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(75, 123, 75, 0.4);
}

.cta-button::after {
    content: '🛒';
    font-size: 1.1rem;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(75, 123, 75, 0.3);
}

/* Cart Styles */
.cart-icon {
    position: relative;
    margin-left: 20px;
}

.cart-icon a {
    text-decoration: none;
    color: var(--dark-olive);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background: var(--gold);
    color: var(--pure-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
}

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--olive);
    color: var(--pure-white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--soft-shadow);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content button {
    background: none;
    border: none;
    color: var(--pure-white);
    font-size: 1.2rem;
    cursor: pointer;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart Page Styles */
.cart-page {
    min-height: 80vh;
    padding: 40px 0;
}

.cart-page h1 {
    color: var(--dark-olive);
    margin-bottom: 30px;
    text-align: center;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.cart-items {
    background: var(--pure-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 15px var(--soft-shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--small-radius);
}

.cart-item-details h4 {
    color: var(--dark-olive);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--gold);
    font-weight: 600;
}

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

.quantity-btn {
    background: var(--olive);
    color: var(--pure-white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.quantity-btn:hover {
    background: var(--dark-olive);
}

.quantity {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-weight: bold;
    color: var(--dark-olive);
}

.remove-item {
    background: #dc3545;
    color: var(--pure-white);
    border: none;
    padding: 5px 10px;
    border-radius: var(--small-radius);
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-item:hover {
    background: #c82333;
}

.cart-summary {
    background: var(--pure-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 15px var(--soft-shadow);
    height: fit-content;
}

.cart-summary h3 {
    color: var(--dark-olive);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.total-row {
    border-top: 2px solid var(--olive);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--dark-olive);
    margin-top: 15px;
    padding-top: 15px;
}

.checkout-btn {
    width: 100%;
    background: var(--gold);
    color: var(--pure-white);
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0 10px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #b8860b;
    transform: translateY(-2px);
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--olive);
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    margin-top: 15px;
    border: 1px solid var(--olive);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    color: var(--dark-olive);
    background-color: #f8faf5;
    border-color: var(--dark-olive);
}

.empty-cart {
    text-align: center;
    color: var(--light-brown);
    font-size: 1.2rem;
    padding: 40px;
}

/* Mobile Cart Styles */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr auto;
        gap: 10px;
    }
    
    .cart-item-controls,
    .cart-item-total {
        grid-column: 2 / -1;
        justify-self: start;
        margin-top: 10px;
    }
    
    .cart-item-total {
        justify-self: end;
        margin-top: 0;
    }
}

/* Checkout Page Styles */
.checkout-page {
    min-height: 80vh;
    padding: 40px 0;
}

.checkout-page h1 {
    color: var(--dark-olive);
    margin-bottom: 30px;
    text-align: center;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 30px;
}

.checkout-form-section h2,
.order-summary-section h2 {
    color: var(--dark-olive);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--olive);
    padding-bottom: 10px;
}

.checkout-form {
    background: var(--pure-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--soft-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-olive);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--small-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--olive);
}

.submit-order-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: var(--pure-white);
    border: none;
    padding: 18px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.submit-order-btn:hover {
    background: linear-gradient(135deg, #b8860b 0%, #9a7209 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.order-summary-section {
    background: var(--pure-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--soft-shadow);
    height: fit-content;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--small-radius);
}

.order-item-details h4 {
    color: var(--dark-olive);
    margin-bottom: 5px;
    font-size: 1rem;
}

.order-item-details p {
    color: var(--light-brown);
    margin: 2px 0;
    font-size: 0.9rem;
}

.item-total {
    color: var(--gold);
    font-weight: 600;
}

.order-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.final-total {
    border-top: 2px solid var(--olive);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--dark-olive);
    margin-top: 15px;
    padding-top: 15px;
}

.payment-info {
    margin-top: 25px;
    padding: 20px;
    background: var(--cream);
    border-radius: var(--small-radius);
}

.payment-info h3 {
    color: var(--dark-olive);
    margin-bottom: 10px;
}

.payment-info p {
    color: var(--light-brown);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-methods span {
    background: var(--pure-white);
    padding: 8px 12px;
    border-radius: var(--small-radius);
    font-size: 0.8rem;
    color: var(--dark-olive);
    border: 1px solid #ddd;
}

.empty-order {
    text-align: center;
    color: var(--light-brown);
    padding: 20px;
}

.empty-order a {
    color: var(--olive);
    text-decoration: none;
    font-weight: 600;
}

.empty-order a:hover {
    color: var(--dark-olive);
}

/* Mobile Checkout Styles */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkout-form,
    .order-summary-section {
        padding: 20px;
    }
    
    .order-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-item-image {
        width: 50px;
        height: 50px;
        align-self: flex-start;
    }
}

/* Modern Footer */
footer {
    background: linear-gradient(135deg, var(--dark-olive) 0%, var(--olive) 100%);
    color: var(--pure-white);
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--light-gold));
}

footer p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
    }

    nav ul.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    body {
        border-width: 3px;
    }

    .sprite-logo {
        width: 90px;
        height: 60px;
    }

    .sprite-product {
        width: 100%;
        max-width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recipe-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero p {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sprite-logo {
        width: 80px;
        height: 50px;
    }

    .sprite-product {
        width: 100%;
        max-width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .product-card {
        padding: 15px;
        text-align: center;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }

    .product-card p {
        font-size: 0.9rem;
    }

    .recipe-img {
        height: 150px;
    }

    .recipe-card {
        padding: 15px;
    }

    .recipe-card h3 {
        font-size: 1.1rem;
    }

    .recipe-card p {
        font-size: 0.9rem;
    }

    /* Fix header spacing on mobile */
    header {
        padding: 10px;
    }

    .logo-container {
        order: 2;
        flex: 1;
        text-align: center;
    }

    .menu-toggle {
        order: 1;
        padding: 8px 12px;
    }

    nav {
        order: 3;
        width: 100%;
    }
}

/* About Page Styles */
.about-content {
    padding: 40px 20px;
    background-color: var(--cream);
}

.about-content .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    color: var(--dark-olive);
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold);
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Recipes Page Styles */
.recipes-page {
    padding: 40px 20px;
}

.recipes-page h1 {
    text-align: center;
    color: var(--dark-olive);
    margin-bottom: 40px;
    font-size: 2rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.recipe-card {
    background: var(--cream);
    border: var(--pixel-border) solid var(--olive);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recipe-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 8px 8px 0 var(--gold);
}

.recipe-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: var(--pixel-border) solid var(--brown);
    margin-bottom: 15px;
    image-rendering: auto;
}

.recipe-card h3 {
    font-size: 1.3rem;
    color: var(--dark-olive);
    margin-bottom: 10px;
}

.recipe-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Recipe Details Styles */
.recipe-details {
    padding: 20px 0;
    text-align: left;
    border-top: 2px solid var(--brown);
    margin-top: 15px;
}

.cooking-time {
    background: var(--gold);
    color: var(--dark-olive);
    padding: 8px 12px;
    border: var(--pixel-border) solid var(--dark-olive);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    display: inline-block;
}

.recipe-details h4 {
    color: var(--dark-olive);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 15px;
    border-bottom: 1px solid var(--olive);
    padding-bottom: 5px;
}

.recipe-details h4:first-of-type {
    margin-top: 0;
}

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

.ingredients li {
    padding: 4px 0;
    color: var(--brown);
    font-size: 0.9rem;
    position: relative;
    padding-left: 15px;
    line-height: 1.4;
}

.ingredients li:before {
    content: "•";
    color: var(--olive);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.instructions ol {
    padding-left: 20px;
    margin: 0;
}

.instructions li {
    padding: 6px 0;
    color: var(--brown);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.instructions li:last-child {
    margin-bottom: 0;
}

/* More Details Button */
.more-details-btn {
    background: var(--olive);
    color: var(--pure-white);
    border: var(--pixel-border) solid var(--dark-olive);
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    margin: 15px 0 10px 0;
    transition: all 0.3s ease;
    font-family: inherit;
}

.more-details-btn:hover {
    background: var(--dark-olive);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--gold);
}

.more-details-btn.expanded {
    background: var(--gold);
    color: var(--dark-olive);
}

/* Contact Page Styles */
.contact-page {
    padding: 40px 20px;
}

.contact-page h1 {
    text-align: center;
    color: var(--dark-olive);
    margin-bottom: 40px;
    font-size: 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: var(--cream);
    border: var(--pixel-border) solid var(--olive);
    padding: 30px;
}

.contact-form h2 {
    color: var(--dark-olive);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--brown);
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: var(--pixel-border) solid var(--brown);
    background-color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--olive);
}

.contact-info {
    background: var(--cream);
    border: var(--pixel-border) solid var(--olive);
    padding: 30px;
}

.contact-info h2 {
    color: var(--dark-olive);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-map {
    border: var(--pixel-border) solid var(--brown);
    overflow: hidden;
}

#form-message {
    margin-top: 10px;
    font-weight: bold;
    padding: 10px;
    border: 2px solid transparent;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 30px 15px;
    }
}

/* Preload sprites for better performance */
.sprite-preload {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sprite-preload::after {
    content: '';
    background-image: 
        url('sprites/logo-sprite.svg'),
        url('sprites/product-sprite.svg'),
        url('sprites/icon-sprite.svg');
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
}

/* Volume selection styles */
.volume-selection {
    margin: 20px 0;
}

.volume-selection h3 {
    color: #4a5d23;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.volume-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.volume-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.volume-option:hover {
    border-color: #8b9f47;
    background-color: #f8faf5;
}

.volume-option input[type="radio"] {
    display: none;
}

.volume-option input[type="radio"]:checked + .volume-info {
    color: #4a5d23;
    font-weight: bold;
}

.volume-option input[type="radio"]:checked {
    + .volume-info .volume {
        color: #4a5d23;
    }
    + .volume-info .price {
        color: #8b9f47;
        font-weight: bold;
    }
}

.volume-option:has(input[type="radio"]:checked) {
    border-color: #4a5d23;
    background-color: #f0f4e8;
    box-shadow: 0 2px 8px rgba(74, 93, 35, 0.2);
}

.volume-info {
    display: block;
}

.volume-info .volume {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.volume-info .price {
    display: block;
    font-size: 1.1em;
    color: #8b9f47;
    font-weight: 500;
}

/* Enhanced Footer Styles */
.enhanced-footer {
    background: linear-gradient(135deg, #4a5d23 0%, #6b7c3a 100%);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    background: transparent !important;
    padding: 0;
}

.footer-section.contact-info {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #8b9f47;
    padding-bottom: 5px;
    display: inline-block;
    background: transparent;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

.company-tagline {
    color: #ffffff;
    line-height: 1.5;
    font-style: italic;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ffffff;
}

.contact-icon {
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 8px;
}

.quick-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.social-icon {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.social-icon:hover {
    color: #ffffff;
}

.quality-badge {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9em;
}

.footer-bottom {
    border-top: 1px solid #6b7c3a;
    padding-top: 20px;
    text-align: center;
    color: #ffffff;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .enhanced-footer {
        padding: 30px 0 15px;
    }
    
    .social-icons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
}
