* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

:root {
  --body: #667085;
  --primary-color: #001b3d;
  --secondary-color: #087443;
  --accent-color: #f2b544;
  --main-bg: #f7f9f8;
  --heading-color: #102033;
  --second-text: #667085;
  --border-color: #e4e7ec;
  --success-green: #12b76a;
  --error-red: #d92d20;
  --warning-color: #f79009;
  --icon-color: #fff;
  --icon-hover-bg: #12b76a;
  --button-bg: #087443;
  --white-text-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "DM Sans", sans-serif;
}

button,
input,
select,
option,
optgroup {
  outline: none;
  border: none;
}

/*  */

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px;
  background-color: var(--primary-color);
  height: 40vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("/assets/images/car.png");
  background-position: center;
  background-size: cover;
  color: var(--white-text-color);
}

.product-header-title {
  font-size: 42px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.4s ease;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.product-header-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border: 2px solid var(--border-color);
  padding: 10px;
  border-radius: 16px;
  width: 250px;
}

.product-stats-icon i {
  color: var(--secondary-color);
  font-size: 52px;
}

.product-stats-content h3 {
  font-size: 32px;
}

@media (max-width: 480px) {
  .product-header {
    height: 40vh;
    padding: 20px 30px;
    flex-direction: column;
  }

  .product-header-title {
    font-size: 32px;
  }

  .breadcrumb a {
    font-size: 14px;
  }

  .product-header-stats {
    /* margin-top: 10px; */
    width: 260px;
  }

  .product-stats-content h3 {
    font-size: 24px;
  }
}

/*  */

.main-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 50px;
  padding: 20px 100px;
  margin-top: 50px;
}

.sidebar {
  width: 25%;
  background-color: var(--main-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 4px;
}

.category,
.filter,
.location {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category i,
.filter i,
.location i {
  font-size: 20px;
  background-color: #fff;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
}

.sidebar-title,
.filter-title {
  font-size: 20px;
}

.category-list {
  margin-top: 20px;
  border-bottom: 1px solid var(--border-color);
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.category-item h3 {
  font-weight: 500;
  font-size: 16px;
}

.all-products h3 {
  font-weight: 600;
}

.category-item span {
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  margin-bottom: 5px;
  border-radius: 16px;
  font-size: 14px;
}

.all-products span {
  background-color: var(--secondary-color);
  color: var(--white-text-color);
}

.filters {
  margin-top: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* .filter-group {
  margin-top: 20px;
} */

.filter-group-title {
  font-size: 18px;
  font-weight: 500;
}

.all-condition {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

input[type="checkbox"] {
  accent-color: var(--secondary-color);
}

.filter-option-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.filter-option-count span {
  font-size: 14px;
}

.filter-input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.price-range {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--primary-color);
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  margin-bottom: 20px;
}

.price-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 27, 61, 0.25);
}

.price-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--secondary-color);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
}

.locations .locations-title {
  font-size: 20px;
  margin-top: 10px;
}

.location-option {
  margin-top: 10px;
}

.location-option .filter-input-group {
  display: flex;
  justify-content: start;
  align-items: center;
}

.location-option-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.location-option-count span {
  font-size: 14px;
}

.clear-filters-btn {
  margin-top: 20px;
  background-color: var(--button-bg);
  width: 180px;
  padding: 10px;
  border-radius: 60px;
  color: var(--white-text-color);
  cursor: pointer;
}

.clear-filters-btn i {
  margin-right: 5px;
}
/*  */

.content-area {
  width: 75%;
}

.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-search {
  padding: 10px 20px;
  width: 400px;
  border: 1px solid var(--border-color);
  border-radius: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-search input {
  width: 60%;
}

.product-search i {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  border-radius: 50%;
  color: var(--white-text-color);
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.product-sort {
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 84px;
}

/*  */

.products-count {
  margin-top: 30px;
}

.products-count h5 {
  font-weight: 400;
  font-size: 16px;
}

.products-count h5 .showing-range,
.total-products {
  font-weight: 600;
}

@media (max-width: 480px) {
  .main-content {
    flex-direction: column;
    padding: 20px;
  }

  .sidebar,
  .content-area {
    width: 100%;
    box-sizing: border-box;
  }

  .sidebar-title,
  .filter-title,
  .locations .locations-title {
    font-size: 18px;
  }

  .all-products h3,
  .category-item h3 {
    font-size: 14px;
  }

  .category-item span,
  .filter-option-count span,
  .location-option-count span {
    font-size: 12px;
  }

  .clear-filters-btn {
    width: 296px;
    font-size: 14px;
  }

  .product-toolbar {
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;
  }

  .product-search {
    width: 100%;
  }

  .products-count h5 {
    font-size: 14px;
  }

  section .products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}
/*  */

.products-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.product-card {
  flex: 0 0 calc((100% - 75px) / 4);
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* .product-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
} */

.product-image {
  height: 160px;
  background: linear-gradient(135deg, #f5f8fc, #e8eef6);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.07);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--button-bg);
  color: #fff;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  z-index: 2;
}

.wishlist {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 38px;
  height: 38px;

  border: none;
  border-radius: 50%;

  background: #fff;
  color: var(--primary-color);

  cursor: pointer;

  font-size: 18px;

  z-index: 2;

  transition: 0.3s ease;
}

.wishlist:hover {
  background: var(--button-bg);
  color: #fff;
}

.product-content {
  padding: 20px;
}

.product-category {
  color: #777;

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}

.product-content h3 {
  color: var(--primary-color);

  font-size: 16px;

  margin: 7px 0 10px;
}

.product-rating {
  display: flex;

  align-items: center;

  gap: 3px;

  color: #f5a623;

  font-size: 12px;
}

.product-rating span {
  color: #888;

  font-size: 12px;

  margin-left: 5px;
}

.product-bottom {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-top: 18px;
}

.product-bottom h4 {
  color: var(--primary-color);

  font-size: 16px;
  margin: 0;
}

.product-bottom .links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.view-product,
.add-product {
  width: 30px;
  height: 30px;

  border-radius: 50%;

  background: var(--button-bg);
  color: #fff;

  display: flex;

  justify-content: center;
  align-items: center;

  text-decoration: none;

  font-size: 16px;

  transition: 0.3s ease;
  cursor: pointer;
}

.view-product:hover {
  transform: rotate(45deg);
}
