:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --secondary: #f59e0b;
  --dark: #0d0b1f;
  --dark-light: #1b1634;
  --light: #ffffff;
  --gray: #6b7280;
}


/* HERO SECTION */
.hero-box {
  /* background: linear-gradient(145deg, #1c1737, #120f25); */
  background: #f7eedd;
  /* background: #C1917B; */
  border-radius: 16px;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.hero-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(139, 92, 246, 0) 70%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.search-box {
  /* background: var(--dark-light); */
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  gap: 10px;
  border: 1px solid var(--gray);
  transition: all 0.3s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--light);
  width: 100%;
  font-size: 1.5rem;
}

.search-box input:focus {
  outline: none;
  box-shadow: none;
}

.search-btn {
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.3s;
}

.search-btn:hover {
  background: var(--primary-dark);
}

.badge-premium {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 1.5rem;
  font-weight: 500;
}

/* PRODUCT CARD */
.product-card {
  /* background: var(--dark-light); */
  /* background: #f7eedd; */
  background: #c1917b;
  border-radius: 16px;
  padding: 15px;
  transition: 0.3s;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
}



.product-card:hover {
  /* background: #282049; */
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-card img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 15px;
}

.product-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--light);
  font-size: 2rem !important;
}

.product-category {
  /* color: var(--gray); */
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.product-price {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.1rem;
}

.product-rating {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* PAGINATION */
.pagination .page-link {
  color: var(--light);
  background: #c59881;
  border-color: #ffffff;
}

.pagination .page-item.active .page-link {
  /* background: var(--primary);
  border-color: var(--primary); */
  background: #ffffff;
  border-color: #000000;
}

.pagination .page-link:hover {
  /* background: var(--primary);
  border-color: var(--primary); */
  background: #ffffff;
  border-color: #000000;
  color: #000000;
}

/* SORTING */
.sort-control {
  background: #ffffff;
  color: #000000;
  border: 1px solid var(--gray);
  font-size: 1.4rem;
  border-radius: 8px;
}

.sort-control:focus {
  background: var(--dark-light);
  color: var(--light);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-box {
    flex-direction: column;
    padding: 30px 20px;
  }

  .hero-box > div:last-child {
    width: 100% !important;
  }

  .top-nav {
    flex-direction: column;
    gap: 15px;
  }
}

/*----------pagination styles-----------*/

a.page-link {
  font-size: 2rem;
  padding: 15px;
}

.products-showing-icon {
  font-size: 1.4rem !important;
}

.page-item.active .page-link {
  z-index: 3;
  color: #000000 !important;
  background-color: #ffffff !important;
  border-color: #000000 !important;
}

@media (max-width: 600px) {
  .mob-filter {
    display: block !important;
  }

  .pagination {
    padding: 0px 10px !important;
    margin-top: 0px !important;
  }

  .page-link {
    padding: 10px !important;
  }

  a.page-link {
    font-size: 2rem;
    padding: 6px !important;
}
}



/*---------------category filter styles-----------------*/

/* Remove blue background & focus color from select */
#categorySelect,
#categorySelect:focus,
#categorySelect:active,
#categorySelect:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    outline: none !important;
    border-color: #ced4da !important;
}

/* Dropdown options background */
#categorySelect option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Selected option (important fix) */
#categorySelect option:checked {
    background-color: #ffffff !important;
    color: #000000 !important;
}


/* Force white background for Sort dropdown */
#sortSelect,
#sortSelect:focus,
#sortSelect:active,
#sortSelect:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    outline: none !important;
    border-color: #ced4da !important;
}

/* Dropdown options */
#sortSelect option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Selected option */
#sortSelect option:checked {
    background-color: #ffffff !important;
    color: #000000 !important;
}
