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

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

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

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    color: #228B22;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.logo .tagline {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #228B22;
}

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

.auth-btn, .cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.auth-btn:hover, .cart-btn:hover {
    background-color: #f0f0f0;
}

.cart-btn {
    position: relative;
}

.cart-count {
    background: #228B22;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: absolute;
    top: -5px;
    right: -5px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #228B22, #32CD32);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: #228B22;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Menu Section */
.menu-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #e9ecef;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #228B22;
    color: white;
}

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

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.menu-item h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffc107;
}

.menu-item p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #228B22;
}

.add-to-cart-btn {
    background: #228B22;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #1e7b1e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 1s ease;
}

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

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

.modal-header h2 {
    color: #333;
    font-size: 1.5rem;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

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

/* Auth Form Styles */
.auth-form {
    padding: 2rem;
    text-align: center;
}

.auth-form h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-form p {
    color: #666;
    margin-bottom: 2rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #228B22;
}

.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: block;
}

.submit-btn {
    width: 100%;
    background: #228B22;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #1e7b1e;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.link-btn {
    background: none;
    border: none;
    color: #228B22;
    cursor: pointer;
    text-decoration: underline;
    font-size: 1rem;
}

.link-btn:hover {
    color: #1e7b1e;
}

/* Cart Modal Styles */
.cart-modal-content {
    max-width: 600px;
}

.cart-content {
    padding: 1.5rem;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

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

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

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

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

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    color: #666;
    font-size: 0.9rem;
}

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

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-price {
    font-weight: 600;
    color: #228B22;
}

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

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

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

.checkout-btn {
    width: 100%;
    background: #228B22;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background: #1e7b1e;
}

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

.empty-cart i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

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

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
}

.browse-menu-btn {
    background: #228B22;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* Checkout Modal Styles */
.checkout-modal-content {
    max-width: 900px;
    max-height: 90vh;
}

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

.checkout-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.checkout-section h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method input[type="radio"]:checked + label {
    border-color: #228B22;
    background: #f0fff0;
}

.payment-form {
    margin-top: 1rem;
}

.alternative-payment {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e9ecef;
}

.alternative-payment i {
    font-size: 3rem;
    color: #228B22;
    margin-bottom: 1rem;
}

.bank-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: left;
}

.bank-info p {
    margin-bottom: 0.5rem;
}

.order-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.order-summary h3 {
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.summary-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

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

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

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

.summary-item-info h5 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.summary-item-info p {
    font-size: 0.8rem;
    color: #666;
}

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

.place-order-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.place-order-btn:hover {
    background: #218838;
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #edffed 0%, #e9efeb 100%);
  }
  
  .newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .newsletter-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #66ea6d 0%, #95a24b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .newsletter-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
  }
  
  .subscribe-form {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .input-group {
    display: flex;
    gap: 0.5rem;
  }
  
  .input-group input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .input-group input:focus {
    outline: none;
    border-color: #0e7513cb;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  .input-group button {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    border-radius: 10px;
    border: 0;

  }

  .newsletter-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
  }

  
  @media (max-width: 768px) {
    .newsletter-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
  
    .input-group {
      flex-direction: column;
    }
  }

/* Confirmation Modal */
.confirmation-modal-content {
    max-width: 400px;
    text-align: center;
}

.confirmation-content {
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-content h2 {
    color: #333;
    margin-bottom: 1rem;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 2rem;
}

.order-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.order-info h3 {
    color: #228B22;
    margin-bottom: 0.5rem;
}

.continue-btn {
    background: #228B22;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.continue-btn:hover {
    background: #1e7b1e;
}

/* Footer */
.footer {
    background: #333;
    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 h4,
.footer-section h5 {
    margin-bottom: 1rem;
    color: #228B22;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #228B22;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.contact-info i {
    margin-right: 0.5rem;
    color: #228B22;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-header h3 {
        font-size: 2rem;
    }
    
    .menu-item-content {
        padding: 1rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .checkout-sections {
        gap: 1rem;
    }
    
    .checkout-section {
        padding: 1rem;
    }
}