/* ===================================================================
 * MyHumanBlueprint Child Theme — store.css
 * Estilos específicos para store.myhumanblueprint.app (WooCommerce)
 * =================================================================== */

/* ─── CONTAINER TIENDA ─────────────────────────────────────────── */

.mhb-store-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ─── LAYOUT PRODUCTO INDIVIDUAL ──────────────────────────────── */

.mhb-single-product {
  padding: 24px 0;
}

.mhb-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .mhb-product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── GALERÍA DE IMAGEN ─────────────────────────────────────────── */

.mhb-product-gallery {
  overflow: hidden;
  padding: 0;
}

.mhb-product-gallery .woocommerce-product-gallery {
  margin: 0;
}

.mhb-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Thumbnails de la galería */
.mhb-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  margin: 0;
  list-style: none;
}

.mhb-product-gallery .flex-control-thumbs li {
  flex: 0 0 60px;
}

.mhb-product-gallery .flex-control-thumbs img {
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s ease;
}

.mhb-product-gallery .flex-control-thumbs img:hover,
.mhb-product-gallery .flex-control-thumbs .flex-active {
  border-color: var(--mhb-gold);
  opacity: 1;
}

/* ─── CATEGORÍAS DE PRODUCTO ───────────────────────────────────── */

.mhb-product-categories {
  margin-bottom: 12px;
}

/* ─── TÍTULO DEL PRODUCTO ──────────────────────────────────────── */

.mhb-product-title {
  font-family: var(--mhb-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--mhb-text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ─── PRECIO ────────────────────────────────────────────────────── */

.mhb-product-price .price,
.woocommerce .single-product .price {
  font-family: var(--mhb-font-heading);
  font-size: 2rem;
  color: var(--mhb-gold) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.woocommerce .single-product del .woocommerce-Price-amount {
  color: var(--mhb-text-muted) !important;
  font-size: 1.2rem;
  text-decoration: line-through;
}

/* ─── BOTÓN ADD-TO-CART ─────────────────────────────────────────── */

.woocommerce .single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button.button,
.woocommerce .single-product .cart button.button {
  background: linear-gradient(135deg, var(--mhb-violet-deep) 0%, var(--mhb-gold-dark) 100%);
  color: #fff;
  font-family: var(--mhb-font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 16px 36px;
  border: none;
  border-radius: 8px;
  width: 100%;
  max-width: 360px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.35);
  transition: all 0.25s ease;
  text-transform: none;
}

.woocommerce .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.5), 0 0 20px rgba(201, 169, 110, 0.2);
  color: #fff;
}

/* Quantity input */
.woocommerce .quantity input.qty {
  background: var(--mhb-bg-card);
  border: 1px solid var(--mhb-glass-border);
  border-radius: 6px;
  color: var(--mhb-text-primary);
  font-family: var(--mhb-font-body);
  font-size: 1rem;
  text-align: center;
  width: 60px;
  height: 46px;
}

/* ─── DESCRIPCIÓN CORTA ─────────────────────────────────────────── */

.mhb-product-short-desc {
  margin-bottom: 32px;
}

.mhb-product-short-desc p {
  color: var(--mhb-text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

/* ─── PESTAÑAS DE PRODUCTO ──────────────────────────────────────── */

.woocommerce .woocommerce-tabs {
  margin: 32px 0;
}

.woocommerce .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  border-bottom: 2px solid var(--mhb-glass-border);
}

.woocommerce .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.woocommerce .woocommerce-tabs ul.tabs li a {
  font-family: var(--mhb-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mhb-text-muted);
  letter-spacing: 0.06em;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.woocommerce .woocommerce-tabs ul.tabs li.active,
.woocommerce .woocommerce-tabs ul.tabs li:hover {
  border-bottom-color: var(--mhb-gold);
}

.woocommerce .woocommerce-tabs ul.tabs li.active a,
.woocommerce .woocommerce-tabs ul.tabs li:hover a {
  color: var(--mhb-gold);
}

.woocommerce .woocommerce-tabs .panel {
  background: var(--mhb-bg-card);
  border: 1px solid var(--mhb-glass-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 28px 32px;
}

.woocommerce .woocommerce-tabs .panel h2 {
  font-family: var(--mhb-font-heading);
  color: var(--mhb-gold);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.woocommerce .woocommerce-tabs .panel p {
  color: var(--mhb-text-secondary);
  line-height: 1.8;
}

/* ─── PRODUCTOS RELACIONADOS ───────────────────────────────────── */

.mhb-related-products {
  margin: 48px 0 32px;
}

.mhb-related-title {
  font-family: var(--mhb-font-heading);
  color: var(--mhb-gold);
  font-size: 1.4rem;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mhb-glass-border);
  letter-spacing: 0.06em;
}

.mhb-related-products .products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .mhb-related-products .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .mhb-related-products .products {
    grid-template-columns: 1fr;
  }
}

/* ─── GRID PRODUCTOS (tienda/archive) ──────────────────────────── */

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products li.product {
  background: var(--mhb-bg-card);
  border: 1px solid var(--mhb-glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--mhb-card-glow), var(--mhb-glass-shadow);
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--mhb-font-heading);
  color: var(--mhb-text-primary);
  font-size: 1.05rem;
  padding: 16px 16px 8px;
  line-height: 1.3;
}

.woocommerce ul.products li.product .price {
  padding: 0 16px 8px;
}

.woocommerce ul.products li.product .button {
  margin: 8px 16px 16px;
  display: block;
  width: calc(100% - 32px);
  text-align: center;
}

/* ─── NOTICES / AVISOS ──────────────────────────────────────────── */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-left-color: var(--mhb-gold);
  background: var(--mhb-bg-card);
  color: var(--mhb-text-primary);
  border-radius: 8px;
  font-family: var(--mhb-font-body);
}

.woocommerce-error {
  border-left-color: var(--mhb-error, #EF4444);
}

/* ─── BREADCRUMB ────────────────────────────────────────────────── */

.woocommerce .woocommerce-breadcrumb {
  font-size: 0.82rem;
  color: var(--mhb-text-muted);
  margin-bottom: 24px;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--mhb-gold);
  text-decoration: none;
}
.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--mhb-gold-bright);
}

/* ─── LIGHT MODE ─────────────────────────────────────────────────── */

body.mhb-light .woocommerce .woocommerce-tabs .panel {
  background: rgba(255, 252, 248, 0.9);
  border-color: rgba(154, 123, 79, 0.2);
}

body.mhb-light .woocommerce ul.products li.product {
  background: rgba(255, 252, 248, 0.85);
  border-color: rgba(154, 123, 79, 0.2);
}
