/* ============================================================
   HAIRISCURLY — INTEGRATED CUSTOM CSS (moved from WP Additional CSS)
   Migrated into the theme in v1.3.0. Loads AFTER style.css.
   Pairs with theme style.css. Overrides + new section styles.
   After deploying, REMOVE the matching rules from
   Appearance > Customize > Additional CSS to avoid duplication.
   ============================================================ */


/* === HEADER === */

#site-header {
  height: 64px;
  background: rgba(255, 250, 251, 0.97);
  border-bottom: 1px solid rgba(212, 99, 122, 0.12);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
}
#site-header.header-hidden { transform: translateY(-100%); }
.header-inner { height: 64px; font-size: 0.95rem; }
.primary-nav-left a,
.primary-nav-right a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1E2A38;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.primary-nav-left a:hover,
.primary-nav-right a:hover { color: var(--color-rose); }
.brand-name { font-size: 1.5rem; }
.brand-tagline { font-size: 0.7rem; }

/* Action cluster: search, wishlist, cart grouped, socials separated */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #1E2A38;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.header-icon-btn:hover {
  color: var(--color-rose);
  background: rgba(212, 40, 115, 0.07);
}
.header-icon-btn svg { width: 19px; height: 19px; }


/* === DESKTOP DROPDOWN (clean chevron, smooth panel) === */

.menu-item-has-children > a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-top: 0;
  border-left: 0;
  background: transparent;
  transform: rotate(45deg);
  position: relative;
  top: -2px;
  transition: transform 0.2s ease, top 0.2s ease;
  margin-left: 2px;
  flex-shrink: 0;
}
.menu-item-has-children:hover > a::after {
  transform: rotate(225deg);
  top: 1px;
}
.primary-nav-left .sub-menu,
.primary-nav-right .sub-menu,
.menu-item-has-children > ul {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #1E2A38;
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(30, 42, 56, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  list-style: none;
  margin: 0;
}
.menu-item-has-children:hover > ul,
.primary-nav-left li:hover > .sub-menu,
.primary-nav-right li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav-left .sub-menu li,
.primary-nav-right .sub-menu li,
.menu-item-has-children ul li { display: block; }
.primary-nav-left .sub-menu a,
.primary-nav-right .sub-menu a,
.menu-item-has-children ul li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.primary-nav-left .sub-menu a:hover,
.primary-nav-right .sub-menu a:hover,
.menu-item-has-children ul li a:hover {
  background: var(--color-rose);
  color: #fff;
}
.primary-nav-left .sub-menu a::after,
.primary-nav-right .sub-menu a::after,
.menu-item-has-children ul li a::after { display: none; }


/* === MOBILE NAV DRAWER === */

.mobile-nav-drawer li { position: relative; }
.mobile-nav-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav-drawer > ul > li > a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-heading);
  border-bottom: 1px solid var(--color-rose-border);
}
.mobile-nav-drawer > ul > li > a:hover { color: var(--color-rose); }

/* Mobile accordion arrow - clean chevron */
.mobile-nav-drawer .mobile-arrow {
  position: absolute;
  right: 0;
  top: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0;
}
.mobile-nav-drawer .mobile-arrow::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-rose);
  border-bottom: 2px solid var(--color-rose);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}
.mobile-nav-drawer .mobile-arrow.open::before {
  transform: rotate(-135deg) translate(0, 0);
}
/* Hide the old "+" text content from previous JS */
.mobile-nav-drawer .mobile-arrow {
  font-size: 0;
  color: transparent;
}

/* Sub-menu accordion (slides open in place) */
.mobile-nav-drawer .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--color-bg-rose-tint);
  border-radius: 6px;
}
.mobile-nav-drawer .sub-menu.open {
  max-height: 500px;
}
.mobile-nav-drawer .sub-menu li {
  display: block;
  border: none;
}
.mobile-nav-drawer .sub-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--color-heading);
  border-bottom: 1px solid rgba(212, 99, 122, 0.1);
}
.mobile-nav-drawer .sub-menu li:last-child a { border-bottom: none; }
.mobile-nav-drawer .sub-menu a:hover { color: var(--color-rose); }


/* === HERO BANNER === */

.hero-section {
  position: relative;
  display: block;
  min-height: 90vh;
  height: 90vh;
  padding: 0;
  overflow: hidden;
}
.container.hero-container {
  display: block;
  position: static;
  max-width: 100%;
  padding: 0;
  height: 100%;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
  max-height: none;
  z-index: 1;
  background: #1E2A38;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-image .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  animation: heroRotate 21s infinite;
}
.hero-image .hero-slide-1 { animation-delay: 0s; }
.hero-image .hero-slide-2 { animation-delay: 7s; }
.hero-image .hero-slide-3 { animation-delay: 14s; }
/* If only one image exists, keep it visible (no animation) */
.hero-image .hero-slide:only-child {
  animation: none;
  opacity: 1;
}
@keyframes heroRotate {
  0%      { opacity: 0; }
  3%      { opacity: 1; }
  30%     { opacity: 1; }
  36%     { opacity: 0; }
  100%    { opacity: 0; }
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 3;
  bottom: 48px;
  left: 0;
  right: 0;
  max-width: none;
  width: 100%;
  padding: 0 max(32px, calc((100vw - 1240px) / 2 + 32px));
  display: block;
}
.hero-content .section-label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 620px;
  line-height: 1.15;
}
.hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  margin-bottom: 26px;
  max-width: 520px;
  display: block;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}
.hero-content .hero-ctas {
  display: flex;
  gap: 12px;
  z-index: 3;
  flex-wrap: wrap;
}
.hero-content .hero-ctas .btn,
.hero-content .hero-ctas .btn-lg {
  min-width: 150px;
  text-align: center;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}
.hero-content .hero-ctas .btn-primary {
  background: var(--color-rose);
  color: #fff;
  border-color: var(--color-rose);
}
.hero-content .hero-ctas .btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.hero-content .hero-ctas .btn-outline {
  background: rgba(30, 42, 56, 0.6);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.hero-content .hero-ctas .btn-outline:hover {
  background: #fff;
  color: var(--color-heading);
  border-color: #fff;
}


/* === SECTION-ALT === */

.section-alt {
  background: #F5F5F5;
  padding: 60px 0;
}
.section-alt .section-header {
  margin-bottom: 40px;
  text-align: center;
}
.section-alt .section-header .section-label {
  color: var(--color-rose);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-alt .section-header h2 {
  color: #1E2A38;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-alt .section-header p {
  color: #666;
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}


/* === CURL TYPE FINDER (visuals + gradients) === */

.curl-type-section { padding: 60px 0; }
.curl-type-section .section-header {
  text-align: center;
  margin-bottom: 36px;
}
.curl-type-section .section-header .section-label {
  color: var(--color-rose);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.curl-type-section .section-header h2 {
  color: #1E2A38;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.curl-type-section .section-header p {
  color: #555;
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
}
.curl-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.curl-type-card {
  display: block;
  padding: 28px 24px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-align: left;
  overflow: hidden;
  min-height: 280px;
}
.curl-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(30, 42, 56, 0.15);
}
.curl-type-2 {
  background: linear-gradient(135deg, #FFF5F7 0%, #FDEEF1 100%);
  color: #993556;
}
.curl-type-3 {
  background: linear-gradient(135deg, #FDEEF1 0%, #F4C0D1 100%);
  color: #72243E;
}
.curl-type-4 {
  background: linear-gradient(135deg, #F4C0D1 0%, #D4537E 100%);
  color: #4B1528;
}
.curl-type-mixed {
  background: linear-gradient(135deg, #1E2A38 0%, #2E3D4F 100%);
  color: #FDEEF1;
}
.curl-type-visual {
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  opacity: 0.7;
}
.curl-type-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}
.curl-type-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.curl-type-mixed .curl-type-label {
  background: rgba(253, 238, 241, 0.15);
  color: #FDEEF1;
}
.curl-type-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: inherit;
  margin: 0 0 10px;
  line-height: 1.2;
}
.curl-type-card p {
  font-size: 0.88rem;
  color: inherit;
  opacity: 0.85;
  line-height: 1.55;
  margin: 0;
}


/* === CATEGORY CARDS V2 (with images, full visible, no broken cropping) === */

.category-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.category-card-v2 {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--color-rose-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(30, 42, 56, 0.12);
}
.category-card-v2-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-rose-tint);
}
.category-card-v2-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.category-card-v2:hover .category-card-v2-image img {
  transform: scale(1.04);
}
.category-card-v2-body {
  padding: 20px 22px 24px;
}
.category-card-v2-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 6px;
  line-height: 1.2;
}
.category-card-v2-body p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}
.category-card-v2-link {
  display: inline-block;
  color: var(--color-rose);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
}
.category-card-v2:hover .category-card-v2-link {
  color: var(--color-rose-dark);
}


/* === EXPERTS SECTION (NEW) === */

.experts-section { padding: 64px 0; background: #FEF8F8; }
.experts-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}
.experts-section .section-header .section-label {
  color: var(--color-rose);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.experts-section .section-header h2 {
  color: #1E2A38;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.experts-section .section-header p {
  color: #555;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.expert-card {
  display: block;
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--color-rose-border);
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
}
.expert-card:hover {
  border-color: var(--color-rose);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(212, 40, 115, 0.1);
}
.expert-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--color-bg-rose-tint);
  border: 3px solid var(--color-rose-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.expert-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.expert-photo-initial {
  background: linear-gradient(135deg, var(--color-rose), var(--color-rose-dark));
  color: #fff;
}
.expert-initial {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}
.expert-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 4px;
}
.expert-role {
  font-size: 0.8rem;
  color: var(--color-rose);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.expert-bio {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}


/* === IN-CONTENT LINKS === */

.post-content a,
.entry-content a,
.accordion-body a,
.page-hero + .section a {
  color: var(--color-rose);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.post-content a:hover,
.entry-content a:hover,
.accordion-body a:hover,
.page-hero + .section a:hover {
  color: var(--color-rose-hover);
  text-decoration-thickness: 2px;
}


/* === SINGLE POST PAGE === */

.single-post-container { max-width: 900px; }
.post-content { max-width: 820px; }
.post-hero { aspect-ratio: 16/9; }
.single-post-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
article.section.single-post-container,
article.section {
  padding-top: 40px;
  padding-bottom: 40px;
}
.post-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}
.post-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 40px 0 16px;
}
.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
}


/* === BLOG LISTING PAGE === */

.blog-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-rose-tint) 100%);
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--color-rose-border);
}
.blog-hero .breadcrumb { margin-bottom: 16px; }
.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 10px;
}
.blog-hero-desc {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-listing-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-rose-border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-listing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.blog-listing-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.blog-listing-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-listing-card:hover .blog-listing-card-img img { transform: scale(1.04); }
.blog-listing-card-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-listing-tag {
  display: inline-block;
  background: var(--color-bg-rose-tint);
  color: var(--color-rose);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-listing-card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.blog-listing-card:hover .blog-listing-card-title { color: var(--color-rose); }
.blog-listing-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 16px;
  flex: 1;
}
.blog-listing-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-rose-border);
}


/* === FOOTER HEADING (replaces h4) === */

.footer-col-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}


/* === CONTACT FORM 7 === */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  border: 1.5px solid #E0E0E0;
  border-radius: 10px;
  background: #FAFAFA;
  color: #1E2A38;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-bottom: 16px;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--color-rose);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 58, 74, 0.1);
  outline: none;
}
.wpcf7-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1E2A38;
  margin-bottom: 6px;
  display: block;
}
.wpcf7-form input[type="submit"] {
  background: var(--color-rose);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  width: auto;
}
.wpcf7-form input[type="submit"]:hover { background: var(--color-rose-hover); }
.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}
.wpcf7 .wpcf7-response-output {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
}


/* === WOOCOMMERCE === */

.products li,
.products .product,
ul.products li.product,
.woocommerce ul.products li.product {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  overflow: visible;
}
.products .product,
.product-card {
  display: flex;
  flex-direction: column;
}
.products .product .woocommerce-loop-product__link,
.product-card .product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.products .product .woocommerce-loop-product__title,
.product-card .product-card-title { flex: 1; }
.products .product .button,
.products .product .add_to_cart_button,
.product-card .add-to-cart-btn { margin-top: auto; }


/* === HIDE THEME DEFAULT WISHLIST BUTTONS === */

.wishlist-btn,
.wishlist-full-btn,
.qv-wishlist,
button.wishlist-btn,
.product-card .wishlist-btn { display: none; }


/* === TINVWL WISHLIST PLUGIN === */

.tinvwl_add_to_wishlist_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #1E2A38;
  border: 1.5px solid #E0E0E0;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
}
.tinvwl_add_to_wishlist_button:hover,
.tinvwl_add_to_wishlist_button.tinvwl-product-in-list {
  border-color: var(--color-rose);
  color: var(--color-rose);
}
.tinvwl-table-manage-list {
  width: 100%;
  border-collapse: collapse;
}
.tinvwl-table-manage-list th {
  background: #1E2A38;
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}
.tinvwl-table-manage-list td {
  padding: 14px 16px;
  border-bottom: 1px solid #E8E8E8;
  font-size: 0.9rem;
  color: #1E2A38;
  vertical-align: middle;
}
.tinvwl-table-manage-list tr:hover td { background: #FAFAFA; }
.tinvwl-table-manage-list .product-thumbnail img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}


/* === SINGLE PRODUCT PAGE === */

.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.single-product form.cart .quantity { margin-right: 0; }
.single-product form.cart .single_add_to_cart_button { flex: none; }
.single-product .tinvwl-wraper,
.single-product .tinvwl_add_to_wishlist_button,
.single-product .yith-wcwl-add-to-wishlist {
  display: inline-flex;
  margin-top: 0;
}
.single-product .tinvwl_add_to_wishlist_button {
  height: auto;
  padding: 12px 24px;
}


/* === SHOP PAGE: hide sidebar === */

.shop-layout { display: block; }
.shop-sidebar { display: none; }
.shop-main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}


/* === AUTO TABLE OF CONTENTS (inline, single posts) === */

.haic-toc {
  margin: 32px 0 36px;
  background: linear-gradient(135deg, #FEF8F8 0%, #FDEEF1 100%);
  border: 1px solid var(--color-rose-border);
  border-left: 4px solid var(--color-rose);
  border-radius: 12px;
  padding: 0;
  font-family: inherit;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(212, 40, 115, 0.05);
}
.haic-toc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 18px 22px;
  text-align: left;
  font-family: inherit;
  color: var(--color-heading);
  transition: background 0.2s ease;
}
.haic-toc-header:hover {
  background: rgba(212, 40, 115, 0.04);
}
.haic-toc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-rose);
  flex-shrink: 0;
}
.haic-toc-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-heading);
  flex: 1;
}
.haic-toc-toggle {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-rose);
  border-bottom: 2px solid var(--color-rose);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-right: 4px;
}
.haic-toc-collapsed .haic-toc-toggle {
  transform: rotate(-135deg) translate(2px, 2px);
}
.haic-toc-list {
  list-style: none;
  margin: 0;
  padding: 0 22px 18px 22px;
  max-height: 1200px;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
  opacity: 1;
}
.haic-toc-collapsed .haic-toc-list {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.haic-toc-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px dashed rgba(212, 40, 115, 0.15);
}
.haic-toc-item:last-child {
  border-bottom: 0;
}
.haic-toc-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 4px;
  color: var(--color-heading);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
  border-radius: 6px;
}
.haic-toc-link:hover {
  color: var(--color-rose);
  padding-left: 8px;
  text-decoration: none;
}
.haic-toc-link.haic-toc-active {
  color: var(--color-rose);
  font-weight: 700;
}
.haic-toc-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-rose);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 24px;
  opacity: 0.85;
}
.haic-toc-text {
  flex: 1;
}

/* Smooth scroll behavior for anchor jumps */
html { scroll-behavior: smooth; }

/* Account for sticky header when jumping via URL hash */
.post-content h2[id] {
  scroll-margin-top: 84px;
}


/* === SINGLE POST AUTHOR BIO (clickable) === */

.author-bio {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 36px 0 8px;
  padding: 22px 24px;
  background: #FEF8F8;
  border: 1px solid var(--color-rose-border);
  border-radius: 12px;
}
.author-bio-avatar {
  flex-shrink: 0;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.author-bio-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(212, 40, 115, 0.18);
}
.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.author-bio-text {
  flex: 1;
  min-width: 0;
}
.author-bio-text h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
}
.author-bio-text h4 a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}
.author-bio-text h4 a:hover {
  color: var(--color-rose);
}
.author-bio-text p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.author-bio-more {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-rose);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.author-bio-more:hover {
  color: var(--color-rose-hover);
  text-decoration: underline;
}


/* === AUTHOR ARCHIVE PROFILE === */

.author-archive-header {
  background: linear-gradient(135deg, #FEF8F8 0%, #FDEEF1 50%, #FBEAF0 100%);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--color-rose-border);
}
.author-archive-header .breadcrumb {
  margin-bottom: 28px;
}
.author-profile-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}
.author-profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 8px 28px rgba(212, 40, 115, 0.18);
  background: var(--color-bg-rose-tint);
}
.author-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.author-profile-body {
  padding-top: 4px;
}
.author-profile-eyebrow {
  display: inline-block;
  background: var(--color-rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.author-profile-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-heading);
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.author-profile-role {
  font-size: 1.02rem;
  color: var(--color-rose);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.author-profile-credentials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.7);
  padding: 7px 14px;
  border-radius: 100px;
  margin: 0 0 18px;
  font-weight: 500;
}
.author-profile-credentials svg {
  color: var(--color-rose);
  flex-shrink: 0;
}
.author-profile-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-heading);
  margin-bottom: 20px;
}
.author-profile-bio p {
  margin: 0 0 12px;
}
.author-profile-bio p:last-child {
  margin-bottom: 0;
}
.author-profile-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.author-profile-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #fff;
  border: 1px solid var(--color-rose-border);
  border-radius: 50%;
  color: var(--color-heading);
  transition: all 0.25s ease;
  text-decoration: none;
}
.author-profile-social-link:hover {
  background: var(--color-rose);
  color: #fff;
  border-color: var(--color-rose);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(212, 40, 115, 0.25);
}

/* Posts section header on author archive */
.author-archive-posts {
  padding: 48px 0;
}
.author-archive-posts-header {
  text-align: center;
  margin-bottom: 32px;
}
.author-archive-posts-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 6px;
}
.author-archive-posts-header p {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0;
}


/* === HEADER SOCIAL ICONS === */

.header-socials {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(212, 99, 122, 0.22);
}
.header-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #5A6B7B;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.header-social-btn:hover {
  color: var(--color-rose);
  background: rgba(212, 40, 115, 0.07);
  transform: translateY(-1px);
}
.header-social-btn svg { width: 16px; height: 16px; }
@media (max-width: 1024px) {
  .header-socials { display: none; }
}


/* === BLOG POST SHARE BAR === */

.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 12px 0;
  border-top: 1px solid var(--color-rose-border);
  border-bottom: 1px solid var(--color-rose-border);
}
.post-share-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-right: 4px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-rose-border);
  background: #fff;
  color: var(--color-heading);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding: 0;
}
.post-share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}
.share-pinterest:hover { background: #E60023; border-color: #E60023; }
.share-facebook:hover { background: #1877F2; border-color: #1877F2; }
.share-x:hover { background: #000; border-color: #000; }
.share-copy:hover { background: var(--color-rose); border-color: var(--color-rose); }
.share-copied-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: var(--color-heading);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.share-copy.is-copied .share-copied-tip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Desktop: float share bar vertically in left margin, sticky */
@media (min-width: 1280px) {
  .single-post-container { position: relative; }
  .post-share {
    position: sticky;
    top: 96px;
    float: left;
    margin-left: -84px;
    width: 52px;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 0;
    margin-bottom: 0;
  }
  .post-share-label {
    writing-mode: vertical-rl;
    margin: 0 0 6px;
    text-align: center;
  }
  .post-share-btn { width: 42px; height: 42px; }
  .share-copied-tip {
    bottom: auto;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) scale(0.8);
  }
  .share-copy.is-copied .share-copied-tip {
    transform: translateY(-50%) scale(1);
  }
}


/* === RELATED POSTS (single post bottom) === */

.related-posts-section {
  background: #FAFAFA;
  padding: 56px 0 64px;
  border-top: 1px solid var(--color-rose-border);
  margin-top: 48px;
}
.related-posts-header {
  text-align: center;
  margin-bottom: 36px;
}
.related-posts-header .section-label {
  display: block;
  color: var(--color-rose);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.related-posts-header h2 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.related-post-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-rose-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.related-post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.related-post-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.related-post-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.related-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-post-card:hover .related-post-img img { transform: scale(1.04); }
.related-post-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.related-post-tag {
  display: inline-block;
  background: var(--color-bg-rose-tint);
  color: var(--color-rose);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  align-self: flex-start;
}
.related-post-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.35;
  margin: 0 0 10px;
  transition: color 0.2s ease;
  flex: 1;
}
.related-post-card:hover .related-post-title { color: var(--color-rose); }
.related-post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--color-rose-border);
}


/* ============================================================
   MOBILE BREAKPOINTS
   ============================================================ */

@media (max-width: 1024px) {
  .blog-listing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .curl-type-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    height: 70vh;
  }
  .hero-content {
    bottom: 32px;
    padding: 0 24px;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 1.6rem;
    max-width: 100%;
  }
  .hero-content p {
    max-width: 100%;
    font-size: 0.9rem;
  }
  .hero-content .hero-ctas { justify-content: center; }
  .hero-content .hero-ctas .btn,
  .hero-content .hero-ctas .btn-lg {
    min-width: 130px;
    padding: 10px 22px;
    font-size: 0.8rem;
  }
  .curl-type-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .curl-type-card {
    padding: 22px 20px;
    min-height: auto;
  }
  .curl-type-visual { width: 50px; height: 50px; margin-bottom: 12px; }
  .category-grid-v2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .category-card-v2-image { aspect-ratio: 16 / 10; }
  .experts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .expert-card { padding: 22px 20px; }
  .related-posts-section { padding: 40px 0 48px; }
  .related-posts-header { margin-bottom: 24px; }
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .related-post-link { flex-direction: row; }
  .related-post-img {
    width: 130px;
    min-width: 130px;
    aspect-ratio: auto;
  }
  .related-post-img img { height: 100%; }
  .related-post-body { padding: 12px 14px; }
  .related-post-title { font-size: 0.95rem; }
  .related-post-tag {
    font-size: 0.58rem;
    padding: 2px 8px;
    margin-bottom: 6px;
  }
  .related-post-meta {
    border-top: none;
    padding-top: 6px;
    font-size: 0.68rem;
  }
  .haic-toc { margin: 22px 0 28px; }
  .haic-toc-header { padding: 14px 16px; gap: 10px; }
  .haic-toc-label { font-size: 0.95rem; }
  .haic-toc-list { padding: 0 16px 14px 16px; }
  .haic-toc-link {
    font-size: 0.88rem;
    padding: 10px 4px;
    gap: 10px;
  }
  .haic-toc-link:hover { padding-left: 4px; }
  .haic-toc-num { min-width: 22px; font-size: 0.72rem; }
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 14px;
  }
  .author-archive-header { padding: 32px 0 40px; }
  .author-profile-card {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .author-profile-avatar {
    width: 130px;
    height: 130px;
    margin: 0 auto;
  }
  .author-profile-socials { justify-content: center; }
  .author-profile-credentials { margin-left: auto; margin-right: auto; }
  .author-archive-posts { padding: 32px 0 40px; }
  .blog-hero { padding: 36px 0 28px; }
  .blog-hero-title { font-size: 1.5rem; }
  .blog-listing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .blog-listing-card-link { flex-direction: row; }
  .blog-listing-card-img {
    width: 130px;
    min-width: 130px;
    aspect-ratio: auto;
  }
  .blog-listing-card-img img { height: 100%; }
  .blog-listing-card-body { padding: 14px 16px; }
  .blog-listing-card-title { font-size: 1rem; }
  .blog-listing-card-excerpt { display: none; }
  .blog-listing-tag {
    font-size: 0.6rem;
    padding: 3px 8px;
    margin-bottom: 8px;
  }
  .blog-listing-meta {
    border-top: none;
    padding-top: 8px;
    font-size: 0.72rem;
  }
}
/* === FIX: force mobile drawer visible above everything === */
.mobile-nav-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99998 !important;
}
.mobile-nav-overlay.open {
  display: block !important;
  opacity: 1 !important;
}
.mobile-nav-drawer {
  position: fixed !important;
  top: 0 !important;
  left: -100% !important;
  width: min(320px, 85vw) !important;
  height: 100% !important;
  z-index: 99999 !important;
  background: #fff !important;
  overflow-y: auto !important;
  transition: left 0.3s ease !important;
}
.mobile-nav-drawer.open {
  left: 0 !important;
}
/* === CURL TYPE CARDS: photo background + text overlay === */
.curl-type-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
/* Dark gradient so text stays readable on any photo */
.curl-type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,42,56,0.15) 0%, rgba(30,42,56,0.55) 60%, rgba(30,42,56,0.85) 100%);
  z-index: -1;
  transition: background 0.3s ease;
}
.curl-type-card:hover::before {
  background: linear-gradient(180deg, rgba(30,42,56,0.25) 0%, rgba(30,42,56,0.65) 60%, rgba(30,42,56,0.9) 100%);
}

/* The 4 background images */
.curl-type-2 {
  background-image: url('https://hairiscurly.com/wp-content/uploads/2026/05/type-2-wavy-hair-soft-s-shaped-waves.webp.webp');
}
.curl-type-3 {
  background-image: url('https://hairiscurly.com/wp-content/uploads/2026/05/type-3-curly-hair-defined-ringlets.webp.webp');
}
.curl-type-4 {
  background-image: url('https://hairiscurly.com/wp-content/uploads/2026/05/type-4-coily-hair-defined-tight-coils.webp.webp');
}
.curl-type-mixed {
  background-image: url('https://hairiscurly.com/wp-content/uploads/2026/05/mixed-curl-pattern-waves-and-curls.webp.webp');
}

/* Hide the old SVG drawings */
.curl-type-card .curl-type-visual { display: none; }

/* Text styling on top of photos */
.curl-type-card .curl-type-label {
  background: rgba(212, 40, 115, 0.9);
  color: #fff;
  align-self: flex-start;
}
.curl-type-card h3 { color: #fff; }
.curl-type-card p { color: rgba(255,255,255,0.92); opacity: 1; }

/* Subtle zoom on hover for life */
.curl-type-card { transition: transform 0.3s ease, box-shadow 0.3s ease, background-size 0.5s ease; }
.curl-type-card:hover { background-size: 110%; }


/* === HOMEPAGE CONTENT SECTIONS (added v1.3.0) === */
.haic-intro-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.haic-intro-copy p {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-body);
}
.haic-intro-copy p:last-child { margin-bottom: 0; }

.haic-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.haic-topic-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 8px;
}
.haic-topic-block p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0;
}

.haic-faq {
  max-width: 780px;
  margin: 0 auto;
}
.haic-faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-rose-border);
}
.haic-faq-item:last-child { border-bottom: 0; }
.haic-faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 8px;
}
.haic-faq-item p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--color-body);
  margin: 0;
}

@media (max-width: 768px) {
  .haic-topic-grid { grid-template-columns: 1fr; gap: 20px; }
}


/* =========================================================================
   HOMEPAGE SECTIONS (moved out of front-page.php inline <style> for
   LiteSpeed / QUIC.cloud stability). Loads as part of the enqueued
   haic-custom stylesheet, so cache rebuilds keep it in order.
   ========================================================================= */

/* In-content links: clearly visible (brand pink + underline) */
.haic-intro-copy a,
.haic-topic-card a,
.haic-faq-a a {
	color: var(--color-rose);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	font-weight: 600;
	transition: color 0.2s ease;
}
.haic-intro-copy a:hover,
.haic-topic-card a:hover,
.haic-faq-a a:hover { color: var(--color-rose-dark); }

/* Intro / brand block */
.haic-intro-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.haic-intro-lead {
	font-family: var(--font-display);
	font-size: 1.3rem; line-height: 1.5;
	color: var(--color-heading); margin: 0 0 18px;
}
.haic-intro-copy p { font-size: 1.02rem; line-height: 1.7; color: var(--color-body); margin: 0 0 16px; }
.haic-intro-copy p:last-child { margin-bottom: 0; }

/* Explore by Topic: icon cards */
.haic-topic-grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 22px; max-width: 1040px; margin: 0 auto;
}
.haic-topic-card {
	background: #fff; border: 1px solid var(--color-rose-border);
	border-radius: 18px; padding: 28px 24px;
	box-shadow: 0 4px 16px rgba(30,42,56,0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.haic-topic-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(212,40,115,0.12);
	border-color: var(--color-rose);
}
.haic-topic-icon {
	width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
	border-radius: 12px; background: var(--color-bg-rose-tint, #FDEEF1);
	color: var(--color-rose); margin-bottom: 16px;
}
.haic-topic-icon svg { width: 24px; height: 24px; }
.haic-topic-card h3 {
	font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
	color: var(--color-heading); margin: 0 0 8px;
}
.haic-topic-card p { font-size: 0.93rem; line-height: 1.6; color: var(--color-muted); margin: 0; }

/* FAQ accordion */
.haic-faq { max-width: 800px; margin: 0 auto; }
.haic-faq details {
	border: 1px solid var(--color-rose-border); border-radius: 12px;
	margin-bottom: 12px; background: #fff; overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.haic-faq details[open] { box-shadow: 0 8px 22px rgba(212,40,115,0.08); border-color: var(--color-rose); }
.haic-faq summary {
	list-style: none; cursor: pointer; padding: 18px 22px;
	font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
	color: var(--color-heading); display: flex; align-items: center;
	justify-content: space-between; gap: 16px;
}
.haic-faq summary::-webkit-details-marker { display: none; }
.haic-faq summary::after {
	content: "+"; font-family: 'DM Sans', sans-serif; font-size: 1.5rem;
	font-weight: 400; color: var(--color-rose); flex-shrink: 0; line-height: 1;
}
.haic-faq details[open] summary { color: var(--color-rose); }
.haic-faq details[open] summary::after { content: "\2212"; }
.haic-faq-a { padding: 0 22px 20px; }
.haic-faq-a p { font-size: 0.97rem; line-height: 1.7; color: var(--color-body); margin: 0 0 12px; }
.haic-faq-a p:last-child { margin-bottom: 0; }

/* Wash-frequency mini table */
.haic-mini-table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 0.92rem; }
.haic-mini-table th, .haic-mini-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--color-rose-border); }
.haic-mini-table th { background: var(--color-heading); color: #fff; font-weight: 600; }
.haic-mini-table tbody tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------------------
   Shop By Category: image fills the whole card (full background), with the
   title, description and link overlaid at the bottom over a soft scrim.
   Fixes the tiny-thumbnail look on mobile and the flat image-on-top look on
   desktop. 4 across on desktop, 2 across on tablet/mobile.
   ------------------------------------------------------------------------- */
.category-grid-v2 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.category-card-v2 {
	position: relative;
	min-height: 300px;
	justify-content: flex-end;
	border-radius: 18px;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 6px 20px rgba(30,42,56,0.10);
}
.category-card-v2:hover { box-shadow: 0 18px 38px rgba(212,40,115,0.16); }
/* image fills the card */
.category-card-v2-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	z-index: 0;
}
.category-card-v2-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card-v2:hover .category-card-v2-image img { transform: scale(1.06); }
/* bottom-only scrim keeps the top of the photo clear, text readable below */
.category-card-v2::after {
	content: "";
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(30,42,56,0) 35%, rgba(30,42,56,0.55) 72%, rgba(30,42,56,0.88) 100%);
}
.category-card-v2-body { position: relative; z-index: 2; padding: 22px 22px 24px; }
.category-card-v2-body h3 { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.category-card-v2-body p { color: rgba(255,255,255,0.92); text-shadow: 0 1px 5px rgba(0,0,0,0.30); }
.category-card-v2-link, .category-card-v2:hover .category-card-v2-link { color: #fff; }
@media (max-width: 1024px) {
	.category-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.category-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.category-card-v2 { min-height: 220px; }
	.category-card-v2-body { padding: 16px 16px 18px; }
}

/* -------------------------------------------------------------------------
   Find Your Curl Type: keep the original photos, but lighten the gradient so
   the images read clearer. Only the bottom fades, enough to keep text legible.
   ------------------------------------------------------------------------- */
.curl-type-card::before {
	background: linear-gradient(180deg, rgba(30,42,56,0) 0%, rgba(30,42,56,0) 46%, rgba(30,42,56,0.28) 72%, rgba(30,42,56,0.68) 100%) !important;
}
.curl-type-card:hover::before {
	background: linear-gradient(180deg, rgba(30,42,56,0) 0%, rgba(30,42,56,0.05) 46%, rgba(30,42,56,0.34) 72%, rgba(30,42,56,0.74) 100%) !important;
}
.curl-type-card h3 { text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.curl-type-card p { text-shadow: 0 1px 6px rgba(0,0,0,0.40); }

/* -------------------------------------------------------------------------
   Mobile hero: show the FULL image at its natural shape (uncropped) as a
   rounded card. Uses !important so the theme's .hero-slide:only-child rule
   (higher specificity) cannot collapse the image to a sliver. A single image
   flows naturally; multiple rotating images keep their fixed-height fade.
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.hero-section { padding: 26px 0 6px; }
	.hero-container { gap: 22px; }
	.hero-content { max-width: 100%; text-align: center; padding: 0 4px; }
	.hero-content .hero-ctas { justify-content: center; }

	.hero-image {
		width: 100%;
		margin-top: 6px;
		border-radius: 22px;
		overflow: hidden;
		box-shadow: 0 14px 34px rgba(30,42,56,0.16);
		background: transparent;
	}
	.hero-image::before { display: none !important; }

	/* container wraps to the image height only when there is a single image */
	.hero-image:has(> img:only-child),
	.hero-image:has(> .hero-slide:only-child) {
		aspect-ratio: auto !important;
		height: auto !important;
		max-height: none !important;
	}
	/* the single image shows full width, natural height, no crop */
	.hero-image > img:only-child,
	.hero-image .hero-slide:only-child {
		position: static !important;
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		object-fit: initial !important;
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		display: block;
		border-radius: 22px;
	}
	.hero-image .hero-slide:only-child img {
		width: 100% !important;
		height: auto !important;
		object-fit: initial !important;
		border-radius: 22px;
	}
}

/* -------------------------------------------------------------------------
   Homepage responsive grids (topic hub only; category and curl-type use
   the theme's own responsive rules)
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.haic-topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.haic-topic-grid { grid-template-columns: 1fr; gap: 16px; }
	.haic-intro-lead { font-size: 1.15rem; }
}

/* =========================================================================
   Shop chevron + mobile menu (moved from WP Additional CSS into the
   enqueued stylesheet for the same LiteSpeed stability reason).
   You can now delete this block from Appearance > Customize > Additional CSS.
   ========================================================================= */

/* ---------- Desktop ---------- */
@media (min-width: 1025px) {
  .primary-nav > ul > li.menu-item-has-children > a {
    position: relative; display: inline-flex !important; align-items: center; gap: 7px;
  }
  .primary-nav > ul > li.menu-item-has-children > a::before {
    content: ""; order: 2; width: 7px; height: 7px; margin-left: 2px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transform-origin: center; transition: transform 0.2s ease; flex: 0 0 auto;
  }
  .primary-nav > ul > li.menu-item-has-children:hover > a::before,
  .primary-nav > ul > li.menu-item-has-children:focus-within > a::before { transform: rotate(-135deg); }
  .primary-nav > ul > li.menu-item-has-children > a::after {
    content: ""; position: absolute; left: 0; right: auto; top: auto !important; bottom: -2px;
    width: 0; height: 2px; margin: 0; border: 0 !important; background: var(--color-rose);
    transform: none !important; transition: width 0.2s ease;
  }
  .primary-nav > ul > li.menu-item-has-children:hover > a::after,
  .primary-nav > ul > li.menu-item-has-children:focus-within > a::after,
  .primary-nav > ul > li.current-menu-item.menu-item-has-children > a::after { width: 100%; transform: none !important; }
  .primary-nav .sub-menu .menu-item-has-children > a { display: flex !important; align-items: center; }
  .primary-nav .sub-menu .menu-item-has-children > a::before {
    content: ""; order: 2; width: 7px; height: 7px; margin-left: auto;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
  }
  .primary-nav .sub-menu .menu-item-has-children > a::after { display: none !important; }
  .primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }
}

/* ---------- Mobile and tablet ---------- */
@media (max-width: 1024px) {
  .mobile-nav-drawer li.menu-item-has-children { position: relative; }
  .mobile-nav-drawer .menu-item-has-children > a { display: block !important; padding-right: 58px !important; }
  .mobile-nav-drawer .menu-item-has-children > a::before,
  .mobile-nav-drawer .menu-item-has-children > a::after { display: none !important; }
  .mobile-nav-drawer .mobile-arrow {
    position: absolute; top: 6px; right: 6px; z-index: 3; display: grid;
    width: 44px; height: 44px; padding: 0; place-items: center;
    color: var(--color-rose); background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 0;
  }
  .mobile-nav-drawer .mobile-arrow::before {
    content: ""; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform 0.2s ease;
  }
  .mobile-nav-drawer .mobile-arrow.open::before { transform: rotate(-135deg); }
  .mobile-nav-drawer .mobile-arrow:hover,
  .mobile-nav-drawer .mobile-arrow:focus-visible { color: #fff; background: var(--color-rose); outline: none; }
  .mobile-nav-drawer .mobile-arrow:focus-visible { box-shadow: 0 0 0 3px rgba(212, 40, 115, 0.22); }
  .mobile-nav-drawer .sub-menu {
    position: static !important; display: block !important; width: 100%; min-width: 0;
    max-height: 0; margin: 0; padding: 0; overflow: hidden;
    opacity: 1 !important; visibility: hidden !important; pointer-events: none; transform: none !important;
    background: var(--color-bg-rose-tint); border: 0; border-radius: 8px; box-shadow: none;
    transition: max-height 0.3s ease, visibility 0s linear 0.3s;
  }
  .mobile-nav-drawer .sub-menu.open {
    max-height: 700px; padding: 4px 0; visibility: visible !important; pointer-events: auto; transition-delay: 0s;
  }
  .mobile-nav-drawer .sub-menu a {
    display: block; padding: 11px 18px; color: var(--color-heading);
    font-size: 0.9rem; border-bottom: 1px solid rgba(212, 40, 115, 0.1);
  }
  .mobile-nav-drawer .sub-menu li:last-child > a { border-bottom: 0; }
}