.products-hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 86px;
  background: #050505;
  color: #ffffff;
  text-align: center;
}

.products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 46px 46px;
}

.products-hero .container {
  position: relative;
  z-index: 1;
}

.products-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.products-hero p {
  max-width: 650px;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
}

.products-page {
  min-height: 720px;
  padding: 54px 0 104px;
  background: #f7f7f7;
}

.products-layout {
  display: grid;
  grid-template-columns: minmax(230px, 292px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.products-sidebar,
.products-toolbar,
.products-empty,
.product-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.products-sidebar {
  position: sticky;
  top: 112px;
  padding: 28px;
}

.filter-block + .filter-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 18px;
  color: #1c1c1c;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-title::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 99px;
  background: #050505;
}

.products-search {
  position: relative;
}

.products-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: #1e1e1e;
  font: inherit;
  font-weight: 700;
  padding: 0.72rem 2.65rem 0.72rem 0.95rem;
  outline: none;
}

.products-search input:focus {
  border-color: #050505;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.products-search button {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #050505;
  transform: translateY(-50%);
}

.filter-options {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  color: #2d2d2d;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.filter-link:hover,
.filter-link:focus {
  color: #050505;
}

.filter-radio {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  background: #ffffff;
}

.filter-link.is-active .filter-radio {
  border: 5px solid #050505;
}

.filter-count {
  min-width: 38px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #555555;
  background: #f1f1f1;
  font-weight: 900;
  padding: 0 0.75rem;
}

.products-sort {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: #26303a;
  font: inherit;
  font-weight: 800;
  padding: 0 0.85rem;
}

.filter-reset {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #050505;
  font-weight: 900;
}

.filter-reset:hover,
.filter-reset:focus {
  color: #ffffff;
  background: #1f1f1f;
}

.products-toolbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 28px;
  padding: 18px 24px;
}

.products-count {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  color: #050505;
  background: #fafafa;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 0.55rem 1rem;
}

.products-view-toggle {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: 8px;
  background: #f2f2f2;
}

.products-view-toggle a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.46);
}

.products-view-toggle a.is-active {
  color: #ffffff;
  background: #050505;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  overflow: hidden;
  color: #171717;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.11);
  transform: translateY(-4px);
}

.product-image-wrap {
  position: relative;
  display: block;
  margin: 26px 26px 0;
  overflow: hidden;
  border-radius: 2px;
  background: #f4f4f4;
}

.product-image-wrap img {
  width: 100%;
  aspect-ratio: 1.08;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #050505;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.35rem 0.7rem;
}

.product-body {
  display: grid;
  gap: 0.55rem;
  padding: 22px 26px 24px;
}

.product-category {
  margin: 0;
  color: #777777;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h2 {
  min-height: 48px;
  margin: 0;
  color: #171717;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.product-description {
  min-height: 44px;
  margin: 0;
  color: #5d5d5d;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.product-price {
  margin: 0;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1;
}

.product-stock {
  color: #666666;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.product-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  color: #ffffff;
  background: #050505;
  font-weight: 900;
  padding: 0.58rem 1rem;
}

.product-action:hover,
.product-action:focus {
  color: #ffffff;
  background: #1f1f1f;
}

.products-grid.is-list {
  grid-template-columns: 1fr;
}

.products-grid.is-list .product-card {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
}

.products-grid.is-list .product-image-wrap {
  height: calc(100% - 52px);
  margin-bottom: 26px;
}

.products-grid.is-list .product-card h2,
.products-grid.is-list .product-description {
  min-height: 0;
}

.products-grid .featured-product-card {
  width: 100%;
  min-width: 0;
  flex: initial;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #050505;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.products-grid .featured-product-card img {
  width: calc(100% - 20px);
  aspect-ratio: 1.08;
  display: block;
  margin: 10px auto 0;
  border-radius: 8px;
  object-fit: cover;
  object-position: center center;
  pointer-events: auto;
}

.featured-product-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.products-grid .featured-product-card .featured-product-body {
  min-height: 154px;
  padding: 12px 18px 18px;
}

.featured-product-stock {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -2px 0 10px;
  border-radius: 999px;
  color: #555555;
  background: #f2f2f2;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.32rem 0.68rem;
}

.featured-product-stock.is-out-of-stock {
  color: #ffffff;
  background: #8a1f1f;
}

.products-grid .featured-product-card .featured-product-btn {
  margin-top: auto;
}

.products-grid.is-list .featured-product-card {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  align-items: stretch;
  text-align: left;
}

.products-grid.is-list .featured-product-card img {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  min-height: 190px;
  aspect-ratio: auto;
  margin: 10px;
}

.products-grid.is-list .featured-product-card .featured-product-body {
  align-items: flex-start;
  justify-content: center;
  min-height: 190px;
  padding: 24px 26px;
}

.products-grid.is-list .featured-product-card .featured-product-rule {
  margin-left: 0;
}

.products-empty {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 56px 24px;
  text-align: center;
}

.products-empty i {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #050505;
  font-size: 1.4rem;
}

.products-empty h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.products-empty p {
  max-width: 430px;
  margin: 0;
  color: #666666;
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .products-hero {
    padding: 134px 0 68px;
  }

  .products-page {
    padding: 36px 0 78px;
  }

  .products-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .products-view-toggle {
    justify-content: flex-end;
  }

  .products-grid,
  .products-grid.is-list {
    grid-template-columns: 1fr;
  }

  .products-grid.is-list .product-card {
    display: block;
  }

  .products-grid.is-list .product-image-wrap {
    height: auto;
    margin-bottom: 0;
  }
}

@media (max-width: 420px) {
  .products-sidebar,
  .product-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .product-image-wrap {
    margin-right: 20px;
    margin-left: 20px;
  }

  .filter-link {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .filter-count {
    grid-column: 2;
    justify-self: start;
  }
}
