/* Skating Caps: estilos que theme.json no cubre. Mantener corto. */

/* Cabecera pegada arriba */
.sc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .sc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sc-header { top: 0; } }

/* Barra superior verde */
.sc-topbar p { margin: 0; }

/* Estilo de párrafo "Pegatina" */
.is-style-sticker {
	display: inline-block;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	padding: 0.25rem 0.75rem;
	border-radius: 6px;
	transform: rotate(-2deg);
}

/* Estilo de grupo "Tarjeta" */
.is-style-card {
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 16px;
	box-shadow: 6px 6px 0 var(--wp--preset--color--ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.is-style-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 8px 8px 0 var(--wp--preset--color--ink);
}

/* Tarjetas de categoría: todo el bloque es clicable */
.sc-cat { position: relative; }
.sc-cat a::after { content: ""; position: absolute; inset: 0; }
.sc-cat h3 a { text-decoration: none; }

/* Productos WooCommerce (bloques y shortcodes) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: 1rem;
}
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img {
	border-radius: 12px;
	background: var(--wp--preset--color--paper-soft);
}
.woocommerce span.onsale {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--ink);
}
.woocommerce .price,
.wc-block-components-product-price { font-weight: 700; }

/* Accesibilidad: foco visible en todo */
:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* Listas sin viñetas (pie) */
.is-style-none { list-style: none; }
.is-style-none a { text-decoration: none; }
.is-style-none a:hover { text-decoration: underline; }

/* Tarjetas de categoría a la misma altura */
.wp-block-column > .sc-cat { height: 100%; }
