/**
 * Custom Shopify Headless for Elementor — Base Minimal Styles (CSS Reset)
 * Diseñado con baja especificidad para permitir control visual total desde la pestaña Estilo de Elementor.
 */

.csh-widget-notice {
	padding: 12px 16px;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	font-size: 0.9rem;
	color: #475569;
	background-color: #f8fafc;
}

/* Título y Descripción */
.csh-product-vendor {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.75;
	margin-bottom: 6px;
}

.csh-product-title {
	margin: 0 0 12px 0;
	line-height: 1.2;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.csh-product-description {
	line-height: 1.6;
	transition: color 0.2s ease;
}

/* Galería de Imágenes */
.csh-product-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.csh-product-gallery-main {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.csh-gallery-featured-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.12s ease-out;
}

.csh-product-gallery[data-csh-zoom-mode="hover"] .csh-product-gallery-main,
.csh-product-gallery[data-csh-zoom-mode="both"] .csh-product-gallery-main,
.csh-product-gallery[data-csh-zoom-mode="lightbox"] .csh-product-gallery-main {
	cursor: zoom-in;
}

button.csh-gallery-lightbox-trigger,
button.csh-gallery-lightbox-trigger:hover,
button.csh-gallery-lightbox-trigger:focus {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 4;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(17, 24, 39, 0.12);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.9);
	color: #111827;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

button.csh-gallery-lightbox-trigger:hover {
	transform: scale(1.08);
	background-color: #ffffff;
}

/* Lightbox Modal a Pantalla Completa */
.csh-lightbox-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.csh-lightbox-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.csh-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(10, 10, 10, 0.92);
}

button.csh-lightbox-close,
button.csh-lightbox-close:hover,
button.csh-lightbox-close:focus {
	position: absolute;
	top: 20px;
	right: 24px;
	z-index: 10;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.csh-lightbox-stage {
	position: relative;
	z-index: 5;
	max-width: 92vw;
	max-height: 90vh;
	overflow: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.csh-lightbox-img {
	display: block;
	max-width: 90vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform 0.25s ease;
}

.csh-lightbox-modal.is-deep-zoom .csh-lightbox-img {
	transform: scale(1.85);
	cursor: zoom-out;
}

.csh-gallery-thumbnails {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

button.csh-gallery-thumb-btn {
	padding: 0;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	overflow: hidden;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

button.csh-gallery-thumb-btn:hover,
button.csh-gallery-thumb-btn:focus {
	background: transparent;
	color: inherit;
	border-color: #111827;
}

.csh-gallery-thumb-btn img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.csh-gallery-thumb-btn.is-active {
	border-color: #111827;
	opacity: 1;
}

/* Precio y Disponibilidad */
.csh-product-price-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.csh-price-current {
	font-weight: 700;
	font-size: 1.5rem;
}

.csh-price-compare {
	opacity: 0.6;
	text-decoration: line-through;
	font-size: 1.1rem;
}

.csh-price-compare.is-hidden {
	display: none;
}

.csh-stock-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
}

.csh-stock-badge.is-in-stock {
	background-color: #dcfce7;
	color: #166534;
}

.csh-stock-badge.is-out-of-stock {
	background-color: #fee2e2;
	color: #991b1b;
}

/* Selector de Variantes */
.csh-option-group {
	margin-bottom: 16px;
}

.csh-option-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.csh-option-label-value {
	font-weight: 400;
	margin-left: 4px;
}

.csh-variant-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

button.csh-variant-pill {
	padding: 8px 16px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background-color: #ffffff;
	color: #111827;
	cursor: pointer;
	transition: all 0.2s ease;
}

button.csh-variant-pill:hover:not(:disabled),
button.csh-variant-pill:focus:not(:disabled) {
	border-color: #111827;
	background-color: #f3f4f6;
	color: #111827;
}

button.csh-variant-pill.is-selected,
button.csh-variant-pill.is-selected:hover,
button.csh-variant-pill.is-selected:focus {
	border-color: #111827;
	background-color: #111827;
	color: #ffffff;
}

button.csh-variant-pill.is-unavailable {
	opacity: 0.45;
	text-decoration: line-through;
}

.csh-variant-select {
	width: 100%;
	max-width: 320px;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	background-color: #ffffff;
}

/* Añadir al Carrito */
.csh-atc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.csh-qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background-color: #ffffff;
	overflow: hidden;
}

button.csh-qty-btn,
button.csh-qty-btn:hover,
button.csh-qty-btn:focus {
	width: 38px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #111827;
	cursor: pointer;
	font-size: 1.1rem;
	transition: all 0.2s ease;
}

.csh-qty-control input[type="number"].csh-qty-input,
.csh-qty-control input[type="number"].csh-qty-input:focus {
	width: 52px;
	padding: 4px 0;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	color: #111827;
	text-align: center;
	font-weight: 600;
	-moz-appearance: textfield;
}

.csh-qty-input::-webkit-outer-spin-button,
.csh-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

button.csh-add-to-cart-btn,
input[type="submit"].csh-add-to-cart-btn {
	flex: 1 1 auto;
	padding: 12px 24px;
	border: 1px solid #111827;
	border-radius: 4px;
	background-color: #111827;
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

button.csh-add-to-cart-btn:hover:not(:disabled),
button.csh-add-to-cart-btn:focus:not(:disabled) {
	border-color: #374151;
	background-color: #374151;
	color: #ffffff;
}

button.csh-add-to-cart-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.csh-atc-feedback {
	margin-top: 8px;
	font-size: 0.875rem;
	color: #dc2626;
}

/* Carrito Desplegable (Drawer) */
button.csh-cart-trigger-btn,
a.csh-cart-trigger-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid #111827;
	border-radius: 4px;
	background-color: #111827;
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

button.csh-cart-trigger-btn:hover,
button.csh-cart-trigger-btn:focus,
a.csh-cart-trigger-btn:hover,
a.csh-cart-trigger-btn:focus {
	border-color: #374151;
	background-color: #374151;
	color: #ffffff;
	text-decoration: none;
}

.csh-cart-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.2);
	font-size: 0.8rem;
	font-weight: 700;
}

.csh-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	pointer-events: none;
	visibility: hidden;
}

.csh-cart-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.csh-cart-drawer-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(15, 23, 42, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.csh-cart-drawer.is-open .csh-cart-drawer-backdrop {
	opacity: 1;
}

.csh-cart-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 420px;
	background-color: #ffffff;
	color: #111827;
	display: flex;
	flex-direction: column;
	padding: 24px;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.csh-cart-drawer.is-open .csh-cart-drawer-panel {
	transform: translateX(0);
}

.csh-cart-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.csh-cart-drawer-title {
	margin: 0;
	font-size: 1.25rem;
}

button.csh-cart-close-btn,
button.csh-cart-close-btn:hover,
button.csh-cart-close-btn:focus {
	background: transparent;
	border: 0;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 0 4px;
}

.csh-cart-drawer-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px 0;
}

.csh-cart-items-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.csh-cart-item {
	display: flex;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.csh-cart-item-thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
}

.csh-cart-item-info {
	flex: 1 1 auto;
}

.csh-cart-item-title {
	margin: 0 0 4px 0;
	font-size: 0.95rem;
}

.csh-cart-item-variant {
	margin: 0 0 4px 0;
	font-size: 0.82rem;
	opacity: 0.75;
}

.csh-cart-item-price {
	margin: 0 0 8px 0;
	font-weight: 600;
	font-size: 0.9rem;
}

.csh-cart-item-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

button.csh-cart-line-qty-btn,
button.csh-cart-line-qty-btn:hover,
button.csh-cart-line-qty-btn:focus {
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #ffffff;
	color: #111827;
	cursor: pointer;
}

button.csh-cart-line-remove-btn,
button.csh-cart-line-remove-btn:hover,
button.csh-cart-line-remove-btn:focus {
	margin-left: auto;
	padding: 0;
	background: transparent;
	border: 0;
	font-size: 0.8rem;
	text-decoration: underline;
	color: #dc2626;
	cursor: pointer;
}

.csh-cart-drawer-footer {
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.csh-cart-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	font-size: 1.05rem;
}

.csh-cart-error-msg {
	margin-bottom: 10px;
	font-size: 0.85rem;
	color: #dc2626;
}

button.csh-checkout-btn {
	width: 100%;
	padding: 14px 20px;
	border: 1px solid #111827;
	border-radius: 4px;
	background-color: #111827;
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

button.csh-checkout-btn:hover:not(:disabled),
button.csh-checkout-btn:focus:not(:disabled) {
	border-color: #374151;
	background-color: #374151;
	color: #ffffff;
}

button.csh-checkout-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Catálogo / Grid de Productos (Shop) */
.csh-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

@media (max-width: 1024px) {
	.csh-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.csh-product-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

.csh-grid-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background-color: #ffffff;
	overflow: hidden;
	transition: all 0.2s ease;
}

.csh-grid-card-image-link {
	display: block;
	overflow: hidden;
	background-color: #f8fafc;
}

.csh-grid-card-image-link img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.csh-grid-card:hover .csh-grid-card-image-link img {
	transform: scale(1.03);
}

.csh-grid-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 16px;
}

.csh-grid-card-title {
	margin: 0 0 8px 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

.csh-grid-card-title a {
	color: #111827;
	text-decoration: none;
}

.csh-grid-card-price-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.csh-grid-card-price {
	font-weight: 700;
	font-size: 1.1rem;
	color: #111827;
}

.csh-grid-card-actions {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.csh-grid-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 16px;
	border: 1px solid #111827;
	background-color: transparent;
	color: #111827;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.csh-grid-btn:hover {
	background-color: #111827;
	color: #ffffff;
}

.csh-grid-quick-atc .csh-add-to-cart-btn {
	width: 100%;
}

/* Página Completa de Carrito (Editorial 2-Column Cart Page) */
.csh-cart-page-wrapper {
	width: 100%;
	padding: 20px 0;
}

.csh-cart-page-header {
	margin-bottom: 44px;
}

.csh-cart-page-eyebrow {
	margin: 0 0 10px 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #78716c;
}

.csh-cart-page-title {
	margin: 0;
	font-size: 2.1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #111827;
}

.csh-cart-page-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
	gap: 80px;
	align-items: start;
}

@media (max-width: 960px) {
	.csh-cart-page-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

.csh-cart-page-items {
	border-top: 1px solid #e7e5e4;
}

.csh-cart-page-row {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 32px 0;
	border-bottom: 1px solid #e7e5e4;
}

@media (max-width: 600px) {
	.csh-cart-page-row {
		flex-wrap: wrap;
		gap: 16px;
	}
}

.csh-cart-page-thumb img {
	display: block;
	width: 110px;
	height: auto;
	object-fit: contain;
}

.csh-cart-page-details {
	flex: 1 1 auto;
	min-width: 160px;
}

.csh-cart-page-item-title {
	margin: 0 0 6px 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
}

.csh-cart-page-item-vendor {
	margin: 0 0 6px 0;
	font-size: 0.92rem;
	font-style: italic;
	color: #57534e;
}

.csh-cart-page-item-variant {
	margin: 0;
	font-size: 0.82rem;
	color: #78716c;
}

.csh-cart-page-actions-col {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}

.csh-cart-page-item-price {
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	white-space: nowrap;
}

button.csh-cart-page-remove-btn,
button.csh-cart-page-remove-btn:hover,
button.csh-cart-page-remove-btn:focus {
	padding: 4px 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #78716c;
	cursor: pointer;
	transition: color 0.2s ease;
}

button.csh-cart-page-remove-btn:hover {
	color: #111827;
}

.csh-cart-page-summary {
	width: 100%;
}

.csh-cart-page-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid #e7e5e4;
}

.csh-cart-page-subtotal-label {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #78716c;
}

.csh-cart-page-subtotal-value {
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
}

.csh-cart-page-shipping-note {
	margin: 0 0 28px 0;
	font-size: 0.82rem;
	line-height: 1.55;
	color: #78716c;
}

button.csh-cart-page-checkout-btn {
	width: 100%;
	padding: 16px 24px;
	border: 1px solid #000000;
	border-radius: 0;
	background-color: #000000;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s ease;
}

button.csh-cart-page-checkout-btn:hover:not(:disabled),
button.csh-cart-page-checkout-btn:focus:not(:disabled) {
	border-color: #27272a;
	background-color: #27272a;
	color: #ffffff;
}

.csh-cart-page-empty {
	padding: 36px 0;
}

.csh-cart-page-continue-btn {
	display: inline-flex;
	width: auto;
	margin-top: 16px;
	padding: 12px 24px;
}
