/*
 * Camisetas Básicas — resto del sitio (tienda, carrito, pago, cuenta, pie y portada).
 * Mismo lenguaje que la ficha de producto: arena, tinta azul, un solo coral para la acción,
 * titulares condensados. Todo en px (Shopire fija html{font-size:62.5%}).
 * Las variables (--cb-*) viven en brand.css.
 */

/* ── Base acotada ───────────────────────────────────────────────────────────────────── */
.cb { font: 400 16px/1.55 var(--cb-font); color: var(--cb-ink); -webkit-font-smoothing: antialiased; }
.cb *, .cb *::before, .cb *::after { box-sizing: border-box; }
.cb [hidden] { display: none !important; }
.cb a { color: inherit; text-decoration: none; }
.cb p, .cb ul, .cb ol, .cb h1, .cb h2, .cb h3 { margin: 0; padding: 0; }
.cb ul, .cb ol { list-style: none; }
.cb h1, .cb h2, .cb h3 { font-family: var(--cb-font); color: var(--cb-ink); letter-spacing: 0; }
.cb .cb-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.cb :focus-visible { outline: 3px solid var(--cb-ink); outline-offset: 3px; }

/* ── Migas de pan y título de página ────────────────────────────────────────────────── */
.cb-pagehead { padding: 14px 0 0; }
.cb .cb-crumbs { padding: 0 0 2px; }
.cb .cb-crumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 0; overflow: hidden; font-size: 13px; letter-spacing: .02em; color: var(--cb-muted); }
.cb .cb-crumbs li { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.cb .cb-crumbs li:last-child { flex: 0 1 auto; }
.cb .cb-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 12px 0 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.cb .cb-crumbs a { padding: 6px 0; text-underline-offset: 3px; }
.cb .cb-crumbs a:hover { color: var(--cb-ink); text-decoration: underline; }
.cb .cb-crumbs [aria-current="page"] span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cb-ink); font-weight: 600; }
.cb .cb-page-title { margin-top: 10px; font-size: clamp(34px, 4.4vw, 56px); line-height: .95; font-weight: 850; font-stretch: 68%; text-transform: uppercase; }
.cb-woo { padding: 24px 0 72px; }

/* Avisos de WooCommerce con el estilo de la casa */
.cb-woo .woocommerce-message, .cb-woo .woocommerce-info, .cb-woo .woocommerce-error { margin: 0 0 24px; padding: 16px 20px; border: 0; border-left: 4px solid var(--cb-ink); border-radius: var(--cb-radius); background: var(--cb-sand); color: var(--cb-ink); font-size: 15px; list-style: none; }
.cb-woo .woocommerce-message::before, .cb-woo .woocommerce-info::before, .cb-woo .woocommerce-error::before { display: none; }
.cb-woo .woocommerce-message .button { float: right; margin-left: 16px; }
.cb-woo .woocommerce-error { border-left-color: var(--cb-err); }

/* ── Botones de WooCommerce (clásicos y de bloques): el coral, una sola vez por pantalla ── */
.cb-woo .button, .cb-woo button.button, .cb-woo input[type="submit"],
.cb-woo .wc-block-components-button:not(.is-link), .cb-woo .wp-block-button__link,
.cb-woo .wc-block-cart__submit-button, .cb-woo .wc-block-components-checkout-place-order-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
	border: 0; border-radius: var(--cb-radius); background: var(--cb-coral); color: #fff;
	font: 800 15px/1 var(--cb-font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	box-shadow: 0 10px 24px -14px rgba(213, 66, 14, .8); transition: background .12s, transform .08s;
}
.cb-woo .button:hover, .cb-woo .wc-block-components-button:not(.is-link):hover, .cb-woo .wp-block-button__link:hover,
.cb-woo input[type="submit"]:hover { background: var(--cb-coral-dark); color: #fff; }
.cb-woo .wc-block-cart__submit-button, .cb-woo .wc-block-components-checkout-place-order-button { width: 100%; min-height: 60px; font-size: 16px; }
.cb-woo .wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: inherit; }

/* ── Tienda y listados ─────────────────────────────────────────────────────────────── */
.cb-woo .woocommerce-products-header, .cb-woo .woocommerce-result-count { display: none; }
.cb-woo .woocommerce-ordering { margin: 0 0 20px; }
.cb-woo .woocommerce-ordering select { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--cb-line); border-radius: 12px; background: #fff; font: 600 14px var(--cb-font); color: var(--cb-ink); }
.cb ul.products, .cb .cb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .cb ul.products, .cb .cb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1100px) { .cb ul.products, .cb .cb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cb ul.products li.product { float: none; width: auto; margin: 0; padding: 0; background: none; border: 0; }
.cb-product-link { display: block; }
.cb-product-ph { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--cb-line); border-radius: var(--cb-radius-lg); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.cb-product-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.cb-product-alt { opacity: 0; }
.cb-product-link:hover .cb-product-ph { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(15, 34, 48, .55); }
.cb-product-link:hover .cb-product-alt { opacity: 1; }
.cb-product-badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 3px 10px; border-radius: 8px; background: var(--cb-ink); color: #fff; font-size: 12px; font-weight: 800; }
.cb-product-title { margin-top: 14px; font-size: 17px; line-height: 1.25; font-weight: 800; font-stretch: 78%; text-transform: uppercase; letter-spacing: .01em; }
.cb-product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 4px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cb-product-price small { font-size: 13px; font-weight: 600; color: var(--cb-muted); }
.cb-product-price del { font-weight: 500; color: var(--cb-muted); }
.cb-product-price ins { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .cb-product-ph, .cb-product-ph img { transition: none; } }

/* ── Carrito y pago (bloques de WooCommerce) ───────────────────────────────────────── */
.cb-woo .wc-block-components-sidebar, .cb-woo .wp-block-woocommerce-cart-totals-block { color: var(--cb-ink); }
.cb-woo .wc-block-components-totals-wrapper { border-color: var(--cb-line); }
.cb-woo .wc-block-cart-items th, .cb-woo .wc-block-components-title, .cb-woo .wc-block-components-checkout-step__title {
	font-family: var(--cb-font); font-weight: 800; font-stretch: 78%; text-transform: uppercase; letter-spacing: .04em; color: var(--cb-ink);
}
.cb-woo .wc-block-components-product-name { font-weight: 800; color: var(--cb-ink); text-decoration: none; }
.cb-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 24px; font-weight: 800; }
.cb-woo .wc-block-components-text-input input, .cb-woo .wc-block-components-select .wc-blocks-components-select__select,
.cb-woo .wc-block-components-combobox .wc-block-components-combobox-control input { border: 1.5px solid var(--cb-line); border-radius: 12px; min-height: 54px; background: #fff; }
.cb-woo .wc-block-components-text-input input:focus, .cb-woo .wc-block-components-select .wc-blocks-components-select__select:focus { border-color: var(--cb-ink); box-shadow: none; outline: 3px solid rgba(15, 34, 48, .15); }
.cb-woo .wc-block-components-radio-control__option-checked { border-color: var(--cb-ink); }
.cb-woo .wc-block-components-order-summary, .cb-woo .wp-block-woocommerce-checkout-order-summary-block { border: 1px solid var(--cb-line); border-radius: var(--cb-radius-lg); background: #fff; }
.cb-woo .wp-block-woocommerce-checkout-order-summary-block, .cb-woo .wp-block-woocommerce-cart-totals-block { padding: 20px; }
.cb-woo .wc-block-components-notice-banner { border-radius: var(--cb-radius); }

/* ── Mi cuenta ─────────────────────────────────────────────────────────────────────── */
.cb-woo .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.cb-woo .woocommerce-MyAccount-navigation a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--cb-sand); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--cb-ink); }
.cb-woo .woocommerce-MyAccount-navigation .is-active a { background: var(--cb-ink); color: #fff; }
.cb-woo form .form-row input.input-text, .cb-woo form .form-row select { min-height: 52px; padding: 0 14px; border: 1.5px solid var(--cb-line); border-radius: 12px; background: #fff; }

/* ── Portada ───────────────────────────────────────────────────────────────────────── */
.cb-home .cb-homehero { display: grid; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 900px) { .cb-home .cb-homehero { grid-template-columns: 1.05fr 1fr; gap: 72px; padding-top: 64px; padding-bottom: 96px; } }
.cb-home .cb-kicker { font-family: var(--cb-script); font-size: 30px; line-height: 1; color: var(--cb-coral); margin-bottom: 8px; }
.cb-home .cb-title { font-size: clamp(40px, 5.4vw, 76px); line-height: .92; font-weight: 850; font-stretch: 66%; text-transform: uppercase; }
.cb-home .cb-tagline { margin-top: 18px; max-width: 46ch; font-size: 19px; line-height: 1.5; color: var(--cb-muted); }
.cb-homehero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.cb-home .cb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 34px; border-radius: var(--cb-radius); background: var(--cb-coral); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 10px 24px -12px rgba(213, 66, 14, .75); }
.cb-home .cb-btn:hover { background: var(--cb-coral-dark); }
.cb-home .cb-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cb-homehero-ph { display: block; overflow: hidden; border: 1px solid var(--cb-line); border-radius: 28px; background: #fff; aspect-ratio: 1 / 1; }
.cb-homehero-ph img { width: 100%; height: 100%; object-fit: cover; }
.cb-home .cb-band { padding: 72px 0 84px; }
.cb-home .cb-band--sand { background: var(--cb-sand); }
.cb-home .cb-band h2 { margin-bottom: 32px; font-size: clamp(30px, 3.6vw, 46px); line-height: .96; font-weight: 850; font-stretch: 68%; text-transform: uppercase; }

/* ── Pie ───────────────────────────────────────────────────────────────────────────── */
.cb-footer { margin-top: 0; background: var(--cb-ink); color: #d5dde2; }
.cb .cb-footer-in { display: grid; gap: 28px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 760px) { .cb .cb-footer-in { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.cb-footer-logo { font-size: 26px; font-weight: 850; font-stretch: 68%; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.cb-footer-brand p { margin-top: 8px; max-width: 38ch; font-size: 15px; }
.cb-footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cb-footer-nav a { font-weight: 600; color: #fff; text-underline-offset: 4px; }
.cb-footer-nav a:hover { text-decoration: underline; }
.cb-footer-legal { margin-top: 14px; }
.cb-footer-legal a { font-weight: 500; color: #b9c4cb; font-size: 14px; }
.cb .cb-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: 13px; color: #98a6b0; }
@media (max-width: 959px) { .cb-footer { padding-bottom: 8px; } }

/* Páginas: contenido del editor a ancho de contenedor, sin desbordar */
.cb-page .cb-page-body { max-width: 100%; }
.cb-page .cb-page-body > * { max-width: 100%; }
.cb-page .alignwide, .cb-page .alignfull { max-width: 100%; margin-left: 0; margin-right: 0; }
.cb-page .wp-block-woocommerce-cart, .cb-page .wp-block-woocommerce-checkout { margin: 0; }

/* WooCommerce mete pseudo-elementos de limpieza en ul.products; en una rejilla CSS ocuparían celdas */
.cb ul.products::before, .cb ul.products::after { content: none; display: none; }
