/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

/* Color Palette - Fresh and Natural */
:root {
    --primary-green: #2D5016;      /* Deep forest green */
    --secondary-green: #4CAF50;    /* Fresh green */
    --accent-orange: #FF8C00;      /* Vibrant orange */
    --accent-yellow: #FFD700;      /* Golden yellow */
    --neutral-beige: #F5F5DC;      /* Cream beige */
    --neutral-white: #FFFFFF;      /* Pure white */
    --text-dark: #2C3E50;          /* Dark blue-gray */
    --text-light: #7F8C8D;         /* Light gray */
    --error-red: #E74C3C;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Typography */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--neutral-white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--neutral-white);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
    background-color: var(--neutral-beige);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.7) 0%, rgba(76, 175, 80, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--neutral-white);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--neutral-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 140, 0, 0.4);
    background: linear-gradient(45deg, var(--accent-yellow), var(--accent-orange));
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: var(--neutral-beige);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--neutral-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-content {
        flex-grow: 1;
}

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

.product-card:hover::before {
    left: 100%;
}

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

.product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card:hover .product-image {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--neutral-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 2rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--neutral-beige);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

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

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
    object-fit: cover;
}


/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--neutral-beige);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 3rem;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    border-radius: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--neutral-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-right: 1rem;
    width: 30px;
}

.info-item p {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-form {
    background: var(--neutral-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-green);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.error-message {
    color: var(--error-red);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none; /* Hide by default */
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--neutral-white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--neutral-white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-yellow);
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--neutral-white);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--accent-yellow);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-orange);
    color: var(--neutral-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-yellow);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--neutral-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 70px; 
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--neutral-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px var(--shadow);
        gap: 1.5rem;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .logo-img {
        height: 45px;
        max-width: 200px;
    }
    
    .header .container {
        padding: 0.75rem 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* --- END OF ORIGINAL style.css --- */


/* --- START OF TASK 2 STYLES (Product Filters) --- */

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--primary-green);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-icon-wrapper:hover {
        background-color: var(--neutral-beige);
}

#cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-orange);
    color: var(--neutral-white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(30%, -30%);
    border: 2px solid var(--neutral-white);
}

    @media (max-width: 768px) {
    .cart-icon-wrapper {
        font-size: 1.8rem;
    }
    }

.product-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--neutral-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .product-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

    @media (min-width: 1024px) {
    .product-filters {
        grid-template-columns: 1.5fr 1fr 1fr;
        align-items: center;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.search-bar {
    position: relative;
}

#search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--primary-green);
    background: var(--neutral-white);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-green);
    color: var(--neutral-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.price-filter {
    display: flex;
    flex-direction: column;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#price-value {
    font-weight: 700;
    color: var(--accent-orange);
    font-size: 1.1rem;
}

#price-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
}

#price-slider:hover {
    opacity: 1;
}

#price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--neutral-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--neutral-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary-green);
    color: var(--neutral-white);
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.add-to-cart-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.add-to-cart-btn .fa-cart-plus {
    margin-right: 0.5rem;
}

#no-products-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 3rem 1rem;
    grid-column: 1 / -1;
}

/* --- END OF TASK 2 STYLES --- */


/* --- START OF NEW TASK 3 STYLES --- */

/* Page Hiding */
.page.hidden {
    display: none;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--neutral-white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E0E0E0;
}

.cart-header h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.close-cart-btn {
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-cart-btn:hover {
    color: var(--error-red);
    transform: rotate(90deg);
}

/* Cart Items */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.empty-cart-message {
    display: none;
    text-align: center;
    padding-top: 4rem;
    color: var(--text-light);
}

.empty-cart-message.active {
  display: block;
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #F0F0F0;
    /* Animation */
    animation: slideIn 0.3s ease forwards;
}

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

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #E0E0E0;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-right: 1rem;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
}

.quantity-btn {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: background 0.2s;
}
.quantity-btn:hover {
    background: var(--neutral-beige);
}

.item-quantity {
    width: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
    padding: 0.5rem 0;
    -moz-appearance: textfield; /* Firefox */
}
/* Hide arrows for number input */
.item-quantity::-webkit-outer-spin-button,
.item-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--error-red);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.remove-item-btn:hover {
    transform: scale(1.1);
}

/* Cart Footer (Summary) */
.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #E0E0E0;
    background: #F9F9F9;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cart-summary-row.discount {
    color: var(--secondary-green);
    font-weight: 600;
}

.cart-summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #E0E0E0;
}

.cart-checkout-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--neutral-white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

/* Advanced Toast Notification */
#toast-notification {
    position: fixed;
    bottom: -100px;
    right: 30px;
    min-width: 320px;
    max-width: 400px;
    background: var(--neutral-white);
    color: var(--text-dark);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    border-left: 5px solid var(--secondary-green);
}

#toast-notification.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.toast-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-green), #66BB6A);
    color: var(--neutral-white);
    font-size: 1.3rem;
    animation: iconPop 0.5s ease;
}

@keyframes iconPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.toast-message {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.toast-close:hover {
    background: var(--neutral-beige);
    color: var(--text-dark);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-green), #66BB6A);
    width: 100%;
    transform-origin: left;
    animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Toast variants */
#toast-notification.success {
    border-left-color: var(--secondary-green);
}

#toast-notification.success .toast-icon {
    background: linear-gradient(135deg, var(--secondary-green), #66BB6A);
}

#toast-notification.error {
    border-left-color: var(--error-red);
}

#toast-notification.error .toast-icon {
    background: linear-gradient(135deg, var(--error-red), #E57373);
}

#toast-notification.warning {
    border-left-color: var(--accent-orange);
}

#toast-notification.warning .toast-icon {
    background: linear-gradient(135deg, var(--accent-orange), #FFB74D);
}

#toast-notification.info {
    border-left-color: #2196F3;
}

#toast-notification.info .toast-icon {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
}

/* Mobile responsive toast */
@media (max-width: 768px) {
    #toast-notification {
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
    }
    
    #toast-notification.show {
        bottom: 20px;
    }
    
    .toast-content {
        padding: 1rem;
    }
    
    .toast-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Order Summary Page */
#summary-page {
    padding-top: 120px; /* Account for fixed header */
    padding-bottom: 5rem;
    min-height: 100vh;
    background: var(--neutral-beige);
}

.summary-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--neutral-white);
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
    overflow: hidden;
}

.summary-header {
    padding: 2rem 2.5rem;
    background: var(--primary-green);
    color: var(--neutral-white);
}

.summary-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.summary-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.summary-body {
    padding: 2.5rem;
}

.summary-body h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    border-bottom: 2px solid var(--neutral-beige);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

#summary-list {
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #F0F0F0;
}

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

.summary-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.summary-item-info {
    flex-grow: 1;
}

.summary-item-info h4 {
    font-weight: 600;
}

.summary-item-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.summary-item-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-green);
}

#summary-totals {
    background: #F9F9F9;
    border-radius: 10px;
    padding: 1.5rem;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.summary-actions .back-to-shop-btn {
    background: var(--text-light);
    color: var(--neutral-white);
}
.summary-actions .back-to-shop-btn:hover {
        background: var(--text-dark);
}


/* Navigation Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#nav-auth-links {
    display: flex;
    gap: 0.5rem;
}

.nav-auth .nav-link {
    padding: 0.5rem 1rem;
}

#nav-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#nav-user-info span {
    font-weight: 500;
}

#logout-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

#logout-btn:hover {
    color: var(--error-red);
}

/* Hide elements utility */
.hidden {
    display: none !important;
}

/* Account/Auth Page */
#account-page {
    padding-top: 120px; /* Account for fixed header */
    padding-bottom: 5rem;
    min-height: 100vh;
    background: var(--neutral-beige);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--neutral-white);
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
    overflow: hidden;
}



.auth-tabs {
    display: flex;
}

.auth-tab {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background: #f0f0f0;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--neutral-white);
    color: var(--primary-green);
    border-bottom-color: var(--accent-orange);
}

.auth-form {
    padding: 2.5rem;
}

.auth-form h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

/* Account Info & Order History */
.account-info-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--neutral-white);
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
    overflow: hidden;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: var(--primary-green);
    color: var(--neutral-white);
}

.account-header h2 {
    color: var(--neutral-white);
    font-size: 2rem;
    margin: 0;
}

.account-info-content {
    padding: 2.5rem;
}

.account-header .logout-btn-desktop {
    background: var(--error-red);
    color: var(--neutral-white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-header .logout-btn-desktop:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.order-history-list {
    margin-top: 2rem;
}

.order-history-list h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.order-item {
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--neutral-white);
    border-bottom: 1px solid #f0f0f0;
}

.order-item-header h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.order-item-header span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.order-item-header .order-total {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.order-item-body {
    padding: 1.5rem;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.order-product:last-child {
    margin-bottom: 0;
}

.order-product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.order-product-info {
    flex-grow: 1;
}

.order-product-info .name {
    font-weight: 600;
}
.order-product-info .qty {
    font-size: 0.9rem;
    color: var(--text-light);
}

.order-product-price {
    font-weight: 600;
}

#no-orders-message {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-orange);
    color: var(--neutral-white);
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 10;
}

.stock-badge.out-of-stock {
    background: var(--error-red);
}

/* Disabled Add to Cart Button */
.add-to-cart-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn:disabled:hover {
    background: var(--text-light);
}

/* Responsive fixes for new nav */
@media (max-width: 768px) {
    .nav-auth {
        /* Move auth links and cart into the hamburger menu */
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        border-top: 1px solid #f0f0f0;
        gap: 1.5rem;
    }
    
    #nav-user-info {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    #logout-btn {
        background: var(--error-red);
        color: var(--neutral-white);
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 600;
        width: 80%;
        text-align: center;
    }
    
    .nav-list {
        /* Re-add cart icon to nav list for mobile */
        gap: 0.5rem;
    }
    
    .nav-list li.cart-icon-li {
        display: none; /* Hide original cart icon li */
    }

    .account-header .logout-btn-desktop {
        display: none;
    }
}

@media (min-width: 769px) {
    #account-page .logout-btn-mobile {
        display: none;
    }
}