/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  background-color: #dbdcdd; /* Offwhite background */
  color: #000; /* Black text */
}

.container {
  width: 100%;
  padding: 0 15px; /* Adjust padding as needed */
  margin: 0 auto;
  max-width: 1400px; /* Ensure the container spans the full width */
}

/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Trigger Link */
.sign-in-link {
  font-size: 16px;
  color: #fff; /* White text */
  background-color: #007bff; /* Blue background */
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sign-in-link:hover {
  background-color: #0056b3; /* Darker blue background on hover */
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff; /* White background */
  color: #000; /* Black text */
  min-width: 150px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  color: #000; /* Black text */
  padding: 10px 15px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f1f1f1; /* Light grey background on hover */
  color: #007bff; /* Blue text on hover */
}

/* Show Dropdown Content on Hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Navbar Styles */
.navbar {
  background-color: #ffffff; /* White background */
}

.navbar-nav .nav-link {
  color: #000 !important; /* Black text */
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: #007bff; /* Blue line */
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%; /* Full width on hover */
  left: 0;
  background: #007bff; /* Blue line */
}

.navbar-nav .nav-link:hover {
  color: #007bff !important; /* Blue text on hover */
}

.navbar-toggler {
  border-color: #007bff; /* Blue border */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 123, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Dropdown Styles */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-item.dropdown .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 250px; /* Larger dropdown box */
  padding: 10px 20px; /* Add padding */
  border: 1px solid #ddd; /* Light grey border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.dropdown-menu .dropdown-item {
  padding: 10px 15px; /* Add padding */
  color: #000; /* Black text */
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f1f1f1; /* Light grey background on hover */
  color: #007bff; /* Blue text on hover */
}

/* Icons Group */
.icons-group a {
  color: #000 !important; /* Black text */
}

.icons-group a:hover {
  color: #333 !important; /* Darker grey text on hover */
}

/* Filters Section */
.filters-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filters-section h3 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.filters-section .form-label {
  font-weight: bold;
  color: #555;
}

.filters-section .form-select {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 14px;
  color: #333;
}

.filters-section .form-check-label {
  font-size: 14px;
  color: #555;
}

.filters-section .form-check-input {
  margin-right: 10px;
}

.filters-section .btn {
  background-color: #007bff;
  color: #fff;
  width: 113px;
  padding: 7px 4px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filters-section .btn:hover {
  background-color: #0056b3;
}

.product__item {
  margin-bottom: 15px;
  /* Remove margin-right to avoid extra spacing */
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  border: 2px solid #ddd; /* Light grey border */
  background-color: #fff; /* White background */
  color: #000; /* Black text */
}

.product__item:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.product__item.compact {
  padding: 10px;
}

/* Product Image */
.product__item__pic {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px; /* Optional: Add rounded corners */
}

.product__item__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__item__pic .hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease; /* Smooth transition */
}

.product__item__pic:hover .hover-image {
  opacity: 1;
}

.product-name {
  font-size: 16px; /* Increase font size */
  font-weight: bold; /* Make the text bold */
  color: #007bff; /* Blue text */
  margin-bottom: 5px;
}

.product-price {
  font-size: 18px; /* Increase font size */
  color: #000; /* Black text */
  font-weight: bold; /* Make the text bold */
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.product-price del {
  font-size: 12px; /* Decrease font size for the original price */
  color: #565959; /* Grey color */
  margin-left: 10px; /* Add some space between sale price and regular price */
  font-weight: bold; /* Make the text bold */
}

/* Product Discount */
.product-discount {
  background: #ffd700; /* Gold background */
  color: #000; /* Black text */
  padding: 2px 6px; /* Adjust padding for better visibility */
  border-radius: 3px; /* Small border radius */
  font-size: 12px; /* Font size for discount */
  font-weight: bold; /* Make the text bold */
  margin-left: 10px; /* Add margin to separate from the price */
  display: inline-block; /* Ensure it stays inline with the price */
  box-shadow: none; /* Remove any shadow */
  transition: none; /* Remove any transition effects */
}

/* Product Category */
.product-category {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  z-index: 100; /* Ensure it is above other elements */
}

.product-category.new-phone {
  background: #28a745; /* Green background for new phones */
  color: #fff; /* White text */
}

.product-category.refurbished {
  background: #ffc107; /* Yellow background for refurbished phones */
  color: #000; /* Black text */
}

.product__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product__filter-wrapper {
  padding: 20px;
}

.product__filter-wrapper .product__filter {
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
  overflow: hidden;
}

.product__filter-wrapper .product__filter::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

/* Add to Cart Button */
.add-cart {
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 15px;
  background: #007bff; /* Blue background */
  color: #fff; /* White text */
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.add-cart:hover {
  background: #0056b3; /* Darker blue background */
  transform: translateY(-2px);
}

/* Wishlist Button */
.wishlist-btn {
  background: rgba(255, 255, 255, 0.8);
  color: #e53637; /* Red color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  width: 35px;
  height: 35px;
  transition: background 0.3s ease, color 0.3s ease;
  margin-left: 10px; /* Add margin to separate from Add to Cart button */
}

.wishlist-btn:hover {
  background: #e53637; /* Red background on hover */
  color: white;
}

/* Remove old wishlist button position */
.product__item__pic .wishlist-btn {
  display: none;
}

/* No Products Available Message */
.no-products {
  padding: 50px 0;
  font-size: 24px;
  color: #ff0000; /* Red color for the message */
  font-weight: bold;
}

.btn-secondary {
  margin-top: 10px;
  width: 100%;
}