/* Base styles */
body {
  font-family: 'Inter', sans-serif;
  padding-top: 76px;
}



.navbar {
  padding-top: 1rem;  /* Default: 0.5rem, Increased */
  padding-bottom: 1rem;  /* Default: 0.5rem, Increased */
}


.navbar-nav .nav-link {
  margin-left: 10px;
  margin-right: 10px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1070;
  width: auto;
  max-width: 90%;
}

.toast {
  background: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

/* Add to Cart Button */
.add-to-cart-btn {
  background-color: #000 !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.2s;
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: 8px;
  font-size: 0.9rem !important;
}

.add-to-cart-btn:hover {
  background-color: #333 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.add-to-cart-btn svg {
  stroke: #ffffff;
}

.nav-link:hover,
 .nav-link.active {
      color: #ffc107 !important;
    }



/* Mobile Floating Cart Button */
.mobile-cart-btn {
  position: fixed;
  bottom: 50px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0d6efd;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1040;
}

/* Cart Panel */
.cart-panel {
  position: fixed;
  top: 0;
  margin-top: 74px;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 86vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  right: 0;
}

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

.cart-header h5 {
  font-weight: 600;
  color: #2c3e50;
}

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

.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #fff;
  transition: transform 0.2s ease;
}

.cart-item:hover {
  transform: translateX(-5px);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-item-details {
  flex: 1;
  padding: 0 1rem;
}

.cart-item-details h6 {
  color: #2c3e50;
  font-weight: 600;
}

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

.quantity-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-total {
  padding: 1.25rem;
  border-top: 1px solid #eee;
  background: #f8f9fa;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cart-total h6 {
  color: #2c3e50;
  font-weight: 600;
}

.checkout-btn {
  background: #000;
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background: #333;
}

/* Product Card */
.product-card {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background: white;
  border: 1px solid #eee;
  margin-bottom: 1rem;
}

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

/* Product Image Fix */
.product-image {
  height: 250px; /* Default height for desktop */
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure the full image is visible */
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 1.25rem;
}

.product-info h5 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-info p {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 1rem;
}

/* Navbar Cart Button */
.cart-btn-container {
  margin-right: 1rem;
  position: relative;
  z-index: 1060;
}

.cart-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

.cart-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: white !important;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Footer styles */
footer {
  margin-top: auto;
  background: #2c3e50;
}

footer a {
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-12 {
    width: 100% !important; /* Force single column on mobile */
  }
  @media (max-width: 768px) {
    body {
        font-size: 14px; /* Reduce font size for mobile */
    }
    h5, p {
        font-size: 13px; /* Reduce headings and text */
    }
}

@media (max-width: 768px) {
  .footer {
      position: relative; /* Prevents it from getting cut off */
      bottom: 0;
      width: 100%;
  }
  .product-grid {
      padding-bottom: 100px; /* Ensure last product is visible */
  }
}
.product-grid {
  overflow: visible !important;
}
html, body {
  overflow-x: hidden;
  overflow-y: auto;
}
  .product-card {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .product-image {
    height: 180px; /* Shorter height for mobile */
  }

  .product-info {
    padding: 0.75rem;
  }

  .product-info h5 {
    font-size: 0.9rem;
  }

  .product-info p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .product-price {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .add-to-cart-btn {
    padding: 0.4rem !important;
    font-size: 0.8rem !important;
  }

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

  .cart-btn-container {
    display: none; /* Hide navbar cart button on mobile */
  }

  .mobile-cart-btn {
    display: flex; /* Show floating cart button on mobile */
  }

  .navbar-toggler {
    margin-left: 0;
    position: relative;
    z-index: 1060;
  }

  .navbar > .container {
    position: relative;
  }
}

/* Custom scrollbar for cart items */
.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}


/*search and catagory*/
/* Custom Wrapper */
.search-filter-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Modern Input Field */
.custom-input {
  border: 2px solid #ff758c;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
}

.custom-input:focus {
  border-color: #ff4b2b;
  box-shadow: 0 0 8px rgba(255, 75, 43, 0.3);
  outline: none;
}

/* Modern Dropdown */
.custom-dropdown {
  border: 2px solid #6a11cb;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  background: white;
  transition: all 0.3s ease;
  width: 100%;
}

.custom-dropdown:hover {
  border-color: #2575fc;
}

.custom-dropdown:focus {
  border-color: #ff7eb3;
  box-shadow: 0 0 8px rgba(255, 126, 179, 0.3);
  outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
  .col-12 {
    margin-bottom: 10px;
  }
}