/**
 * GreenLife Products Tabs - Frontend Styles
 * Matching GreenLife e-commerce design system
 */

:root {
	--gl-primary: #05822e;
	--gl-primary-dark: #0a4023;
	--gl-primary-hover: #036823;
	--gl-tab-active-bg: #0d3a22;
	--gl-text-dark: #1f2937;
	--gl-text-muted: #6b7280;
	--gl-badge-sale: #ef4444;
	--gl-badge-stockout: #64748b;
	--gl-border-light: #e5e7eb;
	--gl-card-bg: #ffffff;
	--gl-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.greenlife-products-tabs-wrapper {
	font-family: var(--gl-font-family);
	margin: 0 auto;
	padding: 20px 15px;
	box-sizing: border-box;
	position: relative;
}

.greenlife-products-tabs-wrapper * {
	box-sizing: border-box;
}

/* Heading */
.greenlife-section-title {
	text-align: center;
	color: #1f3d23;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin: 0 0 24px 0;
}

/* Tabs Navigation */
.greenlife-tabs-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.greenlife-tab-btn {
	background: transparent;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 10px 24px;
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 600;
	color: var(--gl-text-dark);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: none;
}

.greenlife-tab-btn:hover:not(.is-active) {
	background-color: #f3f4f6;
	color: #111827;
}

.greenlife-tab-btn.is-active {
	background-color: var(--gl-tab-active-bg);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(13, 58, 34, 0.25);
}

.greenlife-tab-icon svg,
.greenlife-tab-icon i {
	font-size: 14px;
	vertical-align: middle;
}

/* Tab sin título: no se pinta la etiqueta, ni el fondo, ni ocupa espacio
   (padding 0). Si el usuario le pone algo, ya es cosa suya. */
.greenlife-tab-btn.is-untitled {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.greenlife-tab-btn.is-untitled.is-active,
.greenlife-tab-btn.is-untitled:hover {
	background: transparent;
	box-shadow: none;
}

/* El panel de un tab sin título siempre se ve: el contenido existe aunque
   no haya etiqueta que lo esconda. */
.greenlife-tab-panel.is-untitled {
	display: block;
}

/* Tabs Panels Container */
.greenlife-tabs-content {
	position: relative;
	min-height: 250px;
}

.greenlife-tab-panel {
	display: none;
	position: relative;
	width: 100%;
}

.greenlife-tab-panel.is-active {
	display: block;
	animation: glFadeIn 0.3s ease-in-out;
}

@keyframes glFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Track / Layouts */
.greenlife-products-track {
	display: grid;
	gap: 24px;
	width: 100%;
}

.greenlife-products-track.columns-1 { grid-template-columns: repeat(1, 1fr); }
.greenlife-products-track.columns-2 { grid-template-columns: repeat(2, 1fr); }
.greenlife-products-track.columns-3 { grid-template-columns: repeat(3, 1fr); }
.greenlife-products-track.columns-4 { grid-template-columns: repeat(4, 1fr); }
.greenlife-products-track.columns-5 { grid-template-columns: repeat(5, 1fr); }
.greenlife-products-track.columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Carousel Mode */
.greenlife-tab-panel.layout-carousel {
	position: relative;
	padding: 0 46px;
}

.greenlife-tab-panel.layout-carousel .greenlife-products-track {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	gap: 20px;
}

.greenlife-tab-panel.layout-carousel .greenlife-products-track::-webkit-scrollbar {
	display: none;
}

.greenlife-tab-panel.layout-carousel .greenlife-product-card {
	flex: 0 0 calc((100% - (20px * (var(--gl-col-count, 4) - 1))) / var(--gl-col-count, 4));
	scroll-snap-align: start;
	min-width: 220px;
}

/* Navigation Slider Arrows */
.greenlife-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	color: #111827;
	transition: all 0.2s ease;
	/* Muchos temas (Freshio, entre otros) ponen padding a todos los botones
	   ("button { padding: .618em 1.41575em }"). Con el "box-sizing: border-box"
	   del tema, ese padding se come la caja de contenido del botón, que se
	   queda en cero de ancho, y el icono se encoge hasta desaparecer: se ve
	   el botón redondo pero vacío. Aquí se anula el padding. */
	padding: 0;
}

.greenlife-slider-arrow:hover {
	background: var(--gl-tab-active-bg);
	color: #ffffff;
	border-color: var(--gl-tab-active-bg);
}

.greenlife-slider-arrow.prev-arrow { left: 0; }
.greenlife-slider-arrow.next-arrow { right: 0; }

/* Los iconos de las flechas se dibujan con CSS y no sólo con los atributos
   del SVG: muchos temas traen un "svg { fill: currentColor }" en su reset y
   las reglas de CSS pisan a los atributos del SVG. Con ese reset el
   chevron se rellena y desaparece: se ve el botón pero no el icono.
   El "flex: 0 0 auto" evita que el icono encoja si el botón se queda sin
   sitio (es lo que pasaba con el padding del tema). */
.greenlife-slider-arrow svg {
	width: 18px;
	height: 18px;
	display: block;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.greenlife-slider-arrow svg path,
.greenlife-slider-arrow svg polyline,
.greenlife-slider-arrow svg line {
	fill: none;
	stroke: currentColor;
}

/* Product Card */
.greenlife-product-card {
	background: var(--gl-card-bg);
	border-radius: 14px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	text-align: center;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.greenlife-product-card:hover {
	transform: translateY(-4px);
}

/* Badges */
.greenlife-card-thumb-wrap {
	position: relative;
	width: 100%;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.greenlife-badge {
	position: absolute;
	top: 6px;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	z-index: 2;
	color: #ffffff;
}

.greenlife-badge.badge-outofstock {
	left: 6px;
	background-color: var(--gl-badge-stockout);
}

.greenlife-badge.badge-sale {
	right: 6px;
	background-color: var(--gl-badge-sale);
}

.greenlife-thumb-link {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.greenlife-product-img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.greenlife-product-card:hover .greenlife-product-img:not(.greenlife-product-img--hover) {
	transform: scale(1.04);
}

/* Segunda imagen: aparece al pasar el cursor por encima de la tarjeta */
.greenlife-product-img--hover {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.3s ease;
}

.greenlife-product-card:hover .greenlife-product-img--hover {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.04);
}

/* Card Body */
.greenlife-card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: flex-end;
}

.greenlife-card-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--gl-text-dark);
	margin: 0 0 6px 0;
	line-height: 1.35;
	min-height: 40px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.greenlife-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.greenlife-card-title a:hover {
	color: var(--gl-primary);
}

.greenlife-card-price {
	font-size: 16px;
	font-weight: 700;
	color: #0f3e29;
	margin-bottom: 14px;
}

.greenlife-card-price del {
	color: #9ca3af;
	font-weight: 400;
	margin-right: 6px;
	font-size: 14px;
}

.greenlife-card-price ins {
	text-decoration: none;
	color: #0f3e29;
}

/* Actions Row */
.greenlife-card-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: auto;
}

.greenlife-action-icon {
	background: transparent;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: #6b7280;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.greenlife-action-icon:hover {
	color: var(--gl-primary);
	background: #f0fdf4;
}

/* Main Buttons */
.greenlife-btn-action {
	background-color: var(--gl-primary);
	color: #ffffff;
	border: none;
	border-radius: 9999px;
	padding: 8px 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
	cursor: pointer;
	text-transform: uppercase;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.greenlife-btn-action:hover {
	background-color: var(--gl-primary-hover);
	box-shadow: 0 4px 12px rgba(5, 130, 46, 0.3);
}

.greenlife-btn-readmore {
	font-size: 12px;
	font-weight: 700;
	color: #374151;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	transition: color 0.2s ease;
}

.greenlife-btn-readmore:hover {
	color: #111827;
}

/* Bottom Link */
.greenlife-bottom-link-wrap {
	text-align: center;
	margin-top: 32px;
}

.greenlife-bottom-link {
	color: #1e3f24;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.greenlife-bottom-link:hover {
	color: var(--gl-primary);
	transform: translateX(3px);
}

/* ==========================================================================
   QUICK VIEW / VARIATION MODAL (SCREENSHOTS 4 & 5)
   ========================================================================== */

.greenlife-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 10000050 !important;
	display: none;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.greenlife-modal-overlay.is-open {
	display: flex !important;
	opacity: 1;
}

/* When the cart drawer is open, position modal centered so it is fully visible and not blocked */
body.gl-cart-drawer-open .greenlife-modal-overlay {
	align-items: center !important;
	justify-content: center !important;
}

.greenlife-modal-dialog {
	background: #ffffff;
	border-radius: 20px;
	width: 100%;
	max-width: 440px;
	padding: 0;
	position: relative;
	box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
	transform: translateY(20px) scale(0.96);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
	max-height: calc(100vh - 48px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	margin: 0;
	z-index: 10000051 !important;
}

.greenlife-modal-content-wrap {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.greenlife-modal-body-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 24px 24px 14px 24px;
	-webkit-overflow-scrolling: touch;
}

.greenlife-modal-overlay.is-open .greenlife-modal-dialog {
	transform: translateY(0) scale(1);
}

/* Modal Close Button: Text-only, no red background, red text color on hover */
.greenlife-modal-dialog .greenlife-modal-close-btn,
.greenlife-modal-close-btn {
	position: absolute !important;
	top: 12px !important;
	right: 14px !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border-radius: 0 !important;
	border: none !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #64748b !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: color 0.2s ease, transform 0.2s ease !important;
	z-index: 50 !important;
	font-size: 30px !important;
	line-height: 1 !important;
	font-weight: 300 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	text-decoration: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.greenlife-modal-dialog .greenlife-modal-close-btn:hover,
.greenlife-modal-close-btn:hover {
	background: transparent !important;
	background-color: transparent !important;
	color: #ef4444 !important;
	transform: scale(1.15) !important;
}

.greenlife-modal-close-btn .gl-close-icon {
	display: block !important;
	line-height: 1 !important;
	font-size: 30px !important;
	color: inherit !important;
	pointer-events: none !important;
}

/* Product Gallery Slider in Modal: Espacios optimizados e imagen más grande */
.greenlife-modal-gallery-wrap {
	width: 100%;
	margin-top: 2px !important;
	margin-bottom: 8px !important;
	position: relative;
}

.greenlife-modal-gallery-slider {
	position: relative;
	width: 100%;
	height: 235px !important;
	background: #fafaf9 !important;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.greenlife-modal-gallery-track {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.greenlife-modal-gallery-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	padding: 4px !important;
	box-sizing: border-box;
}

.greenlife-modal-gallery-slide.is-active {
	opacity: 1;
	visibility: visible;
	position: relative;
}

.greenlife-modal-product-img {
	max-height: 220px !important;
	max-width: 96% !important;
	width: auto !important;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	transition: transform 0.25s ease;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
}

/* Gallery Navigation Arrows */
.gl-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #334155;
	transition: all 0.2s ease;
	z-index: 5;
	padding: 0;
}

.gl-gallery-arrow:hover {
	background: #05822e;
	color: #ffffff;
	border-color: #05822e;
}

.gl-gallery-arrow.gl-gallery-prev { left: 8px; }
.gl-gallery-arrow.gl-gallery-next { right: 8px; }

/* Mismo caso que las flechas del carrusel: el trazo se fija en CSS para que
   el reset del tema no rellene el SVG y lo esconda. El "flex: 0 0 auto"
   evita que el icono encoja si el botón se queda sin sitio. */
.gl-gallery-arrow svg {
	width: 18px;
	height: 18px;
	display: block;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gl-gallery-arrow svg path {
	fill: none;
	stroke: currentColor;
}

/* Gallery Dots: Puntos sutiles, pequeños y elegantes (sin aspectos toscos ni botones gigantes) */
.greenlife-modal-gallery-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px !important;
	margin-top: 6px !important;
	margin-bottom: 2px !important;
}

.gl-gallery-dot {
	width: 6px !important;
	height: 6px !important;
	min-width: 6px !important;
	min-height: 6px !important;
	max-width: 6px !important;
	max-height: 6px !important;
	border-radius: 50% !important;
	background: #cbd5e1 !important;
	cursor: pointer !important;
	transition: all 0.22s ease !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	line-height: 0 !important;
	display: inline-block !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.gl-gallery-dot.is-active {
	background: #05822e !important;
	width: 14px !important;
	min-width: 14px !important;
	max-width: 14px !important;
	border-radius: 9999px !important;
}

/* Modal Info Header */
.greenlife-modal-info-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px !important;
	padding-right: 28px;
}

.greenlife-modal-product-title {
	font-size: 20px;
	font-weight: 800;
	color: #111827;
	margin: 0;
	line-height: 1.25;
}

.greenlife-modal-product-price {
	font-size: 19px;
	font-weight: 800;
	color: var(--gl-primary);
	white-space: nowrap;
	flex-shrink: 0;
}

.greenlife-modal-product-price del {
	font-size: 14px;
	color: #9ca3af;
	font-weight: 500;
	margin-right: 6px;
}

/* Divider */
.greenlife-modal-divider {
	height: 1px;
	background-color: #f3f4f6;
	margin: 8px 0 10px 0 !important;
}

/* Variations Selector */
.greenlife-modal-attr-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-size: 12px;
}

.greenlife-modal-attr-label {
	font-weight: 800;
	color: #1f2937;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.greenlife-modal-attr-selected-summary {
	font-weight: 700;
	color: var(--gl-primary);
}

/* Variation Option Cards */
.greenlife-modal-variation-cards {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-bottom: 16px;
}

.greenlife-variation-card {
	border: 1.5px solid #e5e7eb;
	background: #ffffff;
	border-radius: 10px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.greenlife-variation-card:hover:not(.is-disabled) {
	border-color: #a7f3d0;
	background-color: #f9fafb;
}

.greenlife-variation-card.is-selected {
	border: 2px solid var(--gl-primary);
	background-color: #f0fdf4;
}

.greenlife-variation-card.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f9fafb;
}

.greenlife-variation-label {
	font-size: 14px;
	font-weight: 800;
	color: #1f2937;
}

.greenlife-variation-card.is-selected .greenlife-variation-label {
	color: #065f46;
}

.greenlife-variation-price {
	font-size: 14px;
	font-weight: 800;
	color: var(--gl-primary);
}

/* Description Box */
.greenlife-modal-desc-box {
	background-color: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
}

.greenlife-modal-desc-text {
	font-size: 12.5px;
	line-height: 1.55;
	color: #4b5563;
	margin: 0;
}

/* Modal Footer / Submit Button (Sticky Internal Bottom Footer) */
.greenlife-modal-footer {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	background: #ffffff;
	padding: 14px 24px 18px 24px;
	border-top: 1px solid #f1f5f9;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.greenlife-modal-btn-submit {
	width: 100%;
	background-color: var(--gl-primary);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
	cursor: pointer;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.2s ease;
}

.greenlife-modal-btn-submit:hover:not(:disabled) {
	background-color: var(--gl-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(5, 130, 46, 0.35);
}

.greenlife-modal-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Feedback Message */
.greenlife-modal-feedback-message {
	font-size: 13px;
	text-align: center;
	padding: 8px;
	border-radius: 6px;
	font-weight: 600;
}

.greenlife-modal-feedback-message.is-success {
	background-color: #ecfdf5;
	color: #065f46;
}

.greenlife-modal-feedback-message.is-error {
	background-color: #fef2f2;
	color: #991b1b;
}

/* Loader & Spinners */
.greenlife-spinner,
.btn-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: glSpin 0.7s linear infinite;
	display: inline-block;
}

.greenlife-modal-loader .greenlife-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e5e7eb;
	border-top-color: var(--gl-primary);
	margin: 0 auto 12px;
}

.greenlife-modal-loader {
	text-align: center;
	padding: 40px 20px;
	color: #6b7280;
	font-size: 14px;
}

@keyframes glSpin {
	to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
	.greenlife-products-track.columns-4,
	.greenlife-products-track.columns-5,
	.greenlife-products-track.columns-6 {
		grid-template-columns: repeat(2, 1fr);
	}
	.greenlife-tab-panel.layout-carousel .greenlife-product-card {
		flex: 0 0 calc((100% - 20px) / 2);
	}
}

@media (max-width: 640px) {
	.greenlife-section-title {
		font-size: 26px;
	}
	.greenlife-tab-panel.layout-carousel {
		padding: 0 34px;
	}
	.greenlife-slider-arrow {
		width: 32px;
		height: 32px;
	}
	.greenlife-products-track.columns-2,
	.greenlife-products-track.columns-3,
	.greenlife-products-track.columns-4 {
		grid-template-columns: 1fr;
	}
	.greenlife-tab-panel.layout-carousel .greenlife-product-card {
		flex: 0 0 100%;
	}
	.greenlife-modal-dialog {
		padding: 20px 16px;
	}
	.greenlife-cart-drawer-panel {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ==========================================================================
   MODERN SLIDE-IN CART DRAWER (Matching Image 2)
   ========================================================================== */
.greenlife-cart-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 9999999 !important;
	visibility: hidden;
	transition: visibility 0.3s ease;
	font-family: var(--gl-font-family);
	box-sizing: border-box;
}

.greenlife-cart-drawer * {
	box-sizing: border-box;
}

.greenlife-cart-drawer.is-open {
	visibility: visible;
}

/* Overlay Backdrop */
.greenlife-cart-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(17, 24, 39, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 9999998 !important;
}

.greenlife-cart-drawer.is-open .greenlife-cart-drawer-overlay {
	opacity: 1;
}

/* Slide-in Panel */
.greenlife-cart-drawer-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 440px;
	max-width: 90vw;
	height: 100%;
	background: #ffffff;
	box-shadow: -8px 0 35px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 9999999 !important;
}

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

/* Drawer Header */
.greenlife-cart-drawer-header {
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #f3f4f6;
	background: #ffffff;
	flex-shrink: 0;
}

.greenlife-cart-drawer-title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: #111827;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.greenlife-cart-drawer-close {
	background: transparent;
	border: none;
	cursor: pointer;
	color: #6b7280;
	padding: 6px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.greenlife-cart-drawer-close:hover {
	color: #111827;
	background: #f3f4f6;
}

/* Drawer Body */
.greenlife-cart-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px;
	background: #ffffff;
}

.greenlife-cart-drawer-loading {
	text-align: center;
	padding: 30px 0;
}

.greenlife-cart-drawer-loading .greenlife-spinner {
	border: 3px solid #e5e7eb;
	border-top-color: var(--gl-primary);
	width: 32px;
	height: 32px;
}

/* Cart Items Container */
.greenlife-cart-items-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Cart Item Card */
.gl-cart-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid #f8fafc;
	position: relative;
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Item Removing Animation (Slide out to right + fade out) */
.gl-cart-item.gl-item-fade-out {
	transform: translateX(35px) scale(0.96);
	opacity: 0;
	pointer-events: none !important;
}

/* Progress Bar debajo del item durante carga HTTP (Update / Remove) */
.gl-item-progress-bar {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background: rgba(0, 138, 84, 0.12);
	overflow: hidden;
	border-radius: 9999px;
	z-index: 10;
	pointer-events: none;
}

.gl-item-progress-fill {
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #008a54, #10b981, #008a54);
	background-size: 200% 100%;
	border-radius: 9999px;
	animation: glItemProgressBarPulse 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes glItemProgressBarPulse {
	0% {
		transform: translateX(-100%);
	}
	50% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(100%);
	}
}

/* Estado del item durante actualización o eliminación en progreso */
.gl-cart-item.is-item-busy {
	opacity: 0.72;
	transition: opacity 0.2s ease;
}

.gl-cart-item.is-item-busy .gl-cart-stepper-btn,
.gl-cart-item.is-item-busy .gl-cart-trash-btn {
	cursor: not-allowed !important;
	pointer-events: none !important;
}

/* Disabled & Removing state on Trash Button & Item controls */
.gl-cart-trash-btn:disabled,
.gl-cart-trash-btn.is-removing {
	cursor: not-allowed !important;
	opacity: 0.35 !important;
	pointer-events: none !important;
	color: #9ca3af !important;
}

.gl-cart-item.is-removing .gl-cart-stepper-btn {
	cursor: not-allowed !important;
	opacity: 0.35 !important;
	pointer-events: none !important;
}

.gl-cart-item-thumb-box {
	width: 64px;
	height: 64px;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.gl-cart-item-thumb-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gl-cart-item-info {
	flex: 1;
	min-width: 0;
}

.gl-cart-item-title {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 2px 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gl-cart-item-title a {
	color: inherit;
	text-decoration: none;
}

.gl-cart-item-variation {
	font-size: 13px;
	color: #9ca3af;
	margin: 0 0 8px 0;
	font-weight: 500;
}

/* Quantity Stepper & Trash */
.gl-cart-item-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gl-cart-stepper {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	height: 30px;
}

.gl-cart-stepper-btn {
	background: transparent;
	border: none;
	width: 28px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #6b7280;
	font-size: 15px;
	font-weight: 600;
	padding: 0;
	transition: background 0.15s, color 0.15s;
}

.gl-cart-stepper-btn:hover {
	color: #111827;
	background: #f3f4f6;
}

.gl-cart-stepper-btn.minus {
	border-top-left-radius: 7px;
	border-bottom-left-radius: 7px;
}

.gl-cart-stepper-btn.plus {
	border-top-right-radius: 7px;
	border-bottom-right-radius: 7px;
}

.gl-cart-stepper-qty {
	min-width: 24px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #111827;
}

.gl-cart-trash-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}

.gl-cart-trash-btn:hover {
	color: #ef4444;
	background: #fef2f2;
}

/* Item Price */
.gl-cart-item-price {
	font-size: 16px;
	font-weight: 800;
	color: var(--gl-primary);
	text-align: right;
	margin-left: auto;
	flex-shrink: 0;
}

/* Empty State */
.greenlife-cart-empty-state {
	text-align: center;
	padding: 30px 10px;
}

.greenlife-cart-empty-icon {
	margin-bottom: 12px;
}

.greenlife-cart-empty-text {
	color: #6b7280;
	font-size: 14px;
	margin: 0;
}

/* Divider */
.greenlife-cart-drawer-divider {
	border-top: 1.5px dashed #e5e7eb;
	margin: 24px 0 20px 0;
}

/* Recommendations Section */
.greenlife-cart-recommendations-section {
	margin-top: 10px;
}

.greenlife-recommendations-title {
	font-size: 13px;
	font-weight: 800;
	color: #4b5563;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 14px 0;
}

.greenlife-cart-recommendations-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Recommendation Card */
.gl-recommendation-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.gl-recommendation-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gl-recommendation-thumb {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.gl-recommendation-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gl-recommendation-info {
	flex: 1;
	min-width: 0;
}

.gl-recommendation-title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 2px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gl-recommendation-price {
	font-size: 14px;
	font-weight: 800;
	color: var(--gl-primary);
	margin: 0;
}

/* Button + AGREGAR */
.gl-btn-add-recommendation {
	background: #ffffff;
	border: 1.5px solid var(--gl-primary);
	color: var(--gl-primary);
	font-size: 12.5px;
	font-weight: 800;
	border-radius: 9999px;
	padding: 7px 14px;
	cursor: pointer;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}

.gl-btn-add-recommendation:hover {
	background: var(--gl-primary);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(5, 130, 46, 0.25);
}

.gl-btn-add-recommendation:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Sticky Footer: Paddings y margins optimizados */
.greenlife-cart-drawer-footer {
	padding: 12px 20px 14px 20px !important;
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
	flex-shrink: 0;
}

/* Coupon Wrap & Accordion Toggle */
.greenlife-cart-coupon-wrap {
	margin-bottom: 10px;
}

.greenlife-cart-coupon-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	background: transparent;
	border: none;
	padding: 4px 0;
	color: var(--gl-primary, #05822e);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
	transition: opacity 0.15s;
}

.greenlife-cart-coupon-toggle:hover {
	opacity: 0.85;
}

.gl-coupon-toggle-icon {
	display: inline-flex;
	align-items: center;
	color: var(--gl-primary, #05822e);
}

.gl-coupon-toggle-arrow {
	margin-left: auto;
	font-size: 16px;
	line-height: 1;
	transition: transform 0.2s;
	color: #94a3b8;
}

.greenlife-cart-coupon-toggle.is-open .gl-coupon-toggle-arrow {
	transform: rotate(90deg);
}

.greenlife-cart-coupon-form {
	margin-top: 6px;
	margin-bottom: 6px;
}

.gl-coupon-input-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gl-cart-coupon-input {
	flex: 1;
	min-width: 0;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	outline: none;
	background: #f8fafc;
	color: #1e293b;
	transition: border-color 0.15s, background 0.15s;
}

.gl-cart-coupon-input:focus {
	border-color: var(--gl-primary, #05822e);
	background: #ffffff;
}

.gl-cart-coupon-btn {
	background: var(--gl-primary, #05822e);
	color: #ffffff;
	border: none;
	padding: 7px 14px;
	font-size: 12.5px;
	font-weight: 800;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s;
}

.gl-cart-coupon-btn:hover {
	opacity: 0.9;
}

.gl-cart-coupon-btn.is-loading {
	opacity: 0.6;
	cursor: wait;
}

.gl-cart-coupon-msg {
	font-size: 11.5px;
	font-weight: 600;
	margin-top: 4px;
	padding: 4px 8px;
	border-radius: 6px;
}

.gl-cart-coupon-msg.is-error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.gl-cart-coupon-msg.is-success {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

/* Applied Coupon Badges / Chips */
.greenlife-cart-coupons-applied {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.gl-coupon-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
}

.gl-coupon-chip-amount {
	font-weight: 800;
	color: #047857;
}

.gl-coupon-chip-remove {
	background: transparent;
	border: none;
	color: #6ee7b7;
	font-size: 12px;
	cursor: pointer;
	padding: 0 2px;
	line-height: 1;
	border-radius: 3px;
	transition: color 0.15s;
}

.gl-coupon-chip-remove:hover {
	color: #dc2626;
}

/* Totals Breakdown */
.greenlife-cart-totals-breakdown {
	margin-bottom: 10px;
	border-top: 1px dashed #e2e8f0;
	padding-top: 8px;
}

.greenlife-cart-subtotal-row,
.greenlife-cart-discount-row,
.greenlife-cart-shipping-row,
.greenlife-cart-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2px 0;
}

.greenlife-subtotal-label,
.greenlife-discount-label {
	font-size: 13.5px !important;
	font-weight: 600;
	color: #475569;
}

/* Envío: la fila con el costo de envío y la ciudad del visitante */
.greenlife-shipping-label {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font-size: 13.5px !important;
	font-weight: 600;
	color: #475569;
}

.greenlife-shipping-destination {
	font-size: 11.5px !important;
	font-weight: 500;
	color: #94a3b8;
	line-height: 1.3;
}

.greenlife-shipping-amount {
	font-size: 14.5px !important;
	font-weight: 700;
	color: #334155;
	text-align: right;
}

.greenlife-shipping-amount.is-pending {
	font-size: 13px !important;
	font-weight: 600;
	font-style: italic;
	color: #94a3b8;
}

.greenlife-subtotal-count {
	font-size: 12px !important;
	color: #94a3b8;
	font-weight: 500;
}

.greenlife-subtotal-amount {
	font-size: 15px !important;
	font-weight: 700;
	color: #334155;
}

.greenlife-cart-discount-row {
	color: #16a34a;
}

.greenlife-discount-label {
	color: #16a34a !important;
}

.greenlife-discount-amount {
	font-size: 14.5px !important;
	font-weight: 800;
	color: #16a34a;
}

.greenlife-cart-total-row {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #f1f5f9;
}

.greenlife-total-label {
	font-size: 15px !important;
	font-weight: 800;
	color: #0f172a;
}

.greenlife-total-amount {
	font-size: 20px !important;
	font-weight: 900;
	color: #0f172a;
}

/* Checkout Button: "Comprar" con loading spinner inmediato */
.greenlife-btn-checkout {
	width: 100%;
	background: var(--gl-primary);
	color: #ffffff;
	font-size: 15px !important;
	font-weight: 800;
	letter-spacing: 0.5px;
	border-radius: 9999px;
	padding: 12px 18px !important;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(5, 130, 46, 0.35);
	transition: all 0.2s;
	box-sizing: border-box;
}

.greenlife-btn-checkout:hover {
	background: var(--gl-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(5, 130, 46, 0.45);
	color: #ffffff;
}

.greenlife-btn-checkout.is-loading {
	opacity: 0.95 !important;
	cursor: wait !important;
	background: #036823 !important;
	box-shadow: 0 2px 8px rgba(5, 130, 46, 0.3) !important;
}

.greenlife-btn-checkout .gl-checkout-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: glSpin 0.75s linear infinite;
	flex-shrink: 0;
	vertical-align: middle;
	box-sizing: border-box;
}

.greenlife-btn-checkout.is-loading .gl-checkout-spinner {
	display: inline-block !important;
}

.greenlife-btn-checkout.is-loading .gl-checkout-arrow {
	display: none !important;
}

@keyframes gl-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.greenlife-cart-trust-badge {
	font-size: 11px !important;
	color: #9ca3af;
	text-align: center;
	margin-bottom: 0px !important;
	line-height: 1.3 !important;
}

/* Quitar enlace 'View cart' / 'Ver carrito' de WooCommerce en modales y footers */
.added_to_cart,
.wc-forward,
.greenlife-modal-footer .added_to_cart,
.greenlife-modal-dialog .added_to_cart,
a.added_to_cart.wc-forward {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	height: 0 !important;
	width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* ==========================================================================
   DEACTIVATE & SUPPRESS THEME OLD SIDE CART (Freshio & third-party side carts)
   ========================================================================== */
.site-header-cart-side,
.site-header-cart-side-overlay,
.cart-side-overlay,
.freshio-cart-side,
#site-header-cart-side,
.site-header-cart.side,
.site-header-cart .widget_shopping_cart,
.dropdown-cart-side,
.header-cart-side,
.freshio-side-cart,
.cart-canvas-overlay,
.cart-sidebar-overlay,
.freshio-dropdown-cart-side,
.freshio-canvas-cart {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateX(100%) !important;
	width: 0 !important;
	height: 0 !important;
	max-width: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	position: fixed !important;
	right: -9999px !important;
	z-index: -99999 !important;
}

