/* Login Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Global Styles */
:root {
  --primary-color: #4caf50;
  --secondary-color: #45a049;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --dark-gray: #666;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body,
button,
input,
textarea,
select {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  /* background-color: var(--light-gray); */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  position: relative;
  background-color: var(--primary-color);
  color: var(--white);
  border: 2.5px solid var(--primary-color);
  border-radius: 50px;
  padding: 0.8rem 3rem 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: none !important;
  box-shadow: none !important;
  overflow: hidden;
}

.btn-primary::after {
  content: "→";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: none !important;
  box-shadow: none !important;
  padding-right: 2rem;
}

.btn-primary:hover::after {
  right: 1.2rem;
  opacity: 1;
}

/* For specific primary buttons */
.hero .btn-primary:first-child::after {
  content: "→";
  position: absolute;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.hero .btn-primary:first-child {
  padding-right: 3rem;
}

.hero .btn-primary:first-child:hover::after {
  right: 1.5rem;
  opacity: 1;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px; /* Makes it pill-shaped */
  padding: 0.8rem 2rem; /* Slightly larger padding for better proportions */
  font-weight: 600; /* Slightly bolder text */
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow on hover */
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.9rem;
}

#downloadAppBtn {
  background-color: var(--primary-color);
  color: var(--white);
  position: relative;
  border: 2.5px solid var(--primary-color);
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: none !important;
  box-shadow: none !important;
  overflow: hidden;
}

#downloadAppBtn:hover {
  background-color: #2c7e31;
  border: 2.5px solid #2c7e31;
  color: var(--white);
  transform: none !important;
  box-shadow: none !important;
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: auto;
}

.logo i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.logo span {
  cursor: pointer;
}

.search-container {
  display: flex;
  gap: 2.5rem;
  flex: 1;
  /* max-width: 900px; */
  max-width: 850px;
  margin: 0 auto;
  align-items: center;
}

.search-bar {
  position: relative;
  flex: 1.5;
  min-width: 300px;
}

.location-bar {
  position: relative;
  flex: 1.2;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 250px;
  border: none;
}

.location-bar i.fa-map-marker-alt {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.location-details {
  flex: 1;
  overflow: hidden;
}

.delivery-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address {
  font-size: 0.75rem;
  color: var(--dark-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Location Popup Styles */
.location-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.location-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

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

.popup-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-color);
}

.close-popup {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}

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

.popup-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.search-box {
  margin-bottom: 1.5rem;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.saved-locations {
  margin-bottom: 1.5rem;
}

.saved-locations h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #555;
}

.location-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.location-item:hover {
  background-color: #f8f9fa;
  border-color: #e0e0e0;
}

.location-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.location-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.location-address {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.detect-location {
  width: 100%;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.detect-location:hover {
  background-color: #f1f3f5;
  border-color: #999;
}

.detect-location i {
  color: var(--primary-color);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.location-bar .fa-chevron-down {
  color: var(--dark-gray);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.search-bar input {
  width: 100%;
  padding: 0.8rem 1rem;
  /* border: 1px solid #ddd !important; */
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--dark-gray);
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 10;
}

.search-suggestions.active {
  display: block;
}

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

.login-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--dark-gray);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-item i {
  font-size: 1.4rem;
}

.nav-item:hover {
  color: var(--primary-color);
  background-color: rgba(76, 175, 80, 0.1);
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 9rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Categories Section */
.categories {
  padding: 4rem 2rem;
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 5rem;
  /* color: var(--text-color); */
  font-weight: 800;
}

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

.category-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.category-img {
  width: 100%;
  height: 170px;
  overflow: hidden;
  position: relative;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background-color: #dfdfdf;
}

.category-card h3 {
  padding: 1.2rem 0;
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* View More Card for Categories */
.category-card.view-more-card {
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  min-height: 200px;
  transition: all 0.3s ease;
}

.category-card.view-more-card .category-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  height: 80px;
}

.view-more-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #4CAF50;
  text-align: center;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.view-more-content i {
  font-size: 2rem;
  transition: transform 0.3s ease;
  color: #4CAF50;
}

.view-more-content span {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.category-card.view-more-card h3 {
  background: transparent;
  border-top: none;
  color: #4CAF50;
  font-weight: 600;
}

/* Deals Section */
.deals {
  padding: 2rem 8%;
  background-color: #f8fafc;
}

#offers .deal-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#offers .weight {
  margin: 0.2rem 0;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

#offers .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

#offers .price {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#offers .btn-sm {
  margin: 0;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.deals .section-title {
  font-size: 4.5rem;
  /* color: #2c3e50; */
  margin: 0;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 1.5rem;
}

.deals-slider {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #4CAF50 rgba(0, 0, 0, 0.1);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.deals-slider::-webkit-scrollbar {
  height: 6px;
}

.deals-slider::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.deals-slider::-webkit-scrollbar-thumb {
  background: #4CAF50;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.deals-slider::-webkit-scrollbar-thumb:hover {
  background: #3d8b40;
}

.deal-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  scroll-snap-align: start;
  position: relative;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.deal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.discount-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  /* background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%); */
  background: #df000d;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  z-index: 2;
}

.deal-info {
  padding: 1.2rem;
  position: relative;
  background: white;
}

.deal-info h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #2d3748;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.original-price {
  font-size: 0.9rem;
  color: #a0aec0;
  text-decoration: line-through;
  font-weight: 500;
}

/* Common button styles for both deal and featured cards */
.deal-card .btn-sm,
.featured-card .btn-sm {
  width: auto;
  min-width: 80px;
  margin-top: 0.8rem;
  margin-left: auto;
  padding: 0.4rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: block;
  transition: all 0.3s ease;
}

.deal-card .btn-sm:hover,
.featured-card .btn-sm:hover {
  background: var(--secondary-color, #43A047);
  /* transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2); */
}

/* View More Card in Deals Section */
.deals-slider .view-more-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  /* min-height: 380px; */
  text-decoration: none;
  color: inherit;
  margin-top: 3rem;
}

.deals-slider .view-more-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.deals-slider .view-more-card .category-img {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  /* background: #f8f9fa; */
  border-radius: 50%;
  transition: all 0.3s ease;
}

.deals-slider .view-more-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.deals-slider .view-more-content i {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.deals-slider .view-more-card h3 {
  margin: 1rem 0 0;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Featured Section */
.featured {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.featured .section-title {
  font-size: 4.5rem;
  /* color: #2c3e50; */
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* Category Section */
.category-section {
  margin-bottom: 3.5rem;
}

.category-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eee;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px;
  height: 2px;
}

/* Card Container */
.card-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #ddd #f5f5f5;
}

/* Custom scrollbar for WebKit browsers */
.card-container::-webkit-scrollbar {
  height: 6px;
}

.card-container::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.card-container::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

.card-container::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

/* Featured Card */
.featured-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 1;
}

.featured-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* transform: translateY(-3px); */
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 10px;
  left: 6px;
  background: #df000d;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge.discount {
  background: #e67e22;
}

/* Card Image */
.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

/* Card Content */
.card-content {
  padding: 0.6rem 0.8rem 0.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h4 {
  font-size: 0.9rem;
  color: #2c3e50;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.card-desc {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 2.5rem;
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
}

.card-content .btn-sm {
  margin: 0;
  flex-shrink: 0;
  margin-left: 0.8rem;
}

/* Features Section */
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  /* text-align: center; */
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
  flex-wrap: nowrap;
  gap: 2rem;
}

.footer-bottom p {
  color: #b3b3b3;
  font-size: 0.9rem;
  margin: 0;
  white-space: nowrap;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  white-space: nowrap;
}

.legal-links a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 4rem 2rem 0;
  position: relative;
  overflow: hidden;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
  /* padding-bottom: 2rem; */
}

.footer-brand {
  flex: 1 1 100%;
  text-align: left;
  max-width: 350px;
  padding: 0 1rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: #b3b3b3;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  letter-spacing: 0.5px;
}

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

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

.footer-section ul li a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.3rem 0;
}

/* Footer Bottom Content */
.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2rem;
}

.app-download,
.social-links,
.payment-methods {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  justify-content: center;
}

.payment-methods {
  align-items: flex-end;
}

/* Ensure social icons stay centered */
.social-icons {
  justify-content: center;
  width: 100%;
}

.app-download p {
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-store,
.play-store {
  display: flex;
  align-items: center;
  background: #2d2d2d;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.app-store:hover,
.play-store:hover {
  background: #3d3d3d;
}

.app-store i,
.play-store i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.app-store span,
.featured-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.category-section {
  position: relative;
}

.view-all-link {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.view-all-link:hover {
  text-decoration: none;
}

.view-all-link::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.view-all-link:hover::after {
  transform: translateX(3px);
}

.app-store strong,
.play-store strong {
  font-size: 0.9rem;
}

.social-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icons a {
  color: #b3b3b3;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

/* Style for X logo */
.social-icons .x-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.social-icons .x-logo svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #b3b3b3;
  transition: color 0.3s ease;
}

.social-icons .x-logo:hover svg {
  color: #ffffff;
}

.social-icons a:hover {
  color: #ffffff;
}

.payment-methods {
  flex: 1;
  min-width: 250px;
  text-align: center;
  align-items: center;
}

.payment-methods p {
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.payment-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.payment-icons i {
  font-size: 1.8rem;
  color: #b3b3b3;
  transition: color 0.3s ease;
}

.payment-icons i:hover {
  color: #ffffff;
}

.legal-links a {
  color: #8c8c8c;
  font-size: 0.85rem;
  margin: 0 0.75rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Left side - Login Form */

.login-page-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.login-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 11rem 2rem;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  justify-content: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: black;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
}

.back-link:hover {
  text-decoration: underline;
}

.login-header h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: black;
  font-weight: bold;
}

.login-header p {
  color: #64748b;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.75rem;
  border: 1px solid black;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background: transparent;
}

input[type="text"]:focus {
  outline: none;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: black;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

/* OTP Modal */
.otp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.5);
}

.otp-modal.show {
  display: flex;
}

.otp-form {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.otp-container {
  text-align: center;
}

.otp-header {
  margin: 20px 0 30px;
}

.otp-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #333;
}

.otp-header p {
  color: #666;
  margin: 5px 0;
}

.phone-number {
  font-size: 18px;
  font-weight: 500;
  margin: 10px 0;
  color: #333;
}

.edit-number {
  color: #ff6b6b;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 20px;
}

.otp-inputs {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}

.otp-input {
  width: 45px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 0 3px;
  transition: all 0.3s;
}

.otp-input:focus {
  border-color: #ff6b6b;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.resend-otp {
  margin: 20px 0;
  color: #666;
  font-size: 14px;
}

.resend-otp a {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 500;
}

.timer {
  margin-top: 5px;
  font-size: 14px;
  color: #ff6b6b;
}

.verify-button {
  width: 100%;
  padding: 15px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.verify-button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

.verify-button:not(:disabled):hover {
  background: #ff5252;
}

/* Login Modal Styles */
.login-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.login-form {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  min-height: 480px;
  overflow: hidden;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2;
  display: flex;
  flex-direction: row;
  margin: 0;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease;
}

.close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  padding: 4px;
}

.close-icon img {
  width: 16px;
  height: 16px;
}

.Modal-left {
  flex: 1;
  background: #f8f9fa;
  /* padding: 40px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.illustration-container {
  width: 100%;
  max-width: 300px;
  margin-bottom: 30px;
}

.illustration-container img {
  width: 100%;
  height: auto;
}

.carousel {
  text-align: center;
}

.carousel-subheading {
  font-size: 18px;
  color: #666;
  margin-bottom: 5px;
}

.carousel-heading {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.carousel-indicators span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
}

.carousel-indicators span.active {
  background-color: #333;
}

.Modal-right {
  flex: 1;
  /* padding: 40px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.input-container {
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container img {
  max-width: 150px;
  height: auto;
}

.login-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.phone-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
}

.terms {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: 15px 0;
}

.terms a {
  color: #007bff;
  text-decoration: none;
}

.terms.top {
  margin-top: 0;
}

.otp-button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.otp-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.otp-button:not(:disabled):hover {
  background-color: #0056b3;
}

.download-app {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.download-app p {
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.app-stores {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.app-stores a {
  display: inline-block;
}

.app-stores img {
  height: 40px;
  width: auto;
}

/* Left side - Illustration and Carousel */
.Modal-left {
  width: 45%;
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  overflow: hidden;
  position: relative;
}

.illustration-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.banner-image {
  width: 100%;
  height: 250px; /* Fixed height for the banner */
  object-fit: cover;
  flex-shrink: 0;
}

.carousel {
  position: relative;
  padding: 16px 20px;
  background: #f8f8f8;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-inner {
  position: relative;
  min-height: 60px;
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item {
  position: absolute;
  width: 100%;
  padding: 0 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  text-align: center;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-subheading {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.carousel-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 0;
  color: #333;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  gap: 6px;
}

.carousel-indicators span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
}

.carousel-indicators span.active {
  background-color: #ff6b6b;
  width: 20px;
  border-radius: 3px;
}

/* Right side - Input Form and App Download */
.Modal-right {
  width: 55%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: white;
  position: relative;
}

.input-container {
  padding: 30px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  overflow-y: auto;
  box-sizing: border-box;
}

.logo-container {
  margin-bottom: 20px;
}

.logo {
  height: 40px;
  width: auto;
}

.form-group {
  /* margin-bottom: 16px; */
  text-align: left;
}

.login-text {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #333;
}

.phone-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
}

.phone-input:focus {
  /* border-color: #ff6b6b; */
  border-color: var(--primary-color);
}

.otp-button {
  width: 100%;
  padding: 14px;
  /* background-color: #ff6b6b; */
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 0;
  transition: background-color 0.3s;
}

.otp-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.otp-button:not(:disabled):hover {
  /* background-color: #ff5252; */
  background-color: var(--secondary-color);
}

.terms {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 12px 0;
}

.terms a {
  color: #ff6b6b;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.terms.top {
  display: block; /* Show top terms in desktop layout */
  margin-top: 20px;
}

.terms.bottom {
  display: none; /* Hide bottom terms in desktop layout */
}

.download-app {
  padding: 16px 20px;
  background: #f8f8f8;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: auto;
  flex-shrink: 0;
}

.download-app p {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #333;
}

.app-stores {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.app-stores img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

/* Right side - Welcome Section */
.welcome-section {
  width: 45%;
  min-height: 100vh;
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%);
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.welcome-content {
  max-width: 400px;
  position: relative;
  z-index: 1;
  color: black;
  text-align: center;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

.welcome-content h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.welcome-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background-color: #f8f9fa;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.breadcrumb a {
  color: #4CAF50;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #388e3c;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #6c757d;
  margin: 0 8px;
  font-size: 12px;
}

.breadcrumb-current {
  color: #495057;
  font-weight: 500;
}

.breadcrumb i {
  margin-right: 6px;
  font-size: 14px;
}























/* Responsive Styles */
@media (max-width: 1024px) {
  .login-page-wrapper {
    flex-direction: column;
  }
  
  .login-container,
  .welcome-section {
    width: 100%;
    min-height: auto;
  }
  
  .welcome-section {
    display: none;
  }
}

@media (max-width: 992px) {
  .search-bar {
    flex: 0.8;
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .modal-content,
  .login-form {
    flex-direction: column;
    max-width: 420px;
    max-height: 90vh;
  }
  
  .Modal-left,
  .Modal-right {
    width: 100%;
    height: auto;
  }
  
  .Modal-left {
    order: 1;
  }
  
  .Modal-right {
    order: 2;
  }
  
  .banner-image {
    height: 180px;
  }
  
  .terms.top {
    display: none; /* Hide top terms on mobile */
  }
  
  .terms.bottom {
    display: block; /* Show bottom terms on mobile */
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .search-bar {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-item {
    padding: 0.8rem 0;
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 4rem 1rem;
  }

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

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

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

  .cart-sidebar {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deal-card {
    flex: 0 0 200px;
  }
}
