:root {
	--gs-accent: #2a2d41;
	--gs-accent-hover: #1f2233;
	--gs-text: #171717;
	--gs-muted: #666;
	--gs-border: #e8e8e8;
	--gs-card-bg: #fff;
	--gs-radius: 6px;
	--gs-shadow: 0 10px 35px rgba(0, 0, 0, 0.14);
}

.gs-menu-section {
	scroll-margin-top: 130px;
	margin: 0 0 36px;
}

.gs-menu-section__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.gs-menu-section__title {
	margin: 0;
	font-size: clamp(22px, 2vw, 30px);
	line-height: 1.15;
	color: var(--gs-text);
}

.gs-menu-section__description {
	margin-top: 6px;
	color: var(--gs-muted);
}

.gs-menu-section__description p:last-child {
	margin-bottom: 0;
}

.gs-products--grid {
	display: grid;
	grid-template-columns: repeat(var(--gs-columns, 3), minmax(0, 1fr));
	gap: 12px;
}

.gs-products--carrusel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(300px, calc((100% - 24px) / var(--gs-columns, 3)));
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding: 2px 2px 10px;
}

.gs-products--carrusel .gs-product-card {
	scroll-snap-align: start;
}

.gs-carousel-controls {
	display: flex;
	gap: 8px;
}

.gs-carousel-controls--standalone {
	justify-content: flex-end;
	margin-bottom: 12px;
}

.gs-carousel-arrow {
	width: 38px;
	height: 38px;
	border: 1px solid var(--gs-border);
	border-radius: 50%;
	background: #fff;
	color: var(--gs-text);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: transform .18s ease, border-color .18s ease;
}

.gs-carousel-arrow:hover {
	transform: translateY(-1px);
	border-color: var(--gs-accent);
}

.gs-product-card {
	min-width: 0;
	border: 1px solid var(--gs-border);
	border-radius: var(--gs-radius);
	background: var(--gs-card-bg);
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.gs-product-card:hover {
	transform: translateY(-2px);
	border-color: #d8d8d8;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.gs-product-open {
	width: 100%;
	min-height: 132px;
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.gs-product-card__image {
	display: block;
	width: 118px;
	height: 132px;
	overflow: hidden;
	background: #f7f7f7;
}

.gs-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gs-product-card__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 13px 12px 10px;
}

.gs-product-card__name {
	display: block;
	margin-bottom: 5px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gs-text);
}

.gs-product-card__description {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.35;
	color: var(--gs-muted);
}

.gs-product-card__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}

.gs-product-card__price {
	font-size: 13px;
	font-weight: 700;
	color: var(--gs-text);
}

.gs-product-card__price del {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: var(--gs-muted);
}

.gs-product-card__price ins {
	text-decoration: none;
}

.gs-product-card__plus {
	flex: 0 0 auto;
	width: 25px;
	height: 25px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--gs-accent);
	color: #fff;
	font-size: 19px;
	font-weight: 500;
	line-height: 1;
}

.gs-product-card.is-unavailable {
	opacity: .58;
}

.gs-menu-empty,
.gs-menu-editor-message {
	padding: 14px 16px;
	border: 1px dashed var(--gs-border);
	border-radius: var(--gs-radius);
	background: #fafafa;
	color: var(--gs-muted);
}

.gs-anchor-menu {
	position: relative;
	z-index: 50;
	margin: 0 0 24px;
	background: #fff;
	border-bottom: 1px solid var(--gs-border);
}

.gs-anchor-menu.is-sticky {
	position: sticky;
	top: 0;
}

.admin-bar .gs-anchor-menu.is-sticky {
	top: 32px;
}

.gs-anchor-menu__track {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	padding: 10px 2px;
	scrollbar-width: none;
}

.gs-anchor-menu__track::-webkit-scrollbar {
	display: none;
}

.gs-anchor-link {
	flex: 0 0 auto;
	padding: 9px 14px;
	border-radius: 999px;
	color: var(--gs-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .18s ease, color .18s ease;
}

.gs-anchor-link:hover,
.gs-anchor-link.is-active {
	background: var(--gs-accent);
	color: #fff;
}

.gs-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

.gs-modal.is-open {
	display: flex;
}

.gs-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .62);
	backdrop-filter: blur(2px);
}

.gs-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(1120px, 100%);
	height: min(88vh, 850px);
	max-height: min(88vh, 850px);
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--gs-shadow);
}

.gs-modal__content {
	height: 100%;
	min-height: 0;
}

.gs-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	float: none;
	z-index: 7;
	width: 38px;
	height: 38px;
	margin: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	color: #111;
	font-size: 27px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.gs-modal__notice {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.gs-modal__notice.is-error,
.gs-modal__notice.is-success {
	padding: 10px 44px;
}

.gs-modal__notice.is-error {
	background: #fff0f1;
	color: #a40013;
}

.gs-modal__notice.is-success {
	background: #edf9f0;
	color: #176b2c;
}

.gs-modal-product {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.gs-modal-product__media {
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: #f5f5f5;
}

.gs-modal-product__media img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	display: block;
}

.gs-modal-product__details {
	height: 100%;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	padding: 40px 36px 34px;
}

.gs-modal-product__title {
	margin: 0 52px 8px 0;
	font-size: clamp(25px, 3vw, 36px);
	line-height: 1.12;
	color: var(--gs-text);
}

.gs-modal-product__price {
	margin-bottom: 18px;
	font-size: 20px;
	font-weight: 700;
	color: var(--gs-accent);
}

.gs-modal-product__price ins {
	text-decoration: none;
}

.gs-modal-product__description {
	margin-bottom: 22px;
	color: var(--gs-muted);
	font-size: 14px;
	line-height: 1.55;
}

.gs-modal-product__description p:last-child {
	margin-bottom: 0;
}

/*
 * Reinicio visual del formulario variable. Algunos temas aplican bordes a
 * table, tr, th y td; dentro del popup eso genera líneas dobles alrededor
 * del selector.
 */
.gs-modal-product__purchase table.variations,
.gs-modal-product__purchase table.variations tbody,
.gs-modal-product__purchase table.variations tr,
.gs-modal-product__purchase table.variations th,
.gs-modal-product__purchase table.variations td {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	background-image: none !important;
}

.gs-modal-product__purchase table.variations {
	display: block;
	width: 100%;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
}

.gs-modal-product__purchase table.variations tbody,
.gs-modal-product__purchase table.variations tr {
	display: block;
	width: 100%;
}

.gs-modal-product__purchase table.variations tr {
	margin: 0 0 14px !important;
	padding: 0 !important;
}

.gs-modal-product__purchase table.variations th,
.gs-modal-product__purchase table.variations td {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
}

.gs-modal-product__purchase .variations label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gs-text);
}

.gs-modal-product__purchase select,
.gs-modal-product__purchase input[type="text"],
.gs-modal-product__purchase input[type="number"],
.gs-modal-product__purchase textarea {
	width: 100%;
	min-height: 45px;
	padding: 10px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #fff;
	color: var(--gs-text);
	font: inherit;
}

.gs-modal-product__purchase table.variations select {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	border: 1px solid #d9d9d9 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background-color: #fff !important;
}

.gs-modal-product__purchase .reset_variations {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--gs-muted);
}

.gs-modal-product__purchase .woocommerce-variation-price {
	margin: 12px 0;
	font-size: 18px;
	font-weight: 700;
}

.gs-modal-product__purchase .single_variation_wrap,
.gs-modal-product__purchase .woocommerce-variation-add-to-cart {
	width: 100%;
}

.gs-modal-product__purchase form.cart,
.gs-modal-product__purchase .woocommerce-variation-add-to-cart {
	display: block;
	width: 100%;
}

/*
 * La cantidad y el botón nativo de WooCommerce se agrupan en una fila
 * independiente. Se conserva el botón original para que Side Cart de XootiX
 * y los plugins de campos adicionales procesen un solo formulario compatible.
 */
.gs-modal-product__purchase .gs-cart-actions {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 10px;
	align-items: stretch;
	width: 100%;
	margin-top: 20px;
	clear: both;
}

.gs-modal-product__purchase .gs-cart-actions .quantity {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
}

.gs-modal-product__purchase .quantity {
	margin: 0 !important;
}

.gs-modal-product__purchase .quantity .qty {
	width: 100%;
	height: 48px;
	text-align: center;
}

.gs-modal-product__purchase .gs-add-to-cart-button {
	min-height: 48px;
	padding: 12px 18px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: var(--gs-accent) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background-color .18s ease, opacity .18s ease;
}

.gs-modal-product__purchase .gs-add-to-cart-button:hover {
	background: var(--gs-accent-hover) !important;
}

.gs-modal-product__purchase .gs-add-to-cart-button.disabled,
.gs-modal-product__purchase .gs-add-to-cart-button.loading {
	opacity: .55;
	cursor: wait;
}


/* Compatibilidad visual con Extra Product Options / ThemeHigh. */
.gs-modal-product__purchase .thwepo-extra-options {
	display: table;
	width: 100%;
	margin: 0 0 16px;
}

.gs-modal-product__purchase .thwepo-extra-options th,
.gs-modal-product__purchase .thwepo-extra-options td {
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.gs-modal-product__purchase .thwepo-extra-options label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
}

.gs-modal-loading {
	min-height: 330px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 40px;
	color: var(--gs-muted);
}

.gs-modal-spinner {
	width: 38px;
	height: 38px;
	border: 3px solid #e7e7e7;
	border-top-color: var(--gs-accent);
	border-radius: 50%;
	animation: gs-spin .75s linear infinite;
}

@keyframes gs-spin {
	to { transform: rotate(360deg); }
}

body.gs-modal-open {
	overflow: hidden;
}

.gs-floating-cart {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 10px 15px;
	border-radius: 999px;
	background: var(--gs-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.gs-floating-cart__count {
	min-width: 23px;
	height: 23px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--gs-accent);
	font-size: 12px;
}

.gs-floating-cart__total {
	padding-left: 8px;
	border-left: 1px solid rgba(255, 255, 255, .35);
}

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

	.gs-products--carrusel {
		grid-auto-columns: minmax(300px, calc((100% - 12px) / 2));
	}
}

@media (max-width: 782px) {
	.admin-bar .gs-anchor-menu.is-sticky {
		top: 46px;
	}

	.gs-modal {
		align-items: flex-end;
		padding: 0;
	}

	.gs-modal__dialog {
		width: 100%;
		height: auto;
		max-height: 94vh;
		overflow: auto;
		border-radius: 16px 16px 0 0;
	}

	.gs-modal__content {
		height: auto;
	}

	.gs-modal-product {
		display: block;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.gs-modal-product__media {
		height: min(42vh, 360px);
		min-height: 0;
	}

	.gs-modal-product__media img {
		height: 100%;
		min-height: 0;
	}

	.gs-modal-product__details {
		height: auto;
		overflow: visible;
		padding: 24px 20px 28px;
	}

	.gs-modal-product__title {
		font-size: 25px;
	}
}

@media (max-width: 620px) {
	.gs-products--grid {
		grid-template-columns: 1fr;
	}

	.gs-products--carrusel {
		grid-auto-columns: min(88vw, 360px);
	}

	.gs-product-open {
		grid-template-columns: 104px minmax(0, 1fr);
		min-height: 120px;
	}

	.gs-product-card__image {
		width: 104px;
		height: 120px;
	}

	.gs-product-card__content {
		padding: 11px 10px 9px;
	}

	.gs-product-card__name {
		font-size: 14px;
	}

	.gs-product-card__description {
		-webkit-line-clamp: 2;
	}

	.gs-carousel-controls {
		display: none;
	}

	.gs-modal-product__purchase .gs-cart-actions {
		position: sticky;
		bottom: 0;
		z-index: 3;
		margin: 18px -20px -28px;
		padding: 12px 20px max(12px, env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--gs-border);
	}

	.gs-floating-cart {
		right: 12px;
		bottom: 12px;
		left: 12px;
		justify-content: center;
	}
}
