/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Robe, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba1 100%);
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

.header-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: white;
    border-right: 1px solid #e1e8ed;
    padding: 1rem 0;
    z-index: 999;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #f8fafc;
    color: #667eea;
}

.nav-btn.active {
    background-color: #f8fafc;
    color: #667eea;
    border-right: 3px solid #667eea;
}

.nav-btn i {
    width: 20px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 2rem;
    width: calc(100% - 250px);
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba1);
    color: white;
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-content p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #64748b;
    border-bottom: 1px solid #e1e8ed;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-paused {
    background-color: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #99191c;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input, .filter-select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.search-input {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e1e8ed;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Zones Grid */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minnamax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.zone-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.zone-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.zone-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.zone-details {
    color: #64748b;
    font-size: 0.9rem;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minnamax(400px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background-color: #fee2e2;
    color: #99191c;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}


/* Reset and base styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9fafb;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* OTP Verification Styles */
.otp-timer {
  font-weight: 600;
  margin: 10px 0;
  color: #2c7a2c;
  font-size: 1.1em;
}

.otp-verification-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#resendOtp {
  background-color: #2c7a2c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1em;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

#resendOtp:disabled {
  background-color: #a5d6a7;
  cursor: not-allowed;
}

#resendOtp:hover:not(:disabled) {
  background-color: #1a3e72;
}

/* Toast container */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Toast message */
#toast-container > div {
  min-width: 200px;
  margin-bottom: 10px;
  padding: 12px 20px;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0.9;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.header-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 0 0 8px 8px;
  margin: 0 20px 15px 20px;
}

.header-section .logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.header-section h1 {
  font-size: 1.8em;
  color: #2c7a2c;
  margin: 0;
}

@media (max-width: 768px) {
  .header-section h1 {
    font-size: 1.4em;
    text-align: left;
    flex: 1;
  }
}

/* Navbar styles */
.navbar {
  background: #2c7a2c; /* Reverted back to green */
  padding: 15px 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar li {
  margin-left: 25px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  background: #1f4d1f;
  color: #d4f1d4;
}

.hamburger {
  display: none;
  font-size: 2.5em;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Search section */
.search-section {
  display: flex;
  padding: 20px;
  gap: 10px;
  background: white;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.filter-btn {
  background: #2c7a2c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Schedule section */
.schedule-section {
  display: flex;
  justify-content: space-between;
  background: #d0e7ff;
  padding: 20px;
  margin: 20px;
  border-radius: 12px;
  align-items: center;
}

.schedule-info h2 {
  margin: 0 0 10px 0;
  font-size: 1.8em;
  color: #1a3e72;
}

.schedule-info p {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  color: #1a3e72;
}

.btn-primary {
  background: #1a3e72;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1em;
}

.schedule-image img {
  max-width: 200px;
  border-radius: 12px;
}

/* Popular milk section */
.popular-milk-section {
  padding: 0 20px 40px 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.5em;
  color: #2c7a2c;
}

.see-all {
  color: #2c7a2c;
  text-decoration: none;
  font-weight: 600;
}

.milk-list {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.milk-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 150px;
  flex-shrink: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.milk-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.milk-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1em;
  color: #2c7a2c;
}

.milk-info p {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #555;
}

.price-rating {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.price {
  font-weight: 700;
  color: #2c7a2c;
}

.rating {
  color: #f5a623;
}

.add-btn {
  background: #2c7a2c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

/* Bottom navigation */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: white;
  padding: 12px 0 8px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border-top: 1px solid #e2e8f0;
  margin: 0;
  box-sizing: border-box;
}

.nav-item {
  color: #718096;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  transition: all 0.3s ease;
  min-width: 60px;
}

.nav-item:hover {
  color: #2c7a2c;
}

.nav-item.active {
  color: #2c7a2c;
  font-weight: 600;
}

.nav-item::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}

.nav-item:nth-child(1)::before {
  content: '🏠';
  font-size: 20px;
}

.nav-item:nth-child(2)::before {
  content: '📦';
  font-size: 20px;
}

.nav-item:nth-child(3)::before {
  content: '🏷️';
  font-size: 20px;
}

.nav-item:nth-child(4)::before {
  content: '📅';
  font-size: 20px;
}

.nav-item:nth-child(5)::before {
  content: '👤';
  font-size: 20px;
}

.nav-item.active::before {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 30px;
    width: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 10px 0;
  }

  .navbar ul li a {
    color: #2c7a2c;
  }

  .navbar ul.active {
    display: flex;
    background-color: white;
  }

  .navbar li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .search-section {
    padding: 15px 10px;
  }

  .schedule-section {
    flex-direction: column;
    margin: 15px 10px;
    padding: 15px;
  }

  .schedule-image img {
    max-width: 100%;
    margin-top: 15px;
  }

  .milk-list {
    gap: 10px;
  }

  .milk-card {
    min-width: 140px;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
  }
}

/* Cart Styles */
.cart-section {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.cart-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.cart-header h2 {
  margin: 0;
  color: #333;
}

.cart-items {
  padding: 20px;
}

.empty-cart-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-cart-message p {
  font-size: 18px;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  gap: 15px;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.cart-item-details p {
  margin: 0 0 5px 0;
  color: #666;
  font-size: 14px;
}

.cart-item-price {
  font-weight: bold;
  color: #007bff;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.quantity-btn:hover {
  background: #f8f9fa;
}

.quantity {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}

.remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.remove-btn:hover {
  background: #c82333;
}

.cart-summary {
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: bold;
  border-top: 1px solid #dee2e6;
  padding-top: 10px;
  margin-top: 10px;
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-top: 15px;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Cart badge */
.cart-badge {
  background: #dc3545;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: 5px;
}

/* Responsive cart */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-item-controls {
    margin-top: 10px;
  }
}

/* Modal Alert Styles */
.modal-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-alert.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.modal-close:hover {
  color: #2c7a2c;
}

#modalMessage {
  font-size: 1.2em;
  color: #2c7a2c;
  margin: 0;
}

/* Subscription Page Styles */
.duration-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.duration-selector label {
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border: 2px solid #2c7a2c;
  border-radius: 30px;
  transition: background 0.3s ease, color 0.3s ease;
  user-select: none;
}

.duration-selector input[type="radio"] {
  display: none;
}

.duration-selector input[type="radio"]:checked + label {
  background: #2c7a2c;
  color: white;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
  margin-bottom: 40px;
}

.subscription-card {
  background: white;
  border: 2px solid #2c7a2c;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.subscription-card:hover,
.subscription-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(44, 122, 44, 0.4);
  border-color: #1a3e72;
  outline: none;
}

.subscription-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.subscription-card h2 {
  margin: 0 0 10px 0;
  color: #2c7a2c;
}

.subscription-card p {
  margin: 0 0 10px 0;
  color: #555;
}

.subscription-card .price {
  font-size: 1.5em;
  font-weight: 700;
  color: #1a3e72;
  margin-bottom: 15px;
}

.subscribe-btn {
  background: #2c7a2c;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
}

.subscribe-btn:hover {
  background: #1a3e72;
}

.confirmation {
  background: white;
  border: 2px solid #2c7a2c;
  border-radius: 12px;
  padding: 30px 20px;
  max-width: 400px;
  margin: 30px auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.confirmation.hidden {
  display: none;
}

.confirmation h2 {
  color: #2c7a2c;
  margin-top: 0;
}

.confirmation button {
  background: #2c7a2c;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1em;
  margin-top: 20px;
}

.confirmation button:hover {
  background: #1a3e72;
}

/* Offers Section */
.offers-section {
  padding: 0 20px 40px 20px;
}

.offers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.offer-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(44, 122, 44, 0.3);
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4757;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 700;
  z-index: 1;
}

.offer-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
}

.offer-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.2em;
  color: #2c7a2c;
}

.offer-info p {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #555;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
}

.offer-price {
  font-weight: 700;
  color: #ff4757;
  font-size: 1.2em;
}

.offer-btn {
  width: 100%;
  background: #ff4757;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.offer-btn:hover {
  background: #ff3742;
}

/* Responsive offers */
@media (max-width: 768px) {
  .offers-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .offer-card {
    margin: 0 5px;
  }
}

/* Offers Page Section */
.offers-page-section {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.offers-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.offer-image-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.offer-image-card:hover {
  transform: translateY(-5px);
}

.offer-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.offer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 20px;
}

.offer-overlay h3 {
  margin: 0 0 10px 0;
  font-size: 1.5em;
}

.offer-overlay p {
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.offer-overlay .offer-price {
  font-size: 1.3em;
  font-weight: 700;
  color: #ff4757;
  margin-right: 10px;
}

.offer-overlay .original-price {
  text-decoration: line-through;
  color: #ccc;
  font-size: 1em;
}

.offer-overlay .offer-btn {
  margin-top: 10px;
  width: 100%;
  background: #ff4757;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.offer-overlay .offer-btn:hover {
  background: #ff3742;
}

/* Responsive offers page */
@media (max-width: 768px) {
  .offers-container {
    gap: 20px;
  }
  
  .offer-image {
    height: 200px;
  }
}

/* Customer Reviews Section */
.customer-reviews {
  padding: 0 20px 40px 20px;
  text-align: center;
}

/* Location Modal Styles */
#locationModal.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#locationModal.modal.hidden {
  display: none;
}

#locationModal .modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#map {
  height: 400px;
  width: 100%;
  border-radius: 8px;
}

#confirmLocationBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.welcome-message {
  font-size: 1.5em;
  color: #2c7a2c;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.customer-reviews h2 {
  color: #2c7a2c;
  margin-bottom: 20px;
}

.reviews {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.review {
  background: white;
  border: 2px solid #2c7a2c;
  border-radius: 12px;
  padding: 20px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-style: italic;
  color: #555;
}

.review span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: #2c7a2c;
}

