/*
Theme Name: Reware
Theme URI: https://rewarekitchen.com
Description: Reware — zero-waste kitchenware store (DirectIA Tienda #1). Child theme de Blocksy. Sistema de diseño "eco sofisticado": evergreen/oat/clay, Fraunces + Inter. theme.json = fuente de verdad de tokens.
Author: DirectIA / Grupo MECSOL
Template: blocksy
Version: 0.1.0
Text Domain: reware
*/

/* ----- Tokens (espejo de theme.json para front-end) ----- */
:root {
  --rw-evergreen: #1F3D2B;
  --rw-sage:      #7E9B82;
  --rw-oat:       #F6F3EC;
  --rw-cloud:     #FFFFFF;
  --rw-clay:      #C2683F;
  --rw-clay-dark: #A8552F;
  --rw-ink:       #1A1C18;
  --rw-stone:     #6E6A60;
  --rw-hairline:  #E5DFD3;
  --rw-leaf:      #3F7D52;
}

/* ----- Base ----- */
body {
  background-color: var(--rw-oat);
  color: var(--rw-ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--rw-evergreen);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a { color: var(--rw-evergreen); }
a:hover { color: var(--rw-clay); }

/* Etiquetas / specs en mono sutil */
.rw-label, .wc-block-components-product-badge {
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78em;
  color: var(--rw-stone);
}

/* ----- Botones (Clay, radio 8px, sin glow) ----- */
.wp-block-button__link,
.button, button, input[type="submit"],
.wc-block-components-button,
a.button.alt, .woocommerce a.button, .woocommerce button.button.alt {
  background-color: var(--rw-clay) !important;
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  padding: 14px 26px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: background-color .15s ease, transform .15s ease;
}
.wp-block-button__link:hover,
.button:hover, .woocommerce a.button:hover, .woocommerce button.button.alt:hover {
  background-color: var(--rw-clay-dark) !important;
  transform: translateY(-1px);
}

/* Botón secundario (borde evergreen) */
.is-style-outline .wp-block-button__link,
.button.alt-secondary {
  background: transparent !important;
  color: var(--rw-evergreen) !important;
  border: 1px solid var(--rw-evergreen) !important;
}

/* ----- Cards de producto (Cloud sobre Oat) ----- */
.woocommerce ul.products li.product,
.wc-block-grid__product, .wp-block-woocommerce-product-template li {
  background: var(--rw-cloud);
  border: 1px solid var(--rw-hairline);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 16px rgba(31,61,43,.08);
  transform: translateY(-2px);
}

/* Header/footer evergreen cuando aplique */
.rw-section-dark { background: var(--rw-evergreen); color: var(--rw-oat); }
.rw-section-dark h1, .rw-section-dark h2, .rw-section-dark h3 { color: var(--rw-oat); }

/* Aire premium */
.wp-block-group.is-layout-constrained { padding-block: clamp(48px, 8vw, 128px); }

/* ===== Header ===== */
.ct-header { background: var(--rw-oat); }
.site-title a, .site-title { font-family: "Fraunces", Georgia, serif !important; font-weight: 600 !important; color: var(--rw-evergreen) !important; letter-spacing: -0.02em; }
.header-menu-1 a, .ct-header .menu-item a { font-family: "Inter", sans-serif; font-weight: 500; }
.header-menu-1 a:hover { color: var(--rw-clay) !important; }

/* ===== Footer evergreen ===== */
.ct-footer { background: var(--rw-evergreen) !important; color: #cdd8cd !important; }
.ct-footer a { color: #cdd8cd !important; }
.ct-footer a:hover { color: #ffffff !important; }
.ct-footer .ct-footer-copyright,
.ct-footer [data-column] { color: #cdd8cd !important; }
.ct-footer h3, .ct-footer .widget-title { color: var(--rw-oat) !important; font-family: "Inter"; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

/* ===== Single product page (premium) ===== */
.single-product .product .product_title { font-family: "Fraunces", serif; font-size: clamp(28px, 4vw, 40px); color: var(--rw-evergreen); }
.single-product .product .price { font-family: "Fraunces", serif; color: var(--rw-evergreen) !important; font-weight: 600; }
.single-product .product .price ins { text-decoration: none; }
.single-product .single_add_to_cart_button { width: 100%; max-width: 360px; font-size: 1.05rem !important; padding: 16px 28px !important; }
.single-product .woocommerce-product-details__short-description { color: var(--rw-stone); font-size: 1.05rem; }
.single-product .product_meta { color: var(--rw-stone); font-size: .85rem; }

/* Trust strip bajo el add-to-cart (inyectado por functions.php) */
.rw-trust-strip { display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0 8px; padding: 16px 0; border-top: 1px solid var(--rw-hairline); border-bottom: 1px solid var(--rw-hairline); }
.rw-trust-strip span { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--rw-evergreen); font-weight: 500; }
.rw-trust-strip b { color: var(--rw-clay); }

/* Related / cross-sell headings */
.related.products > h2, .up-sells > h2, .cross-sells > h2 { font-family: "Fraunces", serif; color: var(--rw-evergreen); }

/* ===== Galería de producto — FIX MÍNIMO Y SEGURO (2026-06-22) =====
   El enfoque anterior (grid 2-col + aspect-ratio 1:1 + heights forzados)
   ROMPÍA la página (colapsaba el resto del contenido). Aquí SOLO se mata el
   aspect-ratio:3/4 inline que estira la imagen + se capa la altura. NO se toca
   el layout/grid de Blocksy (su default ya hace 2 columnas y funciona). */
.single-product div.product .flexy-item figure.ct-media-container { min-height: 0 !important; }
.single-product div.product .flexy-item figure.ct-media-container img {
  aspect-ratio: auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: 480px;
  object-fit: contain;
}
/* Video: card acotada en la descripción (no el bloque oscuro full-width) */
.woocommerce-Tabs-panel--description figure.rw-product-video,
#tab-description figure.rw-product-video { max-width: 560px; margin: 0 auto 20px; }
figure.rw-product-video video { width: 100%; height: auto; border-radius: 12px; display: block; }
