
/* Reset default margin and padding, and prevent horizontal overflow */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* Make all images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent .container from overflowing */
.container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Navbar styles */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
  color: white;
}

/* Remove blue outline and keep dark background for search */
.input-group .form-control:focus {
  box-shadow: none;
  background-color: black;
  color: white;
}

/* Dropdown styling */
.dropdown-menu .dropdown-item {
  background-color: transparent;
  color: white;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #dc3545 !important;
  color: white;
}

/* Social Links */
.social-icon {
  color: white;
}
.social-icon:hover {
  color: #dc3545;
}

/* Cart Popup */
.cart-popup {
  position: fixed;
  top: 120px;
  right: 20px;
  width: 340px;
  max-height: 420px;
  background-color: #111;
  color: #fff;
  border: 1px solid #dc3545;
  border-radius: 10px;
  padding: 1rem;
  z-index: 99999;
  display: none;
  box-shadow: 0 0 12px rgba(220, 53, 69, 0.6);
}

.cart-popup.show {
  display: flex;
  flex-direction: column;
}

.cart-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.cart-popup .popup-body {
  overflow-y: auto;
  max-height: 200px;
  padding-right: 5px;
}

.cart-popup .popup-body::-webkit-scrollbar {
  width: 6px;
}
.cart-popup .popup-body::-webkit-scrollbar-thumb {
  background-color: #dc3545;
  border-radius: 10px;
}

.cart-popup .popup-footer {
  margin-top: 10px;
  text-align: right;
}

.cart-popup .close-popup {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-popup img {
  border-radius: 4px;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: none; 
  align-items: center;
  justify-content: center;
  text-align: center;
}



/* Cards */
#card:hover {
  transform: scale(1.01);
  transition: transform 0.2s;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Hovereffect for rating stars */
form button i:hover,
form button:hover ~ button i {
  filter: opacity(0.6);
  cursor: pointer;
}

/* Full width search input on small screens */
@media (max-width: 768px) {
  .search-input {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .cart-popup {
    top: 80px;
    right: 10px;
  }
}
