/*
Theme Name: HNMarket
Template: storefront
Description: Tema de HNMarket, el mercado en línea de Honduras. Hijo de Storefront.
Version: 0.1.0
Text Domain: hnmarket
*/

:root {
	--ground: #F5F8FB;
	--surface: #FFFFFF;
	--ink: #10202E;
	--muted: #5A6B7A;
	--line: #DCE4EC;
	--blue: #0A6FC2;
	--blue-dark: #085A9E;
	--blue-soft: #E3F1FC;
	--turq: #18B4D8;
	--guara: #D9312B;
	--guara-soft: #FDE9E7;
	--gold: #F2A516;
	--shadow: 0 1px 2px rgba(16, 32, 46, .06), 0 6px 20px rgba(16, 32, 46, .07);
	--display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
	--body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
body, button, input, select, textarea { font-family: var(--body); }
body { background: var(--ground); color: var(--ink); font-size: 15px; line-height: 1.5; }
h1, h2, h3, h4, .site-title, .entry-title, .product_title { font-family: var(--display); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
a { color: var(--blue); }
a:hover, a:focus { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; }
.col-full { max-width: 1180px; padding-left: 16px; padding-right: 16px; margin-left: auto; margin-right: auto; box-sizing: border-box; }

button, input[type="button"], input[type="reset"], input[type="submit"], .button, .added_to_cart, .widget a.button {
	background: var(--blue); color: #fff; border-radius: 10px; font-weight: 700; border: 0; text-shadow: none;
}
button:hover, input[type="submit"]:hover, .button:hover, .added_to_cart:hover { background: var(--blue-dark); color: #fff; }
button.alt, input[type="button"].alt, input[type="submit"].alt, .button.alt, .wc-block-components-button.contained {
	background: var(--guara) !important; color: #fff !important;
}
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
	background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; color: var(--ink);
}

/* ---------- Encabezado ---------- */
.hnm-flag { height: 5px; background: linear-gradient(var(--blue) 0 33%, #fff 33% 66%, var(--blue) 66%); }
.hnm-note { background: var(--blue-soft); color: var(--blue); font-size: 12.5px; text-align: center; padding-block: 5px; font-weight: 600; }

.site-header { background: var(--surface) !important; border-bottom: 1px solid var(--line); padding: 0 !important; margin-bottom: 0 !important; position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header .col-full { padding-top: 0; }

.hnm-top { max-width: 1180px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-sizing: border-box; }
.hnm-logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; text-decoration: none; color: var(--ink) !important; }
.hnm-logo b { color: var(--blue); font-weight: 800; }
.hnm-logo svg { flex: none; }

.hnm-search { flex: 1 1 380px; display: flex; border: 2px solid var(--blue); border-radius: 999px; overflow: hidden; background: var(--surface); min-width: 0; margin: 0; }
.hnm-search input[type="search"] { flex: 1; border: 0; border-radius: 0; padding: 10px 16px; background: transparent; min-width: 0; box-shadow: none; }
.hnm-search input[type="search"]:focus { outline: none; background: transparent; }
.hnm-search select { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0 10px; color: var(--muted); max-width: 40%; }
.hnm-search button { border-radius: 0; padding: 0 22px; background: var(--blue); }

.hnm-acct { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.hnm-acct a { color: var(--ink); text-decoration: none; font-weight: 500; }
.hnm-cart { position: relative; display: grid; place-items: center; }
.hnm-count { position: absolute; top: -8px; right: -10px; background: var(--guara); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.hnm-sell { background: var(--guara); color: #fff !important; padding: 9px 16px; border-radius: 999px; font-weight: 700 !important; }
.hnm-sell:hover { background: #B8261F; }

.hnm-cats { max-width: 1180px; margin: 0 auto; padding: 0 16px 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; box-sizing: border-box; }
.hnm-cats a { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); font-weight: 500; text-decoration: none; }
.hnm-cats a:hover { border-color: var(--blue); color: var(--blue); }
.hnm-cats a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.site-content { padding-top: 22px; }
.home .site-content { padding-top: 0; }
.page-template-template-homepage .site-main, .page-template-template-homepage .content-area { padding-top: 0 !important; margin-top: 0 !important; }

/* ---------- Portada ---------- */
.page-template-template-homepage .hentry, .page-template-template-homepage .entry-header { display: none; }
.hnm-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-block: 22px; }
.hnm-promo { background: var(--blue); color: #fff; border-radius: 20px; padding: 28px; position: relative; overflow: hidden; }
.hnm-promo h1 { color: #fff; font-weight: 800; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 10px; max-width: 14ch; }
.hnm-promo p { margin: 0 0 18px; opacity: .9; max-width: 40ch; }
.hnm-cta { display: inline-block; background: #fff; color: var(--blue) !important; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; position: relative; z-index: 1; }
.hnm-stars { position: absolute; right: -10px; bottom: -14px; opacity: .18; }
.hnm-side { display: grid; gap: 16px; }
.hnm-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.hnm-mini h3 { margin: 0; font-size: 16px; font-family: var(--body); font-weight: 700; }
.hnm-mini p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.hnm-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hnm-ic.red { background: var(--guara-soft); color: var(--guara); }
.hnm-ic.blue { background: var(--blue-soft); color: var(--blue); }

.hnm-bar { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.hnm-bar h2 { font-weight: 800; font-size: 26px; margin: 0; }
.hnm-tabs { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.hnm-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.hnm-tabs button:hover { background: var(--blue-soft); color: var(--blue); }
.hnm-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.hnm-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.hnm-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0; }
.hnm-trust div { padding: 16px 0; border-top: 3px solid var(--turq); }
.hnm-trust h4 { margin: 0 0 4px; font-size: 15px; font-family: var(--body); font-weight: 700; }
.hnm-trust p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- Tarjetas de artículo ---------- */
ul.products, .site-main ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0 0 2em !important; padding: 0; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product, .site-main ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; text-align: left;
	background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
	display: flex; flex-direction: column; position: relative;
}
ul.products li.product[hidden] { display: none; }
ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; }
ul.products li.product img { margin: 0 0 12px !important; border-radius: 0; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; max-width: 100%; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--body); font-weight: 600; font-size: 15px !important; line-height: 1.3; color: var(--ink); padding: 0 14px !important; margin: 0 0 4px; }
.hnm-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.hnm-tag.auc { background: var(--guara); color: #fff; }
.hnm-tag.buy { background: var(--ink); color: #fff; }
.hnm-cond { font-size: 12.5px; color: var(--muted); padding: 0 14px; }
.hnm-price { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); padding: 4px 14px 2px; }
.hnm-price small { font-family: var(--body); font-weight: 500; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.hnm-price del { font-size: 14px; color: var(--muted); font-weight: 500; }
.hnm-price ins { text-decoration: none; }
.hnm-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 0 14px; flex-wrap: wrap; }
.hnm-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.hnm-time.hot { color: var(--guara); }
ul.products li.product .button, ul.products li.product .added_to_cart {
	margin: 10px 14px 0 !important; border-radius: 10px; padding: 9px; font-weight: 700; text-align: center; display: block;
	background: var(--blue-soft); color: var(--blue);
}
ul.products li.product .button:hover { background: var(--blue); color: #fff; }
ul.products li.product.hnm-is-auc .button { background: var(--guara-soft); color: var(--guara); }
ul.products li.product.hnm-is-auc .button:hover { background: var(--guara); color: #fff; }
.hnm-seller { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding: 8px 14px 12px; margin-top: 10px; }
.hnm-seller a { color: var(--muted); text-decoration: none; font-weight: 600; }
.hnm-seller a:hover { color: var(--blue); }
.hnm-st { color: var(--gold); font-weight: 700; }
.hnm-new { color: var(--turq); font-weight: 600; margin-left: auto; }
/* Etiquetas propias del plugin de subastas en la lista: ya mostramos las nuestras */
ul.products li.product .uwa_auction_product_countdown, ul.products li.product .uwa-auction-loop-badge,
ul.products li.product .onsale, ul.products li.product .star-rating, ul.products li.product .uwa_auction_bage_icon { display: none !important; }

/* ---------- Tienda, artículo, cuenta ---------- */
.woocommerce-products-header__title, .page-title { font-weight: 800; font-size: 28px; }
.storefront-sorting { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-bottom: 16px; }
.storefront-sorting .woocommerce-result-count, .storefront-sorting .woocommerce-ordering, .storefront-sorting .woocommerce-pagination { float: none; margin: 0; }
.single-product div.product { background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.single-product div.product .product_title { font-weight: 800; font-size: 30px; }
.single-product div.product p.price { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--ink); }
.woocommerce-MyAccount-navigation ul li a { color: var(--ink); }
.woocommerce-MyAccount-navigation ul li.is-active a { color: var(--blue); font-weight: 700; }
.woocommerce-info, .woocommerce-message { background: var(--blue-soft); color: var(--ink); border-left: 4px solid var(--blue); border-radius: 10px; }
.woocommerce-info a, .woocommerce-message a { color: var(--blue); }
.woocommerce-error { background: var(--guara-soft); color: var(--ink); border-left: 4px solid var(--guara); border-radius: 10px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--surface) !important; border-top: 1px solid var(--line); color: var(--muted) !important; padding: 22px 0 !important; }
.hnm-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.hnm-footer a { color: var(--muted); }

/* ---------- Celular ---------- */
@media (max-width: 820px) {
	.hnm-hero { grid-template-columns: 1fr; }
	.hnm-trust { grid-template-columns: repeat(2, 1fr); }
	.hnm-acct .hide-sm { display: none; }
}
@media (max-width: 480px) {
	.hnm-top { gap: 12px; }
	.hnm-logo { order: 1; font-size: 24px; }
	.hnm-acct { order: 2; margin-left: auto; }
	.hnm-search { order: 3; flex-basis: 100%; }
	.hnm-search select { display: none; }
	.hnm-new { display: none; }
	.hnm-price small { display: block; margin-left: 0; }
	.hnm-trust { grid-template-columns: 1fr; }
	ul.products, .site-main ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.hnm-price { font-size: 18px; }
}
@media (max-width: 767px) {
	.admin-bar .site-header { top: 0; }
	.site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Iniciar sesión con Google ---------- */
.hnm-social { margin-top: 18px; display: grid; gap: 12px; }
.hnm-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.hnm-or::before, .hnm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hnm-social .nsl-container-buttons { justify-content: stretch; }
.hnm-social .nsl-container-block .nsl-container-buttons a { flex: 1 1 auto; max-width: none !important; margin: 0 !important; }
.hnm-social .nsl-button { border-radius: 10px !important; border: 1px solid var(--line); box-shadow: none !important; justify-content: center; }
.hnm-checkout-social { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.hnm-checkout-social p { margin: 0; font-weight: 600; }
.hnm-checkout-social .hnm-social { margin-top: 8px; }
.hnm-checkout-social .hnm-or { display: none; }

/* ---------- Confirmar entrega ---------- */
.hnm-confirm { background: var(--blue-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hnm-confirm p { margin: 0; max-width: 60ch; }
.woocommerce-orders-table .button.hnm_recibido { background: var(--guara); color: #fff; }

/* ---------- Guías de envío ---------- */
.hnm-ship-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; }
.hnm-ship-box h3 { font-size: 18px; margin: 0 0 6px; }
.hnm-ship-box p { margin: 0; }
.hnm-ship-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 6px; }
.hnm-ship-line code { background: var(--blue-soft); color: var(--ink); padding: 1px 6px; border-radius: 6px; }
.hnm-ship-line .button { padding: 6px 14px; }
.hnm-ship-form select, .hnm-ship-form input[type="text"] { width: 100%; max-width: 420px; }
.hnm-help { color: var(--muted); font-size: 13.5px; }

/* ---------- Envío por vendedor ---------- */
.hnm-meta .hnm-free { color: #1F8A4C; font-weight: 600; }
.hnm-ship-note { color: var(--muted); font-weight: 600; margin: -6px 0 14px; }
.hnm-ship-settings { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px 6px; margin: 20px 0; }
.hnm-ship-settings legend { font-weight: 700; padding: 0 6px; }
.hnm-radio { display: grid; gap: 6px; }

/* ---------- Páginas de texto (legales, ayuda) ---------- */
.page .entry-content { max-width: 72ch; }
.page .entry-content h2 { font-size: 22px; margin: 1.6em 0 .5em; }
.page .entry-content h3 { font-size: 17px; font-family: var(--body); font-weight: 700; margin: 1.2em 0 .3em; }
.page .entry-content li { margin-bottom: .35em; }
.page .hentry { background: var(--surface); border-radius: 18px; padding: 28px clamp(18px, 4vw, 48px); box-shadow: var(--shadow); }
.page-template-template-homepage .hentry { background: none; box-shadow: none; padding: 0; }

/* ---------- Portada sin artículos ---------- */
.hnm-first { background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; padding: 36px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.hnm-first h3 { margin: 0; font-size: 22px; font-weight: 800; }
.hnm-first p { margin: 0 0 6px; color: var(--muted); max-width: 52ch; }
.hnm-first .hnm-sell { display: inline-block; text-decoration: none; }
.hnm-first-link { font-size: 14px; }
