/* ==========================================================================
   SUNSHINE MAKEUP STUDIO - TOP CATEGORIES SECTION (PIXEL-PERFECT LUXURY UI)
   ========================================================================== */

:root {
  --cat-burgundy: #8B1D38;
  --cat-burgundy-dark: #580E1D;
  --cat-burgundy-hover: #A32444;
  --cat-blush-bg: #FAF3EF;
  --cat-blush-badge: #FCEEEA;
  --cat-border-card: #EAE0D8;
  --cat-text-title: #1A1110;
  --cat-text-body: #5C5250;
  --cat-font-serif: 'Playfair Display', Georgia, serif;
  --cat-font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cat-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. SECTION CONTAINER
   ========================================================================== */
.sunshine-category-section {
  position: relative;
  background-color: var(--cat-blush-bg);
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.98) 0%, #FAF3EF 60%, #F5ECE5 100%);
  padding: 95px 0 105px 0;
  overflow: hidden;
  font-family: var(--cat-font-sans);
}

/* ==========================================================================
   2. SECTION HEADER
   ========================================================================== */
.sunshine-category-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 2;
}

.sunshine-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sunshine-category-tag .tag-line {
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background-color: var(--cat-burgundy);
  opacity: 0.75;
}

.sunshine-category-tag .tag-text {
  font-family: var(--cat-font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--cat-burgundy);
  text-transform: uppercase;
}

.sunshine-category-title {
  font-family: var(--cat-font-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cat-text-title);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.sunshine-category-title .title-burgundy {
  color: var(--cat-burgundy);
}

.sunshine-category-desc {
  font-family: var(--cat-font-sans);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--cat-text-body);
  margin: 0 auto;
  font-weight: 400;
}

/* ==========================================================================
   3. CATEGORIES 8-CARD GRID
   ========================================================================== */
.sunshine-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  z-index: 2;
}

/* Individual Category Card */
.sunshine-cat-card {
  background-color: #FFFFFF;
  border-radius: 18px;
  border: 1px solid var(--cat-border-card);
  box-shadow: 0 8px 24px rgba(116, 29, 45, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.35s var(--cat-ease);
  height: 100%;
}

.sunshine-cat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 29, 56, 0.32);
  box-shadow: 0 20px 42px rgba(116, 29, 45, 0.12);
}

/* Card Top Image */
.sunshine-cat-media {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
  background-color: #F8EFEA;
}

.sunshine-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.6s var(--cat-ease);
}

.sunshine-cat-card:hover .sunshine-cat-media img {
  transform: scale(1.06);
}

/* Floating Circular Center Icon Badge */
.sunshine-cat-icon-badge {
  position: absolute;
  top: 215px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--cat-blush-badge);
  border: 3.5px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(116, 29, 45, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-burgundy);
  z-index: 3;
  transition: all 0.3s var(--cat-ease);
}

.sunshine-cat-icon-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sunshine-cat-card:hover .sunshine-cat-icon-badge {
  background-color: var(--cat-burgundy);
  color: #FFFFFF;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(116, 29, 45, 0.3);
}

/* Card Body */
.sunshine-cat-body {
  padding: 36px 18px 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  background-color: #FFFFFF;
}

.sunshine-cat-title {
  font-family: var(--cat-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--cat-burgundy);
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.sunshine-cat-desc {
  font-family: var(--cat-font-sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cat-text-body);
  margin-bottom: 18px;
  min-height: 58px;
}

/* Card "Explore →" CTA Link */
.sunshine-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cat-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cat-burgundy);
  text-decoration: none;
  transition: color 0.25s ease;
  cursor: pointer;
}

.sunshine-cat-link .link-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--cat-burgundy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.sunshine-cat-card:hover .sunshine-cat-link .link-arrow,
.sunshine-cat-link:hover .link-arrow {
  transform: translateX(4px);
  background-color: var(--cat-burgundy-dark);
}

.sunshine-cat-link:hover {
  color: var(--cat-burgundy-dark);
}

/* ==========================================================================
   4. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1199.98px) {
  .sunshine-category-title {
    font-size: 38px;
  }
  .sunshine-category-grid {
    gap: 18px;
  }
  .sunshine-cat-title {
    font-size: 18.5px;
  }
  .sunshine-cat-desc {
    font-size: 12px;
  }
}

@media (max-width: 991.98px) {
  .sunshine-category-section {
    padding: 75px 0 85px 0;
  }
  .sunshine-category-title {
    font-size: 34px;
  }
  .sunshine-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .sunshine-cat-media {
    height: 230px;
  }
  .sunshine-cat-icon-badge {
    top: 230px;
  }
}

@media (max-width: 575.98px) {
  .sunshine-category-section {
    padding: 60px 0 70px 0;
  }
  .sunshine-category-header {
    margin-bottom: 35px;
  }
  .sunshine-category-title {
    font-size: 28px;
  }
  .sunshine-category-desc {
    font-size: 13.5px;
  }
  .sunshine-category-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .sunshine-cat-media {
    height: 240px;
  }
  .sunshine-cat-icon-badge {
    top: 240px;
  }
}
