/* =========================================
   SUBCATEGORY SECTION
========================================= */

.subcategory_showcase {
  width: 100%;
}

/* =========================================
   HEADER
========================================= */

.subcategory_header {
  margin-bottom: 20px;
}

.subcategory_header_content {
  max-width: 650px;
}

.subcategory_eyebrow {
  display: inline-block;
  margin-bottom: 6px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0e9ed6;
}

.subcategory_title {
  margin: 0 0 7px;
  font-size: clamp(25px, 3vw, 28px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #171717;
}

.subcategory_title span {
  font-weight: 400;
  color: #0e9ed6;
}

.subcategory_description {
  max-width: 600px;
  margin: 0;

  font-size: 12px;
  line-height: 1.55;
  color: #777;
}

/* =========================================
   SHOWCASE BOX
========================================= */

.subcategory_showcase_box {
  width: 100%;
}

.subcategory_products {
  width: 100%;
}

/* =========================================
   SMALL HEADING
========================================= */

.subcategory_products_top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 12px;
}

.subcategory_products_top h3 {
  margin: 0;

  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;

  color: #222;
}

.subcategory_products_top h3 span {
  color: #0e9ed6;
  font-weight: 400;
}

/* =========================================
   SWIPER
========================================= */

.subcategory_swiper {
  width: 100%;
  padding: 3px 2px 30px !important;
}

.subcategory_swiper .swiper-slide {
  height: auto;
}

/* =========================================
   CARD
========================================= */

.subcategory_card {
  position: relative;

  width: 100%;
  height: 190px;

  overflow: hidden;
  border-radius: 12px;

  background: #eeeeee;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.subcategory_card:hover {
  transform: translateY(-3px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.subcategory_card_active {
  box-shadow:
    0 0 0 2px #0e9ed6,
    0 8px 22px rgba(21, 148, 127, 0.12);
}

/* =========================================
   IMAGE
========================================= */

.subcategory_card_image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
}

.subcategory_card_image::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );

  z-index: 1;
}

.subcategory_card_image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.subcategory_card:hover .subcategory_card_image img {
  transform: scale(1.06);
}

/* =========================================
   CARD OVERLAY
========================================= */

.subcategory_card_overlay {
  position: absolute;

  left: 15px;
  right: 15px;
  bottom: 13px;

  z-index: 2;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 10px;
}

.subcategory_card_overlay span {
  display: block;

  margin-bottom: 4px;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.3px;

  color: rgba(255, 255, 255, 0.65);
}

.subcategory_card_overlay h4 {
  max-width: 180px;

  margin: 0;

  font-size: 17px;
  line-height: 1.15;
  font-weight: 600;

  color: #ffffff;
}

/* =========================================
   ARROW
========================================= */

.subcategory_card_arrow {
  flex-shrink: 0;

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;

  font-size: 10px;
  color: #ffffff;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.subcategory_card:hover .subcategory_card_arrow,
.subcategory_card_active .subcategory_card_arrow {
  background: #0e9ed6;
  border-color: #0e9ed6;

  transform: translateX(2px);
}

/* =========================================
   PAGINATION
========================================= */

.subcategory_swiper .swiper-pagination {
  bottom: 2px !important;
}

.subcategory_swiper .swiper-pagination-bullet {
  width: 5px;
  height: 5px;

  margin: 0 3px !important;

  opacity: 0.25;

  transition:
    width 0.3s ease,
    opacity 0.3s ease;
}

.subcategory_swiper .swiper-pagination-bullet-active {
  width: 18px;

  border-radius: 10px;

  opacity: 1;
  background: #0e9ed6;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 767px) {
  .subcategory_showcase {
    padding: 25px 0 30px;
  }

  .subcategory_header {
    margin-bottom: 17px;
  }

  .subcategory_description {
    max-width: 500px;
    font-size: 11px;
  }

  .subcategory_products_top {
    margin-bottom: 10px;
  }

  .subcategory_products_top h3 {
    font-size: 17px;
  }

  .subcategory_card {
    height: 175px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {
  .subcategory_showcase {
    padding: 22px 0 28px;
  }

  .subcategory_title {
    font-size: 26px;
  }

  .subcategory_description {
    font-size: 11px;
    line-height: 1.5;
  }

  .subcategory_card {
    height: 165px;
    border-radius: 10px;
  }

  .subcategory_card_overlay {
    left: 12px;
    right: 12px;
    bottom: 11px;
  }

  .subcategory_card_overlay h4 {
    font-size: 15px;
  }

  .subcategory_card_arrow {
    width: 27px;
    height: 27px;
    font-size: 9px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 399px) {
  .subcategory_showcase {
    padding: 20px 0 25px;
  }

  .subcategory_header {
    margin-bottom: 15px;
  }

  .subcategory_eyebrow {
    font-size: 9px;
  }

  .subcategory_title {
    font-size: 24px;
  }

  .subcategory_products_top h3 {
    font-size: 16px;
  }

  .subcategory_card {
    height: 155px;
  }
}
