/* 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 */
}

/* 404 Page Styles */
.display-1 {
  font-size: 8rem;
  text-shadow: 2px 2px 10px rgba(0, 123, 255, 0.2);
}

.section-title-wrapper {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 10px; /* Adjust spacing between icon and text */
}

.section-title-wrapper i {
  font-size: 20px;
}

.section-title {
  display: inline-block;
  padding: 10px 20px;
  color: #000000; /* White text */
  /* border-radius: 5px; */
  font-size: 24px; /* Increase font size */
  font-weight: bold; /* Make the text bold */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Light shadow */
  cursor: pointer;
}

.section-title {
  margin-top: 17px;
}

.section-title:hover {
  text-decoration: underline;
}

.product__item {
  margin-bottom: 20px; /* Increased margin */
  margin-right: 20px; /* Increased margin */
  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 */
  width: 100%; /* Ensure full width */
  max-width: 300px; /* Increased max width */
}

.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: 250px; /* Increased height */
  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: contain;
}

.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: 2px 6px;
  border-radius: 3px;
  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;
  overflow-x: scroll;
  scroll-behavior: smooth;
}

/* Hide the scrollbar for the product filter */
.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.clicked {
  background: #e53637; /* Red background when clicked */
  color: white;
}

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

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

/* Pagination */
.pagination a {
  font-size: 12px;
  color: #007bff; /* Blue text */
  text-decoration: none;
  padding: 5px 8px;
  border: 1px solid #ccc; /* Light grey border */
  border-radius: 3px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #007bff; /* Blue background */
  color: #fff; /* White text */
}

/* Footer */
/* footer { */
/* background-color: #000; Black background */
/* color: #fff; White text */
/* text-align: center; */
/* padding: 10px 0; */
/* } */

/* Scroll Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  color: #fff; /* White text */
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10; /* Increase z-index to ensure buttons are above other elements */
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8); /* Darker black on hover */
}

.prev-btn {
  left: 10px; /* Adjust positioning to ensure visibility */
}

.next-btn {
  right: 10px; /* Adjust positioning to ensure visibility */
}

/* Zoom Effect Styles */
.zoom-container {
  position: relative;
  overflow: hidden;
}

.product-carousel-image {
  transition: transform 0.3s ease-in-out;
  cursor: zoom-in;
}

.zoom-container:hover .product-carousel-image {
  transform: scale(1.5); /* Adjust the zoom level */
  cursor: zoom-out;
}

/* Thumbnail Styles */
.thumbnail-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin: 0 5px;
  cursor: pointer;
  border: 2px solid #ddd; /* Light grey border */
}

.thumbnail-image:hover {
  opacity: 0.8;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Adjust spacing between buttons */
}

.action-buttons .btn-outline-danger {
  border-color: #dc3545; /* Red border */
  color: #dc3545; /* Red text */
}

.action-buttons .btn-outline-danger:hover {
  background-color: #dc3545; /* Red background on hover */
  color: #fff; /* White text on hover */
}

/* Banner Section */
.carousel-inner img {
  height: 400px; /* Adjust height as needed */
  object-fit: contain; /* Change to 'contain' to fit the section without filling it */
}
