/**
 * The Hemp House — Home Inmersiva: Extras
 * Carruseles WooCommerce + FAQ + bloque SEO largo.
 * Carga después de home-content.css.
 */

/* === CARRUSELES PRODUCTOS === */
.thh-products {
  position: relative;
  background: var(--thh-bg-deep);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-24) 0;
}

.thh-products__inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.thh-products__header {
  text-align: center;
  margin-bottom: var(--thh-space-12);
  padding: 0 var(--thh-space-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.thh-products__viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--thh-space-4) var(--thh-space-6) var(--thh-space-8);
}

.thh-products__viewport::-webkit-scrollbar { display: none; }
.thh-products__viewport { scrollbar-width: none; }

.thh-products__track {
  display: flex;
  gap: var(--thh-space-6);
  width: max-content;
}

.thh-product-card {
  flex: 0 0 280px;
  background: var(--thh-bg-card);
  border: 1px solid var(--thh-border);
  border-radius: var(--thh-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition:
    border-color 280ms var(--thh-ease-out),
    transform 280ms var(--thh-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .thh-product-card:hover {
    border-color: var(--thh-gold);
    transform: translateY(-4px);
  }
  .thh-product-card:hover .thh-product-card__media img {
    transform: scale(1.06);
  }
}

.thh-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--thh-bg-forest);
  overflow: hidden;
}

.thh-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--thh-ease-out);
}

.thh-product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--thh-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--thh-radius-full);
}

.thh-product-card__badge--top {
  background: var(--thh-gold);
  color: var(--thh-bg-deep);
}

.thh-product-card__badge--sale {
  background: var(--thh-error, #C97A61);
  color: var(--thh-text-primary);
}

.thh-product-card__badge--new {
  background: var(--thh-sage);
  color: var(--thh-text-primary);
}

.thh-product-card__body {
  padding: var(--thh-space-4) var(--thh-space-6) var(--thh-space-6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.thh-product-card__title {
  font-family: var(--thh-font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--thh-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.thh-product-card__price {
  font-family: var(--thh-font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--thh-gold) !important;
  margin-top: auto;
}

/* Forzar gold sobre todo el wrapping de Woo (bdi, .amount, ins, span) */
.thh-product-card__price,
.thh-product-card__price *,
.thh-product-card__price .woocommerce-Price-amount,
.thh-product-card__price .amount,
.thh-product-card__price bdi,
.thh-product-card__price ins,
.thh-product-card__price ins *,
.thh-product-card__price .woocommerce-Price-currencySymbol {
  color: var(--thh-gold) !important;
}

.thh-product-card__price ins {
  text-decoration: none;
  background: transparent;
}

/* Precio anterior tachado en muted */
.thh-product-card__price del,
.thh-product-card__price del *,
.thh-product-card__price del .woocommerce-Price-amount,
.thh-product-card__price del bdi,
.thh-product-card__price del .woocommerce-Price-currencySymbol {
  color: var(--thh-text-muted) !important;
  font-weight: 400 !important;
  margin-right: 6px;
  font-size: 13px;
  text-decoration: line-through;
}

.thh-products__nav {
  display: flex;
  justify-content: center;
  gap: var(--thh-space-4);
  margin-top: var(--thh-space-4);
}

.thh-products__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--thh-border);
  background: var(--thh-bg-card);
  color: var(--thh-text-primary);
  font-family: var(--thh-font-heading);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 200ms var(--thh-ease-out),
    color 200ms var(--thh-ease-out),
    background 200ms var(--thh-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .thh-products__btn:hover {
    border-color: var(--thh-gold);
    color: var(--thh-gold);
  }
}

/* === 10-OH-HHC SHOWCASE === */
.thh-showcase-10oh {
  position: relative;
  background: var(--thh-bg-deep);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-24) var(--thh-space-6);
  overflow: hidden;
}

.thh-showcase-10oh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(201, 169, 97, 0.10), transparent 70%);
  pointer-events: none;
}

.thh-showcase-10oh__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.thh-showcase-10oh__header {
  text-align: center;
  margin-bottom: var(--thh-space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.thh-showcase-10oh__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--thh-space-6);
}

.thh-showcase-10oh__card {
  display: flex;
  flex-direction: column;
  background: var(--thh-bg-card);
  border: 1px solid var(--thh-border);
  border-radius: var(--thh-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 320ms var(--thh-ease-out),
    transform 320ms var(--thh-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .thh-showcase-10oh__card:hover {
    border-color: var(--thh-gold);
    transform: translateY(-6px);
  }
  .thh-showcase-10oh__card:hover .thh-showcase-10oh__media img {
    transform: scale(1.05);
  }
}

.thh-showcase-10oh__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--thh-bg-forest);
}

.thh-showcase-10oh__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--thh-ease-out);
}

.thh-showcase-10oh__badge {
  position: absolute;
  top: var(--thh-space-4);
  left: var(--thh-space-4);
  z-index: 2;
  background: var(--thh-gold);
  color: var(--thh-bg-deep);
  font-family: var(--thh-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 12px;
  border-radius: var(--thh-radius-sm);
}

.thh-showcase-10oh__body {
  padding: var(--thh-space-6) var(--thh-space-6) var(--thh-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--thh-space-3);
  flex-grow: 1;
}

.thh-showcase-10oh__title {
  font-family: var(--thh-font-heading);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--thh-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.thh-showcase-10oh__excerpt {
  font-family: var(--thh-font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--thh-text-secondary);
  margin: 0;
  flex-grow: 1;
}

.thh-showcase-10oh__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--thh-space-3);
  border-top: 1px solid var(--thh-border);
}

.thh-showcase-10oh__price,
.thh-showcase-10oh__price *,
.thh-showcase-10oh__price bdi,
.thh-showcase-10oh__price ins,
.thh-showcase-10oh__price ins * {
  color: var(--thh-gold) !important;
  font-family: var(--thh-font-heading);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
}

.thh-showcase-10oh__price del,
.thh-showcase-10oh__price del * {
  color: var(--thh-text-muted) !important;
  font-size: 14px;
  margin-right: 6px;
}

.thh-showcase-10oh__cta {
  font-family: var(--thh-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--thh-gold);
}

@media (max-width: 900px) {
  .thh-showcase-10oh__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* === FAQ === */
.thh-faq {
  position: relative;
  background: var(--thh-bg-forest);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-24) var(--thh-space-6);
}

.thh-faq__inner {
  max-width: 880px;
  margin: 0 auto;
}

.thh-faq__header {
  text-align: center;
  margin-bottom: var(--thh-space-12);
}

.thh-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--thh-border);
}

.thh-faq__item {
  border-bottom: 1px solid var(--thh-border);
}

.thh-faq__q {
  list-style: none;
  cursor: pointer;
  padding: var(--thh-space-6) 0;
  font-family: var(--thh-font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--thh-text-primary);
  position: relative;
  padding-right: 40px;
  transition: color 200ms var(--thh-ease-out);
}

.thh-faq__q::-webkit-details-marker { display: none; }
.thh-faq__q::marker { content: ''; }

.thh-faq__q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--thh-gold);
  font-weight: 300;
  transition: transform 250ms var(--thh-ease-out);
  line-height: 1;
}

.thh-faq__item[open] .thh-faq__q::after {
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .thh-faq__q:hover {
    color: var(--thh-gold-bright);
  }
}

.thh-faq__a {
  font-family: var(--thh-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--thh-text-secondary);
  padding: 0 0 var(--thh-space-6) 0;
  max-width: 70ch;
}

/* === BLOQUE SEO LARGO === */
.thh-seo-block {
  background: var(--thh-bg-deep);
  border-top: 1px solid var(--thh-border);
  padding: var(--thh-space-12) var(--thh-space-6);
}

.thh-seo-block__inner {
  max-width: 880px;
  margin: 0 auto;
}

.thh-seo-block__details {
  background: transparent;
}

.thh-seo-block__toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--thh-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--thh-text-secondary);
  padding: 12px 0;
  transition: color 200ms var(--thh-ease-out);
}

.thh-seo-block__toggle::-webkit-details-marker { display: none; }

.thh-seo-block__toggle::before {
  content: '+';
  font-family: var(--thh-font-heading);
  font-size: 20px;
  color: var(--thh-gold);
  transition: transform 250ms var(--thh-ease-out);
  display: inline-block;
}

.thh-seo-block__details[open] .thh-seo-block__toggle::before {
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .thh-seo-block__toggle:hover {
    color: var(--thh-gold-bright);
  }
}

.thh-seo-block__body {
  padding-top: var(--thh-space-6);
  color: var(--thh-text-secondary);
  font-family: var(--thh-font-body);
  font-size: 15px;
  line-height: 1.75;
}

.thh-seo-block__body h2 {
  font-family: var(--thh-font-heading);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--thh-text-primary);
  margin: var(--thh-space-8) 0 var(--thh-space-4);
}

.thh-seo-block__body h2:first-child {
  margin-top: 0;
}

.thh-seo-block__body h3 {
  font-family: var(--thh-font-heading);
  font-size: 21px;
  font-weight: 500;
  font-style: italic;
  color: var(--thh-gold-bright);
  margin: var(--thh-space-6) 0 var(--thh-space-3);
}

.thh-seo-block__body p {
  margin: 0 0 var(--thh-space-4);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .thh-products,
  .thh-faq,
  .thh-seo-block {
    padding-left: var(--thh-space-4);
    padding-right: var(--thh-space-4);
  }
  .thh-products {
    padding-left: 0;
    padding-right: 0;
  }
  .thh-products__viewport {
    padding-left: var(--thh-space-4);
    padding-right: var(--thh-space-4);
  }
  .thh-product-card {
    flex: 0 0 240px;
  }
  .thh-products__nav {
    display: none;
  }
}

/* === PATRÓN BOTÁNICO DECORATIVO (sutil, gold/sage tint sobre dark) === */
.thh-seo-block,
.thh-faq,
.thh-cta-final {
  isolation: isolate;
}

.thh-seo-block::before,
.thh-faq::before,
.thh-cta-final::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://thehemphouse.es/wp-content/uploads/2026/06/botanical-pattern.webp');
  background-size: 480px auto;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.07;
  mix-blend-mode: screen;
  filter: hue-rotate(8deg) saturate(0.75);
  pointer-events: none;
  z-index: 0;
}

/* .thh-cta-final ya usa ::before para el glow gold, usamos ::after para el patrón */
.thh-cta-final {
  position: relative;
}

.thh-faq__inner,
.thh-seo-block__inner,
.thh-cta-final__inner {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .thh-seo-block::before,
  .thh-faq::before,
  .thh-cta-final::after { opacity: 0.04; }
}
