/* Therabody landing - estilos base
   Tipografia oficial: ABC Arizona Text (titulos) / Suisse Int'l (cuerpo),
   con Georgia/Arial como fallback si las fuentes no llegan a cargar. */

@font-face {
  font-family: "ABC Arizona Text";
  src: url("../fonts/ABCArizonaTextVariable.woff2") format("woff2"),
       url("../fonts/ABCArizonaTextVariable.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("../fonts/SuisseIntl-Medium-WebXL.woff2") format("woff2"),
       url("../fonts/SuisseIntl-Medium-WebXL.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  --black: #222222;
  --white: #ffffff;
  --cream: #fbf7f1;
  --cream-border: #e4dfd4;
  --text-secondary: #55514a;
  --text-muted: #8a8577;

  --peach: #f29c77;
  --peach-light: #fcd7b3;
  --peach-lightest: #fdf1e3;
  --product-image-bg: #f8f3e9;

  --dark-gray: #52514a;
  --warm-gray: #e0ddd3;

  --performance-bg: var(--dark-gray);
  --performance-accent: var(--peach);
  --performance-text: var(--white);

  --wellness-bg: var(--warm-gray);
  --wellness-accent: var(--black);
  --wellness-dot: var(--peach-light);
  --wellness-text: var(--black);

  --beauty-bg: var(--peach-lightest);
  --beauty-accent: var(--black);
  --beauty-dot: var(--peach);
  --beauty-text: var(--black);

  --radius: 14px;
  --header-h: 56px;
  --pad: 16px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Suisse Intl", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .headline {
  font-family: "ABC Arizona Text", Georgia, "Times New Roman", serif;
  font-weight: normal;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

img { display: block; max-width: 100%; }

/* ---------- header (home) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-border);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 20px;
  width: auto;
}

.header-link {
  font-size: 13px;
  font-weight: bold;
  color: var(--white);
  background: #252525;
  border-radius: 6px;
  padding: 7px 14px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 424px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(160deg, #6b6a60, #454540);
}

.scroll-chevron {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,0.85);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  background: #454540;
}

.hero-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,20,18,0) 30%, rgba(15,15,13,0.88) 100%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) 40px;
  color: var(--white);
}

.hero-content .brand-mark {
  margin-bottom: 18px;
}

.hero-content .brand-logo {
  height: 24px;
}

.hero-tagline {
  font-family: "ABC Arizona Text", Georgia, serif;
  font-size: 34px;
  line-height: 1.25;
  max-width: 340px;
  margin-bottom: 10px;
}

.hero-subtext {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}

/* ---------- category sections ---------- */

.category-section {
  padding: 34px 0 8px;
}

.category-heading {
  padding: 0 var(--pad);
  margin-bottom: 14px;
}

.category-heading h2 {
  font-size: 21px;
  margin-bottom: 3px;
}

.category-heading p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- carousel / peek ---------- */

.carousel {
  display: flex;
  overflow-x: auto;
  padding: 2px 0 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* el padding/margin en el borde de un contenedor flex con scroll no
   siempre se respeta al cargar la pagina (bug conocido de Safari/Chrome
   mobile), asi que el espacio del borde se resuelve con un elemento
   espaciador real dentro del carrusel, no con padding ni margin.
   sin "gap" en .carousel para que el calculo sea directo: el espaciador
   ES el espacio, y cada card suma su propio margin-right como separacion. */
.carousel-spacer {
  flex: 0 0 auto;
  width: var(--pad);
}

.carousel::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 auto;
  width: 62%;
  max-width: 230px;
  display: block;
  margin-right: 12px;
}

.product-card:last-child { margin-right: 0; }

.product-card:active .card-image {
  transform: scale(0.97);
  background: #efe7d6;
}

.product-card .card-image {
  height: 150px;
  border-radius: 8px;
  background: var(--product-image-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 16px;
  transition: transform 0.12s ease, background 0.12s ease;
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card .card-name {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 4px;
}

.product-card .card-desc {
  font-size: 11.5px;
  color: var(--black);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- footer (home) ---------- */

.site-footer {
  padding: 30px var(--pad) 46px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11.5px;
  border-top: 1px solid var(--cream-border);
  margin-top: 20px;
}

/* ==========================================================
   PRODUCT PAGE
   ========================================================== */

.back-fixed {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  background: rgba(224, 221, 211, 0.9);
  color: var(--black);
  font-size: 12.5px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.product-video {
  position: relative;
  height: 92vh;
  min-height: 480px;
  background: linear-gradient(180deg, #5a594f, #2c2b27);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-video .video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.product-video .video-placeholder .ph-box {
  border: 1px dashed rgba(255,255,255,0.35);
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.6;
}

.product-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.sound-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(20,20,18,0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.video-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 20px var(--pad) 30px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: var(--white);
}

.video-overlay .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--peach);
  margin-bottom: 8px;
}

.video-overlay h1 {
  font-size: 34px;
  line-height: 1.15;
}

.video-overlay .overlay-tagline {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 340px;
  margin: 10px 0 18px;
}

.video-overlay .buy-button {
  display: inline-block;
  width: auto;
  background: var(--white);
  color: var(--black);
  padding: 12px 22px;
  border-radius: 6px;
  margin-bottom: 0;
}

.product-body {
  padding: 30px var(--pad) 10px;
  max-width: 560px;
  margin: 0 auto;
}

.product-body .section-label {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-body .tagline {
  font-size: 18px;
  line-height: 1.55;
  color: var(--black);
  margin-bottom: 26px;
}

.feature-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.feature-list li .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--peach);
}

.buy-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-weight: bold;
  padding: 16px;
  border-radius: 10px;
  border: none;
  margin-bottom: 14px;
  transition: transform 0.1s ease;
}

.buy-button:active { transform: scale(0.98); }

.catalog-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px;
  margin-bottom: 40px;
  border-bottom: 1px solid transparent;
}

/* category text accents on product page */
.product-body[data-cat="performance"] .feature-list .dot { background: var(--peach); }
.product-body[data-cat="wellness"] .feature-list .dot { background: var(--peach-light); }
.product-body[data-cat="beauty"] .feature-list .dot { background: var(--peach); }

@media (min-width: 640px) {
  .product-card { width: 220px; }
}
