  /* Reset & Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Poppins', sans-serif;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
  }

  /* Centered Container */
  .center-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Navigation Styles */
  .main-nav {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

 .nav-container {
display: flex;
justify-content: center; /* Changed from space-between to center */
align-items: center;
gap: 40px; /* Add gap between items */
}

  .nav-logo img {
    height: 70px;
    transition: transform 0.3s ease;
  }

  .nav-logo img:hover {
    transform: scale(1.05);
  }

  .nav-center {
    display: flex;
align-items: center;
gap: 30px; /* Adjust gap as needed */
  }

  .nav-right {
   display: flex;
align-items: center;
gap: 30px; /* Adjust gap as needed */
  }

  .nav-search {
    position: relative;
    display: flex;
    align-items: center;
  }

  .nav-search input {
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
    outline: none;
  }

  .nav-search input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    width: 220px;
  }

  .nav-search button {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .nav-search button:hover {
    color: #ff6b6b;
  }

  .nav-location {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
  }

  .nav-location i {
    color: #ff6b6b;
    font-size: 18px;
  }

  .location-display {
    display: flex;
    flex-direction: column;
  }

  .store-title {
    font-weight: 600;
    font-size: 14px;
    display: block;
  }

  .store-address {
    font-size: 12px;
    color: #777;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-cart, .nav-profile {
    position: relative;
    cursor: pointer;
  }

  .nav-cart i, .nav-profile i {
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
  }

  .nav-cart:hover i, .nav-profile:hover i {
    color: #ff6b6b;
  }

  .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
  }


  /* Location Popup Modal */
  .location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
  }

  .location-modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
  }

  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .location-modal-header h3 {
    font-size: 18px;
    color: #333;
  }

  .close-modal {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #777;
    transition: color 0.3s ease;
  }

  .close-modal:hover {
    color: #ff6b6b;
  }

  .location-input-container {
    margin-bottom: 20px;
    position: relative;
  }

  .location-input-container input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
  }

  .location-input-container input:focus {
    border-color: #ff6b6b;
  }

  .location-input-container .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
  }

  .map-container {
    height: 300px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }

  #map {
    height: 100%;
    width: 100%;
  }

  .map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: #ff6b6b;
    font-size: 32px;
    z-index: 1000;
    pointer-events: none;
  }

  .confirm-btn {
    width: 100%;
    padding: 12px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .confirm-btn:hover {
    background: #ff5252;
  }
  .button-container {
  display: flex;
  align-items: center;
  gap: 10px;
  }
 

 

 
 .map-icon-btn {
width: 40px;
height: 40px;
border-radius: 50%;
background: #ff6b6b;
color: white;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.map-icon-btn:hover {
background: #ff5252;
}

.confirm-btn {
flex: 1; /* Takes remaining space */
padding: 12px;
/* Other existing confirm button styles */
}
/* ======================
 DESKTOP NAVIGATION (Single Row Layout)
 ====================== */
@media (min-width: 769px) {
.main-nav {
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: center; /* Changed from space-between to center */
  align-items: center;
  gap: 30px; /* Adjust gap between items */
  flex-wrap: nowrap;
}

/* Location row adjustments */
.location-row {
  display: flex !important;
  order: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Logo adjustments */
.nav-logo {
  order: 1;
  flex: 0 0 auto;
}
.nav-logo img {
  height: 65px;
}

/* Location box styling */
.nav-location {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8f8f8;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0;
}
.nav-location:hover {
  background: #f0f0f0;
}

.nav-location i {
  color: #ff6b6b;
  font-size: 18px;
}
.location-display {
  display: flex;
  flex-direction: column;
}
.store-title {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.store-address {
  font-size: 12px;
  color: #777;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search bar styles */
 /* Search bar adjustments */
.nav-search {
  order: 3;
  flex: 0 1 400px; /* Flexible width but not too wide */
  min-width: 250px;
  max-width: 400px;
}
.nav-search input {
  width: 100% !important;
}

/* Right side icons */
.nav-right {
  order: 4;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}


.nav-profile, .nav-cart {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  cursor: pointer;
}
.nav-profile:hover, .nav-cart:hover {
  background: #f8f8f8;
}
.nav-profile i, .nav-cart i {
  font-size: 20px;
  color: #333;
}
.cart-count {
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  font-size: 11px;
}

/* Remove the top-nav-row wrapper effects */
.top-nav-row {
  display: contents; /* Makes children act as direct children of nav-container */
}
}




/* ======================
 RESPONSIVE DESIGN ONLY
 ====================== */

/* Floating Add to Cart Button (Mobile Only) */
@media (max-width: 768px) {
.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff6b6b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  border: none;
}

.floating-cart-btn i {
  font-size: 24px;
}

.floating-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: white;
  color: #ff6b6b;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #ff6b6b;
}
}








/* Updated Navigation Styles for Mobile */
@media (max-width: 768px) {
.main-nav {
  padding: 10px 0;
}

.nav-container {
  flex-direction: column;
  gap: 10px;
  padding: 0 15px;
}

.top-nav-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  order: 1;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
}

.nav-search {
  order: 2;
  flex-grow: 1;
  max-width: calc(100% - 100px);
}

.nav-search input {
  width: 100% !important;
  padding: 8px 35px 8px 15px;
  font-size: 13px;
}

.nav-right {
  order: 3;
  gap: 15px;
}

.nav-profile i,
.nav-cart i {
  font-size: 18px;
}

/* Location row below the top row */
.location-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 8px 15px;
  border-radius: 8px;
  margin-top: 5px;
}

.nav-location {
  width: 100%;
}

.location-display {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.store-title {
  font-size: 13px;
  white-space: nowrap;
}

.store-address {
  display: inline !important;
  font-size: 12px;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-location i {
  font-size: 16px;
  flex-shrink: 0;
}
}

/* For very small screens */
@media (max-width: 480px) {
.top-nav-row {
  gap: 8px;
}

.nav-logo img {
  height: 35px;
}

.nav-search input {
  padding: 7px 30px 7px 12px;
}

.store-title {
  font-size: 12px;
}

.store-address {
  font-size: 11px;
}
}












/* Navigation Responsive Styles */
@media (max-width: 1024px) {
.nav-container {
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 0;
}

.nav-logo {
  order: 1;
  flex: 1;
}

.nav-center {
  order: 3;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.nav-right {
  order: 2;
  flex: 1;
  justify-content: flex-end;
  gap: 20px;
}
}

@media (max-width: 768px) {
.nav-search input {
  width: 100% !important;
  max-width: 300px;
}

.nav-location .store-address {
  display: none;
}

.nav-location .store-title {
  font-size: 12px;
}

.nav-location i {
  font-size: 16px;
}
}

@media (max-width: 480px) {
.nav-container {
  gap: 10px;
  padding: 8px 0;
}

.nav-logo img {
  height: 35px;
}

.nav-center {
  order: 2;
  margin-top: 5px;
}

.nav-right {
  order: 1;
  gap: 15px;
}

.nav-search {
  width: 100%;
}

.nav-search input {
  padding: 8px 12px;
  font-size: 13px;
}

.nav-cart i, 
.nav-profile i {
  font-size: 18px;
}

.location-modal-content {
  width: 95%;
  padding: 15px;
}

.map-container {
  height: 250px;
}

.button-container {
  flex-direction: column;
}

.confirm-btn, 
.map-icon-btn {
  width: 100%;
}

.map-icon-btn {
  margin-top: 10px;
  height: 45px;
}
}

/* Hide regular cart button on mobile */
@media (max-width: 768px) {
.nav-cart {
  display: none;
}
}

/* Show floating cart button on mobile */
@media (min-width: 769px) {
.floating-cart-btn {
  display: none;
}
}


@media screen and (max-width: 768px) {
.top-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  flex-shrink: 0;
}

.search-bar {
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.profile-icons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.location-box {
  display: block; /* Visible only in mobile */
}
}

/* Hide location box in desktop */
@media screen and (min-width: 769px) {
.location-box {
  display: none;
}
}