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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #2d1b69;
  background: linear-gradient(135deg, #f8f4ff 0%, #e8d5ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 75px;
}

/* Utility Classes */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  border-left: 4px solid #27ae60;
  transform: translateX(100%);
  animation: slideInToast 0.4s ease forwards;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.toast.success {
  border-left-color: #27ae60;
}

.toast.error {
  border-left-color: #e74c3c;
}

.toast.info {
  border-left-color: #3498db;
}

.toast i {
  font-size: 16px;
  color: #27ae60;
}

.toast.error i {
  color: #e74c3c;
}

.toast.info i {
  color: #3498db;
}

@keyframes slideInToast {
  to {
    transform: translateX(0);
  }
}

/* Header Styles */
.header {
background: linear-gradient(135deg, #711c77 0%, #8e44ad 50%, #a21878 100%);
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.top-header {
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 70px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
}

.logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover img {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.welcome-message {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.welcome-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin: -2px 0;
}

/* Delivery Info */
.delivery-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-weight: 500;
  margin: 0 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.delivery-label {
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.delivery-time {
  font-weight: 700;
  color: #ffd700;
}

/* Search Container */
.search-container {
  flex-grow: 1;
  max-width: 450px;
  position: relative;
}

.search-wrapper {
  position: relative;
  display: flex;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.search-input {
  flex-grow: 1;
  padding: 0.9rem 1.3rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #333;
  background: transparent;
}

.search-input::placeholder {
  color: #666;
}

.search-button {
background: linear-gradient(135deg, #711c77 0%, #8e44ad 50%, #a21878 100%);
  color: white;
  border: none;
  padding: 0 1.3rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.search-button:hover {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  transform: scale(1.05);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown,
.mobile-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
}

.autocomplete-dropdown.active,
.mobile-autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.autocomplete-item:hover {
  background: #f8f4ff;
  color: #6a4c93 ;
}

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

.autocomplete-item i {
  color: #764ba2;
  font-size: 0.9rem;
}

/* User Actions */
.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-container {
  position: relative;
}

/* Enhanced User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 0;
  min-width: 280px;
  display: none;
  z-index: 1001;
  color: #333;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-dropdown.active {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.dropdown-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f4ff, #e8d5ff);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.user-avatar {
  width: 50px;
  height: 50px;
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: #2d1b69;
  font-size: 1rem;
}

.user-email {
  font-size: 0.8rem;
  color: #666;
}

.dropdown-menu {
  padding: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: #f8f4ff;
  color: #711c77 ;
}

.dropdown-item i {
  width: 16px;
  color: #666;
}

.dropdown-item:hover i {
  color: #711c77   ;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0.5rem 0;
}

.logout-item {
  color: #e74c3c;
}

.logout-item:hover {
  background: #ffeaea;
  color: #c0392b;
}

.logout-item i {
  color: #e74c3c;
}

.logout-item:hover i {
  color: #c0392b;
}

/* Cart Section */
.cart-section {
  display: flex;
  align-items: center;
}

.cart-icon {
  position: relative;
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.cart-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Header Styles */
.mobile-header {
  display: none;
}

.mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  min-height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auth-container {
  flex: 0 0 auto;
  position: relative;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.mobile-logo-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.mobile-logo img {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-cart-section {
  flex: 0 0 auto;
}

.mobile-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.mobile-cart-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.mobile-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

/* Mobile User Dropdown - Fixed positioning */
.mobile-dropdown {
  position: fixed;
  top: 130px;
  left: 1rem;
  right: 1rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 0;
  display: none;
  z-index: 1002;
  color: #333;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  max-width: calc(100vw - 2rem);
}

.mobile-dropdown.active {
  display: block;
  animation: slideDown 0.3s ease;
}

/* Mobile Search */
.mobile-search-container {
  padding: 0.8rem 1rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-wrapper {
  position: relative;
  display: flex;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.mobile-search-input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: #333;
  background: transparent;
}

.mobile-search-input::placeholder {
  color: #666;
}

.mobile-search-button {
background: linear-gradient(135deg, #711c77 0%, #8e44ad 50%, #a21878 100%);
  color: white;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.mobile-search-button:hover {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
}

/* Categories Navigation - Mobile Enhanced */
.categories-nav {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 0;
  display: none;
}

.categories-container {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 1rem;
  scroll-behavior: smooth;
}

.categories-container::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-2px);
}

.category-item.active {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-item span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Cart Popup */
.cart-popup {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-popup.active {
  right: 0;
}

.cart-popup-header {
  padding: 1.5rem;
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.cart-header-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-count {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.close-cart {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.close-cart:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.empty-cart-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f8f4ff, #e8d5ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #764ba2;
}

.empty-cart h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.empty-cart p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.browse-products-btn {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.browse-products-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.cart-item:hover {
  background: #f8f9fa;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f8f4ff, #e8d5ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-name {
  font-weight: 600;
  color: #2d1b69;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.cart-item-variant {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.cart-item-current-price {
  font-weight: 700;
  color: #2d1b69;
  font-size: 0.9rem;
}

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

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  color: #666;
}

.quantity-btn:hover {
  background: #6a4c93 ;
  color: white;
}

.quantity-input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: none;
  background: white;
  font-weight: 600;
  color: #2d1b69;
  font-size: 0.8rem;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.remove-item-btn:hover {
  background: #ffeaea;
  color: #c0392b;
}

.cart-footer {
  padding: 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.cart-total {
  margin-bottom: 1rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

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

.total-amount {
  font-weight: 700;
  color: #2d1b69;
  font-size: 1.2rem;
}

.checkoutbtn {
  width: 100%;
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.checkoutbtn:hover {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.checkout-btn {
  display: none;
}

.checkoutbtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Address Selection Modal */
.address-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.address-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

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

.address-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f4ff, #e8d5ff);
  border-radius: 20px 20px 0 0;
}

.address-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d1b69;
  margin: 0;
}


.address-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.address-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.address-modal-body {
  padding: 1.5rem;
}

.saved-addresses-section h4,
.add-address-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d1b69;
  margin-bottom: 1rem;
}
.delete-address-btn {
  background: transparent;
  border: none;
  color: #dc3545;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.delete-address-btn:hover {
  background: rgba(220, 53, 69, 0.1);
}
.toggle-add-address-btn {
  background-color: #9b59b6; /* Primary blue */
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.toggle-add-address-btn:hover {
  background-color: #8e44ad;
  transform: translateY(-1px);
}

.toggle-add-address-btn i {
  font-size: 14px;
}


.saved-addresses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.address-option {
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.address-option:hover {
  border-color: #6a4c93 ;
  background: #f8f4ff;
}

.address-option.selected {
  border-color: #6a4c93 ;
  background: #f8f4ff;
}

.address-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.address-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d1b69;
  font-size: 0.9rem;
}

.address-type i {
  color: #764ba2;
}

.address-details p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.selected-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #27ae60;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.address-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.address-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
}

.address-divider span {
  background: white;
  padding: 0 1rem;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
}

.address-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select {
  padding: 0.8rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #6a4c93 ;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-address-btn,
.continue-checkout-btn {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.add-address-btn:hover,
.continue-checkout-btn:hover {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.address-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 0 0 20px 20px;
}

.continue-checkout-btn {
  width: 100%;
  margin-top: 0;
}

/* Modal open body class */
body.modal-open {
  overflow: hidden;
}

/* Products Hero Section */
.products-hero {
  background: linear-gradient(135deg, #711c77 0%, #8e44ad 50%, #a21878 100%);

  

  color: white;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-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="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

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

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: slideInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  animation: slideInUp 1s ease-out 0.2s both;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Products Section */
.products-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8f4ff 0%, #e8d5ff 100%);
  position: relative;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  min-height: calc(100vh - 200px);
}

.products-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Enhanced Desktop Quick Filter Buttons */
.quick-filters {
  margin-bottom: 1rem;
  padding: 1.5rem 0;
}

.filters-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.8rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  background: white;
  color: #666;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: auto;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  transition: left 0.4s ease;
  z-index: -1;
}

.filter-btn:hover::before {
  left: 0;
}

.filter-btn:hover {
  color: white;
  border-color: #6a4c93 ;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(102, 126, 234, 0.2);
}

.filter-btn.active {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  border-color: #6a4c93 ;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(102, 126, 234, 0.3);
}

.filter-icon {
  width: 35px;
  height: 35px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #764ba2;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.filter-btn:hover .filter-icon,
.filter-btn.active .filter-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.filter-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
}

/* Products Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.products-count {
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
}

.products-count strong {
  color: #764ba2;
  font-weight: 700;
  font-size: 1.2rem;
}

.view-toggle {
  display: flex;
  gap: 0.3rem;
  background: white;
  padding: 0.4rem;
  border-radius: 15px;
  border: 2px solid #e8d5ff;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.view-btn {
  padding: 0.8rem 1.2rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.view-btn.active {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.view-btn:hover:not(.active) {
  background: #f8f4ff;
  color: #764ba2;
}

/* Product Grid - Desktop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Enhanced Desktop Product Card */
.product-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
}



/* @keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.product-image {
  height: 220px;
  background: linear-gradient(135deg, #f8f4ff, #e8d5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}


.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}



.product-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d1b69;
  margin-bottom: 1rem;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.3s ease;
}

.product-info h3:hover {
  color: #6a4c93 ;
}

.product-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.3s ease;
}



.product-price-container {
  margin-bottom: 1.5rem;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2d1b69;
}

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

.discount-badge {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-info {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

/* Product Actions - Variant and Cart in Same Line */
.product-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.variants-dropdown {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 2px solid #e8d5ff;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #2d1b69;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.variants-dropdown:focus {
  outline: none;
  border-color: #6a4c93 ;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-to-cart {
  width: 50px;
  height: 50px;
background: linear-gradient(135deg, #711c77 0%, #8e44ad 50%, #a21878 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
}

.add-to-cart:hover {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.add-to-cart:active {
  transform: translateY(0);
}

.add-to-cart:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 4rem 0;
}

.pagination-btn {
  padding: 1.2rem 2rem;
  border: 2px solid #e8d5ff;
  border-radius: 15px;
  background: white;
  color: #666;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.pagination-btn:hover:not(:disabled) {
  border-color: #6a4c93 ;
  color: #6a4c93 ;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.page-numbers {
  padding: 1.2rem 2.5rem;
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  color: white;
  border-radius: 15px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  font-size: 1.1rem;
}

/* Loading States */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem;
  text-align: center;
  grid-column: 1 / -1;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  border-top-color: #6a4c93 ;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
}

/* No Products Message */
.no-products-message,
.error-message {
  text-align: center;
  padding: 5rem 2rem;
  color: #666;
  grid-column: 1 / -1;
}

.no-products-message i,
.error-message i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 1.5rem;
}

.no-products-message p,
.error-message p {
  font-size: 1.3rem;
  font-weight: 500;
}

/* Footer */
.footer {
  position: relative;
  background: linear-gradient(135deg, #711c77 80%, #a21878 100%);
  color: white;
  margin-top: 4rem;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.footer-wave .shape-fill {
  fill: #e8d5ff;
}

.footer-main {
  padding: 4rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffd700;
  display: block;
}

.footer-brand-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  display: block;
}

.footer-description {
  color: #bdc3c7;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  transform: translateY(-3px);
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  position: relative;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  border-radius: 2px;
}

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

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

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.footer-section ul li a:hover {
  color: #6a4c93 ;
  padding-left: 0.8rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #bdc3c7;
  font-size: 1rem;
}

.contact-item i {
  width: 20px;
  color: #764ba2;
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom-content p {
  font-size: 0.9rem;
  color: #bdc3c7;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #6a4c93 ;
}

/* Mobile Responsive Design */
@media (max-width: 992px) {
  body {
    padding-top: 90px;
  }

  .top-header {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem 1rem;
  }

  .logo-section {
    order: 1;
    flex: 1;
  }

  .user-actions {
    order: 2;
  }

  .search-container {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 0.8rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

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

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

  .filter-btn {
    padding: 1.2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 140px;
  }

  .top-header {
    display: none !important;
  }

  .delivery-info,
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-header {
    display: block !important;
  }

  .categories-nav {
    display: block !important;
  }

  .products-hero {
    padding: 60px 0 30px;
  }

  .hero-title {
    margin-top: 1.5rem;
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  /* Mobile Products Section */
  .product-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .checkout-btn{
     width: 100%;
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  }
  .checkoutbtn{
    display: none;
  }
  /* Mobile Product Card - Enhanced Design */
  .product-card {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    padding: 1.2rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    min-height: auto;
  }

  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #6a4c93 ;
  }

  .product-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .product-image {
    width: 130px;
    height: 110px;
    background: linear-gradient(135deg, #f8f4ff 0%, #e8d5ff 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
  }

  .product-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
  }

  .product-card:hover .product-image::before {
    transform: translateX(100%);
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }

  .product-card:hover .product-image img {
    transform: scale(1.05);
  }

  .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
  }

  .product-info h3,
  .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .product-info h3:hover,
  .product-name:hover {
    color: #6a4c93 ;
  }

  .price-info-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.3rem;
  }

  .price-values-line {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.2rem;
  }

  .mrp {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
  }

  .discounted-price,
  .product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
  }

  .tax-note {
    font-size: 0.7rem;
    color: #888;
  }

  .cart-popup {
    width: 100vw;
    height: 100vh;
    right: -100vw;
  }

  .cart-popup.active {
    right: 0;
  }

  /* Smaller discount box for mobile */
  .discount-box {
    background: linear-gradient(135deg, #e6f4e7, #d4edda);
    color: #1c7c3e;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid #c3e6cb;
    max-width: fit-content;
  }

  .product-bottom,
  .product-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .variant-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .variants-dropdown {
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    width: 100%;
    background: white;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .variants-dropdown:focus {
    outline: none;
    border-color: #6a4c93 ;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
  }

  .add-to-cart {
  background: linear-gradient(135deg, #711c77 0%, #8e44ad 100%, #a21878 50%);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: static;
    width: auto;
    height: auto;
    white-space: nowrap;
  }

  .add-to-cart:hover {
  background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }

  .add-to-cart:active {
    transform: translateY(0);
  }

  .add-to-cart i {
    font-size: 0.8rem;
  }

  .user-dropdown {
    min-width: 250px;
  }

  .toast {
    min-width: auto;
    left: 10px;
    right: 10px;
  }

  .toast-container {
    top: 150px;
  }

  /* Address modal responsive */
  .address-modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

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

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
 .toggle-add-address-btn {
    width: 100%;
    justify-content: center;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
   .related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .products-section {
    padding: 1.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-image {
    width: 110px;
    height: 90px;
  }

  .product-info h3,
  .product-name {
    font-size: 1rem;
  }

  .categories-container {
    gap: 0.6rem;
  }

  .category-item {
    padding: 0.5rem 0.8rem;
    min-width: 50px;
  }

  .category-item span {
    font-size: 0.75rem;
  }

  .address-modal-content {
    width: 95%;
    margin: 0.5rem;
  }

  .address-modal-body {
    padding: 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, #711c77 50%, #a21878 100%);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
  outline: 2px solid #6a4c93 ;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-card {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

