/* Image-first Shop by Category cards */
.category-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 185px;
  max-height: 210px;
  display: block;
  position: relative;
  overflow: hidden;
  background: #ececee;
}

.category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 5, 8, .80) 100%);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .4s ease;
}

@media (max-width: 767px) {
  .category-image {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}

.category-card:hover .category-image img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.image-label {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 17px;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

.image-label i { font-size: 1rem; color: #ff668f; }

.image-arrow {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(14, 14, 17, .52);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
  transition: .3s;
}

.category-card:hover .image-arrow {
  background: var(--brand);
  border-color: var(--brand);
  transform: rotate(8deg);
}

/* Image catalogue inside Explore our products */
.product-tile {
  min-height: 190px;
  padding: 0 0 13px;
  justify-content: flex-start;
  overflow: hidden;
  background: #fff;
  border-color: #ededee;
}

.product-tile img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.product-tile:hover img { transform: scale(1.06); }

.product-tile > i {
  position: absolute;
  top: 88px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
}

.product-tile > span {
  padding: 21px 9px 0;
  font-size: .68rem;
}

.product-tile > b {
  z-index: 2;
  left: 8px;
  top: 8px;
}

.product-tile.featured { background: #fff; }

@media (max-width: 767px) {
  .product-tile { min-height: 175px; }
  .product-tile img { height: 100px; }
  .product-tile > i { top: 77px; }
}

/* Match every product card with the Shop by Category card design */
.product-grid,
.product-grid.seven,
.product-grid.tv-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-tile {
  min-height: 245px;
  border-radius: 16px;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 8px 24px rgba(22, 22, 25, .06);
}

.product-tile::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 155px;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 5, 8, .68));
  pointer-events: none;
}

.product-tile::after {
  content: "\2197";
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(14, 14, 17, .55);
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(7px);
  transition: .3s;
}

.product-tile:hover::after {
  background: var(--brand);
  border-color: var(--brand);
  transform: rotate(8deg);
}

.product-tile img {
  height: 155px;
}

.product-tile > i {
  z-index: 2;
  top: 128px;
  left: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.product-tile > span {
  width: 100%;
  padding: 28px 16px 4px;
  color: #202126;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .product-grid,
  .product-grid.seven,
  .product-grid.tv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-grid,
  .product-grid.seven,
  .product-grid.tv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-tile { min-height: 215px; }
  .product-tile img,
  .product-tile::before { height: 130px; }
  .product-tile > i { top: 105px; }
  .product-tile > span { padding: 28px 12px 2px; font-size: .68rem; }
}
