/*
 * category.css
 * Custom styles for the category / product-listing page.
 * Depends on: layout.css (design tokens, fonts, --bg-tinted, etc.)
 */


/* ==========================================================
   CATEGORY HERO
========================================================== */

.esc-category-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100vw;
  height: 430px;
  overflow: hidden;
  isolation: isolate;
  background-color: #111111;
  background-position: center;
  background-repeat: no-repeat;
}

/* Cream gradient overlay */
.esc-category-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(242, 234, 221, 0.90) 0%,
    rgba(242, 234, 221, 0.70) 50%,
    rgba(242, 234, 221, 0.95) 100%
  );
}

/* Content container */
.esc-category-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  padding: 0 192px;
  min-height: 280px;
}

/* Eyebrow */
.esc-category-hero__eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: 2.534px;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Title (two lines, different type treatments) */
.esc-category-hero__title {
  display: flex;
  flex-direction: column;
  margin: 0px 0px 8px 0px;
  width: 100%;
  line-height: 0.98;
}

.esc-category-hero__title-line1,
.esc-category-hero__title-line2 {
  display: block;
  font-size: 72px;
  letter-spacing: -1.8px;
}

.esc-category-hero__title-line1 {
  font-family: "Cormorant-Garamond";
  font-weight: 400;
  color: var(--color-text);
}

.esc-category-hero__title-line2 {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

/* Description */
#esc-category-hero__description span {
  display: block;
  max-width: 800px;
  font-family: "Poppins";
  font-weight: 400;
  font-size: 18px;
  line-height: 29px;
  color: var(--color-text-faint);
}

/* --- Category hero: mobile --- */
@media (max-width: 768px) {
  .esc-category-hero {
    height: 460px;
    display: block;
    padding: 64px 24px 36px;
    width: unset;
  }

  .esc-category-hero__container {
    padding: 0 12px;
    gap: 20px;
  }

  .esc-category-hero__title-line1,
  .esc-category-hero__title-line2 {
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -1.2px;
    max-width: 100%;
  }

  .esc-category-hero__description {
    font-size: 16px;
    line-height: 26px;
  }
}


/* ==========================================================
   RECOMMENDED PRODUCTS SECTION
========================================================== */

#esc-recommended-products-section {
  position: relative;
  padding: 96px 24px;
  overflow: hidden;
  background: var(--bg-tinted);
}

#esc-recommended-products-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Cap child elements width */
#esc-recommended-products-section > * {
  max-width: 1280px;
  margin: 0 auto;
}

/* Section header */
.esc-recommended-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 64px;
  margin-bottom: 56px !important;
}

.esc-recommended-header-left {
  display: flex;
  flex-direction: column;
}

.esc-recommended-section-header > :first-child {
  flex-shrink: 0;
}

/* Eyebrow */
.esc-recommended-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: "Poppins";
  font-size: 11.5px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.esc-recommended-eyebrow img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Title */
#esc-recommended-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Cormorant-Garamond";
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.48px;
  color: var(--color-primary);
}

#esc-recommended-title span {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

/* Description */
.esc-recommended-description {
  max-width: 448px;
  margin: 0;
  font-family: "Poppins";
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-text-soft);
}

/* Wishlist button z-index fix */
.esc-recommended-section-products .wishlist-button-add {
  position: relative;
  z-index: 10;
  right: 0.5rem;
  top: 0.5rem;
}






/* TESTIMONIALS */
.esc-testimonials {
  margin-top: 80px;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.esc-testimonial {
  width: 300px;
  padding: 20px;
  border: 1px solid rgba(26,47,27,0.1);
  border-radius: 16px;
  background: #FDFAF4;
}

.esc-testimonial__text {
  font-family: Poppins;
  font-size: 14px;
  line-height: 22px;
  color: rgba(26,47,27,0.7);
  margin-bottom: 12px;
}

.esc-testimonial__reference {
  font-size: 12px;
  font-family: Poppins;
  color: rgba(26,47,27,0.6);
  margin-bottom: 8px;
}

.esc-testimonial__name {
  font-family: "Cormorant-Garamond";
  font-size: 18px;
  color: #1A2F1B;
}

.esc-testimonial__subtitle {
  font-size: 12px;
  color: rgba(26,47,27,0.6);
}


/* ==========================================================
   RESPONSIVE — category recommendations
========================================================== */

@media (max-width: 768px) {
  #esc-recommended-products-section {
    padding: 72px 24px;
  }

  #esc-recommended-title {
    font-size: 38px;
  }

  .esc-recommended-section-products {
    grid-template-columns: 1fr;
  }

  .esc-recommended-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 40px;
  }
}
