/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-color: #f5f5f5; /* Light background for contrast */
}

/* Header */
header {
    background: #000000;
    color: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 2rem;
}
.logo img {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease; /* Smooth hover effect */
}

.nav-links li a:hover {
    color: #0018f0ba; /* Blue hover color */
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-icons a:hover {
    color: #0018f0ca;
}

.navbar input[type="text"] {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    margin-left: 1rem;
    width: 200px;
}

.nav-links .active {
    font-weight: bold;
    color: blue;
}

/* Main Content */
main {
    padding: 20px;
}

/* General Layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: -47px;
}
/* Filter Section */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    max-width: 91px;
}

.filter-toggle-btn img {
    width: 20px;
    height: 20px;
}

.filter-toggle-btn:hover {
    background: #5e5e5e;
}

/* Filter Sidebar */
.filter-sidebar {
    display: none; /* Hidden by default */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50px;
    z-index: 100;
    width: 250px;
}

.filter-sidebar.visible {
    display: block;
    transform: translateX(0);
}

.filter-sidebar h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.filter-group label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

.filter-group input {
    margin-right: 8px;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
}

.filter-group select:focus {
    outline: none;
    border-color: #007aff;
}

/* Buttons */
.filter-sidebar button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
}

.filter-sidebar button:hover {
    background: #005bb5;
}

/* Clear Filters Button */
.filter-sidebar button[type="button"] {
    background: #dc3545;
}

.filter-sidebar button[type="button"]:hover {
    background: #a71d2a;
}
.icon-stack {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex; /* Always show icons */
  flex-direction: column;
  gap: 10px;
}


.cart-icon-wrapper {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
  display: none;
}

/* Wishlist Icon */
.wishlist-icon {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.wishlist-icon i {
  color: grey;
  transition: color 0.3s ease;
  padding-top: 30px;
}
.wishlist-icon:hover i {
  color: rgb(255, 0, 0);
}
.wishlist-icon.active i {
  color: red;
}
/* Add to your CSS file (home.css or watch.css) */
.wishlist-count-badge {
  position: absolute;
  margin-left: 0px;
  top: -8px;
  right: -10px;
  background: #ff0000;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 13px;
  font-weight: bold;
  z-index: 2;
}
.wishlist-icon-wrapper {
  position: relative;
  display: inline-block;
}
/* Cart Icon */
.cart-icon {
  background: none;
  border: none;
  cursor: pointer;
}
.cart-icon i {
  color: #0d6efd;
  font-size: 18px;
  transition: color 0.3s ease;
}
.cart-icon:hover i {
  color: #084298;
}



  .blocked-product {
    opacity: 0.6; /* Makes the card appear grayed out */
    pointer-events: none; /* Disables interaction with the card */
  }
  
  .blocked-product img {
    filter: grayscale(100%); /* Optional: Makes the image appear in grayscale */
  }
  
  .blocked-product .wishlist-icon {
    pointer-events: none; /* Disables the wishlist button */
    opacity: 0.5;
  }
/* Responsive Design */
@media (max-width: 768px) {
    .filter-sidebar {
        width: 90%;
        left: 5%;
    }
}

/* Product Section */
.categories {
    margin: 2rem 0;
}

.categories h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Always show 4 columns */
    gap: 1.5rem;
    padding: 1rem;
}

.product-cards {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.product-cards img {
    width: 100%;
    max-height: 150px;
    border-radius: 8px;
    object-fit: contain; /* Keep the image fully visible */
}

.product-cards p {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.imgs {
    width: 100%;
    max-height: 150px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.product-cards:hover {
    transform: scale(1.05); /* Slightly enlarge the image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for emphasis */
}

.phone-lineup {
    margin: 2rem 0;
}

.promo-banner {
    display: flex;
    gap: 1rem;
}

.promo-banner .banner {
    flex: 1;
}

.promo-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Brand Section for Apple and Samsung */
.brand-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.phone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four columns */
    gap: 15px; /* Space between the cards */
    margin-bottom: 30px;
}

.phone-cardd {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-cardd img {
    max-width: 40%;
    height: auto;
    margin-bottom: 15px;
}

.phone-cardd p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.show-now-btn {
    display: block;
    width: auto;
    margin: 0 auto;
    padding: 8px 16px;
    background-color: #00000000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.phone-cardd:hover{
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
/*.phone-cardd:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
}*/
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
  }
footer {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007aff;
}
.img-fluid {
    max-width: 45%;
    height: auto;
}
/* Add a custom style for active filters */
input[type="checkbox"]:checked, input[type="radio"]:checked {
    border-color: #007BFF;
    background-color: #007BFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .phone-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .phone-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .phone-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
  position: relative;
}

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

.wishlist-icon {
  position: absolute;
  top: 10px;
  right: 0px;
  z-index: 2;
}

.wishlist-icon button {
  background: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-container {
  margin: 10px 0;
}

.current-price {
  color: #e63946;
  font-weight: bold;
  font-size: 1.1rem;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  margin-left: 8px;
  font-size: 0.9rem;
}

.discount-badge {
  display: inline-block;
  background: #e63946;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 8px;
}

.regular-price {
  font-weight: bold;
  color: #333;
}

.out-of-stock {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 5px;
}
@media (max-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-icons {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  /* shrink search bar */
  .search-container input {
    width: 120px;
  }
}
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  display: none; /* hidden on desktop */
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* show hamburger only on mobile */
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }
}
