/* =====================================================================
   REDISENO WOODMART - estilo del nuevo diseno
   Pegar en: Apariencia > Editor de archivos de temas > Woodmart Child > style.css
   (debajo del comentario inicial del archivo). Version 1.0
   ===================================================================== */

/* Fuente Archivo variable (permite titulos anchos). Debe ir ARRIBA de todo. */

/* ---------------------------------------------------------------------
   1. COLORES Y VARIABLES BASE
   --------------------------------------------------------------------- */
body {
  --oc-ink: #15171A;      /* negro tinta  */
  --oc-lime: #C8F064;     /* lima         */
  --oc-sand: #F3F3EF;     /* arena        */
  --oc-text: #3C4046;     /* texto        */
  --oc-muted: #5B6068;    /* texto suave  */
  --oc-line: #E4E4E0;     /* lineas       */
  --oc-green: #1F6B3A;    /* confianza    */

  /* Variables de Woodmart */
  --wd-primary-color: #15171A;
  --wd-alternative-color: #C8F064;
  --wd-title-color: #15171A;
  --wd-text-color: #3C4046;
  --wd-brd-radius: 12px;
  --wd-form-brd-radius: 10px;
  --btn-default-brd-radius: 999px;
  --btn-accented-brd-radius: 999px;
  --btn-default-bgcolor: #15171A;
  --btn-default-bgcolor-hover: #2A2D32;
  --btn-accented-bgcolor: #15171A;
  --btn-accented-bgcolor-hover: #2A2D32;

  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--oc-text);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------
   2. TITULOS: gruesos y un poco anchos
   --------------------------------------------------------------------- */
h1, h2, h3,
.title, .wd-title, .page-title .title,
.product_title, .entry-title,
.wd-entities-title, .info-box-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  color: var(--oc-ink);
}
h1, .product_title, .page-title .title {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 { font-weight: 750; line-height: 1.12; }
h3 { font-weight: 700; }

h1 { font-size: 34px; }
h2 { font-size: 26px; }
.single-product .product_title { font-size: 28px; }

@media (min-width: 1025px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  .single-product .product_title { font-size: 38px; }
}

/* Sin MAYUSCULAS forzadas en todo el sitio */
.btn, .button, button, .wd-nav > li > a,
.wd-nav-main > li > a, .wd-buy-now-btn,
.single_add_to_cart_button, .product-label,
.wd-tools-element .wd-tools-text, .woocommerce-breadcrumb,
.wd-breadcrumbs, .widget-title, .title-after_title {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ---------------------------------------------------------------------
   3. BOTONES tipo pastilla
   --------------------------------------------------------------------- */
.btn, .button, .single_add_to_cart_button,
.wd-buy-now-btn, .checkout-button, #place_order,
.woocommerce-button, input[type="submit"] {
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  min-height: 52px;
  padding-left: 28px !important;
  padding-right: 28px !important;
  box-shadow: none !important;
}
.single_add_to_cart_button,
.checkout-button, #place_order {
  background: var(--oc-ink) !important;
  color: #fff !important;
}
.single_add_to_cart_button:hover,
.checkout-button:hover, #place_order:hover {
  background: #2A2D32 !important;
}
/* Boton secundario (Comprar ahora) con contorno */
.wd-buy-now-btn {
  background: #fff !important;
  color: var(--oc-ink) !important;
  border: 1.5px solid var(--oc-ink) !important;
}
.wd-buy-now-btn:hover { background: var(--oc-sand) !important; }

/* Campos y selects */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="search"], input[type="password"],
select, textarea {
  border-radius: 10px;
  border-color: #D9D9D4;
  min-height: 48px;
  font-size: 16px;   /* evita zoom en iPhone */
}

/* ---------------------------------------------------------------------
   4. HEADER Y MENU
   --------------------------------------------------------------------- */
.wd-nav-main > li > a,
.whb-header .wd-nav > li > a {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--oc-ink);
  border-radius: 999px;
  padding-left: 14px; padding-right: 14px;
}
.wd-nav-main > li > a:hover { background: var(--oc-sand); }
.whb-header { border-bottom: 1px solid var(--oc-line); }

/* Barra superior (topbar) oscura */
.whb-top-bar { background: var(--oc-ink) !important; }
.whb-top-bar, .whb-top-bar a { color: #fff !important; font-size: 13px; }

/* Contador del carrito en lima */
.wd-cart-number, .wd-tools-count {
  background: var(--oc-lime) !important;
  color: var(--oc-ink) !important;
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   5. MIGAS DE PAN
   --------------------------------------------------------------------- */
.woocommerce-breadcrumb, .wd-breadcrumbs, .rank-math-breadcrumb {
  font-size: 14px;
  color: var(--oc-muted);
}
.woocommerce-breadcrumb a, .wd-breadcrumbs a, .rank-math-breadcrumb a {
  color: var(--oc-muted);
}

/* ---------------------------------------------------------------------
   6. TARJETA DE PRODUCTO (listas y carruseles)
   --------------------------------------------------------------------- */
.product-grid-item .product-element-top,
.product-grid-item .product-image-link img {
  border-radius: 12px;
  overflow: hidden;
  background: #F1F1ED;
}
/* Sin zoom ni segunda imagen al pasar el mouse */
.product-grid-item .hover-img { display: none !important; }
.product-grid-item:hover .product-image-link img { transform: none !important; }

.product-grid-item .wd-entities-title {
  font-size: 16px;
  line-height: 21px;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0;
  margin-top: 12px;
}
.product-grid-item .wd-entities-title a { color: var(--oc-ink); }
.product-grid-item .price {
  font-size: 16px;
  font-weight: 700;
  color: var(--oc-ink);
}
.product-grid-item .wd-product-cats,
.product-grid-item .wd-product-brands-links {
  font-size: 14px;
  color: var(--oc-muted);
}

/* Etiquetas Nuevo / Mas vendido / Oferta tipo pastilla */
.product-labels .product-label {
  border-radius: 999px !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  min-height: 26px;
  background: var(--oc-ink);
  color: #fff;
}
.product-labels .product-label.new { background: var(--oc-lime); color: var(--oc-ink); }

/* Rejilla: mas aire entre filas */
.products.wd-products, .wd-products-element .products {
  row-gap: 28px;
}

/* ---------------------------------------------------------------------
   7. PAGINA DE PRODUCTO
   --------------------------------------------------------------------- */
.single-product .price {
  font-size: 24px;
  font-weight: 750;
  color: var(--oc-ink);
}
@media (min-width: 1025px) {
  .single-product .summary .price { font-size: 26px; }
}
/* Tallas como botones */
.wd-swatch.wd-text, .wd-swatch {
  border-radius: 10px !important;
  min-width: 48px;
  min-height: 48px;
  font-weight: 600;
}
.wd-swatch.wd-active { background: var(--oc-ink); color: #fff; }
.single-product .variations label { font-weight: 600; color: var(--oc-ink); }

/* Cantidad redonda */
.quantity { border-radius: 999px; }

/* Imagenes de la galeria con esquinas */
.woocommerce-product-gallery img { border-radius: 10px; }

/* Barra fija de "Agregar al carrito" en movil */
.wd-sticky-btn { border-top: 1px solid var(--oc-line); box-shadow: none; }

/* Acordeon/pestanas de descripcion */
.wd-accordion-title, .woocommerce-tabs .tabs a {
  font-size: 17px;
  font-weight: 650;
  color: var(--oc-ink);
  text-transform: none !important;
}

/* ---------------------------------------------------------------------
   8. SECCIONES DE LA PAGINA DE INICIO
   Usar en "Extra class name" de cada fila de WPBakery
   --------------------------------------------------------------------- */

/* oc-section: espacio entre secciones (48 movil / 96 escritorio) */
.oc-section { padding-top: 48px !important; }
@media (min-width: 1025px) { .oc-section { padding-top: 96px !important; } }

/* oc-section-sand: seccion con fondo arena */
.oc-section-sand {
  background: var(--oc-sand) !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
@media (min-width: 1025px) {
  .oc-section-sand { padding-top: 80px !important; padding-bottom: 80px !important; }
}

/* oc-eyebrow: texto pequeno verde sobre el H1 ("Distribuidor autorizado de On") */
.oc-eyebrow, .oc-eyebrow p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--oc-green);
  margin-bottom: 10px;
}

/* oc-hero: fila del hero */
.oc-hero h1 { margin-bottom: 14px; text-wrap: balance; }
.oc-hero p { font-size: 16px; line-height: 24px; color: var(--oc-muted); }
@media (min-width: 1025px) {
  .oc-hero h1 { font-size: 64px; line-height: 1; }
  .oc-hero p { font-size: 19px; line-height: 28px; max-width: 520px; }
}
.oc-hero img { width: 100%; height: 100%; object-fit: cover; }

/* oc-trust: barra de confianza (Info Box de Woodmart) */
.oc-trust .wd-info-box {
  background: var(--oc-sand);
  border-radius: 12px;
  padding: 16px;
  align-items: flex-start;
  gap: 12px;
}
.oc-trust .info-box-icon {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%;
  background: var(--oc-lime);
  display: grid; place-items: center;
}
.oc-trust .info-box-title { font-size: 15px; font-weight: 650; font-stretch: 100%; margin: 0; }
.oc-trust .info-box-inner { font-size: 14px; line-height: 20px; color: var(--oc-muted); }
/* En movil: desplazamiento horizontal */
@media (max-width: 767px) {
  .oc-trust > .vc_column-inner > .wpb_wrapper,
  .oc-trust .vc_row,
  .oc-trust.vc_row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    scrollbar-width: none;
  }
  .oc-trust .vc_column_container { flex: 0 0 220px !important; width: 220px !important; scroll-snap-align: start; }
}

/* oc-why: "Por que comprar con nosotros" (numeros verdes) */
.oc-why .oc-num {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--oc-green);
}
.oc-why h3, .oc-why h4 { font-size: 17px; font-weight: 650; font-stretch: 100%; margin-bottom: 4px; }
.oc-why p { font-size: 16px; line-height: 24px; color: var(--oc-muted); }

/* oc-seo-text: bloque de texto SEO */
.oc-seo-text p { font-size: 16px; line-height: 26px; color: var(--oc-text); max-width: 720px; }

/* oc-faq: preguntas frecuentes (Accordion de Woodmart) */
.oc-faq .wd-accordion-item { border-bottom: 1px solid var(--oc-line); }
.oc-faq .wd-accordion-title { min-height: 60px; padding: 12px 0; font-size: 16px; font-weight: 600; }
.oc-faq .wd-accordion-content { font-size: 16px; line-height: 24px; color: var(--oc-muted); padding-bottom: 18px; }
@media (min-width: 1025px) { .oc-faq .wd-accordion-title { font-size: 18px; min-height: 68px; } }

/* oc-cta-lime: tarjeta lima "No sabes tu talla?" */
.oc-cta-lime {
  background: var(--oc-lime);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--oc-ink);
}

/* oc-dark-box: tarjeta oscura (Distribuidor autorizado / CTA blog) */
.oc-dark-box {
  background: var(--oc-ink);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
}
.oc-dark-box h2, .oc-dark-box h3, .oc-dark-box strong { color: #fff; }
.oc-dark-box p { color: #D5D8DC; }

/* oc-chip: enlaces tipo pastilla (Hombre / Mujer / Ninos, "Explora tambien") */
.oc-chip, .oc-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #D9D9D4;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--oc-ink);
  text-decoration: none;
  margin: 0 8px 8px 0;
}
.oc-chip:hover, .oc-chips a:hover { background: var(--oc-sand); }

/* Tarjetas de categoria (Compra por modelo / uso) */
.oc-cats .wd-cat .wd-cat-thumb,
.oc-cats .category-grid-item .category-image {
  border-radius: 12px;
  overflow: hidden;
  background: #F1F1ED;
}
.oc-cats .wd-cat .wd-entities-title,
.oc-cats .category-grid-item .wd-entities-title {
  font-size: 16px;
  font-weight: 650;
  font-stretch: 100%;
  text-transform: none;
}

/* ---------------------------------------------------------------------
   9. TABLAS (comparativas y guia de tallas)
   --------------------------------------------------------------------- */
.oc-table table, .wd-sizeguide-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.oc-table th, .oc-table td, .wd-sizeguide-table th, .wd-sizeguide-table td {
  border: 0;
  border-top: 1px solid var(--oc-line);
  padding: 12px;
}
.oc-table thead th, .wd-sizeguide-table thead th {
  border-top: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--oc-muted);
}
@media (max-width: 767px) {
  .oc-table { overflow-x: auto; }
  .oc-table table { min-width: 560px; }
}

/* ---------------------------------------------------------------------
   10. FOOTER oscuro
   --------------------------------------------------------------------- */
.footer-container, .wd-footer {
  background: var(--oc-ink) !important;
  color: #C4C7CC;
}
.footer-container .widget-title, .wd-footer .widget-title {
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: #A9ADB3 !important;
}
.footer-container a, .wd-footer a { color: #fff; }
.footer-container a:hover, .wd-footer a:hover { color: var(--oc-lime); }
.copyrights-wrapper {
  border-top: 1px solid #33363B;
  font-size: 13px;
  color: #A9ADB3;
}

/* ---------------------------------------------------------------------
   11. ACCESIBILIDAD: objetivos tactiles minimos de 44px en movil
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .wd-nav-mobile > li > a,
  .wd-tools-element > a { min-height: 44px; }
}


/* =====================================================================
   PARCHE 1.1 - pegar AL FINAL de style.css (Woodmart Child),
   debajo de todo el codigo anterior. No borrar nada.
   ===================================================================== */

/* 1. CANTIDAD (- 1 +): quitar el estilo de boton grande */
.quantity .minus, .quantity .plus,
.quantity input[type="button"] {
  min-height: 44px !important;
  height: 44px !important;
  width: 40px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #15171A !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}
.quantity {
  display: inline-flex !important;
  align-items: center;
  border: 1px solid #D9D9D4;
  border-radius: 999px;
  overflow: hidden;
  height: 52px;
}
.quantity input.qty {
  border: 0 !important;
  min-height: 44px !important;
  width: 36px !important;
  padding: 0 !important;
  text-align: center;
  background: transparent;
}

/* 2. FILA DE COMPRA: cantidad + Agregar al carrito + Comprar ahora */
.single-product form.cart,
.single-product .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.single-product .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 200px;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #15171A !important;
  color: #FFFFFF !important;
  border: 0 !important;
}
/* Antes de elegir talla: boton visible pero atenuado */
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button.wc-variation-selection-needed {
  opacity: .45 !important;
  cursor: not-allowed;
}
.single-product .wd-buy-now-btn,
.single-product .buy-now-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 160px;
  min-height: 52px;
  border-radius: 999px !important;
  background-color: #FFFFFF !important;
  color: #15171A !important;
  border: 1.5px solid #15171A !important;
  font-weight: 600 !important;
}
@media (max-width: 767px) {
  .single-product .single_add_to_cart_button,
  .single-product .wd-buy-now-btn { flex: 1 1 100%; }
}

/* 3. MENU: menos espacio para que todo quepa en una linea */
.wd-nav-main > li > a,
.whb-header .wd-nav > li > a {
  padding-left: 10px !important;
  padding-right: 10px !important;
  white-space: nowrap;
}
.wd-nav-main { flex-wrap: nowrap; }

/* 4. TARJETAS DE PRODUCTO */
/* Fondo gris parejo aunque la foto tenga fondo blanco */
.product-grid-item .product-element-top { background: #F1F1ED !important; }
.product-grid-item .product-image-link img { mix-blend-mode: multiply; }
/* Texto alineado a la izquierda, como el diseno */
.product-grid-item .product-element-bottom,
.product-grid-item .wd-entities-title,
.product-grid-item .price { text-align: left !important; justify-content: flex-start !important; }
/* Ocultar la lista larga de categorias bajo el nombre */
.product-grid-item .wd-product-cats { display: none !important; }
/* Etiqueta de descuento tipo pastilla pequena, dentro de la imagen */
.product-grid-item .product-labels { top: 10px !important; left: 10px !important; }
.product-grid-item .product-labels .product-label {
  width: auto !important; height: auto !important;
  border-radius: 999px !important;
}
