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

:root {
    --primary-color: #2d5016;
    --secondary-color: #8db596;
    --accent-color: #f5a623;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background: #fafafa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    animation: fadeIn 1s ease 0.6s both;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

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

.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a, .footer-social a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--secondary-color);
}

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

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: block;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

/* Farmy Chatbot */
.farmy-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.farmy-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.farmy-toggle:hover {
    transform: scale(1.1);
}

.farmy-toggle img {
    width: 24px;
    height: 24px;
}

.farmy-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.farmy-chat-window.active {
    display: flex;
}

.farmy-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.farmy-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.farmy-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.farmy-message {
    padding: 0.75rem;
    border-radius: var(--radius);
    max-width: 80%;
}

.farmy-message.bot {
    background: var(--secondary-color);
    color: var(--text-dark);
    align-self: flex-start;
}

.farmy-message.user {
    background: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
}

.farmy-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.farmy-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}

.farmy-input button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .farmy-chat-window {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

    .farmy-chat-window {
        width: 280px;
        right: -20px;
    }
}

/* Basket Builder Styles */
.builder-container {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.builder-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* Basket Type Selection */
.basket-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.basket-type-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.basket-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.basket-type-card.selected {
    border-color: var(--primary-color);
    background: rgba(45, 80, 22, 0.05);
}

.basket-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Size Selection */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.size-option {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.size-option:hover {
    transform: translateY(-3px);
}

.size-option.selected {
    border-color: var(--primary-color);
    background: rgba(45, 80, 22, 0.05);
}

.size-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* Capacity Meter */
.capacity-meter {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meter-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: #27ae60;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 0%;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

/* Basket Sidebar */
.basket-sidebar {
    position: fixed;
    top: 80px;
    right: -400px;
    width: 350px;
    height: calc(100vh - 80px);
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.basket-sidebar.active {
    right: 0;
}

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

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.basket-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.empty-basket {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
}

.basket-summary {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    color: var(--text-light);
}

.modal-body {
    padding: 2rem;
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-product img {
    width: 100%;
    border-radius: var(--radius);
}

.farmer-info, .qr-code {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.qr-placeholder {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* Flying Animation */
@keyframes flyToBasket {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.5) translate(-100px, -100px);
        opacity: 0;
    }
}

.flying-product {
    animation: flyToBasket 0.8s ease forwards;
}

/* Responsive Design for Builder */
@media (max-width: 768px) {
    .builder-container {
        padding: 1rem;
    }
    
    .basket-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-product {
        grid-template-columns: 1fr;
    }
    
    .basket-type-grid,
    .size-options {
        grid-template-columns: 1fr;
    }
}

/* Checkout Styles */
.checkout-container {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.checkout-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.order-summary, .customer-info, .payment-method {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.payment-method {
    grid-column: 1 / -1;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.summary-totals {
    border-top: 2px solid #eee;
    padding-top: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background: rgba(45, 80, 22, 0.05);
}

.payment-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.payment-info h4 {
    margin-bottom: 0.25rem;
}

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

/* Payment Instructions */
.payment-instructions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.instructions-content h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.instructions-content ol {
    margin-left: 1.5rem;
}

.instructions-content li {
    margin-bottom: 0.5rem;
}

/* About Page Styles */
.about-container {
    margin-top: 80px;
    padding: 2rem 0;
}

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.about-hero h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
}

/* Mission & Vision */
.mission-vision {
    margin-bottom: 4rem;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Different Section */
.different-section {
    margin-bottom: 4rem;
}

.different-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.different-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.different-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.different-card:hover {
    transform: translateY(-5px);
}

.different-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.different-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Values Section */
.values-section {
    margin-bottom: 4rem;
}

.values-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--primary-color);
}

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

.value-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.value-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Team Section */
.team-section {
    margin-bottom: 4rem;
}

.team-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--primary-color);
}

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

.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive Design for Checkout and About */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .about-hero h2 {
        font-size: 2.2rem;
    }
    
    .mv-grid,
    .different-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .mv-card,
    .different-card,
    .value-item,
    .team-member {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .checkout-container,
    .about-container {
        padding: 1rem;
    }
    
    .checkout-title,
    .about-hero h2 {
        font-size: 2rem;
    }
}

/* Delivery Tracking Styles */
.delivery-container {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.delivery-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* Order Lookup */
.order-lookup {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.lookup-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.lookup-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}

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

.lookup-help a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Progress Timeline */
.delivery-progress {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.progress-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #ecf0f1;
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.step-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Step States */
.timeline-step.completed .step-icon {
    background: var(--primary-color);
    color: var(--white);
}

.timeline-step.current .step-icon {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Order Details */
.order-details {
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-card h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item span:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.detail-item span:last-child {
    color: var(--text-light);
    text-align: right;
}

/* Delivery Map */
.delivery-map {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.delivery-map h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.map-placeholder {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1rem;
    position: relative;
    height: 200px;
}

.map-mock {
    position: relative;
    height: 100%;
}

.route-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.route-start, .route-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.location-marker {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.route-line {
    position: absolute;
    top: 50%;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.delivery-vehicle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    z-index: 3;
    transition: left 1s ease-in-out;
}

.map-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* No Order Found */
.no-order {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.no-order-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.no-order h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.no-order p {
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-order-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Delivery */
@media (max-width: 768px) {
    .delivery-container {
        padding: 1rem;
    }
    
    .lookup-form {
        flex-direction: column;
    }
    
    .progress-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .progress-timeline::before {
        display: none;
    }
    
    .timeline-step {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .step-info {
        text-align: left;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .no-order-actions {
        flex-direction: column;
    }
    
    .no-order-actions .btn-primary,
    .no-order-actions .btn-secondary {
        width: 100%;
    }
}

/* Games Styles */
.games-container {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.games-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.games-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.game-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.game-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.game-card p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Game Areas */
.game-area {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.game-header h3 {
    color: var(--primary-color);
    margin: 0;
}

/* Quiz Game */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quiz-question {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-question h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 1rem;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: rgba(45, 80, 22, 0.05);
}

.quiz-result {
    text-align: center;
    padding: 2rem;
}

.result-content {
    max-width: 500px;
    margin: 0 auto;
}

.result-content.correct {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius);
    padding: 2rem;
}

.result-content.incorrect {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius);
    padding: 2rem;
}

/* Memory Game */
.memory-game {
    max-width: 600px;
    margin: 0 auto;
}

.memory-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.stat {
    text-align: center;
}

.stat span:first-child {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat span:last-child {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card .card-front,
.memory-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.6s;
}

.memory-card .card-front {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(0deg);
}

.memory-card .card-back {
    background: var(--white);
    border: 2px solid var(--primary-color);
    transform: rotateY(180deg);
}

.memory-card.flipped .card-front {
    transform: rotateY(180deg);
}

.memory-card.flipped .card-back {
    transform: rotateY(0deg);
}

.memory-card.matched .card-back {
    background: #d4edda;
    border-color: #28a745;
}

/* Basket Challenge Game */
.basket-game {
    max-width: 800px;
    margin: 0 auto;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.basket-container {
    position: relative;
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 200px;
    border: 2px dashed #dee2e6;
}

.basket-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 60px;
    align-items: center;
    justify-content: center;
}

.basket-empty {
    color: var(--text-light);
    font-style: italic;
}

.basket-item {
    font-size: 2rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.basket-capacity {
    text-align: center;
    margin-top: 1rem;
}

.capacity-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.products-fall {
    position: relative;
    height: 300px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    overflow: hidden;
}

.falling-product {
    position: absolute;
    font-size: 3rem;
    cursor: pointer;
    animation: fall 3s linear forwards;
    z-index: 2;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
    }
    100% {
        transform: translateY(250px) rotate(360deg);
    }
}

/* Leaderboard */
.leaderboard-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.leaderboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    transition: var(--transition);
}

.leaderboard-item.top-three {
    background: #fff3cd;
    border-left: 4px solid var(--accent-color);
}

.leaderboard-item:hover {
    background: #e9ecef;
}

.rank {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.player {
    flex: 1;
    font-weight: 500;
}

.score {
    font-weight: bold;
    color: var(--primary-color);
}

.no-scores {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* AR Viewer Styles */
.ar-container {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.ar-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.ar-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Fruit Selection */
.fruit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.fruit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.fruit-card:hover {
    transform: translateY(-5px);
}

.fruit-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* AR Viewer */
.ar-viewer {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.ar-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.fruit-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.facts-list {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.facts-list li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #dee2e6;
}

.nutrient {
    font-weight: 500;
}

.value {
    color: var(--primary-color);
    font-weight: bold;
}

.ar-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Instructions */
.ar-instructions {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.instruction-step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Compatibility Notice */
.compatibility-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-content h4 {
    margin-bottom: 1rem;
    color: #856404;
}

.notice-content p {
    margin-bottom: 0.5rem;
    color: #856404;
}

/* Responsive Design for Games and AR */
@media (max-width: 768px) {
    .games-container,
    .ar-container {
        padding: 1rem;
    }
    
    .games-grid,
    .fruit-grid {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-stats,
    .memory-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ar-controls,
    .ar-actions {
        flex-direction: column;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leaderboard-tabs {
        flex-direction: column;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Stories Styles */
.stories-container {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.stories-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.stories-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Coin Balance */
.coin-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff3cd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #ffeaa7;
    font-weight: 600;
    color: #856404;
}

.coin-icon {
    font-size: 1.2rem;
}

/* Featured Story */
.featured-story {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    overflow: hidden;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content h3 {
    color: var(--text-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.story-content h4 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.story-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.farmer-name {
    font-weight: 600;
    color: var(--text-dark);
}

.farm-location {
    color: var(--text-light);
}

/* Stories Grid */
.stories-grid-section {
    margin-bottom: 4rem;
}

.stories-grid-section h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    font-size: 2rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.unlocked-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.story-info {
    padding: 1.5rem;
}

.story-info h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.story-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

.story-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.duration, .harvest {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.read-story.unlocked {
    background: #28a745;
}

.read-story.unlocked:hover {
    background: #218838;
}

/* Story Reader Modal */
.modal.large {
    max-width: 800px;
}

.story-reader {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem;
}

.story-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.story-header h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.story-meta-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.farmer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.farmer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.farmer-name {
    font-weight: 600;
    color: var(--text-dark);
}

.farm-location {
    color: var(--text-light);
}

.story-stats {
    display: flex;
    gap: 1rem;
}

.story-stats .stat {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.story-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.story-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.story-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.audio-player {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.audio-player h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.story-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
}

/* How It Works */
.how-it-works {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.how-it-works h3 {
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2rem;
}

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

.coin-feature {
    padding: 2rem;
}

.coin-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coin-feature h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.coin-feature p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Stories */
@media (max-width: 768px) {
    .stories-container {
        padding: 1rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .story-content {
        padding: 2rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-meta-large {
        flex-direction: column;
        text-align: center;
    }
    
    .farmer-info {
        justify-content: center;
    }
    
    .coins-explanation {
        grid-template-columns: 1fr;
    }
    
    .story-actions {
        flex-direction: column;
    }
    
    .story-actions .btn-primary,
    .story-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .coin-balance {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .featured-story h4 {
        font-size: 1.5rem;
    }
    
    .story-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile Navigation Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile Navigation Active State */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav {
        position: relative;
        padding: 1rem;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 1000;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        font-size: 1.1rem;
    }

    .nav-actions {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 80%;
        background: var(--white);
        padding: 1rem 2rem;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-actions.active {
        display: flex;
    }

    .nav-actions .btn-primary,
    .nav-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Overlay for mobile menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 100%;
    }

    .nav-actions {
        width: 100%;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Improve touch targets */
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Prevent zoom on focus */
    input, select, textarea {
        font-size: 16px;
    }

    /* Improve scrolling */
    .nav-links {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
}

/* Safe area insets for notched devices */
@supports(padding: max(0px)) {
    .nav-links {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
    
    .nav-actions {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Logo Styles */
.nav-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    transition: var(--transition);
    position: relative;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(45, 80, 22, 0.3));
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(45, 80, 22, 0.8) 0%, 
        rgba(141, 181, 150, 0.6) 30%, 
        rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    z-index: 1;
}

/* Hover Effects */
.logo-link:hover .logo-img {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(45, 80, 22, 0.4));
}

.logo-link:hover .logo-glow {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

/* Click Animation */
.logo-link:active .logo-img {
    transform: rotate(-10deg) scale(0.95);
    transition: all 0.2s ease;
}

.logo-link:active .logo-glow {
    width: 100px;
    height: 100px;
    opacity: 0.8;
    background: radial-gradient(circle, 
        rgba(245, 166, 35, 0.9) 0%, 
        rgba(45, 80, 22, 0.7) 40%, 
        rgba(255, 255, 255, 0) 80%);
    animation: pulseGlow 0.6s ease-out;
}

/* Logo Text Styling */
.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6b1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    position: relative;
}

.logo-link:hover h1 {
    transform: translateX(5px);
    text-shadow: 0 2px 10px rgba(45, 80, 22, 0.3);
}

/* Continuous subtle rotation animation on hover */
.logo-link:hover .logo-img {
    animation: gentleRotate 3s ease-in-out infinite;
}

/* Glow Animation */
@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

@keyframes gentleRotate {
    0%, 100% {
        transform: rotate(15deg) scale(1.1);
    }
    25% {
        transform: rotate(20deg) scale(1.05);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.15);
    }
}

/* Logo Loading State */
.logo-img.loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Mobile Responsive Logo */
@media (max-width: 768px) {
    .logo-container {
        width: 40px;
        height: 40px;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .logo-link:hover .logo-glow {
        width: 60px;
        height: 60px;
    }
    
    .logo-link:active .logo-glow {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 35px;
        height: 35px;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .logo-link {
        gap: 0.5rem;
    }
}

/* Logo Focus States for Accessibility */
.logo-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.logo-link:focus .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-color));
}

/* Logo Fallback Styles */
.logo-container::before {
    content: '🌱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.logo-img[src=""],
.logo-img:not([src]) {
    opacity: 0;
}

.logo-img[src=""] ~ .logo-container::before,
.logo-img:not([src]) ~ .logo-container::before {
    opacity: 1;
}

.no-products {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
    grid-column: 1 / -1;
}

.products-grid {
    min-height: 200px;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border: 2px dashed #dee2e6;
}

.no-products-message h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-products-message p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* MOBILE FIXES FOR BASKET BUILDER */
/* ——————————————————————————————————————— */

@media (max-width: 768px) {

    /* Container spacing */
    .builder-container {
        padding: 1rem 1rem;
    }

    /* Basket Type grid — make items breathe */
    .basket-type-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .basket-type-card {
        padding: 1.5rem;
    }

    /* Size options */
    .size-options {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Capacity meter spacing */
    .capacity-meter {
        padding: 1.5rem;
    }

    /* Product grid */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .product-card img {
        height: 140px;
    }

    /* Sidebar fix */
    .basket-sidebar {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }

    .basket-sidebar.active {
        right: 0 !important;
    }

    .sidebar-header {
        padding: 1.25rem;
    }

    /* Modal fix */
    .modal-product {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-product img {
        height: auto;
        max-height: 250px;
        object-fit: cover;
    }
}

/* Extra small screens */
@media (max-width: 480px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 160px;
    }

    .capacity-meter {
        padding: 1rem;
    }

    .basket-type-card h4, 
    .size-option h4 {
        font-size: 1.2rem;
    }
}

/* Fruit Loading Animation */
.fruit-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6b1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fruit-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.fruit-loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.fruit-spinner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: fruitSpin 1.5s linear infinite;
    position: relative;
}

.fruit-spinner::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: fruitBounce 2s ease-in-out infinite;
}

.fruit-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    animation: fruitPulse 2s ease-in-out infinite;
}

.fruit-rain {
    position: absolute;
    width: 160px;       /* same size as the circle/spinner */
    height: 160px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;   /* this keeps fruits inside the circle */
    pointer-events: none;
}

.falling-fruit {
    position: absolute;
    font-size: 1.5rem;
    animation: fruitFall linear infinite;
    opacity: 0.7;
}

.loading-text {
    margin-top: 2rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fruitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fruitBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes fruitPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes fruitFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

/* Different fruit colors */
.fruit-apple { color: #e74c3c; }
.fruit-orange { color: #f39c12; }
.fruit-mango { color: #ffd700; }
.fruit-pineapple { color: #f1c40f; }
.fruit-avocado { color: #27ae60; }
.fruit-berry { color: #9b59b6; }
.fruit-cherry { color: #c0392b; }
.fruit-grape { color: #8e44ad; }

.falling-fruit {
    font-size: 22px;       /* slightly smaller */
    position: absolute;
    top: -40px;
    animation: fall 2.8s linear forwards;
}

@keyframes fall {
    to {
        top: 200px;        /* ends inside the circle */
        opacity: 0;
    }
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.footer-social img {
    width: 22px;
    height: 22px;
    filter: brightness(100%);
    transition: transform 0.2s ease;
}

.footer-social a:hover img {
    transform: scale(1.15);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social a i {
    font-size: 24px;
    color: #fff;
    margin-right: 12px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover i {
    transform: scale(1.2);
    opacity: 0.8;
}

/* SOCIAL ICON FIX */
/* Footer Social - Clean */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Social Media Icons - Fixed Styling */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a::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.6s ease;
}

.social-icons a:hover::before {
    left: 100%;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.social-icons a:active {
    transform: translateY(-2px) scale(1.05);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-icons a:hover svg {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Individual platform colors on hover */
.social-icons a[aria-label="WhatsApp"]:hover {
    background: rgba(37, 211, 102, 0.8);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.social-icons a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}

.social-icons a[aria-label="Facebook"]:hover {
    background: rgba(59, 89, 152, 0.8);
    box-shadow: 0 10px 25px rgba(59, 89, 152, 0.3);
}

.social-icons a[aria-label="TikTok"]:hover {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-icons a[aria-label="YouTube"]:hover {
    background: rgba(255, 0, 0, 0.8);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

/* Pulse animation on hover */
@keyframes socialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.social-icons a:hover {
    animation: socialPulse 1.5s infinite;
}

/* Bounce animation for individual icons */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
}

.social-icons a:hover svg {
    animation: bounce 1s ease infinite;
}

/* Staggered animation for icon appearance */
.social-icons a {
    opacity: 0;
    transform: translateY(20px);
    animation: socialAppear 0.6s ease forwards;
}

.social-icons a:nth-child(1) { animation-delay: 0.1s; }
.social-icons a:nth-child(2) { animation-delay: 0.2s; }
.social-icons a:nth-child(3) { animation-delay: 0.3s; }
.social-icons a:nth-child(4) { animation-delay: 0.4s; }
.social-icons a:nth-child(5) { animation-delay: 0.5s; }

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .social-icons {
        gap: 1rem;
        justify-content: center;
    }
    
    .social-icons a {
        width: 44px;
        height: 44px;
    }
    
    .social-icons svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-social h4 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 0.75rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    .social-icons svg {
        width: 18px;
        height: 18px;
    }
}

/* Enhanced blur and glow effects */
.social-icons a {
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
}

.social-icons a:hover {
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
}

/* Glow effect on hover */
.social-icons a::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: 14px;
    z-index: -1;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icons a:hover::after {
    opacity: 0.6;
}