/*
 * Tienda Child - cabecera, navegación, cajones y pie de página.
 * Usa las variables de main.css (--tc-primario, --tc-borde, --tc-radio...).
 */
:root {
	--tc-alto-anuncio: 38px;
	--tc-sombra: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tc-wrap {
	max-width: var(--tc-ancho);
	margin: 0 auto;
	padding: 0 20px;
}
.tc-solo-movil,
.tc-boton-icono.tc-solo-movil {
	display: none;
}
html.tc-sin-scroll {
	overflow: hidden;
}

/* ---------- Barra de anuncio ---------- */
.tc-anuncio {
	background: var(--tc-texto);
	color: #fff;
	text-align: center;
	font-size: 0.85rem;
}
.tc-anuncio p {
	margin: 0;
	padding: 10px 20px;
}

/* ---------- Cabecera ---------- */
.tc-header {
	position: sticky;
	top: 0;
	z-index: 90;
	border-bottom: 1px solid var(--tc-borde);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(180%) blur(12px);
}
.admin-bar .tc-header {
	top: 32px;
}
.tc-header__fila {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 68px;
}
.tc-header__der {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}
.tc-logo {
	flex: 0 0 auto;
}
.tc-logo__texto {
	color: var(--tc-texto);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
}
.tc-logo img {
	max-height: 40px;
	width: auto;
}
.tc-logo__marca {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
.tc-logo__icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: linear-gradient(140deg, var(--tc-primario), #1b3b7a);
	box-shadow: 0 6px 16px rgba(0, 113, 227, 0.28);
	color: #fff;
	transition: transform 0.2s ease;
}
.tc-logo__marca:hover .tc-logo__icono {
	transform: scale(1.06) rotate(-3deg);
}
/* Texto solo para lectores de pantalla. */
.tc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.tc-boton-icono {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tc-texto);
	cursor: pointer;
	transition: background 0.15s;
}
.tc-boton-icono:hover,
.tc-boton-icono:focus-visible {
	background: var(--tc-suave);
	color: var(--tc-texto);
}
.tc-cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--tc-primario);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.tc-cart-count.is-vacio {
	display: none;
}

/* ---------- Menú de escritorio y mega-menús ---------- */
.tc-nav {
	flex: 1 1 auto;
}
.tc-nav__lista {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
	margin: 0;
	list-style: none;
}
.tc-nav__item {
	margin: 0;
}
.tc-nav__enlace {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--tc-texto);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.tc-nav__item:hover > .tc-nav__enlace,
.tc-nav__item:focus-within > .tc-nav__enlace {
	background: var(--tc-suave);
	color: var(--tc-primario);
}
.tc-nav__enlace.is-activo {
	background: rgba(0, 113, 227, 0.1);
	color: var(--tc-primario);
}
.tc-nav__enlace--resaltado {
	color: var(--tc-primario);
}

.tc-mega {
	position: absolute;
	top: 100%;
	z-index: 5;
	left: 0;
	right: 0;
	display: none;
	border-top: 1px solid var(--tc-borde);
	border-bottom: 1px solid var(--tc-borde);
	background: #fff;
	box-shadow: var(--tc-sombra);
}
.tc-nav__item:hover > .tc-mega,
.tc-nav__item:focus-within > .tc-mega {
	display: block;
}
.tc-mega__interior {
	display: grid;
	grid-template-columns: 220px repeat(3, 1fr);
	gap: 24px;
	padding-top: 28px;
	padding-bottom: 28px;
}
.tc-mega__titulo {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.55;
}
.tc-mega__col ul {
	margin: 0;
	list-style: none;
}
.tc-mega__col li {
	margin: 0 0 8px;
}
.tc-mega__col a {
	color: var(--tc-texto);
	text-decoration: none;
}
.tc-mega__col a:hover {
	color: var(--tc-primario);
}
.tc-mega__producto {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--tc-texto);
	text-decoration: none;
}
.tc-mega__producto img {
	width: 100%;
	max-width: 160px;
	aspect-ratio: 1;
	border-radius: var(--tc-radio);
	object-fit: cover;
}
.tc-mega__nombre {
	font-weight: 600;
}
.tc-mega__precio {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* ---------- Buscador ---------- */
.tc-buscador {
	border-top: 1px solid var(--tc-borde);
	background: #fff;
}
.tc-buscador[hidden] {
	display: none;
}
.tc-buscador .tc-wrap {
	padding-top: 14px;
	padding-bottom: 14px;
}
.tc-buscador form {
	display: flex;
	gap: 10px;
	margin: 0;
}
.tc-buscador input[type="search"] {
	flex: 1;
	border-radius: 999px;
}
.tc-buscador button[type="submit"] {
	border-radius: 999px;
}

/* ---------- Velo y cajones ---------- */
.tc-velo {
	position: fixed;
	inset: 0;
	z-index: 99;
	background: rgba(0, 0, 0, 0.4);
}
.tc-velo[hidden],
.tc-cajon[hidden] {
	display: none;
}
.tc-cajon {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	width: min(420px, 92vw);
	overflow-y: auto;
	background: #fff;
	box-shadow: var(--tc-sombra);
	transition: transform 0.25s ease;
}
.tc-cajon--der {
	right: 0;
	transform: translateX(100%);
}
.tc-cajon--izq {
	left: 0;
	transform: translateX(-100%);
}
.tc-cajon.is-abierto {
	transform: none;
}
.tc-cajon__cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px 12px 20px;
	border-bottom: 1px solid var(--tc-borde);
}
.tc-cajon__cabecera p {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
}
.tc-cajon .widget_shopping_cart_content {
	flex: 1;
	padding: 16px 20px;
}
.tc-cajon .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 10px;
}
.tc-cajon .woocommerce-mini-cart__buttons .button {
	width: 100%;
	margin: 0;
	border-radius: 999px;
	text-align: center;
}
.tc-seguir {
	margin: 0 20px 20px;
	padding: 12px;
	border: 1.5px solid var(--tc-borde);
	border-radius: 999px;
	background: #fff;
	color: var(--tc-texto);
	font-weight: 600;
	cursor: pointer;
}

/* ---------- Menú móvil por niveles ---------- */
.tc-movil__nivel {
	display: none;
	padding: 8px 0 24px;
}
.tc-movil__nivel.is-activo {
	display: block;
}
.tc-movil__nivel ul {
	margin: 0;
	list-style: none;
}
.tc-movil__nivel li {
	margin: 0;
}
.tc-movil__fila,
.tc-movil__volver {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 20px;
	border: 0;
	border-bottom: 1px solid var(--tc-borde);
	background: transparent;
	color: var(--tc-texto);
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.tc-movil__volver {
	justify-content: flex-start;
	gap: 6px;
	background: var(--tc-suave);
}

/* ---------- Redes ---------- */
.tc-redes {
	display: flex;
	gap: 8px;
	margin: 16px 0 0;
	list-style: none;
}
.tc-redes li {
	margin: 0;
}
.tc-redes a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tc-suave);
	color: var(--tc-texto);
}
.tc-redes a:hover {
	background: var(--tc-primario);
	color: #fff;
}
.tc-redes--movil {
	padding: 0 20px;
}

/* ---------- Pie de página ---------- */
.tc-pie {
	margin-top: 0;
	border-top: 1px solid var(--tc-borde);
	background: var(--tc-suave);
	color: var(--tc-texto);
}
.tc-pie__grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 32px;
	padding-top: 56px;
	padding-bottom: 40px;
}
.tc-pie__logo {
	margin: 0 0 10px;
	font-size: 1.25rem;
	font-weight: 700;
}
.tc-pie__marca p {
	max-width: 320px;
	opacity: 0.8;
}
.tc-pie__titulo {
	margin: 0 0 14px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.6;
}
.tc-pie__col ul {
	margin: 0;
	list-style: none;
}
.tc-pie__col li {
	margin: 0 0 10px;
}
.tc-pie__col a {
	color: var(--tc-texto);
	text-decoration: none;
}
.tc-pie__col a:hover {
	color: var(--tc-primario);
}
.tc-pie__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	padding-bottom: 28px;
	border-top: 1px solid var(--tc-borde);
	font-size: 0.85rem;
}
.tc-pie__base p {
	margin: 0;
	opacity: 0.7;
}
.tc-pagos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	list-style: none;
}
.tc-pagos li {
	margin: 0;
	padding: 4px 12px;
	border: 1px solid var(--tc-borde);
	border-radius: 6px;
	background: #fff;
	font-size: 0.8rem;
	font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 921px) {
	.tc-solo-movil,
	.tc-boton-icono.tc-solo-movil {
		display: inline-flex;
	}
	.tc-solo-escritorio {
		display: none;
	}
	/* En celular y tablet: menú a la izquierda, logo centrado, íconos a la derecha. */
	.tc-header__fila {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 12px;
	}
	.tc-header__fila > .tc-solo-movil {
		justify-self: start;
	}
	.tc-header__der {
		justify-self: end;
		margin-left: 0;
	}
	.tc-pie__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 782px) {
	.admin-bar .tc-header {
		top: 46px;
	}
}
@media (max-width: 544px) {
	.tc-pie__grid {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 40px;
	}
	.tc-pie__base {
		flex-direction: column;
		align-items: flex-start;
	}
}
