/*
 Theme Name:   Tobi Skatechop Child
 Theme URI:    https://tobiskatechop.local
 Description:  Child theme para SKATE INSTITUTION. Sistema visual BEM + tokens, sin Elementor ni JetEngine.
 Author:       Tobi Skatechop
 Author URI:   https://tobiskatechop.local
 Template:     tobi-skatechop
 Version:      1.0.0
 Text Domain:  tobi-skatechop-child
*/

/* Header */
.skc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--skc-surface);
	color: var(--skc-primary);
	border-bottom: var(--skc-border);
	font-family: 'Inter', sans-serif;
}

.skc-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--skc-md);
	min-height: var(--skc-header-height);
}

.skc-logo {
	flex-shrink: 0;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--skc-primary);
	text-decoration: none;
	white-space: nowrap;
}

@media (min-width: 1024px) {
	.skc-logo {
		font-size: 28px;
	}
}

.skc-logo:hover,
.skc-logo:focus-visible {
	opacity: 0.7;
}

/* Logo image (when uploaded via Contenido → Logo). Inherits the .skc-logo
 * link styles. The actual `height` is set inline by the template
 * (configurable from Contenido → Logo → Tamaño); this rule only sets
 * the layout / overflow properties. */
.skc-logo img {
	display: block;
	width: auto;
	max-width: 240px;
}

/* Nav */
.skc-nav {
	display: none;
	gap: var(--skc-md);
}

@media (min-width: 768px) {
	.skc-nav {
		display: flex;
		justify-content: center;
		flex: 1;
	}
}

.skc-nav__link {
	padding: 4px 0;
	color: var(--skc-primary);
	font-size: var(--skc-label-md);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.skc-nav__link:hover,
.skc-nav__link:focus-visible {
	border-bottom-color: var(--skc-primary);
}

.skc-nav__link.is-active {
	border-bottom-color: var(--skc-primary);
}

/* Icons */
.skc-icons {
	display: flex;
	align-items: center;
	gap: var(--skc-xs);
	flex-shrink: 0;
}

.skc-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--skc-primary);
	cursor: pointer;
	text-decoration: none;
	font: inherit;
}

.skc-icon-btn:hover,
.skc-icon-btn:focus-visible {
	color: var(--skc-on-primary);
	background: var(--skc-primary);
	outline: 0;
}

.skc-icon-btn .material-symbols-outlined {
	font-size: 22px;
	line-height: 1;
}

.skc-badge {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--skc-primary);
	color: var(--skc-on-primary);
	font-size: 10px;
	font-weight: 700;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Search panel (toggle) */
.skc-search-panel {
	border-bottom: var(--skc-border);
	background: var(--skc-surface);
}

.skc-search-form {
	display: flex;
	align-items: center;
	gap: var(--skc-sm);
	padding: var(--skc-sm) 0;
}

.skc-search-form__icon {
	color: var(--skc-secondary);
	font-size: 22px;
}

.skc-search-form__input {
	flex: 1;
	min-width: 0;
	padding: var(--skc-sm);
	font-family: inherit;
	font-size: var(--skc-body-md);
	background: var(--skc-on-primary);
	color: var(--skc-primary);
	border: var(--skc-border);
}

.skc-search-form__input:focus-visible {
	outline: 2px solid var(--skc-primary);
	outline-offset: 1px;
}

.skc-search-form__input:-webkit-autofill {
	box-shadow: 0 0 0 100px var(--skc-on-primary) inset;
	-webkit-text-fill-color: var(--skc-primary);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Footer */
.skc-footer {
	background: var(--skc-primary);
	color: var(--skc-on-primary);
	text-transform: uppercase;
	margin-top: var(--skc-xl);
	font-family: 'Inter', sans-serif;
	font-size: var(--skc-label-md);
	font-weight: 600;
}

.skc-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--skc-md);
	padding: var(--skc-lg) 0;
}

.skc-footer__brand {
	font-size: var(--skc-headline-md);
	font-weight: 600;
	color: var(--skc-on-primary);
}

/* Footer logo image. The actual `height` is set inline by the template
 * (configurable from Contenido → Logo → Tamaño); this rule only sets
 * the layout / overflow properties. */
.skc-footer__brand img {
	display: block;
	width: auto;
	max-width: 240px;
}

.skc-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--skc-md);
	justify-content: center;
}

.skc-footer__link {
	color: var(--skc-on-primary);
	opacity: 0.8;
	text-decoration: none;
}

.skc-footer__link:hover,
.skc-footer__link:focus-visible {
	opacity: 1;
	text-decoration: underline;
}

.skc-footer__copy {
	opacity: 0.6;
	font-size: 10px;
	color: var(--skc-on-primary);
}

/* Variations table cosmetic fix */
.variations td.value {
	padding-top: 5px;
}

.label label {
	text-transform: capitalize;
}

table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
	background-color: transparent;
}

/* Restore .woocommerce-variation visibility (the rule that hid it was a bug). */
.woocommerce-variation {
	display: block;
}