/* Scoped comparator styles */
.comparator-wrapper {
    background-color: #170A1F;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    padding: 2rem 1rem;
  }
  
  .comparator-wrapper nav {
    background-color: #007bff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
  }
  
  .comparator-wrapper nav .navbar-brand,
  .comparator-wrapper nav .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  
  .comparator-wrapper .main-content {
    padding: 2rem;
  }
  
  .comparator-wrapper .search-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .comparator-wrapper .search-form {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
  }
  
  .comparator-wrapper .search-form input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
  }
  
  .comparator-wrapper .search-form button {
    padding: 0.5rem 1rem;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .comparator-wrapper .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 products per row */
    gap: 1.5rem;
    max-width: 1200px;
    padding: 1rem 2rem;
    margin-left: 0;         /* Align left */
    margin-right: auto;     /* Push remaining space to the right */
  }
  
  .comparator-wrapper .product-card {
    background-color: #240C30;
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    min-height: 340px;
  }
  
  .comparator-wrapper .product-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.75rem;
  }
  
  .comparator-wrapper .vendor {
    color: gold;
    font-weight: bold;
    font-size: 1.0rem;
    margin-bottom: 0.3rem;
  }
  
  .comparator-wrapper .product-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 38px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .comparator-wrapper .price {
    color: gold;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .comparator-wrapper .card-footer {
    margin-top: auto;
  }
  
  .comparator-wrapper .view-button {
    display: block;
    width: 93%;
    text-align: center;
    padding: 0.6rem;
    font-weight: 600;
    color: #d09eff;
    background-color: transparent;
    border: 2px solid #d09eff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 8px #d09eff44;
  }
  
  .comparator-wrapper .view-button:hover {
    background-color: #d09eff;
    color: #121212;
    box-shadow: 0 0 12px #d09eff, 0 0 24px #d09eff;
  }
  
  .comparator-wrapper .availability {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
  }
  
  .comparator-wrapper .availability.in {
    color: lightgreen;
  }
  
  .comparator-wrapper .availability.out {
    color: #ff4d4d;
  }
  
  .comparator-wrapper .search-bar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
  }
  
  .comparator-wrapper .search-bar-form input[type="text"],
  .comparator-wrapper .search-bar-form select {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: #2e2e3e;
    color: white;
    font-size: 0.95rem;
    outline: none;
    min-width: 180px;
  }
  
  .comparator-wrapper .search-bar-form input::placeholder {
    color: #bbb;
  }
  
  .comparator-wrapper .search-bar-form select {
    background-color: #2e2e3e;
    color: white;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0 2.5l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.6rem;
  }
  
  .comparator-wrapper .search-bar-form button {
    background: linear-gradient(to right, #9b59b6, #6c5ce7);
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
  }
  
  .comparator-wrapper .search-bar-form button:hover {
    background: linear-gradient(to right, #6c5ce7, #9b59b6);
  }
  
  .search-bar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.search-bar-form input[type="text"],
.search-bar-form select,
.search-bar-form button {
    height: 45px;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s ease;
}

/* Input */
.search-bar-form input[type="text"] {
    flex: 1;
    background-color: #ffffff;
    color: #000;
    min-width: 220px;
}

/* Select */
.search-bar-form select {
    background-color: #ffffff;
    color: #000;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='black' viewBox='0 0 24 24' width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

/* Button */
.search-bar-form button {
    background: linear-gradient(to right, #e91e63, #9c27b0);
    color: white;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
}

.search-bar-form button:hover {
    background: linear-gradient(to right, #9c27b0, #e91e63);
}

.comparator-wrapper .stock-filters input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #a64eff;
  border-radius: 4px;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  transition: 0.2s ease;
}

.comparator-wrapper .stock-filters input[type="checkbox"]:checked {
  background-color: #a64eff;
  border-color: #a64eff;
}

.comparator-wrapper .stock-filters input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  top: 1px;
  left: 5px;
  transform: rotate(45deg);
  opacity: 0;
}

.comparator-wrapper .stock-filters input[type="checkbox"]:checked::after {
  opacity: 1;
}



