/*
 * Tienda Child - listado de productos, carrito, checkout y mi cuenta.
 * Mismo lenguaje visual que la portada: esquinas amplias, bordes finos, títulos en negrita
 * y botones en píldora. Usa las variables de main.css.
 */

/* ---------- Títulos de página ---------- */
.woocommerce-products-header__title,
.woocommerce-page h1.entry-title,
.woocommerce-cart h1.entry-title,
.woocommerce-checkout h1.entry-title,
.woocommerce-account h1.entry-title {
	font-family: inherit;
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800 !important;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.woocommerce .woocommerce-breadcrumb {
	margin-bottom: 10px;
	font-size: 0.82rem;
	opacity: 0.65;
}

/* ---------- Listado: filtros, conteo y orden ---------- */
.tc-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 26px;
}
.tc-filtro {
	padding: 9px 18px;
	border: 1px solid var(--tc-borde);
	border-radius: 999px;
	background: #fff;
	color: var(--tc-texto);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tc-filtro:hover {
	border-color: var(--tc-texto);
	color: var(--tc-texto);
}
.tc-filtro.is-activo {
	border-color: var(--tc-texto);
	background: var(--tc-texto);
	color: #fff;
}
.tc-filtro--stock {
	margin-left: auto;
}
.tc-filtro--stock::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: #2e7d32;
}
.tc-filtro--stock.is-activo::before {
	background: #7ed184;
}
.woocommerce .woocommerce-result-count {
	margin-bottom: 22px;
	font-size: 0.88rem;
	opacity: 0.65;
}
.woocommerce .woocommerce-ordering select {
	padding: 10px 42px 10px 18px;
	border: 1px solid var(--tc-borde);
	border-radius: 999px;
	background-color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
}

/* ---------- Avisos de WooCommerce ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border: 0;
	border-radius: 16px;
	background: #e6f2e7;
	color: #1b5e20;
}
.woocommerce-info {
	background: #eef2fb;
	color: #17306b;
}
.woocommerce-error {
	background: #fdecea;
	color: #8a1f17;
}
.woocommerce-message .button,
.woocommerce-info .button {
	border-radius: 999px;
}

/* ---------- Botones de WooCommerce y de los bloques ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button:not(.is-link) {
	border-radius: 999px;
	font-weight: 700;
}
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 54px;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	box-shadow: 0 10px 24px rgba(0, 113, 227, 0.25);
	transition: transform 0.15s, box-shadow 0.15s;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	transform: translateY(-1px);
}

/* ---------- Carrito ---------- */
.wc-block-cart .wc-block-cart-items {
	overflow: hidden;
	border: 1px solid var(--tc-borde);
	border-radius: 24px;
	background: #fff;
}
.wc-block-cart .wc-block-cart-items th {
	padding: 16px 20px;
	border-bottom: 1px solid var(--tc-borde);
	font-size: 0.72rem;
	letter-spacing: 0.07em;
	opacity: 0.6;
}
.wc-block-cart .wc-block-cart-items th.wc-block-cart-items__header-total {
	padding-right: 20px !important;
}
.wc-block-cart .wc-block-cart-items td {
	padding: 22px 20px;
}
.wc-block-cart .wc-block-cart-item__image img {
	width: 96px;
	border-radius: 16px;
	background: var(--tc-suave);
}
.wc-block-cart .wc-block-components-product-name {
	color: var(--tc-texto);
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
}
.wc-block-cart .wc-block-components-quantity-selector {
	border-radius: 999px;
	overflow: hidden;
}
.wc-block-cart .wc-block-components-sidebar,
.wc-block-cart .wp-block-woocommerce-cart-totals-block {
	padding: 4px 8px 8px;
}
.wc-block-cart .wc-block-components-totals-wrapper,
.wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
	border-color: var(--tc-borde);
}
.wc-block-cart .wp-block-woocommerce-cart-totals-block {
	align-self: flex-start;
	padding: 22px;
	border: 1px solid var(--tc-borde);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(20, 30, 60, 0.06);
}
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.5rem;
	font-weight: 800;
}
.tc-seguir-comprando {
	margin: 20px 0 0;
}
.tc-seguir-comprando a {
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Checkout ---------- */
.wc-block-checkout .wc-block-components-title,
.wc-block-checkout .wc-block-components-checkout-step__title {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input input[type],
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-textarea {
	border: 1px solid var(--tc-borde) !important;
	border-radius: 14px !important;
}
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-blocks-components-select__select:focus {
	border-color: var(--tc-primario);
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}
.wc-block-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout .wc-block-components-order-summary {
	border-radius: 24px;
}
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
	border: 1px solid var(--tc-borde);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(20, 30, 60, 0.06);
}
.wc-block-checkout .wc-block-components-order-summary-item__image img {
	border-radius: 12px;
	background: var(--tc-suave);
}
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	border-radius: 6px;
}
.wc-block-checkout .wc-block-components-notice-banner {
	border-radius: 16px;
}

/* ---------- Mi cuenta ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 11px 16px;
	border-radius: 12px;
	color: var(--tc-texto);
	font-weight: 600;
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--tc-suave);
	color: var(--tc-primario);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border: 1px solid var(--tc-borde);
	border-radius: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 544px) {
	.tc-filtro--stock {
		margin-left: 0;
	}
}
@media (max-width: 781px) {
	/* Carrito en móvil: margen lateral y separación entre productos y totales. */
	.wp-block-woocommerce-cart.wc-block-cart,
	.woocommerce-cart .wc-block-cart {
		padding: 0 16px;
	}
	.wc-block-cart .wc-block-cart-items {
		margin-bottom: 20px;
	}
	.woocommerce-cart h1.entry-title,
	.woocommerce-account h1.entry-title {
		margin: 24px 0 14px;
	}
	.wc-block-cart .wp-block-woocommerce-cart-totals-block,
	.wc-block-cart .wc-block-components-sidebar {
		box-sizing: border-box;
		width: 100%;
	}
}
