/* ==========================================================
   TIENDA (WooCommerce) — mismo lenguaje del sitio: fondo profundo con la constelación,
   tarjetas de cristal y el producto sobre panel claro para que la foto se vea limpia.
   Solo se carga si WooCommerce está activo.
   ========================================================== */

/* ---- Cabecera de la tienda y accesos por categoría ---- */
.subhero--tienda { padding-bottom: 44px; }
.tienda-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tienda-cat {
  display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #cfe0f7; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(124,199,255,.22);
  transition: background .2s, color .2s, border-color .2s;
}
.tienda-cat:hover { background: rgba(55,167,255,.16); color: #fff; }
.tienda-cat.on { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border-color: transparent; }

.tienda { padding: 64px 0 96px; }
.tienda .crumbs { margin-bottom: 26px; }
.tienda .woocommerce-products-header { display: none; }
.tienda .woocommerce-notices-wrapper:empty { display: none; }

/* ---- Barra de resultados y orden ---- */
.tienda .woocommerce-result-count { color: #8ea3c4; font-size: 14px; margin: 0 0 22px; float: none; display: inline-block; }
.tienda .woocommerce-ordering { float: right; margin: -6px 0 22px; }
.tienda .woocommerce-ordering select,
.tienda .variations select,
.tienda .quantity .qty {
  font: inherit; font-weight: 600; color: #fff; background: rgba(255,255,255,.06);
  border: 1px solid rgba(124,199,255,.28); border-radius: 12px; padding: 10px 14px; min-height: 44px;
}
.tienda .woocommerce-ordering select option { color: #081427; }

/* ---- Cuadrícula de productos ---- */
.tienda ul.products {
  list-style: none; margin: 0; padding: 0; clear: both;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.tienda ul.products::before, .tienda ul.products::after { display: none; }
.tienda ul.products li.product {
  float: none !important; width: auto !important; margin: 0 !important; padding: 0; position: relative; display: flex; flex-direction: column;
  background: rgba(255,255,255,.04); border: 1px solid rgba(124,199,255,.18); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tienda ul.products li.product:hover { transform: translateY(-5px); border-color: rgba(55,167,255,.55); box-shadow: 0 26px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(55,167,255,.2); }
.tienda ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.tienda ul.products li.product a img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin: 0;
  background: linear-gradient(180deg, #ffffff, #eef4fb); padding: 16px;
}
.tienda ul.products li.product .woocommerce-loop-product__title,
.tienda ul.products li.product .woocommerce-loop-category__title {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.3; color: #fff;
  padding: 16px 18px 0; margin: 0;
}
.tienda ul.products li.product .price { display: block; padding: 8px 18px 0; margin: 0; font-size: 18px; font-weight: 800; color: var(--cyan); }
.tienda ul.products li.product .price del { color: #7f93b3; font-weight: 500; font-size: 14px; margin-right: 6px; }
.tienda ul.products li.product .price ins { text-decoration: none; }
.tienda .bw-precio-cotizar { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9fb4d6; }
.tienda ul.products li.product .star-rating { margin: 8px 18px 0; }
.tienda ul.products li.product .onsale,
.tienda div.product .onsale {
  position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0; min-height: 0; min-width: 0; line-height: 1;
  padding: 7px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, #ff6a3d, #e0392b);
}

/* ---- Botones de WooCommerce con el estilo del sitio ---- */
/* 4.0.3: estilo minimalista/tecnológico — color plano, esquinas de 10px, sin brillo; el foco se marca con un anillo. */
.tienda .button, .tienda button.button, .tienda a.button, .tienda input.button,
.woocommerce-page .pagina .button, .woocommerce-page .pagina a.button, .woocommerce-page .pagina button.button,
.pagina--compra .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 20px; border: 1px solid var(--blue); border-radius: 10px; cursor: pointer; text-decoration: none;
  font: inherit; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .3px; line-height: 1.2; color: #fff;
  background: var(--blue); box-shadow: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.tienda .button:hover, .woocommerce-page .pagina .button:hover, .pagina--compra .wc-block-components-button:hover {
  background: #4fb3ff; border-color: #4fb3ff; color: #fff; box-shadow: 0 0 0 4px rgba(55,167,255,.18);
}
.tienda .button:focus-visible, .woocommerce-page .pagina .button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(131,215,255,.45); }
.tienda ul.products li.product .button { margin: 14px 18px 18px; align-self: stretch; }
/* Cotizar / WhatsApp: botón de contorno, secundario al de comprar */
.tienda .button.bw-btn-cotizar, .tienda a.bw-btn-cotizar,
.tienda .woocommerce-product-details__short-description a.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px;
  border-radius: 10px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .3px;
  background: transparent; border: 1px solid rgba(37,211,102,.7); color: #58e39a; box-shadow: none; text-decoration: none;
}
.tienda .button.bw-btn-cotizar:hover, .tienda a.bw-btn-cotizar:hover,
.tienda .woocommerce-product-details__short-description a.btn:hover {
  background: rgba(37,211,102,.12); border-color: var(--green); color: #7ff0b4; box-shadow: none; transform: none;
}
.bw-desde { font-size: .62em; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #8ea3c4; margin-right: 2px; }
.tienda .added_to_cart { display: block; margin: -8px 18px 18px; text-align: center; font-size: 13px; font-weight: 700; color: var(--cyan); }
.tienda .button.loading { opacity: .7; }

/* ---- Paginación ---- */
.tienda nav.woocommerce-pagination { margin-top: 44px; text-align: center; }
.tienda nav.woocommerce-pagination ul { display: inline-flex; gap: 8px; list-style: none; margin: 0; padding: 0; border: 0; }
.tienda nav.woocommerce-pagination ul li { border: 0; margin: 0; }
.tienda nav.woocommerce-pagination ul li a,
.tienda nav.woocommerce-pagination ul li span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px;
  font-weight: 700; color: #cfe0f7; background: rgba(255,255,255,.05); border: 1px solid rgba(124,199,255,.2); text-decoration: none;
}
.tienda nav.woocommerce-pagination ul li span.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---- Avisos ---- */
.tienda .woocommerce-message, .tienda .woocommerce-info, .tienda .woocommerce-error,
.pagina .woocommerce-message, .pagina .woocommerce-info, .pagina .woocommerce-error {
  list-style: none; margin: 0 0 24px; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(124,199,255,.3);
  background: rgba(55,167,255,.10); color: inherit; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.tienda .woocommerce-message::before, .tienda .woocommerce-info::before, .tienda .woocommerce-error::before { display: none; }
.tienda .woocommerce-message, .tienda .woocommerce-info { color: #dbe9fb; }
.tienda .woocommerce-error, .pagina .woocommerce-error { border-color: rgba(255,106,61,.5); background: rgba(255,106,61,.10); }
.tienda .woocommerce-message .button { order: 2; }

/* ---- Ficha de producto ---- */
.tienda--ficha { padding-top: 150px; }
.tienda div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; position: relative; }
.tienda div.product::before, .tienda div.product::after { display: none; }
.tienda div.product .woocommerce-product-gallery {
  float: none !important; width: 100% !important; margin: 0 !important; position: relative; top: 0; opacity: 1 !important;
  background: linear-gradient(180deg, #ffffff, #eef4fb); border-radius: var(--radius-lg); padding: 26px; overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.tienda div.product .woocommerce-product-gallery img { width: 100%; height: auto; display: block; border-radius: 14px; }
.tienda div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.tienda div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 72px; float: none; }
.tienda div.product .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 10px; border: 2px solid transparent; cursor: pointer; opacity: .65; }
.tienda div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { border-color: var(--blue); opacity: 1; }
.tienda div.product .woocommerce-product-gallery__trigger { position: absolute; top: 16px; right: 16px; z-index: 3; }
.tienda div.product .summary { float: none !important; width: 100% !important; margin: 0 !important; color: #dbe9fb; }
.tienda div.product .product_title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.8px; color: #fff; margin: 0 0 14px;
}
.tienda div.product p.price { font-size: 30px; font-weight: 800; color: var(--cyan); margin: 0 0 18px; }
.tienda div.product p.price .bw-precio-cotizar { font-size: 15px; }
.tienda div.product .woocommerce-product-details__short-description { font-size: 16.5px; line-height: 1.7; color: #b9c9e3; margin-bottom: 22px; }
.tienda div.product .woocommerce-product-details__short-description ul { padding-left: 20px; }
.tienda div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 14px; }
.tienda div.product form.cart .quantity .qty { width: 84px; text-align: center; }
.tienda div.product form.cart .button { min-height: 52px; padding-inline: 30px; font-size: 15px; }
.tienda div.product .stock { font-weight: 700; margin: 0 0 14px; }
.tienda div.product .stock.in-stock { color: #58e39a; }
.tienda div.product .stock.out-of-stock { color: #ff8f73; }
.tienda .bw-ficha-cotizar { margin: 0 0 14px; }
.tienda .bw-ficha-cotizar .button { min-height: 54px; padding-inline: 30px; font-size: 15.5px; }
.tienda .bw-ficha-consultar { margin: 0 0 18px; }
.tienda .bw-enlace-wa { color: #58e39a; font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(88,227,154,.5); }
.tienda div.product .product_meta { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(124,199,255,.16); font-size: 13.5px; color: #8ea3c4; display: grid; gap: 6px; }
.tienda div.product .product_meta a { color: var(--cyan-soft); text-decoration: none; }

/* Pestañas (descripción, información adicional, valoraciones) y relacionados ocupan todo el ancho */
.tienda div.product .woocommerce-tabs, .tienda div.product .related, .tienda div.product .upsells { grid-column: 1 / -1; width: 100%; float: none; clear: both; }
.tienda div.product .woocommerce-tabs { margin-top: 18px; }
.tienda div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; border: 0; }
.tienda div.product .woocommerce-tabs ul.tabs::before, .tienda div.product .woocommerce-tabs ul.tabs::after,
.tienda div.product .woocommerce-tabs ul.tabs li::before, .tienda div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.tienda div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.tienda div.product .woocommerce-tabs ul.tabs li a {
  display: inline-flex; min-height: 44px; align-items: center; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: #cfe0f7; background: rgba(255,255,255,.05); border: 1px solid rgba(124,199,255,.2); text-decoration: none;
}
.tienda div.product .woocommerce-tabs ul.tabs li.active a { background: #fff; color: var(--ink); border-color: #fff; }
.tienda div.product .woocommerce-Tabs-panel {
  background: rgba(255,255,255,.04); border: 1px solid rgba(124,199,255,.16); border-radius: var(--radius); padding: 28px 30px; color: #c7d4ec; line-height: 1.75;
}
.tienda div.product .woocommerce-Tabs-panel > h2:first-child { display: none; }
.tienda div.product .woocommerce-Tabs-panel h2, .tienda div.product .woocommerce-Tabs-panel h3 { color: #fff; font-family: var(--font-display); }
.tienda div.product .woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; }
.tienda div.product .woocommerce-Tabs-panel th, .tienda div.product .woocommerce-Tabs-panel td { text-align: left; padding: 11px 10px; border-bottom: 1px solid rgba(124,199,255,.14); }
.tienda div.product .woocommerce-Tabs-panel th { color: #fff; width: 34%; }
.tienda .related > h2, .tienda .upsells > h2 { font-family: var(--font-display); font-size: 26px; color: #fff; margin: 46px 0 22px; }

/* ---- Ayuda al final de la tienda ---- */
.tienda-ayuda { padding: 64px 0; }
.tienda-ayuda-caja {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 32px 36px; box-shadow: var(--shadow-soft);
}
.tienda-ayuda-caja h2 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 8px; color: var(--ink); }
.tienda-ayuda-caja p { margin: 0; color: var(--muted); max-width: 62ch; line-height: 1.65; }

/* ---- Carrito en la cabecera ---- */
.bw-carrito {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); text-decoration: none;
  transition: background .2s, border-color .2s;
}
.bw-carrito:hover { background: rgba(55,167,255,.2); border-color: rgba(55,167,255,.5); color: #fff; }
.bw-carrito-n {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.bw-carrito-n[hidden] { display: none; }

/* ---- Carrito, pago y cuenta (páginas sobre fondo claro) ---- */
.pagina--compra .pagina-contenido { max-width: 1120px; margin-inline: auto; }
.pagina--compra .woocommerce, .pagina--compra .wp-block-woocommerce-cart, .pagina--compra .wp-block-woocommerce-checkout { color: var(--ink); }
.pagina--compra table.shop_table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.pagina--compra table.shop_table th, .pagina--compra table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--line-light); text-align: left; }
.pagina--compra table.shop_table img { width: 64px; height: auto; border-radius: 10px; }
.pagina--compra .cart_totals, .pagina--compra #order_review, .pagina--compra .woocommerce-MyAccount-content,
.pagina--compra form.login, .pagina--compra form.register, .pagina--compra form.checkout .col2-set {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft);
}
.pagina--compra input.input-text, .pagina--compra select, .pagina--compra textarea,
.pagina--compra .wc-block-components-text-input input, .pagina--compra .wc-blocks-components-select__select {
  font: inherit; border: 1.5px solid #d6e0ee; border-radius: 12px; padding: 12px 14px; min-height: 46px; width: 100%; background: #fff; color: var(--ink);
}
.pagina--compra input.input-text:focus, .pagina--compra select:focus, .pagina--compra textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(55,167,255,.16); }
.pagina--compra .wc-block-components-button { width: 100%; min-height: 54px; font-size: 15.5px; }
.pagina--compra a { color: var(--blue-deep); }
.pagina--compra .wp-block-button__link, .pagina--compra .wc-block-grid__product-add-to-cart .wp-block-button__link {
  border-radius: 10px; font-weight: 600; color: #fff; background: var(--blue); border: 0;
}
.pagina--compra .wc-block-grid__product-title { color: var(--ink); font-family: var(--font-display); }
.pagina--compra .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagina--compra .woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 42px; align-items: center; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-light); text-decoration: none; font-weight: 700; color: var(--ink); }
.pagina--compra .woocommerce-MyAccount-navigation .is-active a { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Adaptación ---- */
@media (max-width: 1100px) { .tienda ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .tienda ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tienda div.product { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tienda div.product .woocommerce-product-gallery { position: static; padding: 18px; }
  .tienda--ficha { padding-top: 120px; }
  .tienda .woocommerce-ordering { float: none; margin: 0 0 18px; }
  .tienda .woocommerce-ordering select { width: 100%; }
  .tienda-ayuda-caja { padding: 24px; }
  .tienda-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .tienda-cats::-webkit-scrollbar { display: none; }
  .tienda-cat { flex: none; }
}
@media (max-width: 520px) {
  .tienda ul.products li.product .woocommerce-loop-product__title { font-size: 14.5px; padding: 12px 12px 0; }
  .tienda ul.products li.product .price { padding: 6px 12px 0; font-size: 16px; }
  .tienda ul.products li.product .button { margin: 12px; padding: 10px 12px; font-size: 12.5px; min-height: 42px; }
  .tienda ul.products li.product a img { padding: 10px; }
  .nav-cta .btn-wa { display: none; } /* en celular el carrito toma su lugar; WhatsApp sigue en el botón flotante y en el menú */
}

/* 4.0.6 — fotos de categoría: mosaico en la portada de la tienda y foto junto al título de cada categoría */
.tienda-mosaico { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.tienda-mosaico-item { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid rgba(255,255,255,.12); text-decoration: none !important; background: #0a1a33; }
.tienda-mosaico-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tienda-mosaico-item:hover img { transform: scale(1.04); }
.tienda-mosaico-pie { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(4,11,26,.92), rgba(4,11,26,0)); color: #fff; }
.tienda-mosaico-pie b { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.25; }
.tienda-mosaico-pie small { color: #83d7ff; font-size: 13px; font-weight: 600; }
.tienda-cat-cabecera { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; }
.tienda-cat-foto { width: 240px; height: 240px; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); }
@media (max-width: 760px) { .tienda-cat-cabecera { grid-template-columns: 1fr; } .tienda-cat-foto { width: 100%; height: auto; max-width: 340px; } }

/* 4.0.7 — descripción del producto: WooCommerce le quitaba el relleno al panel (el texto y las viñetas
   quedaban pegados al borde). Listas con viñeta de la marca, leyenda separada y enlaces como botones. */
.tienda div.product .woocommerce-tabs .woocommerce-Tabs-panel.panel { padding: 28px 32px 24px; margin: 0 0 8px; }
.tienda div.product .woocommerce-Tabs-panel > :first-child { margin-top: 0; }
.tienda div.product .woocommerce-Tabs-panel p { margin: 0 0 14px; }
.tienda div.product .woocommerce-Tabs-panel h3 { font-size: 19px; margin: 24px 0 12px; }
.tienda div.product .woocommerce-Tabs-panel ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.tienda div.product .woocommerce-Tabs-panel ul li { position: relative; padding-left: 26px; margin: 0; }
.tienda div.product .woocommerce-Tabs-panel ul li::before { content: ""; position: absolute; left: 4px; top: .66em; width: 8px; height: 8px; border-radius: 50%;
  background: #37a7ff; box-shadow: 0 0 0 4px rgba(55,167,255,.16); }
.tienda div.product .woocommerce-Tabs-panel .sht-leyenda { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(124,199,255,.14); color: #8ea3c4; }
.tienda div.product .woocommerce-Tabs-panel a:not(.btn),
.tienda div.product .woocommerce-product-details__short-description a:not(.btn) {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 22px; margin: 4px 0; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; line-height: 1.2; text-decoration: none !important; color: #fff !important;
  background: linear-gradient(135deg, #37a7ff, #1c6fd6); box-shadow: 0 8px 22px rgba(28,111,214,.28); transition: filter .2s, transform .2s;
}
.tienda div.product .woocommerce-Tabs-panel a:not(.btn):hover,
.tienda div.product .woocommerce-product-details__short-description a:not(.btn):hover { filter: brightness(1.08); transform: translateY(-1px); }
.tienda div.product .woocommerce-Tabs-panel a:not(.btn):focus-visible,
.tienda div.product .woocommerce-product-details__short-description a:not(.btn):focus-visible { outline: 2px solid #83d7ff; outline-offset: 3px; }
/* manuales: ícono de libro */
.tienda div.product .woocommerce-Tabs-panel a[href*="manual"]:not(.btn)::before,
.tienda div.product .woocommerce-Tabs-panel a[href*="moes"]:not(.btn)::before,
.tienda div.product .woocommerce-Tabs-panel a[href*="decora"]:not(.btn)::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* enlaces a WhatsApp: verde */
.tienda div.product .woocommerce-Tabs-panel a[href*="/wa/"]:not(.btn),
.tienda div.product .woocommerce-product-details__short-description a[href*="/wa/"]:not(.btn) {
  background: linear-gradient(135deg, #25d366, #12a150); box-shadow: 0 8px 22px rgba(18,161,80,.26);
}
@media (max-width: 640px) {
  .tienda div.product .woocommerce-tabs .woocommerce-Tabs-panel.panel { padding: 22px 18px 18px; }
  .tienda div.product .woocommerce-Tabs-panel a:not(.btn) { width: 100%; justify-content: center; text-align: center; }
}
/* subcategorías como botones (mismo estilo que las categorías de arriba) */
.tienda-cats--sub { margin-top: 14px; }
.tienda-cats--sub .tienda-cat small { color: #83d7ff; font-weight: 600; margin-left: 2px; }

/* ---- 4.0.9: "Comprar ahora" (principal) + "Añadir al carrito" (contorno) y pedido por WhatsApp ---- */
.tienda div.product form.cart .single_add_to_cart_button:not(.bw-comprar-ahora) { background: transparent; color: #d9edff; border-color: rgba(124,199,255,.55); }
.tienda div.product form.cart .single_add_to_cart_button:not(.bw-comprar-ahora):hover { background: rgba(55,167,255,.14); border-color: var(--blue); color: #fff; }
.tienda div.product form.cart .single_add_to_cart_button.disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 560px) { .tienda div.product form.cart .button { flex: 1 1 100%; } }
.bw-pedido-wa { margin: 0 0 28px; padding: 24px; border-radius: 14px; border: 1px solid rgba(37,211,102,.45); background: rgba(37,211,102,.08); }
.bw-pedido-wa .bw-pedido-wa-t { margin: 0 0 6px; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.bw-pedido-wa p { margin: 0 0 14px; }
.bw-pedido-wa .button.bw-pedido-wa-btn, .bw-pedido-wa a.bw-pedido-wa-btn, .woocommerce-page .pagina .bw-pedido-wa a.button.bw-pedido-wa-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 26px; border-radius: 10px; background: #25d366; border: 1px solid #25d366; color: #06301a; font-weight: 700; text-decoration: none; }
.bw-pedido-wa a.bw-pedido-wa-btn:hover, .woocommerce-page .pagina .bw-pedido-wa a.button.bw-pedido-wa-btn:hover { background: #3ee07b; border-color: #3ee07b; color: #06301a; }

/* Por pedido, máximo por producto y cantidad en las tarjetas */
.bw-por-pedido { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(245,183,0,.14); border: 1px solid rgba(245,183,0,.5); color: #ffd25a; font-size: 12px; font-weight: 700; letter-spacing: .3px; vertical-align: middle; }
.bw-nota-pedido, .bw-nota-max { margin: 4px 0 14px; color: #9fb3d1; font-size: 13.5px; }
.bw-nota-max a { color: #58e39a; font-weight: 700; }
.tienda ul.products li.product .bw-loop-compra { display: flex; gap: 8px; margin: 14px 18px 18px; align-items: stretch; }
.tienda ul.products li.product .bw-loop-compra .button { margin: 0; flex: 1; }
.tienda ul.products li.product .bw-loop-qty { width: 62px; min-height: 48px; text-align: center; border-radius: 10px; }
