/*
Theme Name: Dropin
Description: Tema para tiendas de dropshipping en Colombia con WooCommerce y Dropi. Compra rápida contraentrega desde la ficha de producto.
Author: GEMETECH IT SERVICES
Version: 1.1.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dropin
WC requires at least: 8.0
*/

/* Retail directo: fondo blanco, tinta casi negra, un acento fuerte para precio y CTA, amarillo solo para ahorro. */
:root {
  --ink: #1d1a22;
  --muted: #6b6672;
  --line: #e7e5ea;
  --soft: #f4f4f6;
  --surface: #ffffff;
  --accent: #d6204e;          /* lo sobreescribe el Personalizador */
  --accent-ink: #ffffff;
  --save: #ffd43b;
  --ok: #128a52;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --wrap: 1240px;
  --gutter: max(16px, 3vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.55 var(--f-body); min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > .content-area { flex: 1 0 auto; width: 100%; }
.site-footer { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn, .button, button.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--surface); border: 0; border-radius: var(--radius);
  padding: 14px 22px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn-accent, .woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce #place_order {
  background: var(--accent); color: var(--accent-ink);
}
.btn:hover, .button:hover { filter: brightness(1.08); }

/* ---------- Barra de anuncios ---------- */
.announce { background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; }
.announce-track { display: flex; gap: 48px; width: max-content; padding: 9px 0; animation: announce 28s linear infinite; }
.announce-track span::before { content: "•"; margin-right: 48px; color: var(--accent); }
@keyframes announce { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; margin: 0 auto; } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 120; /* sobre la lupa de zoom de WooCommerce (z-index 99) */ background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 26px/1 var(--f-display); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text b { color: var(--accent); font-weight: 800; }
@media (max-width: 960px) { .logo { font-size: 21px; gap: 8px; } .logo-mark { width: 32px; height: 32px; } }
@media (max-width: 360px) { .logo-text { font-size: 18px; } }
.logo img { max-height: 48px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--soft); }
.main-nav li { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 12px 32px rgb(0 0 0 / .08); flex-direction: column; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.header-icons { display: flex; align-items: center; gap: 4px; justify-self: end; }
/* Escritorio: logo a la izquierda, menú centrado, íconos a la derecha. */
@media (min-width: 961px) {
  .header-row { grid-template-columns: 1fr auto 1fr; }
  .logo, .custom-logo-link { justify-self: start; }
  .main-nav ul { justify-content: center; }
}
.icon-btn { display: inline-grid; place-items: center; position: relative; width: 44px; height: 44px; border-radius: 50%; background: none; border: 0; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 11px/19px var(--f-body); text-align: center; }
.menu-toggle { display: none; }
/* Buscador */
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; background: var(--surface); }
.search-panel form { position: relative; display: flex; gap: 8px; max-width: 860px; }
.live-search { position: relative; flex: 1; min-width: 0; }
.live-search > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-panel input[type=search] { width: 100%; height: 52px; padding: 0 16px 0 46px; border: 1.5px solid #cfcbd5; border-radius: 12px; font-size: 16px; background: var(--surface); }
.search-panel input[type=search]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(29 26 34 / .08); }
.search-panel input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.search-submit { height: 52px; padding: 0 22px; border-radius: 12px; }
.search-submit svg { display: none; width: 20px; height: 20px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgb(0 0 0 / .14); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; }
.sr-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--soft); }
.sr-item > a { display: contents; text-decoration: none; color: inherit; }
.sr-item img { width: 56px; height: 56px; object-fit: contain; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.sr-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.sr-price { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; margin-top: 2px; font-weight: 800; font-size: 14px; }
.sr-price del { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.sr-online { color: var(--ok); font-weight: 700; font-size: 12px; }
.sr-buy { padding: 9px 14px !important; font-size: 13px !important; border-radius: 9px !important; white-space: nowrap; }
.search-results .sr-all { display: block; text-align: center; font-weight: 700; padding: 12px; border-top: 1px solid var(--line); margin-top: 4px; text-decoration: none; }
.search-results .sr-empty { padding: 16px; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .search-submit { width: 52px; padding: 0; flex: none; }
  .search-submit span { display: none; }
  .search-submit svg { display: block; }
  .sr-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .sr-item img { width: 48px; height: 48px; }
}

@media (max-width: 960px) {
  .header-row { grid-template-columns: auto 1fr auto; gap: 8px; min-height: 60px; }
  .menu-toggle { display: inline-grid; }
  .logo { justify-self: center; font-size: 22px; }
  .main-nav { display: none; position: fixed; inset: 0 auto 0 0; width: min(86vw, 340px); background: var(--surface); padding: 20px; overflow-y: auto; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .4); z-index: 60; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 12px; }
  .header-icons .hide-sm { display: none; }
}

/* ---------- Franja de confianza ---------- */
.trust { background: var(--soft); }
.trust ul { list-style: none; margin: 0 auto; padding-top: 16px; padding-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3; }
.trust li b { display: block; font-size: 15px; }
.trust svg { flex: none; width: 30px; height: 30px; color: var(--accent); }
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Home ---------- */
.hero { position: relative; background: var(--ink); color: var(--surface); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .wrap { position: relative; padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
.hero h1 { font-size: clamp(34px, 5.5vw, 64px); font-weight: 800; max-width: 14ch; margin-bottom: 14px; }
.hero p { font-size: clamp(16px, 1.6vw, 20px); max-width: 46ch; margin: 0 0 26px; opacity: .92; }
.section { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.section-head a { font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 14px; }
.cat { position: relative; display: block; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--soft); text-decoration: none; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover img { transform: scale(1.04); }
.cat span { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--surface); border-radius: 8px; padding: 10px 12px; font: 700 16px/1.2 var(--f-display); display: flex; justify-content: space-between; }
.cat span::after { content: "→"; color: var(--accent); }
.seo-text { max-width: 75ch; color: var(--muted); }
.seo-text h2 { color: var(--ink); font-size: 24px; }

/* ---------- Tarjetas de producto ---------- */
/* Móvil primero: 2 por fila; 3 en tableta; 4 en escritorio (3 en la tienda, que tiene filtros al lado). */
.woocommerce ul.products, ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 12px; }
@media (min-width: 681px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px 18px; } }
@media (min-width: 1001px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { position: relative; display: flex; flex-direction: column; gap: 10px; width: auto !important; margin: 0 !important; float: none !important; padding: 8px 8px 10px; border-radius: 16px; transition: box-shadow .2s, transform .2s; }
ul.products li.product:hover { box-shadow: 0 12px 30px rgb(29 26 34 / .09); transform: translateY(-2px); }
ul.products li.product a.woocommerce-LoopProduct-link { text-decoration: none; display: flex; flex-direction: column; gap: 4px; flex: 1; }
ul.products li.product img { aspect-ratio: 1; width: 100%; object-fit: contain; padding: 6%; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin: 0 0 8px !important; transition: transform .3s; }
ul.products li.product:hover img { transform: scale(1.03); }
ul.products li.product .woocommerce-loop-product__title { font: 600 15px/1.3 var(--f-body); margin: 0; padding: 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; color: var(--ink); }
.card-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.woocommerce ul.products li.product .onsale { top: 16px; left: 16px; right: auto; margin: 0; }
.card-chip { position: absolute; top: 16px; right: 16px; z-index: 2; font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 6px; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.card-chip.cod { color: var(--ok); }
.card-chip.online { color: #2349a8; }
.woocommerce ul.products li.product .price { color: var(--ink); font: 800 18px/1.2 var(--f-display); margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.woocommerce ul.products li.product .price ins { color: var(--accent); text-decoration: none; font-weight: 800; }
.woocommerce ul.products li.product .price del { color: var(--muted); font: 500 13px var(--f-body); opacity: 1; order: 2; }
.card-prepay { align-self: flex-start; display: inline-flex; gap: 5px; align-items: baseline; margin-top: 4px; padding: 4px 9px; border-radius: 99px; background: #ecf8f1; color: var(--ok); font-size: 12px; font-weight: 600; }
.card-prepay b { font-weight: 800; }
.card-prepay .woocommerce-Price-amount { color: var(--ok); }
.price { font-weight: 800; font-size: 18px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price del { color: var(--muted); font-weight: 500; font-size: .82em; order: 2; }
.price ins { text-decoration: none; color: var(--accent); }
.onsale { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--save) !important; color: var(--ink) !important; font: 800 13px/1 var(--f-body) !important; padding: 7px 9px !important; border-radius: 6px !important; min-height: 0 !important; min-width: 0 !important; margin: 0 !important; }
.cod-tag { font-size: 12px; font-weight: 600; color: var(--ok); }
ul.products li.product .button { margin-top: auto; padding: 12px; font-size: 14px; border-radius: 10px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .button { margin: 0 !important; }
.woocommerce ul.products li.product .card-quick { flex: 1; min-width: 0; white-space: nowrap; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.woocommerce ul.products li.product .card-cart { flex: none; width: 46px; min-height: 44px; padding: 0 !important; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.woocommerce ul.products li.product .card-cart:hover { background: var(--ink); color: var(--surface); }
.card-cart svg { width: 20px; height: 20px; }
.card-cart.loading { opacity: .5; }
.card-cart.added { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
.card-cart.loading::after, .card-cart.added::after { display: none !important; }
ul.products li.product .added_to_cart { display: none !important; } /* el aviso flotante reemplaza el enlace de WooCommerce */
.card-soldout { width: 100%; background: var(--soft) !important; color: var(--muted) !important; cursor: default; }
.cart-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 150; transform: translate(-50%, 140%); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgb(0 0 0 / .25); transition: transform .25s; }
.cart-toast.show { transform: translate(-50%, 0); }
.cart-toast a { color: #fff; font-weight: 700; white-space: nowrap; }
.qo-loading { padding: 40px 24px; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.show-sm-inline { display: none; }
@media (max-width: 680px) {
  .hide-sm-inline { display: none; }
  .show-sm-inline { display: inline; }
  ul.products li.product { padding: 0 0 6px; gap: 8px; }
  ul.products li.product:hover { box-shadow: none; transform: none; }
  ul.products li.product img { padding: 8%; margin-bottom: 6px !important; }
  .card-chip { top: 8px; right: 8px; font-size: 9.5px; padding: 3px 6px; border-radius: 5px; }
  .woocommerce ul.products li.product .onsale { top: 8px; left: 8px; font-size: 11px !important; padding: 4px 6px !important; }
  .card-cat { font-size: 10.5px; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
  .woocommerce ul.products li.product .price { font-size: 16px; gap: 0 6px; }
  .woocommerce ul.products li.product .price del { font-size: 12px; }
  .card-prepay { font-size: 11px; padding: 3px 8px; white-space: nowrap; }
  .card-actions { gap: 6px; }
  .woocommerce ul.products li.product .card-quick { padding: 11px 6px; font-size: 14px; }
  .woocommerce ul.products li.product .card-cart { width: 42px; min-height: 42px; }
  .card-cart svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { ul.products li.product, ul.products li.product img { transition: none; } ul.products li.product:hover { transform: none; } }

/* ---------- Ficha de producto ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; position: relative; }
.single-product div.product .woocommerce-product-gallery, .single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-tabs, .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; }
.woocommerce-product-gallery img { border-radius: var(--radius); background: #fff; }
.woocommerce-product-gallery__wrapper { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 8px 0 0 !important; padding: 0; list-style: none; }
.flex-control-thumbs li { width: auto !important; }
.flex-control-thumbs img { border-radius: 6px; opacity: .6; cursor: pointer; }
.flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--ink); }
.summary .product_title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.woocommerce div.product .summary .price { color: var(--ink); font: 800 30px/1.15 var(--f-display); margin: 6px 0 14px; }
.woocommerce div.product .summary .price ins { color: var(--accent); }
.woocommerce div.product .summary .price del { color: var(--muted); font: 500 18px var(--f-body); opacity: 1; }
.save-pill { display: inline-block; background: var(--save); color: var(--ink); font-weight: 800; font-size: 13px; border-radius: 6px; padding: 4px 8px; }
.summary .woocommerce-product-details__short-description { color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; font-size: 15px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 20px; height: 20px; color: var(--ok); flex: none; }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.single-product form.cart .quantity input { width: 72px; height: 100%; min-height: 48px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.single-product form.cart .single_add_to_cart_button { flex: 1; background: var(--surface) !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; }
.variations { width: 100%; border: 0; margin-bottom: 8px; }
.variations td, .variations th { display: block; padding: 0 0 6px; text-align: left; border: 0; }
.variations select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.product_meta { font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .single-product div.product { grid-template-columns: minmax(0, 1fr); } }

/* Botón de compra rápida en la ficha */
.quick-buy { width: 100%; font-size: 18px; padding: 18px; margin: 6px 0 4px; border-radius: 12px; }
.quick-buy svg { width: 22px; height: 22px; }
.quick-buy-note { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 16px; }

/* Ventana de pedido (dialog): centrada en escritorio, hoja a pantalla completa en móvil */
.order-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .3); overflow: auto; overscroll-behavior: contain; }
.order-dialog::backdrop { background: rgb(17 15 22 / .55); }
.order-dialog .quick-order { border: 0; margin: 0; border-radius: 0; padding: 20px; }
body.dialog-open { overflow: hidden; }
@media (max-width: 640px) {
  .order-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; inset: 0; }
  .order-dialog .quick-order { padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .order-dialog[open] { animation: dialog-in .2s ease-out; }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } }
}
.qo-head { position: sticky; top: -20px; z-index: 2; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: -20px -20px 14px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.qo-thumb { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.qo-title { font: 700 16px/1.25 var(--f-display); margin: 0 0 2px; }
.qo-head .lead { margin: 0; font-size: 12.5px; }
@media (max-width: 640px) { .qo-head { top: -16px; margin: -16px -16px 14px; padding: 12px 16px; } }
.qo-variant { margin-bottom: 14px; }
.qo-qty input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* Formulario de pedido rápido */
.quick-order { border: 2px solid var(--ink); border-radius: 14px; padding: 18px; margin: 18px 0; background: var(--surface); scroll-margin-top: 90px; }
.quick-order h3 { font-size: 20px; margin: 0 0 2px; }
.quick-order .lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.qo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qo-grid .full { grid-column: 1 / -1; }
.qo-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.qo-field input, .qo-field select, .qo-field textarea { width: 100%; padding: 12px 13px; border: 1px solid #cfcbd5; border-radius: 8px; background: var(--surface); font-size: 16px; font-weight: 400; }
.qo-field textarea { min-height: 64px; resize: vertical; }
.qo-qty { display: flex; gap: 8px; }
.qo-qty label { position: relative; flex: 1; min-width: 0; cursor: pointer; }
.qo-qty input, .qo-pay-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qo-qty > label > span { display: block; text-align: center; border: 1px solid #cfcbd5; border-radius: 8px; padding: 10px 6px; font-weight: 700; }
.qo-qty input:checked + span { border: 2px solid var(--accent); color: var(--accent); padding: 9px 5px; }
.qo-qty em { display: block; font-style: normal; font-size: 11px; font-weight: 800; color: var(--ok); }
.qo-qty input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qo-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 10px; font-size: 15px; }
.qo-total b { font: 800 24px var(--f-display); }
.quick-order .btn-accent { width: 100%; font-size: 17px; padding: 17px; }
.qo-note { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.qo-legal { font-size: 11.5px; color: var(--muted); text-align: center; margin: 4px 0 0; }
.qo-legal a { color: inherit; }
.qo-error { background: #fde7ec; color: #a3102f; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.qo-hp { position: absolute; left: -9999px; }
.qo-pay { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.qo-pay legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.qo-pay-opt { position: relative; display: block; cursor: pointer; }
.qo-pay-opt > span { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "dot head price" "dot note note"; gap: 2px 10px; align-items: center; border: 1px solid #cfcbd5; border-radius: 10px; padding: 12px 14px; }
.qo-pay-opt > span::before { content: ""; grid-area: dot; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b9b4c0; align-self: start; margin-top: 2px; }
.qo-pay-opt input:checked + span { border: 2px solid var(--ink); padding: 11px 13px; background: var(--soft); }
.qo-pay-opt input:checked + span::before { border: 6px solid var(--ink); }
.qo-pay-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qo-pay-head { grid-area: head; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qo-pay-head b { font-size: 15px; }
.qo-pay-head em { font-style: normal; font-size: 12px; font-weight: 800; background: var(--save); color: var(--ink); border-radius: 5px; padding: 2px 7px; }
.qo-pay-price { grid-area: price; font: 800 17px var(--f-display); }
.qo-pay-opt small { grid-area: note; color: var(--muted); font-size: 12.5px; }
.qo-only-online { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 13.5px; }
.qo-only-online svg { flex: none; width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }
.online-tag { font-size: 12px; font-weight: 700; color: #2349a8; }
.cod-mixed { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #fff3cd; color: #5c4100; font-size: 14px; line-height: 1.45; }
.cod-mixed .btn { margin-top: 10px; padding: 10px 16px; font-size: 14px; }
#payment .cod-mixed { margin: 12px 0; }
.qo-saving { margin: -4px 0 10px; font-size: 13px; font-weight: 700; color: var(--ok); text-align: right; }
.qo-note svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }

/* Precio pagando en línea */
.prepay-tag { font-size: 12.5px; color: var(--muted); }
.prepay-tag b { color: var(--ok); font-weight: 800; }
.prepay-line { display: block; margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.prepay-line b { color: var(--ok); font-size: 18px; font-weight: 800; }

/* Compra protegida */
.trust-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 18px; background: linear-gradient(180deg, #f2faf6, var(--surface) 60%); }
.trust-box-title { display: flex; align-items: center; gap: 8px; font: 700 16px var(--f-display); margin: 0 0 8px; }
.trust-box-title svg { width: 22px; height: 22px; color: var(--ok); }
.trust-box ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.trust-legal { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pay-chips span { font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 4px 8px; }
.pay-chips-dark { margin-top: 14px; }
.pay-chips-dark span { background: transparent; border-color: rgb(255 255 255 / .2); color: #d9d6de; }
.star-rating { color: #f5a623; }
@media (max-width: 480px) { .qo-grid { grid-template-columns: 1fr; } }

/* Constructor de direcciones */
.addr { display: grid; gap: 10px; }
.addr-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.addr-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, .8fr); gap: 6px; align-items: center; }
.addr select, .addr input:not([type=checkbox]) { width: 100%; min-width: 0; padding: 12px 10px; border: 1px solid #cfcbd5; border-radius: 8px; background: var(--surface); font-size: 16px; }
.addr-sep { font-weight: 800; color: var(--muted); }
.addr-comp { margin-top: 6px; }
.addr-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.addr-rural-toggle { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.addr-rural-toggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.addr-preview { margin: 0; padding: 10px 12px; border-radius: 8px; background: #ecf8f1; color: var(--ok); font-size: 13.5px; font-weight: 600; }
.addr-hidden { display: none !important; }
.woocommerce-billing-fields + .addr, .woocommerce-billing-fields__field-wrapper ~ .addr { margin-top: 4px; }
@media (max-width: 480px) {
  /* Vía en su propia fila; número # cruce - placa en una sola, con los símbolos visibles */
  .addr-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, .8fr); }
  .addr-row select { grid-column: 1 / -1; }
  .addr-row2 { grid-template-columns: 1fr; }
}

/* Barra fija en móvil */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 12px; background: var(--surface); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); }
.buy-bar .price { font-size: 18px; flex: 1; }
.buy-bar .btn { flex: 1.3; }
@media (max-width: 860px) { .buy-bar.show { display: flex; } body.single-product { padding-bottom: 76px; } }

/* ---------- WooCommerce general ---------- */
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; }
.woocommerce-breadcrumb a { text-decoration: none; }
.page-title, .woocommerce-products-header__title { font-size: clamp(28px, 4vw, 42px); }
.woocommerce-result-count { color: var(--muted); font-size: 14px; }
.woocommerce-ordering select { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.shop-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.shop-tools > * { margin: 0 !important; float: none !important; }
.woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; justify-content: center; border: 0 !important; }
.woocommerce-pagination li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.woocommerce-pagination .current { background: var(--ink); color: var(--surface); }
/* Avisos de WooCommerce: ícono propio, texto y botón alineados */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper .wc-block-components-notice-banner {
  --tone: var(--ok); --tone-bg: #ecf8f1;
  position: relative; list-style: none; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  margin: 0 0 20px !important; padding: 14px 16px 14px 52px !important;
  background: var(--tone-bg) !important; color: var(--ink) !important;
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent) !important; border-radius: 12px;
  font-size: 15px; font-weight: 500; line-height: 1.4;
}
.woocommerce-info { --tone: #2f5bd3; --tone-bg: #eef2fd; }
.woocommerce-error { --tone: #b3261e; --tone-bg: #fdeeee; display: block; }
.woocommerce-error li { list-style: none; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  content: "" !important; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--tone); color: #fff; font: 0/0 a !important;
  -webkit-mask: none; box-shadow: inset 0 0 0 7px var(--tone);
}
.woocommerce-message::after { content: ""; position: absolute; left: 24px; top: 50%; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(0, -62%) rotate(45deg); }
.woocommerce-error::before { top: 22px; }
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus { outline: none; }
.woocommerce-cart .woocommerce-message .button { display: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; float: none !important; padding: 10px 16px; font-size: 14px; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { color: inherit; font-weight: 700; }
@media (max-width: 560px) { .woocommerce-message .button, .woocommerce-info .button { margin-left: 0; width: 100%; } }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single { padding: 12px; border: 1px solid #cfcbd5; border-radius: 8px; min-height: 48px; }
.woocommerce table.shop_table { border-radius: var(--radius); border-collapse: separate; }
.content-area { padding-top: 8px; padding-bottom: 56px; min-height: 50vh; }

/* ---------- Campos y contraseña (formularios de WooCommerce) ---------- */
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.woocommerce form .form-row .input-text { width: 100%; font-size: 16px; background: var(--surface); }
.woocommerce form .form-row .input-text:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgb(29 26 34 / .1); }
.password-input { position: relative; display: block; }
.password-input .input-text { padding-right: 48px !important; }
.show-password-input { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; padding: 0; color: var(--muted); }
.show-password-input::before { content: ""; display: block; width: 22px; height: 22px; margin: auto; 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='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%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='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
.show-password-input.display-password { color: var(--ink); }
.show-password-input::after { display: none !important; }
.show-password-input:hover { background: var(--soft); }

/* ---------- Acceso y registro ---------- */
.auth { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 980px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.auth-side { background: var(--ink); color: #e9e6ee; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.auth-side h1 { color: var(--surface); font-size: clamp(30px, 3.4vw, 40px); margin: 0; }
.auth-side p { margin: 0; }
.auth-side ul { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 16px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.auth-side li b { display: block; color: var(--surface); font-size: 15px; }
.auth-side li svg { flex: none; width: 26px; height: 26px; color: var(--accent); }
.auth-note { margin-top: auto !important; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .14); font-size: 14px; }
.auth-note a { display: inline-block; margin-top: 6px; color: var(--surface); font-weight: 700; text-decoration: none; }
.auth-main { padding: clamp(24px, 4vw, 44px); }
.auth-main h2 { font-size: 24px; margin: 0 0 18px; }
.auth form.login, .auth form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { border: 0; background: transparent; border-radius: 8px; padding: 11px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--muted); }
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.js .auth-tabs ~ section h2 { display: none; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 20px; font-size: 14px; }
.auth-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); }
.auth-link { color: var(--ink); font-weight: 600; }
.auth-submit { width: 100%; padding: 16px !important; font-size: 16px !important; }
.auth-hint { font-size: 14px; color: var(--muted); }
.auth .woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); }
.woocommerce-account .woocommerce-error, .woocommerce-account .woocommerce-message { max-width: 980px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-main { order: -1; }
  .auth-side ul { display: none; }
  .auth-side h1 { font-size: 24px; }
  .auth-note { margin-top: 0 !important; padding-top: 0; border: 0; }
}

/* ---------- Mi cuenta (con sesión) ---------- */
.woocommerce-account.logged-in .content-area > article > .woocommerce,
.woocommerce-account.logged-in .content-area .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: 24px; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-MyAccount-navigation { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.acct-user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.acct-user b { display: block; font-size: 15px; line-height: 1.2; }
.acct-user small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.acct-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font: 800 18px var(--f-display); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 15px; }
.woocommerce-MyAccount-navigation a svg { width: 20px; height: 20px; color: var(--muted); }
.woocommerce-MyAccount-navigation a:hover { background: var(--soft); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--surface); }
.woocommerce-MyAccount-navigation .is-active a svg { color: var(--surface); }
.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--muted); }
.acct-title, .acct-hello h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 18px; }
.acct-hello p { color: var(--muted); margin: -10px 0 22px; }
.acct-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 34px; }
.acct-tile { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s; }
.acct-tile:hover { border-color: var(--ink); }
.acct-tile svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 6px; }
.acct-tile b { font-size: 16px; }
.acct-tile span { font-size: 13px; color: var(--muted); }
.acct-recent .section-head h2 { font-size: 22px; }
.acct-orders { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.acct-orders li + li { border-top: 1px solid var(--line); }
.acct-orders a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 16px; text-decoration: none; }
.acct-orders a:hover { background: var(--soft); }
.acct-order-main small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-empty { padding: 22px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.acct-empty a { color: var(--accent); font-weight: 700; text-decoration: none; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--soft); white-space: nowrap; }
.status-processing, .status-on-hold { background: #fff3cd; color: #7a5300; }
.status-completed { background: #ddf3e8; color: var(--ok); }
.status-cancelled, .status-failed, .status-refunded { background: #fde7ec; color: #a3102f; }
.woocommerce-MyAccount-content .woocommerce-orders-table { width: 100%; border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce-MyAccount-content .woocommerce-orders-table th { background: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 12px 14px; }
.woocommerce-MyAccount-content .woocommerce-orders-table td { padding: 14px; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-content .woocommerce-orders-table .button { padding: 8px 14px; font-size: 13px; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.woocommerce-Address { border: 1px solid var(--line); border-radius: 12px; padding: 18px; width: auto !important; float: none !important; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.woocommerce-Address-title h2 { font-size: 18px; margin: 0 0 8px; }
.woocommerce-Address-title a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.woocommerce-Address address { font-style: normal; color: var(--muted); line-height: 1.6; }
.woocommerce-EditAccountForm fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 10px 0 18px; }
.woocommerce-EditAccountForm legend { font-weight: 700; padding: 0 6px; }
.woocommerce-MyAccount-content .form-row-first, .woocommerce-MyAccount-content .form-row-last { width: calc(50% - 7px); float: left; }
.woocommerce-MyAccount-content .form-row-last { float: right; }
.woocommerce-MyAccount-content .clear { clear: both; }
@media (max-width: 860px) {
  .woocommerce-account.logged-in .content-area .woocommerce { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-MyAccount-navigation { position: static; }
  .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 6px; }
  .woocommerce-MyAccount-navigation a { white-space: nowrap; }
  .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
  .acct-orders a { grid-template-columns: minmax(0, 1fr) auto; }
  .acct-order-total { display: none; }
  .woocommerce-MyAccount-content .form-row-first, .woocommerce-MyAccount-content .form-row-last { width: 100%; float: none; }
}

/* ---------- Tienda y categorías (móvil primero) ---------- */
.woocommerce-products-header { margin: 0 0 12px; }
.woocommerce-products-header__title { margin: 0; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { flex: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cat-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.shop-layout { display: block; }
.shop-main { min-width: 0; }
.shop-toolbar { position: sticky; top: 60px; z-index: 20; display: flex; align-items: center; gap: 10px; background: var(--surface); padding: 10px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.shop-toolbar .woocommerce-result-count { display: none; margin: 0 auto 0 0 !important; font-size: 13px; float: none !important; }
.shop-toolbar .woocommerce-ordering { margin: 0 0 0 auto !important; float: none !important; min-width: 0; flex: 0 1 auto; }
.shop-toolbar .woocommerce-ordering select { width: 100%; max-width: 100%; padding: 9px 30px 9px 10px; font-size: 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-overflow: ellipsis; }
.btn-filter { flex: none; }
@media (min-width: 681px) { .shop-toolbar .woocommerce-result-count { display: block; } .shop-toolbar .woocommerce-ordering { margin-left: 0 !important; } }
.btn-filter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--ink); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; }
.btn-filter svg { width: 18px; height: 18px; }
.btn-filter span { min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; display: grid; place-items: center; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 99px; background: var(--soft); text-decoration: none; font-size: 13px; font-weight: 600; }
.active-filters .clear { background: none; color: var(--accent); }
.shop-main.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 28px 0 8px; }
.load-more .btn { min-width: 220px; }
.load-more small { color: var(--muted); font-size: 13px; }
.js .shop-main .woocommerce-pagination { display: none; } /* queda en el HTML para buscadores */
.shop-empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--line); border-radius: 14px; }

/* Panel de filtros: cajón desde la izquierda en móvil */
.shop-filters { position: fixed; inset: 0 auto 0 0; z-index: 140; width: min(88vw, 360px); background: var(--surface); overflow-y: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-100%); transition: transform .25s ease; visibility: hidden; }
.shop-filters.open { transform: none; visibility: visible; box-shadow: 0 0 40px rgb(0 0 0 / .2); }
.filters-backdrop { position: fixed; inset: 0; z-index: 139; background: rgb(17 15 22 / .45); }
body.filters-open { overflow: hidden; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.filters-title { font: 800 22px var(--f-display); margin: 0; }
.filter-group { border-top: 1px solid var(--line); padding: 16px 0; }
.filter-group h2 { font: 700 14px var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.filter-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary h2 { margin: 0; }
.filter-group summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.filter-group details[open] > summary { margin-bottom: 10px; }
.filter-group details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.filter-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-cats a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.filter-cats a span { color: var(--muted); font-weight: 500; font-size: 13px; }
.filter-cats a:hover { background: var(--soft); }
.filter-cats a[aria-current] { background: var(--ink); color: var(--surface); }
.filter-cats a[aria-current] span { color: var(--surface); }
.filter-cats .child a { padding-left: 24px; font-weight: 500; }
.price-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.price-chips a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.price-chips a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-inputs label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.price-inputs input { width: 100%; padding: 11px 12px; border: 1px solid #cfcbd5; border-radius: 8px; font-size: 16px; }
.filter-check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.filter-check input { width: 20px; height: 20px; accent-color: var(--ink); }
.filter-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; background: var(--surface); padding: 14px 0 0; border-top: 1px solid var(--line); }
.btn-ghost { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }

/* Tarjetas más compactas en móvil */
@media (max-width: 680px) {
  ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
  ul.products li.product .price { font-size: 16px; }
  ul.products li.product .button { padding: 11px 8px; font-size: 13.5px; }
  .onsale { top: 6px; left: 6px; font-size: 12px !important; padding: 5px 7px !important; }
}

/* Escritorio: filtros fijos a la izquierda */
@media (min-width: 1000px) {
  .shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
  .shop-filters { position: static; inset: auto; z-index: 1; width: auto; transform: none; visibility: visible; padding: 0; overflow: visible; box-shadow: none !important; }
  .shop-filters.is-sticky { position: sticky; top: 96px; } /* solo cuando cabe en la pantalla (app.js) */
  .filters-head .icon-btn, .btn-filter, .filters-backdrop { display: none !important; }
  .filters-title { font-size: 18px; }
  .filter-actions { position: static; border: 0; padding: 0; }
  .shop-toolbar { top: 72px; }
  .woocommerce .shop-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .cat-chips { display: none; } /* en escritorio las categorías están en el panel lateral */
}
@media (min-width: 961px) and (max-width: 999px) { .shop-toolbar { top: 72px; } }
@media (prefers-reduced-motion: reduce) { .shop-filters { transition: none; } }

/* ---------- Seguimiento del pedido ---------- */
.tracking { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 0 0 24px; }
.tracking-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tracking-head h2 { font-size: 20px; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.timeline li { position: relative; text-align: center; padding-top: 38px; font-size: 13.5px; line-height: 1.3; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.done::before, .timeline li.current::before { box-shadow: inset 0 0 0 6px var(--surface); }
.timeline li.done::before { box-shadow: none; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.timeline li.current::before { border-color: var(--ink); background: var(--ink); }
.timeline li.done::after, .timeline li.current::after { background: var(--ok); }
.timeline b { display: block; }
.timeline .todo b { color: var(--muted); font-weight: 600; }
.timeline small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tracking-guide { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 20px; padding: 14px 16px; background: var(--soft); border-radius: 10px; font-size: 14px; }
.tracking-guide .btn { margin-left: auto; padding: 10px 16px; font-size: 14px; }
.tracking-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.tracking-alert { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff3cd; color: #5c4100; font-size: 14px; }
.status-despachado { background: #e6eefc; color: #2349a8; }
.status-novedad { background: #fff3cd; color: #7a5300; }
.track-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: end; max-width: 760px; margin: 0 0 24px; }
@media (max-width: 640px) {
  .track-form { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { text-align: left; padding: 2px 0 0 40px; min-height: 28px; }
  .timeline li::before { left: 0; transform: none; }
  .timeline li::after { left: 13px; top: -16px; width: 2px; height: 16px; }
  .tracking-guide .btn { margin-left: 0; width: 100%; }
}

/* ---------- Comprobante de pago ---------- */
.proof { margin: 0 0 24px; }
.proof h2 { font-size: 20px; margin: 0 0 4px; }
.proof .muted { color: var(--muted); margin: 0 0 14px; }
.proof-form { display: grid; gap: 12px; max-width: 520px; }
.proof-drop { position: relative; display: block; border: 2px dashed #cfcbd5; border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; }
.proof-drop:hover, .proof-drop:focus-within { border-color: var(--ink); background: var(--soft); }
.proof-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.proof-drop b { display: block; font-size: 16px; }
.proof-drop span { color: var(--muted); font-size: 14px; }
.proof-ok { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #ecf8f1; }
.proof-ok svg { flex: none; width: 22px; height: 22px; color: var(--ok); }
.woocommerce-bacs-bank-details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; }
.woocommerce-bacs-bank-details .wc-bacs-bank-details { list-style: none; padding: 0; display: grid; gap: 4px; }

/* ---------- No encontrado (404 y búsqueda sin resultados) ---------- */
.not-found { display: grid; gap: 40px; padding-top: clamp(16px, 4vw, 40px); }
.nf-hero { max-width: 640px; margin: 0 auto; text-align: center; }
.nf-code { font: 800 clamp(84px, 18vw, 150px)/.9 var(--f-display); letter-spacing: -.04em; margin: 0 0 8px; color: var(--soft); -webkit-text-stroke: 2px var(--ink); }
.nf-hero h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; }
.nf-text { color: var(--muted); margin: 0 auto 24px; max-width: 52ch; }
.nf-search { display: flex; gap: 8px; margin: 0 0 18px; }
.nf-search input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid #cfcbd5; border-radius: 10px; font-size: 16px; }
.nf-search input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgb(29 26 34 / .1); }
.nf-search .btn svg { width: 18px; height: 18px; }
.nf-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nf-cats a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 14px; }
.nf-cats a:hover { border-color: var(--ink); }
.nf-cats a:last-child { border-color: transparent; color: var(--accent); }
.nf-help { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.nf-help a { color: var(--ink); font-weight: 700; }
@media (max-width: 480px) { .nf-search { flex-direction: column; } }

/* ---------- Pasos de compra ---------- */
.steps { list-style: none; padding: 0; margin: 8px 0 28px; display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: clamp(16px, 5vw, 48px); height: 2px; background: var(--line); margin-right: 4px; }
.steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-size: 13px; }
.steps .current { color: var(--ink); }
.steps .current span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.steps .done span { background: var(--ok); border-color: var(--ok); color: var(--surface); font-size: 0; }
.steps .done span::after { content: "✓"; font-size: 14px; }
.steps .done + li::before, .steps .current::before { background: var(--ok); }
@media (max-width: 560px) {
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; font-size: 12px; margin-bottom: 20px; }
  .steps li { flex-direction: column; gap: 4px; position: relative; text-align: center; }
  .steps li + li::before { position: absolute; top: 12px; right: 50%; width: calc(100% - 30px); margin: 0 16px 0 0; }
}

/* ---------- Carrito ---------- */
.woocommerce-cart .content-area .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 40px; align-items: start; }
.woocommerce-cart .content-area .woocommerce > :not(.woocommerce-cart-form):not(.cart-collaterals) { grid-column: 1 / -1; }
.woocommerce-cart-form .shop_table, .woocommerce-cart-form .shop_table tbody, .woocommerce-cart-form .shop_table tr { display: block; width: 100%; }
.woocommerce .woocommerce-cart-form table.shop_table { border: 0 !important; border-radius: 0; margin: 0; }
.woocommerce-cart-form .shop_table thead { display: none; }
.woocommerce-cart-form .shop_table tr.cart_item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "img name remove" "img price price" "img qty subtotal"; gap: 6px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.woocommerce-cart-form .cart_item:first-child { padding-top: 4px; }
.woocommerce-cart-form .cart_item td { padding: 0 !important; border: 0 !important; display: block; text-align: left !important; }
.woocommerce-cart-form .cart_item td::before { display: none !important; }
.woocommerce-cart-form .product-thumbnail { grid-area: img; }
.woocommerce-cart-form .product-thumbnail img { width: 96px !important; height: 96px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.woocommerce-cart-form .product-name { grid-area: name; font-weight: 700; font-size: 16px; }
.woocommerce-cart-form .product-name a { text-decoration: none; }
.woocommerce-cart-form .product-price { grid-area: price; color: var(--muted); font-size: 14px; }
.woocommerce-cart-form .product-price del { margin-right: 4px; }
.qty-deal { display: block; color: var(--ok); font-weight: 700; font-size: 12px; }
.woocommerce-cart-form .product-quantity { grid-area: qty; }
.woocommerce-cart-form .product-quantity input { width: 72px; min-height: 40px; text-align: center; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce-cart-form .product-subtotal { grid-area: subtotal; font: 800 18px var(--f-display); text-align: right !important; align-self: center; white-space: nowrap; }
.woocommerce-cart-form .product-quantity .quantity { display: inline-block; }
.woocommerce-cart-form .product-remove { grid-area: remove; justify-self: end; }
.woocommerce-cart-form a.remove { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted) !important; font-size: 22px; text-decoration: none; }
.woocommerce-cart-form a.remove:hover { background: #fde7ec; color: #a3102f !important; }
.woocommerce-cart-form tr:last-child { border: 0; }
.woocommerce-cart-form .actions { display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 18px 0 !important; border: 0 !important; }
.woocommerce-cart-form .coupon { display: flex; gap: 8px; flex: 1 1 100%; min-width: 0; max-width: 420px; float: none !important; }
.woocommerce-cart-form .coupon .button { flex: none; padding-left: 12px; padding-right: 12px; }
.woocommerce-cart-form .coupon label { display: none; }
.woocommerce-cart-form .coupon .input-text { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px !important; border: 1px solid #cfcbd5; border-radius: 8px; width: auto !important; margin: 0 !important; font-size: 15px; }
.woocommerce-cart-form .actions .button { padding: 12px 16px; font-size: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--ink); white-space: nowrap; }
.woocommerce-cart-form .actions .button[disabled] { opacity: .5; }
.js .woocommerce-cart-form button[name="update_cart"] { display: none; } /* la cantidad se actualiza sola */
.cart-collaterals { position: sticky; top: 96px; }
.cart_totals { width: auto !important; float: none !important; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.cart_totals h2 { font-size: 20px; margin: 0 0 12px; }
.cart_totals table { width: 100%; border: 0 !important; border-collapse: collapse; }
.cart_totals th, .cart_totals td { padding: 10px 0 !important; border: 0 !important; border-top: 1px solid var(--line) !important; text-align: left; font-weight: 500; vertical-align: top; }
.cart_totals td { text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total td { font: 800 20px var(--f-display); }
.cart_totals .woocommerce-shipping-totals td, .cart_totals .woocommerce-shipping-totals th { font-size: 14px; }
.cart_totals .fee td { color: var(--ok); font-weight: 700; }
.prepay-hint td { text-align: left !important; font-size: 13.5px; color: var(--ok); background: #ecf8f1; border-radius: 8px; padding: 10px 12px !important; border: 0 !important; }
.prepay-hint svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.wc-proceed-to-checkout { padding: 8px 0 0 !important; }
.wc-proceed-to-checkout .checkout-button { display: flex !important; width: 100%; background: var(--accent) !important; color: var(--accent-ink) !important; font-size: 17px !important; padding: 17px !important; margin: 0 !important; border-radius: 10px; }
.trust-mini { margin-top: 16px; display: grid; gap: 10px; font-size: 13.5px; }
.trust-mini p { display: flex; gap: 10px; align-items: flex-start; margin: 0; line-height: 1.4; }
.trust-mini svg { flex: none; width: 22px; height: 22px; color: var(--ok); }
.trust-mini b { display: block; }
.trust-mini .pay-chips { display: flex; margin-top: 4px; }
.cross-sells { margin-top: 48px; }
.cross-sells > h2 { font-size: 24px; }
.cart-empty { font-size: 18px; text-align: center; padding: 40px 0 10px; display: block !important; }
.cart-empty::before { display: none !important; }
.return-to-shop { text-align: center; }
@media (max-width: 900px) {
  .woocommerce-cart .content-area .woocommerce { grid-template-columns: minmax(0, 1fr); }
  .cart-collaterals { position: static; margin-top: 8px; }
  .woocommerce-cart-form .shop_table tr.cart_item { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .woocommerce-cart-form .product-thumbnail img { width: 72px !important; height: 72px; }
}

/* ---------- Checkout ---------- */
form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "datos titulo" "datos resumen"; gap: 0 40px; align-items: start; }
form.checkout #customer_details { grid-area: datos; }
form.checkout #order_review_heading { grid-area: titulo; font-size: 20px; margin: 0 0 12px; }
form.checkout #order_review { grid-area: resumen; border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: sticky; top: 96px; }
#customer_details .col-1, #customer_details .col-2 { width: auto !important; float: none !important; }
#customer_details h3 { font-size: 20px; margin: 0 0 14px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-shipping-fields__field-wrapper .form-row { width: auto !important; float: none !important; grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: auto; }
.woocommerce form .form-row .required { color: var(--accent); text-decoration: none; }
.woocommerce-checkout-review-order-table { width: 100%; border: 0 !important; border-collapse: collapse; font-size: 14.5px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 9px 0 !important; border: 0 !important; border-top: 1px solid var(--line) !important; text-align: left; }
.woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font: 800 20px var(--f-display); }
.woocommerce-checkout-review-order-table .fee td { color: var(--ok); font-weight: 700; }
#payment { background: none !important; border-radius: 0; margin-top: 14px; }
#payment ul.payment_methods { list-style: none; padding: 0 !important; margin: 0 0 14px; border: 0 !important; display: grid; gap: 8px; }
#payment ul.payment_methods li { border: 1px solid #cfcbd5; border-radius: 10px; padding: 12px 14px; }
#payment ul.payment_methods li:has(input:checked) { border: 2px solid var(--ink); padding: 11px 13px; background: var(--soft); }
#payment ul.payment_methods li label { font-weight: 700; cursor: pointer; }
#payment ul.payment_methods li input { accent-color: var(--ink); margin-right: 6px; }
#payment div.payment_box { background: transparent !important; padding: 6px 0 0 24px !important; margin: 0 !important; font-size: 13.5px; color: var(--muted); }
#payment div.payment_box::before { display: none !important; }
#payment .place-order { padding: 0 !important; }
#place_order { width: 100%; font-size: 17px !important; padding: 17px !important; border-radius: 10px; float: none !important; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); }

/* Pagar un pedido (después de "Paga ahora"): medios de pago a la izquierda, resumen fijo a la derecha. */
.pay-head h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 6px; }
.pay-head p { color: var(--muted); margin: 0 0 24px; }
.pay-title { font-size: 19px; margin: 0; }
#order_review:not(.woocommerce-checkout-review-order) { display: grid; gap: 16px; margin-bottom: 48px; }
#order_review > .shop_table { width: 100%; margin: 0; border: 1px solid var(--line); background: var(--soft); border-radius: 14px; overflow: hidden; }
#order_review > .shop_table thead, #order_review > .shop_table .product-quantity { display: none; }
/* Filas flexibles en vez de tabla: con la columna de cantidad oculta, la tabla no se ajustaba al ancho. */
#order_review > .shop_table, #order_review > .shop_table tbody, #order_review > .shop_table tfoot { display: block; }
#order_review > .shop_table tr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
#order_review > .shop_table tbody tr:first-child { border-top: 0; }
#order_review > .shop_table th, #order_review > .shop_table td { display: block; padding: 0; border: 0; background: none; font-weight: 600; }
#order_review > .shop_table .product-name { min-width: 0; }
#order_review > .shop_table tfoot th { color: var(--muted); }
#order_review > .shop_table tfoot td, #order_review > .shop_table .product-subtotal { text-align: right; white-space: nowrap; }
.pay-item { display: flex; gap: 12px; align-items: center; }
.pay-item small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.pay-thumb { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.pay-save { color: var(--ok); }
.pay-total { font: 800 22px var(--f-display); color: var(--ink); }
#order_review > #payment { margin: 0; }
#order_review > #payment .form-row { padding: 0; margin: 0; }
#payment .payment_methods li img { max-height: 24px; width: auto; vertical-align: middle; margin-left: 8px; }
#payment .payment_box img { display: block; max-height: 36px; max-width: 160px; width: auto; height: auto; margin: 8px 0; }
#payment .payment_box p:last-child { margin-bottom: 0; }
.pay-trust { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--soft); font-size: 13.5px; }
.pay-trust svg { width: 20px; height: 20px; flex: none; color: var(--ok); }
.pay-legal { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }
@media (min-width: 900px) {
  #order_review:not(.woocommerce-checkout-review-order) { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; align-items: start; }
  #order_review > * { grid-column: 1; }
  #order_review > .shop_table { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 96px; }
}
@media (max-width: 900px) {
  form.checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "datos" "titulo" "resumen"; }
  form.checkout #order_review { position: static; }
  .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #d9d6de; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.site-footer h4 { color: var(--surface); font: 700 15px var(--f-display); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--surface); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-top: 18px; padding-bottom: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #a9a4b0; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 860px) { body.single-product .wa-float { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
