/* ============================================================
   Scientec Cotizaciones - Frontend (diseño moderno)
   ============================================================ */

/* --- Botones --- */
.scq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}

.scq-btn:active {
	transform: translateY(1px);
}

.scq-btn-primary {
	background: #1d4ed8;
	color: #ffffff;
	border-color: #1d4ed8;
}

.scq-btn-primary:hover {
	background: #1e40af;
	color: #ffffff;
}

.scq-btn-ghost {
	background: #ffffff;
	color: #374151;
	border-color: #e5e7eb;
}

.scq-btn-ghost:hover {
	background: #f3f4f6;
	color: #111827;
	border-color: #d1d5db;
}

.scq-btn-danger {
	color: #b91c1c;
	border-color: #fecaca;
}

.scq-btn-danger:hover {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fca5a5;
}

.scq-btn-block {
	width: 100%;
}

/* --- Botón "Solicitar cotización" (página de producto y loop) --- */
.scq-wrap {
	margin-top: 10px;
}

.scq-button,
.scq-loop-button,
button.scq-button,
button.scq-loop-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-direction: row !important;
	gap: 6px;
	padding: 11px 18px !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	text-decoration: none !important;
	border: 1px solid transparent !important;
	background: #001680 !important;
	color: #ffffff !important;
	width: auto !important;
	height: auto !important;
	text-indent: 0 !important;
	overflow: visible !important;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* Anula cualquier icono/pseudo-elemento del tema que desplace el texto. */
.scq-button::before,
.scq-loop-button::before,
.scq-button::after,
.scq-loop-button::after {
	content: none !important;
	display: none !important;
}

.scq-button:hover,
.scq-loop-button:hover,
button.scq-button:hover,
button.scq-loop-button:hover {
	background: #0020a0 !important;
	color: #ffffff !important;
	border-color: #0020a0 !important;
}

.scq-loop-button {
	margin-top: 8px;
}

.scq-button.scq-in-list,
.scq-loop-button.scq-in-list {
	background: #16a34a !important;
	color: #ffffff !important;
	border-color: #16a34a !important;
}

/* --- Página --- */
.scq-page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 16px 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #111827;
}

/* Banner de éxito al enviar solicitud */
.scq-success-banner {
	display: flex !important;
	align-items: flex-start !important;
	gap: 16px !important;
	padding: 20px 24px !important;
	background: #ecfdf5 !important;
	border: 1px solid #a7f3d0 !important;
	border-radius: 16px !important;
	margin-bottom: 24px !important;
	color: #065f46 !important;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important;
}

/* Banner de error al enviar solicitud */
.scq-error-banner {
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	padding: 14px 18px !important;
	background: #fef2f2 !important;
	border: 1px solid #fecaca !important;
	border-radius: 12px !important;
	margin-bottom: 18px !important;
	color: #b91c1c !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.scq-error-banner strong {
	color: #991b1b !important;
}

.scq-success-icon {
	font-size: 28px !important;
	color: #10b981 !important;
	line-height: 1 !important;
	padding-top: 2px !important;
}

.scq-success-text h3 {
	margin: 0 0 4px 0 !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	color: #064e3b !important;
}

.scq-success-text p {
	margin: 0 !important;
	font-size: 14px !important;
	color: #047857 !important;
	line-height: 1.5 !important;
}

/* --- Cabecera --- */
.scq-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.scq-title {
	font-size: 24px;
	font-weight: 800;
	margin: 0;
	color: #0f172a;
}

.scq-subtitle {
	margin: 4px 0 0;
	color: #6b7280;
	font-size: 14px;
}

.scq-header-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* --- Layout de dos columnas --- */
.scq-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 20px;
	align-items: start;
}

@media (max-width: 900px) {
	.scq-layout {
		grid-template-columns: 1fr;
	}
}

/* --- Items (productos) --- */
.scq-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.scq-item {
	display: grid;
	grid-template-columns: 72px 1fr auto auto auto;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

@media (max-width: 640px) {
	.scq-item {
		grid-template-columns: 56px 1fr auto;
		row-gap: 10px;
	}
	.scq-item-qty,
	.scq-item-line {
		grid-column: 2;
	}
}

.scq-item-thumb {
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f4f6;
	border: 1px solid #eef0f3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scq-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.scq-item-thumb-ph {
	font-size: 26px;
}

.scq-item-name {
	font-weight: 600;
	font-size: 14px;
	color: #0f172a;
	line-height: 1.35;
}

.scq-item-sku {
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
}

.scq-qty-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #9ca3af;
	margin-bottom: 4px;
	font-weight: 600;
}

.scq-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #f9fafb;
}

.scq-step {
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: #374151;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .12s ease;
}

.scq-step:hover {
	background: #e5e7eb;
}

.scq-qty {
	width: 46px;
	height: 34px;
	border: 0;
	border-left: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
	background: #ffffff;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	color: #111827;
	-moz-appearance: textfield;
	appearance: textfield;
}

.scq-qty::-webkit-outer-spin-button,
.scq-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.scq-line-total {
	font-weight: 700;
	font-size: 15px;
	color: #0f172a;
	white-space: nowrap;
}

.scq-item-remove .scq-remove {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid #fecaca;
	background: #fff;
	color: #b91c1c;
	font-size: 14px;
	cursor: pointer;
	transition: background-color .12s ease, color .12s ease;
}

.scq-item-remove .scq-remove:hover {
	background: #fef2f2;
	color: #991b1b;
}

/* --- Columna lateral --- */
.scq-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 16px;
}

@media (max-width: 900px) {
	.scq-side {
		position: static;
	}
}

.scq-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.scq-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.scq-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	font-size: 14px;
	color: #374151;
	border-bottom: 1px dashed #f0f1f3;
}

.scq-summary-row:last-child {
	border-bottom: 0;
}

.scq-summary-total {
	font-weight: 700;
	color: #0f172a;
	border-bottom: 0;
	padding-top: 10px;
	font-size: 15px;
}

.scq-summary-amount {
	color: #1d4ed8;
}

/* --- Formulario --- */
.scq-field {
	margin-bottom: 12px;
}

.scq-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
}

.scq-field input,
.scq-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.scq-field input:focus,
.scq-field textarea:focus {
	outline: none;
	border-color: #1d4ed8;
	box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}

.scq-field textarea {
	resize: vertical;
}

.scq-note {
	font-size: 12px;
	color: #9ca3af;
	text-align: center;
	margin: 10px 0 0;
}

/* --- Flujo RIF --- */
.scq-phase[hidden] {
	display: none !important;
}

.scq-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media (max-width: 480px) {
	.scq-field-row {
		grid-template-columns: 1fr;
	}
}

.scq-readonly {
	background: #f3f4f6 !important;
	color: #6b7280;
	cursor: not-allowed;
}

.scq-customer-ok {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	margin-bottom: 14px;
	border-radius: 10px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.scq-customer-ok-icon {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.scq-customer-ok strong {
	display: block;
	color: #15803d;
	font-size: 13px;
}

.scq-customer-name {
	color: #374151;
	font-size: 13px;
}

/* --- Estado vacío --- */
.scq-empty {
	text-align: center;
	padding: 60px 20px;
	background: #ffffff;
	border: 1px dashed #d1d5db;
	border-radius: 16px;
}

.scq-empty-icon {
	font-size: 44px;
	margin-bottom: 8px;
}

.scq-empty h3 {
	margin: 0 0 6px;
	font-size: 20px;
	color: #0f172a;
}

.scq-empty p {
	margin: 0 auto 18px;
	max-width: 380px;
	color: #6b7280;
	font-size: 14px;
}

/* --- Botón del producto individual --- */
.scq-wrap {
	margin: 14px 0;
}

.scq-button {
	display: inline-block;
	padding: 12px 20px;
	background: #001680;
	color: #ffffff;
	border: 1px solid #001680;
	border-radius: 10px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s ease;
}

.scq-button:hover {
	background: #0020a0;
	color: #ffffff;
}

.scq-button.scq-in-list {
	background: #15803d;
	border-color: #15803d;
	cursor: default;
}

.scq-loop-button {
	display: inline-block;
	margin-left: 8px;
	padding: 10px 16px;
	background: #001680;
	color: #fff;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.scq-loop-button:hover {
	background: #0020a0;
	color: #fff;
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.scq-toast-container {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.scq-toast {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 280px;
	max-width: 380px;
	padding: 14px 18px;
	background: #1e293b;
	color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transform: translateX(120%);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.scq-toast.scq-toast-show {
	transform: translateX(0);
	opacity: 1;
}

.scq-toast.scq-toast-hide {
	transform: translateX(120%);
	opacity: 0;
}

.scq-toast-icon {
	font-size: 18px;
	flex-shrink: 0;
}

.scq-toast-success .scq-toast-icon {
	color: #10b981;
}

.scq-toast-warning .scq-toast-icon {
	color: #f59e0b;
}

.scq-toast-error .scq-toast-icon {
	color: #ef4444;
}

.scq-toast-msg {
	flex: 1;
	font-weight: 500;
}

.scq-toast-close {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.15s ease;
}

.scq-toast-close:hover {
	color: #ffffff;
}

/* ============================================================
   Side Drawer Cart (Panel Lateral Derecho)
   ============================================================ */
body.scq-drawer-open {
	overflow: hidden !important;
}

.scq-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(3px);
	z-index: 999990;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scq-drawer-overlay.scq-drawer-active {
	opacity: 1;
	visibility: visible;
}

.scq-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 380px;
	max-width: 90vw;
	height: 100vh;
	background: #ffffff;
	z-index: 999995;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.scq-drawer.scq-drawer-active {
	transform: translateX(0);
}

.scq-drawer-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

.scq-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.scq-drawer-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.scq-drawer-title i {
	color: #1d4ed8;
	font-size: 18px;
}

.scq-drawer-badge {
	background: #1d4ed8;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 20px;
}

.scq-drawer-close {
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.scq-drawer-close:hover {
	color: #0f172a;
	background: #e2e8f0;
}

.scq-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.scq-drawer-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 100%;
	color: #64748b;
	padding: 40px 20px;
}

.scq-drawer-empty-icon {
	font-size: 48px;
	margin-bottom: 12px;
	color: #cbd5e1;
}

.scq-drawer-empty h4 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
}

.scq-drawer-empty p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.scq-drawer-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.scq-drawer-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	position: relative;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scq-drawer-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.scq-drawer-item-img {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scq-drawer-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.scq-drawer-item-noimg {
	color: #94a3b8;
	font-size: 20px;
}

.scq-drawer-item-info {
	flex: 1;
	min-width: 0;
}

.scq-drawer-item-name {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 2px;
}

.scq-drawer-item-sku {
	font-size: 11px;
	color: #64748b;
	margin-bottom: 4px;
}

.scq-drawer-item-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
}

.scq-drawer-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	overflow: hidden;
	height: 28px;
}

.scq-drawer-step {
	width: 26px;
	height: 100%;
	background: #f8fafc;
	border: none;
	font-weight: 700;
	font-size: 14px;
	color: #334155;
	cursor: pointer;
	transition: background-color 0.12s ease;
}

.scq-drawer-step:hover {
	background: #e2e8f0;
}

.scq-drawer-qty {
	width: 32px;
	height: 100%;
	border: none;
	border-left: 1px solid #cbd5e1;
	border-right: 1px solid #cbd5e1;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	background: #ffffff;
}

.scq-drawer-item-price {
	font-size: 14px;
	font-weight: 700;
	color: #1d4ed8;
}

.scq-drawer-remove {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	transition: color 0.15s ease;
	align-self: flex-start;
}

.scq-drawer-remove:hover {
	color: #ef4444;
}

.scq-drawer-footer {
	padding: 18px 20px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.scq-drawer-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	color: #475569;
}

.scq-drawer-summary-row strong {
	font-size: 16px;
	color: #0f172a;
}

.scq-drawer-checkout {
	font-size: 14px;
	padding: 12px;
}

/* ============================================================
   Diseño Estético Tienda 2026 (Scientec Modern Shop UX)
   ============================================================ */

/* --- Ocultar precios nulos / vacíos ($0.00) en toda la tienda --- */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.cart-total,
.my-cart-wrap .cart-total {
	display: none !important;
}

/* --- Encabezado y buscador --- */
.search-wrapper .header-search-box {
	border-radius: 30px !important;
	border: 1px solid #cbd5e1 !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
	transition: all 0.25s ease !important;
	overflow: hidden;
}

.search-wrapper .header-search-box:focus-within {
	border-color: #0284c7 !important;
	box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
}

.search-wrapper .header-search-box input[type="search"],
.search-wrapper .header-search-box input[type="text"] {
	padding: 10px 18px !important;
	font-size: 14px !important;
	border: none !important;
}

.search-wrapper .header-search-box button[type="submit"] {
	background: #0284c7 !important;
	color: #ffffff !important;
	border-radius: 0 30px 30px 0 !important;
	transition: background 0.2s ease !important;
}

.search-wrapper .header-search-box button[type="submit"]:hover {
	background: #0369a1 !important;
}

/* Cart / Cotización badge en el header */
.cart-wrapper .estore-cart-views {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 30px;
	transition: all 0.2s ease;
}

.cart-wrapper .estore-cart-views:hover {
	border-color: #0284c7;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.wcmenucart-contents {
	position: relative;
	color: #0284c7 !important;
	font-size: 18px !important;
}

.wcmenucart-contents .cart-value {
	background: #0284c7 !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	padding: 2px 7px !important;
	border-radius: 20px !important;
}

.my-cart-wrap .my-cart {
	font-weight: 700 !important;
	color: #0f172a !important;
	font-size: 13px !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* --- Breadcrumbs --- */
.woocommerce-breadcrumb {
	font-size: 13px !important;
	color: #64748b !important;
	margin-bottom: 24px !important;
	padding: 10px 16px !important;
	background: #f8fafc !important;
	border-radius: 10px !important;
	border: 1px solid #f1f5f9 !important;
}

.woocommerce-breadcrumb a {
	color: #0284c7 !important;
	text-decoration: none !important;
	font-weight: 500;
}

.woocommerce-breadcrumb a:hover {
	text-decoration: underline !important;
}

/* --- Rejilla de productos (Catalog & Shop Grid) --- */
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
	gap: 24px !important;
	margin: 24px 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
}

.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 18px !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 18px !important;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-5px) !important;
	box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.12) !important;
	border-color: #cbd5e1 !important;
}

.woocommerce ul.products li.product a img {
	width: 100% !important;
	height: 200px !important;
	object-fit: contain !important;
	border-radius: 12px !important;
	margin-bottom: 14px !important;
	transition: transform 0.35s ease !important;
}

.woocommerce ul.products li.product:hover a img {
	transform: scale(1.04) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.4 !important;
	margin: 8px 0 12px !important;
	min-height: 42px;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .scq-loop-button {
	background: #001680 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 11px 16px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-align: center !important;
	width: 100% !important;
	box-shadow: 0 4px 12px rgba(0, 22, 128, 0.2) !important;
	transition: all 0.2s ease !important;
	margin-top: 10px !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .scq-loop-button:hover {
	background: #0020a0 !important;
	box-shadow: 0 6px 16px rgba(0, 22, 128, 0.35) !important;
	transform: translateY(-1px) !important;
}

/* --- Página de producto individual --- */
.single-product .product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.06);
	margin-bottom: 40px;
}

@media (max-width: 768px) {
	.single-product .product {
		grid-template-columns: 1fr;
		padding: 20px;
	}
}

.single-product .product .product_title {
	font-size: 26px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	line-height: 1.3 !important;
	margin-bottom: 16px !important;
}

.single-product .product .product_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0;
	padding: 14px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	font-size: 13px;
	color: #475569;
}

.single-product .product .product_meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	padding: 4px 10px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	font-weight: 600;
}

.single-product .product .product_meta a {
	color: #0284c7;
	text-decoration: none;
}

.single-product .product .quantity input.qty {
	border-radius: 10px !important;
	border: 1px solid #cbd5e1 !important;
	padding: 8px 12px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
}

/* Tablas de descripción y especificaciones */
.woocommerce-tabs,
.single-product .entry-content table,
.woocommerce-tabs table.shop_attributes {
	border-collapse: separate !important;
	border-spacing: 0 !important;
	width: 100% !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	margin: 20px 0 !important;
}

.single-product .entry-content table th,
.single-product .entry-content table td,
.woocommerce-tabs table.shop_attributes th,
.woocommerce-tabs table.shop_attributes td {
	padding: 12px 16px !important;
	border-bottom: 1px solid #f1f5f9 !important;
	font-size: 14px !important;
	color: #334155 !important;
}

.single-product .entry-content table th,
.woocommerce-tabs table.shop_attributes th {
	background: #f8fafc !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	text-align: left !important;
}

.single-product .entry-content table tr:last-child td,
.single-product .entry-content table tr:last-child th {
	border-bottom: none !important;
}

.single-product .entry-content table tr:nth-child(even) {
	background-color: #f8fafc;
}

/* ============================================================
   Ajuste de Imágenes y Centrado Perfecto (Single & Catalog)
   ============================================================ */

/* Rejilla de Tienda / Catálogo (Loop) */
.woocommerce ul.products li.product figure.products-img,
.woocommerce ul.products li.product .products-img,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .product-img {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 220px !important;
	margin: 0 auto 14px auto !important;
	padding: 8px !important;
	position: relative !important;
	overflow: hidden !important;
	background: #ffffff !important;
	border-radius: 14px !important;
	border: 1px solid #f1f5f9 !important;
	float: none !important;
	box-sizing: border-box !important;
}

.woocommerce ul.products li.product figure.products-img a,
.woocommerce ul.products li.product .products-img a {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	float: none !important;
}

/* ÚNICAMENTE mostrar la primera imagen principal por producto en los listados */
.woocommerce ul.products li.product figure.products-img a img:first-of-type,
.woocommerce ul.products li.product .products-img a img:first-of-type,
.woocommerce ul.products li.product > a:first-of-type img:first-of-type {
	max-width: 100% !important;
	max-height: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	object-position: center !important;
	margin: 0 auto !important;
	display: block !important;
	float: none !important;
}

/* Ocultar imágenes secundarias o de galería en las tarjetas del catálogo/relacionados */
.woocommerce ul.products li.product img:nth-of-type(n+2),
.woocommerce ul.products li.product a ~ a img,
.woocommerce ul.products li.product .thumbnails,
.woocommerce ul.products li.product .products-hover-wrapper {
	display: none !important;
}

/* Ocultar etiquetas <a> vacías redundantes que desequilibran el contenedor */
.woocommerce ul.products li.product a:empty,
.woocommerce ul.products li.product figure.products-img a:empty,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:empty {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	position: absolute !important;
	pointer-events: none !important;
}

/* Página de producto individual - Centrado absoluto de la imagen */
.single-product .product div.images,
.single-product .product .woocommerce-product-gallery,
.single-product .product .images,
.single-product .product div.images .woocommerce-product-gallery__wrapper,
.single-product .product div.images figure.woocommerce-product-gallery__wrapper,
.single-product .product div.images .woocommerce-product-gallery__image,
.single-product .product div.images figure.woocommerce-product-gallery__image,
.single-product .product div.images .woocommerce-main-image,
.single-product .product div.images figure.products-img,
.single-product .product div.images a {
	float: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}

.single-product .product .summary,
.single-product .product .entry-summary {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

.single-product .product .summary > *,
.single-product .product .entry-summary > * {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.single-product .product .product_title,
.single-product .product h1.product_title {
	width: 100% !important;
	max-width: 100% !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
}

/* Ajuste de Contenedor Dinámico y Meta Datos (SKU, Categorías, Tags) */
.single-product .product,
.single-product .product .summary,
.single-product .product .entry-summary {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	box-sizing: border-box !important;
}

.single-product .product .product_meta {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	margin-top: 20px !important;
	padding: 16px !important;
	background: #f8fafc !important;
	border-radius: 12px !important;
	border: 1px solid #e2e8f0 !important;
	box-sizing: border-box !important;
	overflow: visible !important;
	word-break: break-word !important;
}

.single-product .product .product_meta > span {
	display: block !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
	color: #64748b !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
}

.single-product .product .product_meta span.sku_wrapper .sku {
	font-family: monospace !important;
	font-weight: 700 !important;
	color: #0f172a !important;
}

.single-product .product .product_meta a {
	color: #2563eb !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	display: inline-block !important;
	word-break: break-word !important;
}

.single-product .product .product_meta a:hover {
	text-decoration: underline !important;
}

.single-product .product div.images .woocommerce-product-gallery__image,
.single-product .product div.images figure.woocommerce-product-gallery__image,
.single-product .product div.images .woocommerce-main-image,
.single-product .product div.images figure.products-img {
	width: 100% !important;
	height: 380px !important;
	background: #ffffff !important;
	border-radius: 16px !important;
	border: 1px solid #e2e8f0 !important;
	overflow: hidden !important;
	margin: 0 0 14px 0 !important;
	padding: 12px !important;
}

/* NOTA: se excluye .zoomImg porque esa es la imagen que inserta el zoom de WooCommerce
   a tamaño completo; si se le aplican max-width/max-height 100% el zoom muestra la
   imagen completa y no amplía el trozo bajo el cursor. */
.single-product .product div.images img:not(.zoomImg),
.single-product .product .woocommerce-product-gallery img:not(.zoomImg) {
	max-width: 100% !important;
	max-height: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	object-position: center !important;
	display: block !important;
	margin: 0 auto !important;
	float: none !important;
}

/* Limpieza de productos relacionados */
.related.products ul.products,
.up-sells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
	gap: 20px !important;
	margin: 20px 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
