/* =========================================
   SHOP STAR GLOW - SHOP BY CATEGORY
========================================= */

.home-category-section {
  width: 100%;
  padding: 42px 20px;
}

/* =========================================
   SECTION HEADER
========================================= */

.category-section-header {
  text-align: center;
  margin: 0 auto 24px;
  padding: 0 16px;
}

.category-section-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #a77d37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.category-section-header h2 {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.1;
}

.category-section-header p {
  margin: 0;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

/* =========================================
   DESKTOP CATEGORY GRID
========================================= */

.category-display {
  width: 100%;
}

.category-display-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* =========================================
   CATEGORY CARD
========================================= */

.category-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f5eee8;
  color: #111;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.category-card-image {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #f4e8e5;
}

.category-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  background: #f7f1ed;
}

.category-card-title {
  margin: 0;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.category-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #080808;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

/* Card hover */

.category-card:hover {
  color: #111;
  transform: translateY(-2px);
}

.category-card:hover .category-card-photo {
  transform: scale(1.04);
}

.category-card:hover .category-card-arrow {
  background: #c8a85a;
  transform: translateX(2px);
}

/* =========================================
   DESKTOP SHOP ALL BANNER
========================================= */

.category-shop-all-banner {
  position: relative;
  display: flex;
  align-items: center;
  grid-column: span 3;
  min-width: 0;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  padding: 28px 34px;
  border-radius: 12px;
  background: linear-gradient(115deg, #f7a9c9 0%, #f58cbb 55%, #f6b4cf 100%);
  color: #111;
  text-decoration: none;
}

.category-shop-all-banner:hover {
  color: #111;
}

.category-shop-all-copy {
  position: relative;
  z-index: 2;
}

.category-shop-all-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.category-shop-all-copy h3 {
  margin: 0 0 17px;
  color: #111;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.05;
}

.category-shop-all-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 17px;
  border-radius: 30px;
  background: #080808;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.25s ease;
}

.category-shop-all-banner:hover .category-shop-all-button {
  background: #a77d37;
}

.category-shop-all-decoration {
  position: absolute;
  right: -35px;
  top: -55px;
  width: 48%;
  height: 150%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.category-shop-all-decoration::before,
.category-shop-all-decoration::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.category-shop-all-decoration::before {
  inset: 12%;
}

.category-shop-all-decoration::after {
  inset: 25%;
}

/* Hide mobile version on desktop */

.category-shop-all-mobile {
  display: none;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) and (min-width: 768px) {
  .category-display-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .category-shop-all-banner {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }
}

/* =========================================
   MOBILE CATEGORY SLIDER
========================================= */

@media (max-width: 767px) {
  .home-category-section {
    padding: 28px 0;
  }

  .category-section-header {
    margin-bottom: 17px;
    text-align: left;
    padding: 0 16px;
  }

  .category-section-eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .category-section-header h2 {
    font-size: 25px;
    font-weight: 700;
  }

  .category-section-header p {
    max-width: 340px;
    font-size: 12px;
  }

  .category-display {
    overflow: hidden;
  }

  .category-display-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 16px 5px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-display-track::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    flex: 0 0 72%;
    width: 72%;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .category-card-footer {
    min-height: 43px;
    padding: 7px 11px;
  }

  .category-card-title {
    font-size: 12px;
    font-weight: 700;
  }

  .category-card-arrow {
    width: 22px;
    height: 22px;
    font-size: 15px;
  }

  /* Hide large desktop banner */

  .category-shop-all-banner {
    display: none;
  }

  /* Show Shop All as a normal mobile card */

  .category-shop-all-mobile {
    display: flex;
  }

  .category-shop-all-mobile-image {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    min-height: 0;
    padding: 20px;
    background:
      radial-gradient(
        circle at 85% 15%,
        rgba(255, 255, 255, 0.45),
        transparent 35%
      ),
      linear-gradient(145deg, #f8c2d7, #ed91b9);
  }

  .category-shop-all-mobile-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }

  .category-shop-all-mobile-image strong {
    color: #111;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.08;
  }
}
