/*
Theme Name: SYTEC WooCommerce Theme
Theme URI: https://example.com/sytec-theme-base/
Author: SYTEC
Author URI: https://example.com/
Description: Tema reutilizable, accesible y responsive para WordPress, WooCommerce y Elementor.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: sytec-theme-base
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Los estilos públicos se cargan de forma modular desde assets/css/. */
/* ==========================================================
 * SINGLE PRODUCT — ESTILO MONTECATINI
 * Inspirado en las cards del carrito
 * ========================================================== */

/* ==========================================================
 * MONTECATINI — SINGLE PRODUCT REFINEMENT
 * Igualar lenguaje visual con carrito
 * ========================================================== */

.single-product {
	--mc-blue: #1647f5;
	--mc-blue-dark: #062f72;
	--mc-border: #d6e4f4;
	--mc-soft: #f3f8fd;
	--mc-page: #f7fbff;
	--mc-muted: #617695;
}


/* ==========================================================
 * CARDS PRINCIPALES
 * ========================================================== */

.sytec-product-gallery,
.sytec-product-summary,
.sytec-product-purchase,
.sytec-product-sections,
.single-product .related.products,
.single-product .upsells.products {
	background: #fff !important;

	border: 1px solid var(--mc-border) !important;
	border-radius: 16px !important;

	box-shadow: none !important;
}


/* ==========================================================
 * GALERÍA
 * ========================================================== */

.sytec-product-gallery {
	padding: 20px !important;
}

.sytec-product-gallery
.woocommerce-product-gallery__wrapper {
	background: #fff;
	border-radius: 12px;
}

.sytec-product-gallery img {
	object-fit: contain;
}


/* ==========================================================
 * RESUMEN CENTRAL
 * ========================================================== */

.sytec-product-summary {
	padding: 20px !important;
	gap: 14px;
}


/* breadcrumb interno duplicado */

.sytec-product-summary .woocommerce-breadcrumb,
.sytec-product-summary__breadcrumb {
	font-size: 12px;
	line-height: 1.5;

	color: #536d91;
}


/* categoría */

.sytec-product-summary__category {
	margin-top: 8px;

	font-size: 13px;
	font-weight: 500;

	color: var(--mc-blue);
}


/* título */

.sytec-product-summary h1,
.sytec-product-summary .product_title {
	margin: 12px 0 8px;

	font-size: clamp(27px, 3vw, 36px);
	line-height: 1.08;

	font-weight: 800;

	color: var(--mc-blue-dark);
}


/* rating */

.sytec-product-summary
.woocommerce-product-rating {
	margin: 4px 0 12px;
}


/* descripción corta */

.sytec-product-summary
.woocommerce-product-details__short-description {
	margin-top: 14px;

	font-size: 14px;
	line-height: 1.65;

	color: #314765;
}


/* meta */

.sytec-product-summary .product_meta {
	margin-top: 14px;

	font-size: 12px;
	line-height: 1.65;
}


/* ==========================================================
 * STOCK
 * ========================================================== */

.sytec-product-summary__availability {
	padding: 7px 12px;

	border: 1px solid var(--mc-border);
	border-radius: 999px;

	background: #f7fbff;

	font-size: 12px;
}


/* ==========================================================
 * ATRIBUTOS RÁPIDOS
 * Corrige el problema "Manzana" vertical
 * ========================================================== */

.sytec-product-quick-attributes,
.sytec-product-summary__attributes {
	display: grid !important;

	grid-template-columns:
		repeat(
			auto-fit,
			minmax(150px, 1fr)
		) !important;

	gap: 10px !important;

	width: 100%;
}


/* cada atributo */

.sytec-product-quick-attributes > *,
.sytec-product-summary__attributes > * {
	min-width: 0 !important;

	padding: 12px 14px !important;

	border: 1px solid var(--mc-border) !important;
	border-radius: 10px !important;

	background: var(--mc-soft) !important;

	overflow: hidden;
}


/* evita letras apiladas */

.sytec-product-quick-attributes *,
.sytec-product-summary__attributes * {
	word-break: normal !important;
	overflow-wrap: anywhere;
	white-space: normal;
}


/* label */

.sytec-product-quick-attributes strong,
.sytec-product-summary__attributes strong {
	display: block;

	margin-bottom: 5px;

	font-size: 11px;
	font-weight: 500;

	color: #526985;
}


/* valor */

.sytec-product-quick-attributes span,
.sytec-product-summary__attributes span {
	font-size: 13px;

	color: var(--mc-blue-dark);
}


/* ==========================================================
 * COMPRA
 * Aquí está una de las mayores diferencias
 * ========================================================== */

.sytec-product-purchase {
	padding: 20px !important;

	background: #fff !important;
}


/* eliminar fondo celeste interno */

.sytec-product-purchase-card,
.sytec-product-purchase-card__inner,
.sytec-product-purchase .summary,
.sytec-product-purchase form.cart {
	background: transparent !important;
}


/* precio */

.sytec-product-purchase .price {
	font-size: 18px;
	font-weight: 700;

	color: var(--mc-blue-dark);
}


/* textos */

.sytec-product-purchase p,
.sytec-product-purchase .stock {
	font-size: 13px;
	line-height: 1.6;

	color: #314765;
}


/* Cantidad */

.sytec-product-purchase .quantity {
	width: 100%;

	border: 1px solid var(--mc-border);
	border-radius: 9px;

	background: #fff;
}

.sytec-product-purchase .quantity input.qty {
	width: 100%;
	height: 43px;

	border: 0;

	background: #fff;

	text-align: center;
}


/* agregar carrito */

.sytec-product-purchase
.single_add_to_cart_button {
	width: 100%;

	min-height: 46px;

	margin-top: 0;

	border-radius: 0 0 8px 8px !important;

	background: var(--mc-blue) !important;

	font-size: 14px;
	font-weight: 700;

	color: #fff !important;
}


/* Botón secundario */

.sytec-product-purchase
.button:not(.single_add_to_cart_button) {
	width: 100%;

	min-height: 44px;

	margin-top: 12px;

	border-radius: 0 !important;

	background: var(--mc-blue) !important;

	color: #fff !important;
}


/* ==========================================================
 * NAVEGACIÓN DESCRIPCIÓN / ESPECIFICACIONES / VALORACIONES
 * ========================================================== */

.sytec-product-navigation,
.sytec-product-tabs,
.woocommerce-tabs ul.tabs {
	padding: 0 12px !important;

	border: 1px solid var(--mc-border) !important;
	border-radius: 0 !important;

	background: #fff !important;
}


/* links */

.sytec-product-navigation a,
.woocommerce-tabs ul.tabs li a {
	padding: 14px 10px;

	font-size: 12px;
	font-weight: 500;

	color: var(--mc-blue);
}


/* activo */

.sytec-product-navigation a.is-active,
.woocommerce-tabs ul.tabs li.active a {
	border-bottom: 2px solid var(--mc-blue);

	color: var(--mc-blue-dark);
}


/* ==========================================================
 * CONTENEDOR GRANDE DE SECCIONES
 * ========================================================== */

.sytec-product-sections {
	padding: 20px !important;

	background: #fff !important;
}


/* Secciones internas */

.sytec-product-sections > * {
	padding: 28px 30px !important;

	border: 1px solid var(--mc-border) !important;
	border-radius: 8px !important;

	background: #fff !important;
}


/* separación */

.sytec-product-sections > * + * {
	margin-top: 26px !important;
}


/* elimina celeste heredado */

.sytec-product-sections section,
.sytec-product-description,
.sytec-product-specifications,
.sytec-product-reviews {
	background: #fff !important;
}


/* títulos */

.sytec-product-sections h2 {
	margin: 0 0 20px;

	font-size: 26px;
	line-height: 1.2;

	font-weight: 800;

	color: var(--mc-blue-dark);
}

.sytec-product-sections h3 {
	color: var(--mc-blue-dark);
}


/* texto */

.sytec-product-sections p {
	color: #647792;

	line-height: 1.7;
}


/* ==========================================================
 * ESPECIFICACIONES
 * ========================================================== */

.sytec-product-sections table {
	width: 100%;

	border: 1px solid var(--mc-border);

	border-collapse: separate;
	border-spacing: 0;

	border-radius: 8px;

	overflow: hidden;
}

.sytec-product-sections th,
.sytec-product-sections td {
	padding: 14px 16px;

	border-right: 1px solid var(--mc-border);
	border-bottom: 1px solid var(--mc-border);

	background: #fff;
}

.sytec-product-sections th {
	font-weight: 700;

	color: var(--mc-blue);

	background: #f6faff;
}

.sytec-product-sections tr:last-child th,
.sytec-product-sections tr:last-child td {
	border-bottom: 0;
}


/* ==========================================================
 * REVIEWS
 * ========================================================== */

.sytec-product-reviews,
#reviews {
	background: #fff !important;
}


/* review existente */

#reviews .comment-text {
	padding: 14px 16px !important;

	border: 1px solid var(--mc-border) !important;
	border-radius: 8px !important;

	background: #fff !important;
}


/* textarea */

#reviews textarea {
	min-height: 130px;

	padding: 12px;

	border: 1px solid var(--mc-border);

	border-radius: 8px;

	background: #fff;
}


/* botón */

#reviews .submit {
	min-height: 42px;

	padding: 0 18px !important;

	border: 0 !important;
	border-radius: 7px !important;

	background: var(--mc-blue) !important;

	color: #fff !important;
	font-weight: 700 !important;
}


/* ==========================================================
 * RELATED PRODUCTS
 * ========================================================== */

.single-product .related.products {
	padding: 22px !important;

	background: #fff !important;
}

.single-product .related.products > h2 {
	margin: 0 0 20px;

	font-size: 28px;
	font-weight: 800;

	color: var(--mc-blue-dark);
}


/* Cards producto */

.single-product .related.products li.product,
.single-product .upsells.products li.product {
	border: 1px solid var(--mc-border);

	border-radius: 12px;

	background: #fff;

	overflow: hidden;

	box-shadow:
		0 2px 5px rgb(15 61 110 / 4%);
}


/* ==========================================================
 * RESPONSIVE
 * ========================================================== */

@media (max-width: 768px) {

	.sytec-product-gallery,
	.sytec-product-summary,
	.sytec-product-purchase,
	.sytec-product-sections {
		padding: 14px !important;
	}

	.sytec-product-sections > * {
		padding: 20px !important;
	}

	.sytec-product-quick-attributes,
	.sytec-product-summary__attributes {
		grid-template-columns: 1fr !important;
	}

}

/* ==========================================================
 * SINGLE PRODUCT — LIMPIEZA DE FONDOS CELESTES
 * ========================================================== */


/* ----------------------------------------------------------
 * 1. Navegación superior
 * Descripción / Especificaciones / Valoraciones
 * ---------------------------------------------------------- */

.sytec-product-navigation,
.sytec-product-tabs,
.woocommerce-tabs ul.tabs {
	background: #fff !important;

	border: 1px solid #d6e4f4 !important;
	border-radius: 8px !important;

	padding: 0 16px !important;
}

.sytec-product-navigation a,
.sytec-product-tabs a,
.woocommerce-tabs ul.tabs li a {
	background: transparent !important;

	color: #1647f5 !important;
}


/* Tab activo */

.sytec-product-navigation a.is-active,
.sytec-product-tabs a.is-active,
.woocommerce-tabs ul.tabs li.active a {
	background: transparent !important;

	color: #062f72 !important;

	border-bottom: 2px solid #1647f5 !important;
}


/* WooCommerce a veces agrega fondo al <li> */

.woocommerce-tabs ul.tabs li,
.woocommerce-tabs ul.tabs li.active {
	background: transparent !important;

	border: 0 !important;
}


/* ----------------------------------------------------------
 * 2. DESCRIPCIÓN
 * Quitar bloques celestes internos
 * ---------------------------------------------------------- */

.sytec-product-description,
.sytec-product-description *,
.sytec-product-sections .woocommerce-Tabs-panel--description {
	background-color: transparent;
}


/*
 * Mantener únicamente el contenedor principal blanco.
 * Evita que párrafos internos hereden background.
 */

.sytec-product-description,
.woocommerce-Tabs-panel--description {
	background: #fff !important;
}


/* párrafos */

.sytec-product-description p,
.woocommerce-Tabs-panel--description p {
	background: transparent !important;

	color: #617695;
}


/* Por si el contenido viene con estilos inline/background heredado */

.sytec-product-description p[style],
.sytec-product-description div[style],
.woocommerce-Tabs-panel--description p[style],
.woocommerce-Tabs-panel--description div[style] {
	background-color: transparent !important;
}


/* ----------------------------------------------------------
 * 3. ESPECIFICACIONES
 * ---------------------------------------------------------- */

.sytec-product-specifications {
	background: #fff !important;
}


/* Tabla */

.sytec-product-specifications table,
.sytec-product-sections table {
	background: #fff !important;

	border: 1px solid #d6e4f4 !important;

	border-radius: 10px;

	overflow: hidden;
}


/* Todas las celdas blancas */

.sytec-product-specifications th,
.sytec-product-specifications td,
.sytec-product-sections table th,
.sytec-product-sections table td {
	background: #fff !important;

	border-color: #d6e4f4 !important;
}


/* Solo encabezados con un azul muy suave */

.sytec-product-specifications th,
.sytec-product-sections table th {
	background: #f3f8fd !important;

	color: #1647f5 !important;

	font-weight: 700;
}


/* Valores */

.sytec-product-specifications td,
.sytec-product-sections table td {
	color: #16395f !important;
}


/* ----------------------------------------------------------
 * 4. Contenedores grandes
 * ---------------------------------------------------------- */

.sytec-product-sections,
.sytec-product-sections > *,
.sytec-product-description,
.sytec-product-specifications,
.sytec-product-reviews,
#reviews {
	background: #fff !important;
}


/* Cards internas */

.sytec-product-sections > * {
	border: 1px solid #d6e4f4 !important;
	border-radius: 8px !important;

	padding: 28px 30px !important;
}


/* ----------------------------------------------------------
 * 5. Evitar fondos azules/celestes heredados
 * ---------------------------------------------------------- */

.single-product
.sytec-product-sections
[style*="background"] {
	background-color: transparent !important;
}


/* ----------------------------------------------------------
 * MOBILE
 * ---------------------------------------------------------- */

@media (max-width: 768px) {

	.sytec-product-navigation,
	.sytec-product-tabs,
	.woocommerce-tabs ul.tabs {
		padding: 0 8px !important;
	}

	.sytec-product-sections > * {
		padding: 20px !important;
	}

}

/* Barra navegación de secciones */
.sytec-product-section-nav__track {
	background: #fff !important;

	border: 1px solid #d6e4f4;
	border-radius: 8px;

	padding: 0 16px;
}


/* Degradado al final de descripción colapsada */
.sytec-product-description.is-collapsed
.sytec-product-description__content::after {
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0),
		#fff 85%
	) !important;
}

#product-specifications > div table {
	width: 100%;
	background: #fff !important;

	border: 1px solid #d6e4f4;
	border-radius: 10px;

	overflow: hidden;
}

#product-specifications > div th {
	background: #f3f8fd !important;
	color: #1647f5;
	font-weight: 700;
}

#product-specifications > div td {
	background: #fff !important;
	color: #16395f;
}

#product-specifications > div {
	background: #fff !important;

	border: 1px solid #d6e4f4 !important;
	border-radius: 8px !important;

	padding: 28px 30px !important;
}

.sytec-product-section-nav__track {
	background: #fff !important;
}

.sytec-product-description.is-collapsed
.sytec-product-description__content::after {
	background: linear-gradient(
		to bottom,
		rgba(255,255,255,0),
		#fff 100%
	) !important;
}

#product-specifications > div .sytec-spec-row     {
	background: #fff !important;
}
.sytec-product-section-nav {
    background: transparent !important;
    border:none !important;
}


/* ----------------------------------------------------------
 * VER DETALLES
 * ---------------------------------------------------------- */

.sytec-product-details-button {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;

	min-height: 44px;

	padding: 0 18px !important;

	border: 1px solid #1647f5 !important;
	border-radius: 9px !important;

	background: #fff !important;

	font-size: 13px;
	font-weight: 700;

	color: #1647f5 !important;
}

.sytec-product-details-button:hover {
	background: #f4f8ff !important;
}


/* ----------------------------------------------------------
 * NOTAS
 * ---------------------------------------------------------- */

.sytec-product-purchase-notes {
	display: flex;
	flex-direction: column;
	gap: 6px;

	margin: 0;
	padding: 14px 0 0;

	border-top: 1px solid #d6e4f4;

	list-style: none;
}

.sytec-product-purchase-notes li {
	font-size: 12px;
	line-height: 1.5;

	color: #5f718c;
}

.sytec-product-purchase-notes strong {
	color: #173d70;
}

.sytec-product-summary .star-rating {
	color: #f5a400 !important;
}

.sytec-product-summary .star-rating::before {
	color: #d7dee8 !important;
}

.sytec-product-summary .star-rating span::before {
	color: #f5a400 !important;
}

/* ==========================================================
 * PURCHASE CARD — DISEÑO FINAL COMPACTO
 * ========================================================== */

.sytec-product-purchase-card {
	display: flex;
	flex-direction: column;
	gap: 18px;

	width: 100%;

	padding: 18px !important;

	background: #fff !important;

	border: 1px solid #d6e4f4 !important;
	border-radius: 16px !important;

	box-shadow: 0 4px 14px rgb(6 47 114 / 4%);
}


/* Contenido interno */

.sytec-product-purchase-card__main {
	display: flex;
	flex-direction: column;
	gap: 16px;

	width: 100%;
}


/* ==========================================================
 * PRECIO
 * ========================================================== */

.sytec-product-purchase-card__price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;

	margin: 0 !important;

	padding: 15px 16px !important;

	background: #f4f8fd !important;

	border: 1px solid #d6e4f4 !important;
	border-radius: 11px !important;
}

.sytec-product-purchase-card__price .price,
.sytec-product-purchase-card__price > .woocommerce-Price-amount,
.sytec-product-purchase-card__price ins .woocommerce-Price-amount {
	font-size: 26px;
	line-height: 1;

	font-weight: 800;

	color: #062f72;
}


/* ==========================================================
 * STOCK
 * ========================================================== */

.sytec-product-purchase-card__stock {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;

	padding: 10px 12px !important;

	background: #f1fbf7 !important;
	border: 1px solid #caeadb !important;
	border-radius: 10px !important;
}
/* Icono */
.sytec-product-purchase-card__stock-icon {
	display: grid !important;
	place-items: center !important;

	flex: 0 0 24px !important;

	width: 24px !important;
	height: 24px !important;

	border-radius: 50% !important;

	background: #0b8f68 !important;

	font-size: 12px !important;
	font-weight: 800 !important;

	color: #fff !important;
}


/* Contenido stock en una sola línea */
.sytec-product-purchase-card__stock-content {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;

	gap: 6px !important;

	min-width: 0;
}


/* Disponible */
.sytec-product-purchase-card__stock-label {
	display: inline !important;

	font-size: 12px !important;
	line-height: 1 !important;
	font-weight: 700 !important;

	color: #087354 !important;

	white-space: nowrap;
}


/* Stock Woo */
.sytec-product-purchase-card__stock-value {
	display: inline-flex !important;
	align-items: center !important;

	margin: 0 !important;

	font-size: 12px !important;
	line-height: 1 !important;

	color: #526c64 !important;

	white-space: nowrap;
}


/* WooCommerce imprime normalmente un <p class="stock"> */
.sytec-product-purchase-card__stock-value .stock {
	display: inline !important;

	margin: 0 !important;
	padding: 0 !important;

	font-size: inherit !important;
	line-height: inherit !important;

	color: inherit !important;
}


/* Separador visual */
.sytec-product-purchase-card__stock-value::before {
	content: "·";

	margin-right: 6px;

	color: #8aa399;
}


/* ==========================================================
 * DESCRIPCIÓN
 * ========================================================== */

.sytec-product-purchase-card__excerpt {
	margin: 0 !important;

	font-size: 13px;
	line-height: 1.55;

	color: #334b68;
}


/* ==========================================================
 * OCULTAR STOCK NATIVO DUPLICADO
 * ========================================================== */

.sytec-product-purchase-card__form .stock {
	display: none !important;
}


/* ==========================================================
 * ZONA DE COMPRA
 * Contenedor visual propio
 * ========================================================== */

.sytec-product-purchase-card__form {
	width: 100%;

	margin: 0 !important;
	padding: 8px !important;

	background: #f4f8fd;

	border: 1px solid #d6e4f4;
	border-radius: 11px;
}


/* Woo form */

.sytec-product-purchase-card__form form.cart {
	display: flex !important;
	align-items: center !important;

	width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;

	gap: 6px !important;

	background: transparent !important;
}


/* ==========================================================
 * BOTÓN -
 * ========================================================== */

.sytec-product-purchase-card__form
.sytec-single-qty {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 34px !important;

	width: 34px !important;
	height: 38px !important;

	min-width: 34px !important;
	min-height: 38px !important;

	padding: 0 !important;

	border: 0 !important;
	border-radius: 7px !important;

	background: #1647f5 !important;

	color: #fff !important;

	font-size: 16px;
	line-height: 1;
	font-weight: 700;

	cursor: pointer;
}


/* ==========================================================
 * INPUT CANTIDAD
 * Mucho más pequeño
 * ========================================================== */

.sytec-product-purchase-card__form .quantity {
	display: block !important;

	flex: 0 0 46px !important;

	width: 46px !important;
	min-width: 46px !important;
	max-width: 46px !important;

	height: 38px !important;
	min-height: 38px !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 7px !important;

	background: #fff !important;

	overflow: hidden;
}


.sytec-product-purchase-card__form
.quantity .qty {
	display: block !important;

	width: 46px !important;
	min-width: 46px !important;
	max-width: 46px !important;

	height: 38px !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 1px solid #cbdced !important;
	border-radius: 7px !important;

	background: #fff !important;

	font-size: 13px !important;
	line-height: 38px;
	font-weight: 700;

	text-align: center;

	color: #062f72;

	appearance: textfield;
	-moz-appearance: textfield;
}


.sytec-product-purchase-card__form
.quantity .qty::-webkit-inner-spin-button,
.sytec-product-purchase-card__form
.quantity .qty::-webkit-outer-spin-button {
	margin: 0;

	-webkit-appearance: none;
}


/* ==========================================================
 * BOTÓN AGREGAR
 * ========================================================== */

.sytec-product-purchase-card__form
.single_add_to_cart_button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	flex: 1 1 auto !important;

	width: auto !important;
	min-width: 0 !important;

	height: 38px !important;
	min-height: 38px !important;

	margin: 0 !important;
	padding: 0 12px !important;

	border: 0 !important;
	border-radius: 7px !important;

	background: #1647f5 !important;

	font-size: 12px !important;
	line-height: 1.1 !important;
	font-weight: 700 !important;

	white-space: nowrap !important;

	color: #fff !important;

	box-shadow: none !important;
}


.sytec-product-purchase-card__form
.single_add_to_cart_button:hover {
	background: #073fe3 !important;
}


/* ==========================================================
 * VER DETALLES
 * ========================================================== */

.sytec-product-details-button {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100% !important;

	min-height: 40px !important;

	margin: 0 !important;
	padding: 0 16px !important;

	border: 1px solid #1647f5 !important;
	border-radius: 8px !important;

	background: #fff !important;

	font-size: 12px;
	font-weight: 700;

	color: #1647f5 !important;
}


/* ==========================================================
 * MOBILE
 * ========================================================== */

@media (max-width: 480px) {

	.sytec-product-purchase-card {
		padding: 14px !important;
	}

	.sytec-product-purchase-card__form {
		padding: 7px !important;
	}

	.sytec-product-purchase-card__form
	.single_add_to_cart_button {
		font-size: 11px !important;
		padding-inline: 8px !important;
	}

}

/* Cantidad: centrar perfectamente el número */
.sytec-product-purchase-card__form .quantity {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	flex: 0 0 46px !important;

	width: 46px !important;
	min-width: 46px !important;
	max-width: 46px !important;

	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 7px !important;

	background: #fff !important;

	overflow: hidden !important;
}


/* Input numérico */
.sytec-product-purchase-card__form .quantity .qty {
	display: block !important;

	box-sizing: border-box !important;

	width: 46px !important;
	min-width: 46px !important;
	max-width: 46px !important;

	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 1px solid #cbdced !important;
	border-radius: 7px !important;

	background: #fff !important;

	font-size: 13px !important;
	line-height: 36px !important;
	font-weight: 700 !important;

	text-align: center !important;
	vertical-align: middle !important;

	color: #062f72 !important;

	appearance: textfield !important;
	-moz-appearance: textfield !important;
}


/* Quitar controles internos del navegador */
.sytec-product-purchase-card__form
.quantity .qty::-webkit-inner-spin-button,
.sytec-product-purchase-card__form
.quantity .qty::-webkit-outer-spin-button {
	margin: 0 !important;
	-webkit-appearance: none !important;
}


/* Firefox */
.sytec-product-purchase-card__form
.quantity input[type="number"] {
	-moz-appearance: textfield !important;
}

/* ==========================================================
 * ATRIBUTOS RÁPIDOS
 * Una línea por atributo
 * ========================================================== */

.sytec-product-quick-attributes {
	display: flex !important;
	flex-direction: column !important;

	width: 100%;

	margin: 16px 0 0 !important;
	padding: 0 !important;

	border: 1px solid #d6e4f4;
	border-radius: 12px;

	background: #f8fbff;

	overflow: hidden;
}


/* Cada fila */

.sytec-product-quick-attributes__item {
	display: grid !important;

	grid-template-columns: minmax(90px, 120px) minmax(0, 1fr);

	align-items: center;

	width: 100%;
	min-width: 0;

	padding: 10px 14px !important;

	margin: 0 !important;

	border: 0 !important;
	border-bottom: 1px solid #e2ebf5 !important;

	background: transparent !important;
}


.sytec-product-quick-attributes__item:last-child {
	border-bottom: 0 !important;
}


/* Label */

.sytec-product-quick-attributes dt {
	margin: 0 !important;
	padding: 0 !important;

	font-size: 11px;
	line-height: 1.3;
	font-weight: 600;

	color: #617695;

	white-space: nowrap;
}


/* Valor */

.sytec-product-quick-attributes dd {
	margin: 0 !important;
	padding: 0 !important;

	font-size: 13px;
	line-height: 1.35;
	font-weight: 700;

	color: #062f72;

	text-align: right;

	white-space: nowrap;

	overflow: hidden;
	text-overflow: ellipsis;
}


/* Mobile */

@media (max-width: 480px) {

	.sytec-product-quick-attributes__item {
		grid-template-columns: minmax(80px, 105px) minmax(0, 1fr);

		padding: 9px 12px !important;
	}

	.sytec-product-quick-attributes dt {
		font-size: 10px;
	}

	.sytec-product-quick-attributes dd {
		font-size: 12px;
	}

}

/* ==========================================================
 * DELIVERY CARD COMPACTA
 * ========================================================== */

.sytec-product-delivery {
	width: 100%;

	margin-top: 12px;

	padding: 12px;

	background: #f8fbff;

	border: 1px solid #d7e4f3;
	border-radius: 12px;
}


/* Cabecera */

.sytec-product-delivery__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;

	padding-bottom: 9px;
	margin-bottom: 4px;

	border-bottom: 1px solid #e5edf6;
}

.sytec-product-delivery__title {
	font-size: 11px !important;
	line-height: 1.2;
	font-weight: 700;

	color: #17345c;
}

.sytec-product-delivery__location {
	display: inline-flex;
	align-items: center;
	gap: 4px;

	font-size: 9px !important;
	line-height: 1.2;
	font-weight: 600;

	color: #1455ff;
}


/* Lista */

.sytec-product-delivery__list {
	display: flex;
	flex-direction: column;

	margin-top: 2px;
}


/* Cada método */

.sytec-product-delivery__item {
	display: grid;

	grid-template-columns: 22px minmax(0, 1fr) auto;

	align-items: center;
	gap: 8px;

	padding: 8px 0;

	border-bottom: 1px solid #e8eef6;

	background: transparent;
}

.sytec-product-delivery__item:last-child {
	border-bottom: 0;
}


/* Icono */

.sytec-product-delivery__icon {
	display: grid;
	place-items: center;

	width: 22px;
	height: 22px;

	border: 1px solid #d5e1ee;
	border-radius: 6px;

	background: #fff;

	font-size: 11px;
	line-height: 1;
}


/* Texto */

.sytec-product-delivery__content {
	display: flex;
	flex-direction: column;
	gap: 2px;

	min-width: 0;
}

.sytec-product-delivery__name {
	font-size: 10px !important;
	line-height: 1.25 !important;
	font-weight: 700;

	color: #1f334f;

	white-space: normal;
}

.sytec-product-delivery__description {
	font-size: 8.5px !important;
	line-height: 1.3 !important;

	color: #74859a;
}


/* Estado */

.sytec-product-delivery__status {
	display: flex;
	align-items: center;
	justify-content: flex-end;

	white-space: nowrap;
}

.sytec-product-delivery__badge {
	display: inline-flex;
	align-items: center;

	padding: 2px 6px;

	background: #eaf8ef;

	border-radius: 999px;

	font-size: 8px !important;
	line-height: 1;
	font-weight: 700;

	color: #17833c;
}

.sytec-product-delivery__price {
	font-size: 9px !important;
	line-height: 1.2;
	font-weight: 800;

	color: #062f72;
}


/* Footer */

.sytec-product-delivery__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;

	margin-top: 5px;
	padding-top: 8px;

	border-top: 1px solid #e5edf6;

	font-size: 9px !important;
	line-height: 1.2;
	font-weight: 700;

	color: #1455ff;
}

/* ==========================================================
 * MEDIOS DE PAGO - CARD COMPACTA
 * ========================================================== */

.sytec-product-purchase-card__payments {
	display: flex;
	flex-direction: column;
	gap: 10px;

	width: 100%;

	margin-top: 12px;
	padding: 12px;

	background: #f8fbff;

	border: 1px solid #d7e4f3;
	border-radius: 12px;
}


/* Header */

.sytec-product-purchase-card__payments-header {
	display: flex;
	align-items: center;
	gap: 8px;

	padding-bottom: 9px;

	border-bottom: 1px solid #e5edf6;
}

.sytec-product-purchase-card__payments-icon {
	display: grid;
	place-items: center;

	width: 24px;
	height: 24px;

	flex: 0 0 24px;

	background: #fff;

	border: 1px solid #d5e1ee;
	border-radius: 6px;

	font-size: 11px;
	line-height: 1;
}

.sytec-product-purchase-card__section-title {
	font-size: 11px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;

	color: #17345c !important;
}


/* Caja de imagen */

.sytec-product-purchase-card__payment-media {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;

	padding: 10px 12px;

	background: #fff;

	border: 1px solid #e1eaf5;
	border-radius: 9px;
}


/* Imagen */

.sytec-product-purchase-card__payment-media img {
	display: block;

	width: 100%;
	max-width: 210px;
	height: auto;
	max-height: 42px;

	object-fit: contain;
}


/* Texto informativo */

.sytec-product-purchase-card__payment-note {
	margin: 0 !important;

	font-size: 9px !important;
	line-height: 1.4 !important;

	color: #74859a !important;
}

/* ==========================================================
 * CART ITEM - RESUMEN COMPACTO
 * ========================================================== */

.sytec-cart-item-summary {
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	gap: 12px;

	width: 100%;
	margin-top: 10px;
}


/* 100 × $9.800 */

.sytec-cart-item-summary__calc {
	display: inline-flex;
	align-items: center;
	gap: 5px;

	font-size: 13px;
	line-height: 1.2;
	color: #23416f;
	white-space: nowrap;
}

.sytec-cart-item-summary__quantity,
.sytec-cart-item-summary__unit-price {
	font-weight: 700;
	color: #0b43a0;
}

.sytec-cart-item-summary__times {
	opacity: 0.55;
}


/* $980.000 */

.sytec-cart-item-summary__subtotal {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 28px;
	padding: 5px 10px;

	border: 1px solid #d6e4f5;
	border-radius: 8px;

	background: #f4f8fd;

	font-size: 13px;
	font-weight: 800;
	color: #082f73;

	white-space: nowrap;
}


/* espacio flexible */

.sytec-cart-item-summary__spacer {
	min-width: 10px;
}


/* eliminar */

.sytec-cart-item-summary__remove {
	padding: 0;

	border: 0;
	background: transparent;

	font: inherit;
	font-size: 13px;
	font-weight: 500;

	color: #385c99;

	text-decoration: underline;
	text-underline-offset: 3px;

	cursor: pointer;
}

.sytec-cart-item-summary__remove:hover {
	color: #083d91;
}


/* Ocultamos solamente el link visual original.
 * Sigue presente para que WooCommerce mantenga su lógica.
 */

.sytec-commerce-flow--cart
.wc-block-cart-item__remove-link {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}


/* móvil */

@media (max-width: 600px) {

	.sytec-cart-item-summary {
		grid-template-columns: 1fr auto;
		gap: 8px 12px;
	}

	.sytec-cart-item-summary__spacer {
		display: none;
	}

	.sytec-cart-item-summary__remove {
		justify-self: end;
	}
}


/* =========================================================
 * PRICEPEP / RIGHTPRESS
 * Integración visual con Purchase Card SYTEC
 * ========================================================= */

.sytec-product-purchase-card__form {
	--sytec-promo-border: #d7e4f5;
	--sytec-promo-bg: #f8fbff;
	--sytec-promo-title: #07367e;
	--sytec-promo-text: #344054;
	--sytec-promo-accent: #124dff;
}


/* ---------------------------------------------------------
 * BANNER / NOTA
 * --------------------------------------------------------- */

.sytec-product-purchase-card__form
#rp_wcdpd_promotion_product_banners_container {
	width: 100%;
	margin: 8px 0;
	padding: 0;
	opacity: 1 !important;
}

.sytec-product-purchase-card__form
.rp_wcdpd_promotion_product_banners_banner {
	display: flex;
	align-items: flex-start;
	gap: 8px;

	width: 100%;
	padding: 9px 10px;

	border: 1px solid var(--sytec-promo-border);
	border-radius: 10px;

	background: var(--sytec-promo-bg);

	box-shadow: none;
}


/* Título "Nota!" */

.sytec-product-purchase-card__form
.rp_wcdpd_promotion_product_banners_banner_title {
	flex: 0 0 auto;

	margin: 0;
	padding: 2px 6px;

	border-radius: 5px;

	background: #eef4ff;

	color: var(--sytec-promo-accent);

	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
}


/* Contenedor mensaje */

.sytec-product-purchase-card__form
.rp_wcdpd_promotion_product_banners_banner_content_container {
	flex: 1;
	min-width: 0;

	margin: 0;
	padding: 0;
}


/* Texto promocional */

.sytec-product-purchase-card__form
.rp_wcdpd_promotion_product_banners_banner_content {
	margin: 0;
	padding: 1px 0 0;

	color: var(--sytec-promo-text);

	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
}


/* ---------------------------------------------------------
 * PRICE LIVE UPDATE
 * --------------------------------------------------------- */

.sytec-product-purchase-card__form
.rightpress_product_price_live_update {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px 12px;

	width: 100%;
	margin: 8px 0;
	padding: 10px;

	border: 1px solid var(--sytec-promo-border);
	border-radius: 10px;

	background: #fff;

	color: var(--sytec-promo-text);
}


/* Reset dt / dd */

.sytec-product-purchase-card__form
.rightpress_product_price_live_update dt,
.sytec-product-purchase-card__form
.rightpress_product_price_live_update dd {
	margin: 0;
	padding: 0;
}


/* Texto "Cada 3 productos..." */

.sytec-product-purchase-card__form
.rightpress_product_price_live_update_label {
	display: block;

	color: var(--sytec-promo-title);

	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
}


/* Zona precios */

.sytec-product-purchase-card__form
.rightpress_product_price_live_update_price {
	display: block;

	color: var(--sytec-promo-title);

	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
}


/* Breakdown */

.sytec-product-purchase-card__form
.rightpress_product_price_breakdown {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
}


/* Cada fila precio × cantidad */

.sytec-product-purchase-card__form
.rightpress_product_price_breakdown_row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;

	white-space: nowrap;
}


/* Precio */

.sytec-product-purchase-card__form
.rightpress_product_price_breakdown_price {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}


/* Cantidad */

.sytec-product-purchase-card__form
.rightpress_product_price_breakdown_quantity {
	color: #667085;

	font-size: 10px;
	font-weight: 500;
}


/* Subtotal calculado */

.sytec-product-purchase-card__form
.rightpress_product_price_breakdown_subtotal {
	margin-top: 4px;
	padding-top: 5px;

	border-top: 1px solid #e7edf5;

	color: var(--sytec-promo-title);

	font-size: 12px;
	font-weight: 800;
	text-align: right;
}


/* Precio WooCommerce interno */

.sytec-product-purchase-card__form
.rightpress_product_price_live_update
.woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}


/* Clear generado por RightPress */

.sytec-product-purchase-card__form
.rightpress_clear_both {
	display: none;
}


/* ---------------------------------------------------------
 * Separación con stock y formulario
 * --------------------------------------------------------- */

.sytec-product-purchase-card__form > .stock {
	margin-bottom: 8px;
}

.sytec-product-purchase-card__form > form.cart {
	margin-top: 10px;
}


/* ---------------------------------------------------------
 * MOBILE
 * --------------------------------------------------------- */

@media (max-width: 767px) {

	.sytec-product-purchase-card__form
	.rightpress_product_price_live_update {
		grid-template-columns: 1fr auto;
		gap: 6px 10px;

		padding: 8px 9px;
	}

	.sytec-product-purchase-card__form
	.rp_wcdpd_promotion_product_banners_banner {
		padding: 8px 9px;
	}

	.sytec-product-purchase-card__form
	.rightpress_product_price_live_update_label,
	.sytec-product-purchase-card__form
	.rp_wcdpd_promotion_product_banners_banner_content {
		font-size: 10px;
	}
}