﻿@import url('https://fonts.googleapis.com/css2?family=Cooper+Hewitt:wght@400;600;700&display=swap');

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

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


.image-placeholder {
    width: 100%;
    height: 160px;
    background: #f4f4f4;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
}


.top-strip {
    background: #2e7d32;
    color: white;
    padding: 0.6rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.top-strip p {
    margin: 0;
}


.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.2rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}


.logo-section {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #4a7c59;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.2rem;
}


.search-section {
    flex: 1;
    max-width: 600px;
    display: flex;
    gap: 0.5rem;
}

.main-search-bar {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
}

.main-search-bar:focus {
    border-color: #4a7c59;
}

.search-btn {
    padding: 0.8rem 1.8rem;
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #3d6849;
}


.nav-items {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
    min-width: 60px;
}

.nav-item:hover {
    color: #4a7c59;
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.nav-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.cart-count {
    font-weight: bold;
}


.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    position: relative;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
}

.hamburger-menu:hover span {
    background: #4a7c59;
}


.hamburger-dropdown {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1500;
    overflow: hidden;
}

.hamburger-dropdown.active {
    display: block;
}

.hamburger-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

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

.hamburger-item:hover {
    background: #f5f5f5;
}

.hamburger-icon {
    font-size: 1.3rem;
}

.hamburger-icon-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}


.desktop-nav {
    display: none;
}


.secondary-nav {
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.8rem 0;
}

.secondary-nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.secondary-nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.secondary-nav-links a:hover,
.secondary-nav-links a.active {
    color: #4a7c59;
    background: #e8f5e9;
}


.shop-category-nav {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-nav-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.category-item {
    position: relative;
    flex: 1;
}

.category-link {
    display: block;
    padding: 1rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.category-link:hover {
    color: #4a7c59;
    border-bottom-color: #4a7c59;
    background: #f9f9f9;
}

.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.category-item:hover .category-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.category-dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.category-dropdown a:hover {
    background: #f5f5f5;
    color: #4a7c59;
    border-left-color: #4a7c59;
    padding-left: 1.8rem;
}

.category-dropdown a:first-child {
    border-radius: 0;
    padding-top: 1rem;
}

.category-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
    padding-bottom: 1rem;
}


.hero {
    background: url('images/desi-cows.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10rem 2rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}


.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #4a7c59;
    color: white;
}

.btn-primary:hover {
    background: #3d6849;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #4a7c59;
    border: 2px solid #4a7c59;
}

.btn-secondary:hover {
    background: #4a7c59;
    color: white;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 3rem;
}


.categories {
    padding: 4rem 0;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.category-card .image-placeholder {
    height: 120px;
}

.category-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #4a7c59;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}


.featured-products {
    padding: 4rem 0;
    background: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

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

.product-image-placeholder {
    width: 100%;
    height: 150px;
    background: #f4f4f4;
    border-bottom: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.product-card h3 {
    padding: 1rem 1rem 0.5rem;
    color: #333;
}

.product-card .price {
    padding: 0 1rem;
    font-size: 1.5rem;
    color: #4a7c59;
    font-weight: bold;
}

.product-card button {
    margin: 1rem;
    width: calc(100% - 2rem);
}


.why-choose {
    padding: 4rem 0;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card .image-placeholder {
    height: 80px;
    max-width: 80px;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.feature-image {
    height: 80px;
    max-width: 80px;
    margin: 0 auto 1rem;
    object-fit: contain;
    display: block;
}

.feature-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.feature-card h3 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
}


.testimonials {
    padding: 4rem 0;
    background: #f9f9f9;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.customer-name {
    color: #4a7c59;
    font-weight: 600;
}


.footer {
    background: #2e7d32;
    color: 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 {
    margin-bottom: 1rem;
}

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

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

.social-links a {
    color: white;
    text-decoration: none;
}

.admin-link a {
    color: white;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-link a:hover {
    background: rgba(255,255,255,0.2);
}

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


.cart-container {
    padding: 4rem 0;
    min-height: 60vh;
}

.cart-items {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #4a7c59;
    font-size: 1.2rem;
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    background: #4a7c59;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.remove-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cart-total {
    font-size: 1.5rem;
    color: #4a7c59;
    font-weight: bold;
    margin: 1rem 0;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart h2 {
    color: #666;
    margin-bottom: 1rem;
}


.product-detail {
    padding: 4rem 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-image-large {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.product-info h1 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.product-price-large {
    font-size: 2rem;
    color: #4a7c59;
    font-weight: bold;
    margin: 1rem 0;
}

.product-description {
    color: #666;
    line-height: 1.8;
    margin: 2rem 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.quantity-selector input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.checkout-container {
    padding: 4rem 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a7c59;
}

.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #4a7c59;
}


.page-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: #2e7d32;
}

.content-section {
    padding: 4rem 0;
}

.content-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-card .image-placeholder {
    height: 40px;
    max-width: 40px;
    margin: 0 auto 1rem;
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
    transform: scale(1.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
}

.contact-card h3 {
    color: #4a7c59;
    margin: 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-card p {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.6;
}


@media (max-width: 768px) {
    .top-strip {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-section {
        text-align: center;
    }
    
    .search-section {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-items {
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-item {
        min-width: auto;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .nav-label {
        font-size: 0.7rem;
    }
    
    .secondary-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-detail-container,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .auth-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}


.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.auth-modal.active {
    display: block;
}

.auth-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: slideDown 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

@keyframes slideDown {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.auth-close:hover {
    color: #333;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.auth-tab {
    flex: 1;
    padding: 1.2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.auth-tab.active {
    color: #4a7c59;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4a7c59;
}

.auth-form-container {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.auth-form-container::-webkit-scrollbar {
    width: 6px;
}

.auth-form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.auth-form-container::-webkit-scrollbar-thumb {
    background: #4a7c59;
    border-radius: 10px;
}

.auth-form-container::-webkit-scrollbar-thumb:hover {
    background: #3d6849;
}

.admin-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-modal-header h2 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.admin-modal-header p {
    color: #666;
    font-size: 0.9rem;
}

.auth-form-container.active {
    display: block;
}

.auth-form-container h2 {
    color: #2e7d32;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form-container .form-group {
    margin-bottom: 1.2rem;
}

.auth-form-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form-container .form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.auth-form-container .form-group input:focus {
    outline: none;
    border-color: #4a7c59;
}

.auth-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
}

.auth-message {
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.auth-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}


.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1500;
    margin-top: 0.5rem;
}

.profile-dropdown.active {
    display: block;
    animation: fadeIn 0.2s;
}

.profile-dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.profile-dropdown a:hover {
    background: #f5f5f5;
}

.profile-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.profile-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
    color: #c62828;
}


.orders-container {
    padding: 4rem 0;
    min-height: 60vh;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.order-id {
    font-weight: 600;
    color: #2e7d32;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.pending {
    background: #fff3e0;
    color: #f57c00;
}

.order-status.delivered {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    color: #333;
    margin-bottom: 0.3rem;
}

.order-item-quantity {
    color: #666;
    font-size: 0.9rem;
}

.order-item-price {
    color: #4a7c59;
    font-weight: bold;
    font-size: 1.1rem;
}

.order-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    text-align: right;
}

.order-total-label {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.order-total-amount {
    font-size: 1.5rem;
    color: #4a7c59;
    font-weight: bold;
    margin-left: 1rem;
}

.empty-orders {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-orders h2 {
    color: #666;
    margin-bottom: 1rem;
}

.empty-orders p {
    color: #999;
    margin-bottom: 2rem;
}




.profile-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-icon-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.profile-icon-btn:hover .profile-icon-placeholder {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
    transform: scale(1.05);
}

.profile-icon-btn.logged-in .profile-icon-placeholder {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    border-color: #2e7d32;
    color: white;
}

.profile-icon-btn.logged-in:hover .profile-icon-placeholder {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}



.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 320px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    font-size: 13px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

.profile-details {
    padding: 15px 20px;
    background: #f9f9f9;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.detail-label {
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-value {
    color: #333;
    font-weight: 400;
    text-align: right;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.profile-menu-item:hover {
    background: #f5f5f5;
}

.profile-menu-item.signout {
    color: #d32f2f;
}

.profile-menu-item.signout:hover {
    background: #ffebee;
}

.profile-menu-item span {
    display: flex;
    align-items: center;
    gap: 8px;
}


.nav-items {
    position: relative;
}


#profile-btn {
    position: relative;
    cursor: pointer;
}


.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow: hidden;
}

.map-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-modal-content {
    background: white;
    width: 95%;
    height: 95%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #4a7c59;
    color: white;
}

.map-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.map-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.map-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.map-search-container {
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.map-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.map-container {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.map-modal-footer {
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.selected-address-preview {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.selected-address-preview small {
    color: #666;
    line-height: 1.5;
}

.btn-confirm-location {
    width: 100%;
    padding: 1rem;
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-confirm-location:hover {
    background: #3d6849;
}

.btn-map-select:hover {
    background: #3d6849 !important;
}

@media (max-width: 768px) {
    .map-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .form-group > div {
        flex-direction: column !important;
    }
    
    .btn-map-select {
        width: 100%;
        justify-content: center;
    }
}
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 240px;
    padding: 14px 18px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: #2e7d32;
}

.toast-error {
    background: #d32f2f;
}

.toast-info {
    background: #1976d2;
}

button:active {
    transform: scale(0.96);
    transition: transform 0.1s;
}