/* ==========================================================================
   EP Archive Hero Styles - Coral & Peach Palette
   Applied to: Styles, Subjects, Artists, Contact pages
   ========================================================================== */

/* Custom properties */
.entry-hero.product-archive-hero-section {
  --ep-hero-coral: #f43f5e;
  --ep-hero-coral-dark: #e11d48;
  --ep-hero-peach: #fda4af;
  --ep-hero-rose-dark: #9f1239;
  --ep-hero-rose-deeper: #881337;
}

/* Main hero section */
.entry-hero.product-archive-hero-section {
  background: linear-gradient(135deg, var(--ep-hero-rose-dark), var(--ep-hero-coral-dark));
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative circle - top left */
.entry-hero.product-archive-hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: var(--ep-hero-coral);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

/* Decorative circle - bottom right */
.entry-hero.product-archive-hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: var(--ep-hero-peach);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

/* Hero container */
.entry-hero.product-archive-hero-section .entry-hero-container-inner {
  position: relative;
  z-index: 1;
}

.entry-hero.product-archive-hero-section .hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Remove any default overlay */
.entry-hero.product-archive-hero-section .hero-section-overlay {
  display: none;
}

/* Page title */
.entry-hero.product-archive-hero-section .page-title,
.entry-hero.product-archive-hero-section .archive-title,
.entry-hero.product-archive-hero-section .entry-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Entry header */
.entry-hero.product-archive-hero-section .entry-header {
  position: relative;
  z-index: 1;
}

/* Breadcrumbs inside hero (if present) */
.entry-hero.product-archive-hero-section .kadence-breadcrumbs,
.entry-hero.product-archive-hero-section .breadcrumb,
.entry-hero.product-archive-hero-section .woocommerce-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.entry-hero.product-archive-hero-section .kadence-breadcrumbs a,
.entry-hero.product-archive-hero-section .breadcrumb a,
.entry-hero.product-archive-hero-section .woocommerce-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-hero.product-archive-hero-section .kadence-breadcrumbs a:hover,
.entry-hero.product-archive-hero-section .breadcrumb a:hover,
.entry-hero.product-archive-hero-section .woocommerce-breadcrumb a:hover {
  color: #ffffff;
}

/* Breadcrumb separator */
.entry-hero.product-archive-hero-section .kadence-breadcrumbs span[aria-hidden="true"],
.entry-hero.product-archive-hero-section .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Contact Page Specific
   ========================================================================== */
.page-template-page-contact .entry-hero,
body.page-id-contact .entry-hero,
.contact-page .entry-hero {
  background: linear-gradient(135deg, var(--ep-hero-rose-dark, #9f1239), var(--ep-hero-coral-dark, #e11d48));
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-template-page-contact .entry-hero::before,
body.page-id-contact .entry-hero::before,
.contact-page .entry-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: #f43f5e;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.page-template-page-contact .entry-hero::after,
body.page-id-contact .entry-hero::after,
.contact-page .entry-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: #fda4af;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.page-template-page-contact .entry-hero .entry-title,
body.page-id-contact .entry-hero .entry-title,
.contact-page .entry-hero .entry-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Taxonomy Archive Pages (style, subject terms)
   ========================================================================== */
.tax-style .entry-hero,
.tax-subject .entry-hero,
.tax-artist .entry-hero {
  background: linear-gradient(135deg, #9f1239, #e11d48);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tax-style .entry-hero::before,
.tax-subject .entry-hero::before,
.tax-artist .entry-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: #f43f5e;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.tax-style .entry-hero::after,
.tax-subject .entry-hero::after,
.tax-artist .entry-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: #fda4af;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.tax-style .entry-hero .page-title,
.tax-subject .entry-hero .page-title,
.tax-artist .entry-hero .page-title,
.tax-style .entry-hero .archive-title,
.tax-subject .entry-hero .archive-title,
.tax-artist .entry-hero .archive-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
  .entry-hero.product-archive-hero-section {
    padding: 40px 20px;
  }

  .entry-hero.product-archive-hero-section .page-title,
  .entry-hero.product-archive-hero-section .archive-title,
  .entry-hero.product-archive-hero-section .entry-title,
  .page-template-page-contact .entry-hero .entry-title,
  .tax-style .entry-hero .page-title,
  .tax-subject .entry-hero .page-title,
  .tax-artist .entry-hero .page-title {
    font-size: 32px;
  }

  .entry-hero.product-archive-hero-section::before {
    width: 150px;
    height: 150px;
    top: -60px;
    left: -60px;
  }

  .entry-hero.product-archive-hero-section::after {
    width: 130px;
    height: 130px;
    bottom: -50px;
    right: -50px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .entry-hero.product-archive-hero-section {
    padding: 32px 16px;
  }

  .entry-hero.product-archive-hero-section .page-title,
  .entry-hero.product-archive-hero-section .archive-title,
  .entry-hero.product-archive-hero-section .entry-title,
  .page-template-page-contact .entry-hero .entry-title,
  .tax-style .entry-hero .page-title,
  .tax-subject .entry-hero .page-title,
  .tax-artist .entry-hero .page-title {
    font-size: 28px;
  }
}

/* ==========================================================================
   Task 1: Hero container min-height for product loop / cart / favorites
   ========================================================================== */
/* Product archive/loop pages */
.entry-hero.product-archive-hero-section .entry-hero-container-inner .entry-header {
  min-height: 80px !important;
}

/* ==========================================================================
   Coral Hero Pages - Dynamic styling via body class (no static IDs)
   Applied to: my-favorites, cart, contact, faq, return-policy, terms, privacy
   ========================================================================== */
body.ep-coral-hero-page .entry-hero .entry-header,
body.ep-coral-hero-page .entry-hero .entry-hero-container-inner .entry-header,
body.ep-coral-hero-page .entry-hero.page-hero-section .entry-header {
  min-height: 80px !important;
}

body.ep-coral-hero-page .entry-hero {
  background: linear-gradient(135deg, #9f1239, #e11d48) !important;
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.ep-coral-hero-page .entry-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: #f43f5e;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

body.ep-coral-hero-page .entry-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: #fda4af;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

body.ep-coral-hero-page .entry-hero .entry-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.ep-coral-hero-page .entry-hero .hero-section-overlay {
  display: none;
}

body.ep-coral-hero-page .entry-hero .entry-hero-container-inner {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

body.ep-coral-hero-page .entry-hero .entry-header {
  background: transparent !important;
}

/* Generic entry-header with page-title classes */
.entry-hero-container-inner .entry-header.page-title {
  min-height: 80px !important;
}

.entry-header.page-title.title-align-inherit.title-tablet-align-inherit.title-mobile-align-inherit {
  min-height: 80px !important;
}

/* ==========================================================================
   Task 2: Hide duplicate H1 on taxonomy pages (keep coral hero H1 only)
   ========================================================================== */
.tax-subject .woocommerce-products-header,
.tax-artist .woocommerce-products-header,
.tax-style .woocommerce-products-header {
  display: none !important;
}

/* ==========================================================================
   Task 3: Slider spacing on taxonomy/archive pages
   ========================================================================== */
.tax-subject section.rvpw-recently-view.products,
.tax-artist section.rvpw-recently-view.products,
.tax-style section.rvpw-recently-view.products {
  margin-bottom: 16px;
}

.tax-subject .product-details.content-bg.entry-content-wrap,
.tax-artist .product-details.content-bg.entry-content-wrap,
.tax-style .product-details.content-bg.entry-content-wrap {
  margin-bottom: 16px;
}

/* ==========================================================================
   Task 4: Hide sidebar on tablet (486px to 1024px)
   ========================================================================== */
@media (min-width: 486px) and (max-width: 1024px) {
  .artist-sidebar,
  .custom-sidebar {
    display: none !important;
  }

  .artist-archive-layout,
  .custom-archive-layout {
    flex-direction: column;
  }

  .artist-products,
  .custom-products {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}
