/* ===========================================================================
   ACL Libros — Capa de marca sobre el tema Open Shop (WooCommerce)
   Colores oficiales #02CE2C (brillante) y #005118 (bosque). Tipografía Roboto.
   Solo estilos: no cambia estructura, productos ni funcionalidad.
   =========================================================================== */
:root{
  --acl-verde:#02CE2C;
  --acl-verde-soft:#eafbee;
  --acl-bosque:#005118;
  --acl-bosque-2:#006b20;
  --acl-ink:#141415;
  --acl-muted:#5E635E;
  --acl-bg:#f4f6f4;
  --acl-line:rgba(20,20,21,.10);
  --acl-radio:14px;
  --acl-shadow:0 1px 2px rgba(20,20,21,.05), 0 8px 24px rgba(20,20,21,.07);
  --acl-shadow-hover:0 14px 30px rgba(0,81,24,.15);
}

/* ---------- Tipografía global ---------- */
body,
button, input, select, textarea, optgroup,
.woocommerce-loop-product__title,
h1,h2,h3,h4,h5,h6,
.site-title, .entry-title, .product_title{
  font-family:"Roboto", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
body{ color:var(--acl-ink); }
h1,h2,h3,h4,.product_title,.entry-title{ letter-spacing:-.01em; }

/* Barra de acento de marca en el borde superior */
body::before{
  content:""; position:fixed; top:0; left:0; right:0; height:4px; z-index:9999;
  background:linear-gradient(90deg, var(--acl-verde), var(--acl-bosque));
}

/* ---------- Enlaces y acentos ---------- */
a{ color:var(--acl-bosque); }
a:hover{ color:var(--acl-verde); }
.main-header a:hover,
.below-header a:hover,
.main-navigation a:hover,
.menu-category-list a:hover{ color:var(--acl-bosque) !important; }

/* Teléfono / soporte en la cabecera */
.header-support-content a,
.header-support-content strong{ color:var(--acl-bosque) !important; }
.header-support-icon i, .header-support-icon .fa{ color:var(--acl-verde) !important; }

/* Cabecera: respiro y sombra sutil */
.main-header{ box-shadow:0 1px 0 var(--acl-line); }
.below-header{ box-shadow:0 2px 10px rgba(20,20,21,.05); }

/* Menú principal: subrayado de marca en el activo/hover */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a{ color:var(--acl-bosque) !important; }

/* ---------- Botones (tema + WooCommerce) ---------- */
.button, button, input[type="submit"], input[type="button"],
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .wp-element-button,
.search-submit, .nivo-caption a{
  background-color:var(--acl-bosque) !important;
  border-color:var(--acl-bosque) !important;
  color:#fff !important;
  border-radius:10px !important;
  font-weight:700 !important;
  letter-spacing:.01em;
  transition:background-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
.button:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.wp-element-button:hover, .search-submit:hover{
  background-color:var(--acl-bosque-2) !important;
  border-color:var(--acl-bosque-2) !important;
  color:#fff !important;
  box-shadow:0 6px 16px rgba(0,81,24,.22) !important;
}

/* Campos de formulario y buscador */
input[type="text"], input[type="search"], input[type="email"],
input[type="tel"], input[type="number"], textarea, select,
.woocommerce .quantity .qty{
  border:1px solid var(--acl-line) !important;
  border-radius:10px !important;
  background:#fff;
}
input[type="text"]:focus, input[type="search"]:focus, input[type="email"]:focus,
textarea:focus, select:focus{
  outline:none !important;
  border-color:var(--acl-bosque) !important;
  box-shadow:0 0 0 3px rgba(2,206,44,.18) !important;
}

/* ---------- Caja "Categoría" y listas de categorías ---------- */
.menu-category-list > .menu-category-toggle,
.widget_product_categories .widgettitle,
.open-shop-category-toggle{
  background:var(--acl-bosque) !important;
  border-radius:var(--acl-radio) var(--acl-radio) 0 0 !important;
}
.menu-category-list ul li a{ transition:color .15s ease, background .15s ease; }
.menu-category-list ul li a:hover{ background:var(--acl-verde-soft) !important; color:var(--acl-bosque) !important; }

/* ---------- Título "Tienda" / encabezados de página ---------- */
.page-title, .woocommerce-products-header__title, .shop-title,
.woocommerce-products-header h1{
  font-weight:900 !important;
  color:var(--acl-ink) !important;
  position:relative;
  padding-bottom:10px;
}
.page-title::after, .woocommerce-products-header__title::after{
  content:""; display:block; width:52px; height:4px; border-radius:4px;
  background:var(--acl-verde); margin-top:10px;
}

/* ---------- Tarjetas de producto (loop) ---------- */
.woocommerce ul.products li.product,
ul.products li.product{
  background:#fff !important;
  border:1px solid var(--acl-line) !important;
  border-radius:var(--acl-radio) !important;
  padding:14px !important;
  box-shadow:var(--acl-shadow) !important;
  display:flex !important;
  flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}
.woocommerce ul.products li.product:hover,
ul.products li.product:hover{
  transform:translateY(-4px);
  box-shadow:var(--acl-shadow-hover) !important;
  border-color:rgba(2,206,44,.55) !important;
}
.woocommerce ul.products li.product a img,
ul.products li.product img{
  width:100% !important;
  aspect-ratio:1/1;
  object-fit:contain !important;
  background:#fff;
  border-radius:8px;
  margin-bottom:12px !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title{
  font-size:15px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
  color:var(--acl-ink) !important;
  min-height:2.7em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; padding:0 2px !important;
}
ul.products li.product:hover .woocommerce-loop-product__title{ color:var(--acl-bosque) !important; }

/* Botón "Ver detalle" que añade el mu-plugin en cada tarjeta */
a.acl-ver{
  display:block; margin-top:auto; text-align:center;
  background:var(--acl-verde-soft) !important; color:var(--acl-bosque) !important;
  border:1px solid rgba(2,206,44,.45) !important; border-radius:10px !important;
  padding:9px 12px !important; font-weight:700 !important; font-size:13.5px !important;
  text-decoration:none; transition:all .18s ease;
}
ul.products li.product:hover a.acl-ver,
a.acl-ver:hover{ background:var(--acl-bosque) !important; color:#fff !important; border-color:var(--acl-bosque) !important; }

/* Toggle grid/lista activo en verde de marca */
.woocommerce-ordering select{ border-radius:10px !important; }

/* ---------- Ficha de producto ---------- */
.single-product .product_title{ font-weight:900 !important; }
.single-product div.product .woocommerce-tabs ul.tabs li.active{
  border-bottom:3px solid var(--acl-verde) !important;
}
.single-product div.product .woocommerce-tabs ul.tabs li.active a{ color:var(--acl-bosque) !important; }

/* Botón "Consultar por WhatsApp" (lo añade el mu-plugin) */
.acl-wa-cta{
  display:inline-flex; align-items:center; gap:10px;
  background:#25D366 !important; color:#06230f !important;
  font-weight:700 !important; font-size:16px;
  padding:14px 22px; border-radius:12px; text-decoration:none;
  box-shadow:0 6px 18px rgba(37,211,102,.3); transition:transform .18s ease, box-shadow .18s ease;
  margin:6px 0 4px;
}
.acl-wa-cta:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(37,211,102,.4); color:#06230f !important; }
.acl-wa-cta svg{ width:22px; height:22px; flex:none; }
.acl-wa-note{ display:block; color:var(--acl-muted); font-size:13px; margin-top:8px; }

/* ---------- Footer ---------- */
.top-footer, .site-footer, .footer-widgets{ }
.site-footer a:hover, .top-footer a:hover{ color:var(--acl-verde) !important; }

/* ---------- Detalles ---------- */
::selection{ background:var(--acl-verde); color:#06230f; }
.joinchat__button__open{ font-family:"Roboto",sans-serif; }
