/**
 * PasionGift Side Cart - Frontend styles.
 */

.pgsc-side-cart:not(.is-open) {
	pointer-events: none;
}

.pgsc-side-cart.is-open {
	pointer-events: auto;
}

.pgsc-side-cart.is-open .pgsc-side-cart__panel {
	pointer-events: auto;
}

.pgsc-side-cart__overlay {
	position: fixed;
	inset: 0;
	z-index: var(--pgsc-sidecart-z-index, 99999);
	background: var(--pgsc-color-overlay-backdrop, rgba(42, 38, 38, 0.52));
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), visibility 0.4s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: calc(var(--pgsc-sidecart-z-index, 99999) + 1);
	width: 100%;
	max-width: var(--pgsc-sidecart-width, 420px);
	height: 100%;
	height: 100dvh;
	background: var(--pgsc-color-surface, var(--pgsc-white, #ffffff));
	box-shadow: -12px 0 40px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16));
	transform: translateX(100%);
	transition: transform 0.42s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	will-change: transform;
}

.pgsc-side-cart__header {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px 20px;
	border-bottom: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	background: linear-gradient(180deg, var(--pgsc-color-surface, var(--pgsc-white, #ffffff)) 0%, var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 100%);
	position: relative;
}

.pgsc-side-cart__header::after {
	content: '';
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 0;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--pgsc-color-primary, #6b2838) 0%, var(--pgsc-color-accent, #e8b4bc) 55%, transparent 100%);
	opacity: 0.85;
}

.pgsc-side-cart__header-brand {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pgsc-side-cart__header-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pgsc-color-primary-light, var(--pgsc-wine-light, #8f3d52));
}

.pgsc-side-cart__title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	letter-spacing: -0.02em;
}

.pgsc-side-cart__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: 999px;
	background: var(--pgsc-color-surface, var(--pgsc-white, #ffffff));
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), border-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), transform 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__close:hover,
.pgsc-side-cart__close:focus-visible {
	background: var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	border-color: var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	transform: rotate(90deg);
	outline: none;
}

.pgsc-side-cart__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	background: var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec));
}

.pgsc-side-cart__bottom {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	background: var(--pgsc-color-surface, var(--pgsc-white, #ffffff));
	border-top: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	box-shadow: 0 -8px 24px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08));
	z-index: 2;
}

.pgsc-side-cart__products {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--pgsc-color-accent, #e8b4bc) transparent;
}

.pgsc-side-cart__products::-webkit-scrollbar {
	width: 6px;
}

.pgsc-side-cart__products::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: var(--pgsc-color-accent, #e8b4bc);
}

.pgsc-side-cart__products:focus {
	outline: none;
}

.pgsc-side-cart__content {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 20px 20px 24px;
}

.pgsc-side-cart__content-heading {
	margin: 0 0 14px;
	padding-left: 2px;
	font-size: 11px;
	font-weight: 700;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.pgsc-side-cart__content--empty {
	justify-content: center;
}

.pgsc-side-cart__empty {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: min(360px, 52dvh);
	padding: 28px 20px 32px;
	text-align: center;
}

.pgsc-side-cart__empty-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 320px;
	padding: 28px 22px 24px;
	border-radius: var(--pgsc-radius-lg, 16px);
	background: linear-gradient(165deg, var(--pgsc-color-surface, var(--pgsc-white, #ffffff)) 0%, var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec)) 100%);
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	box-shadow: var(--pgsc-shadow-elevated, 0 12px 32px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08)));
	position: relative;
	overflow: hidden;
	animation: pgsc-empty-card-enter 520ms var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)) both;
}

.pgsc-side-cart__empty-card::before,
.pgsc-side-cart__empty-card::after {
	content: '✨';
	position: absolute;
	font-size: 14px;
	line-height: 1;
	opacity: 0.45;
	pointer-events: none;
}

.pgsc-side-cart__empty-card::before {
	top: 16px;
	left: 18px;
	animation: pgsc-empty-sparkle 2.8s ease-in-out infinite;
}

.pgsc-side-cart__empty-card::after {
	bottom: 18px;
	right: 20px;
	animation: pgsc-empty-sparkle 2.8s ease-in-out 0.9s infinite;
}

@keyframes pgsc-empty-card-enter {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes pgsc-empty-sparkle {
	0%,
	100% {
		opacity: 0.25;
		transform: scale(0.92) rotate(-6deg);
	}

	50% {
		opacity: 0.65;
		transform: scale(1.05) rotate(6deg);
	}
}

.pgsc-side-cart__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: var(--pgsc-color-surface, var(--pgsc-white, #ffffff));
	box-shadow:
		0 0 0 1px var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de)),
		0 8px 20px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16));
	font-size: 30px;
	line-height: 1;
	animation: pgsc-empty-icon-float 3.2s ease-in-out infinite;
}

.pgsc-side-cart__empty-text {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--pgsc-color-primary-hover, var(--pgsc-wine-dark, #4f1c2a));
	letter-spacing: -0.01em;
}

.pgsc-side-cart__empty-subtitle {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 500;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
}

.pgsc-side-cart__empty-trust {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 0 20px;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--pgsc-color-primary-light, var(--pgsc-wine-light, #8f3d52));
}

.pgsc-side-cart__empty-trust::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	flex-shrink: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 1.75 3 4v4.25c0 2.45 2.13 4.74 5 5.25 2.87-.51 5-2.8 5-5.25V4L8 1.75Z' stroke='black' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M6.25 8.25 7.5 9.5 10 7' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 1.75 3 4v4.25c0 2.45 2.13 4.74 5 5.25 2.87-.51 5-2.8 5-5.25V4L8 1.75Z' stroke='black' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M6.25 8.25 7.5 9.5 10 7' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pgsc-side-cart__empty-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 14px 20px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838)) 0%, var(--pgsc-color-button-primary-bg-light, var(--pgsc-wine-light, #8f3d52)) 100%);
	color: var(--pgsc-color-on-primary, var(--pgsc-white, #ffffff));
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16));
	transition: background 0.3s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), transform 0.3s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow 0.3s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), color 0.3s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__empty-cta:hover,
.pgsc-side-cart__empty-cta:focus-visible {
	background: linear-gradient(135deg, var(--pgsc-color-button-primary-bg-hover, var(--pgsc-wine-dark, #4f1c2a)) 0%, var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838)) 100%);
	color: var(--pgsc-color-on-primary, var(--pgsc-white, #ffffff));
	transform: translateY(-2px);
	box-shadow: 0 14px 28px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16));
	outline: none;
}

@keyframes pgsc-empty-icon-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-4px);
	}
}

.pgsc-side-cart__items {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pgsc-side-cart__item-card {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 14px;
	padding: 14px 44px 14px 14px;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: var(--pgsc-radius-card, var(--pgsc-radius-lg, 16px));
	background: linear-gradient(160deg, var(--pgsc-color-card, var(--pgsc-white, #ffffff)) 0%, var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 100%);
	box-shadow: var(--pgsc-shadow-card, 0 6px 20px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08)));
	position: relative;
	isolation: isolate;
	transition: box-shadow 0.28s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), border-color 0.28s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), transform 0.28s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
	animation: pgsc-item-enter 0.45s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__item-card:hover {
	border-color: var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
	box-shadow: 0 10px 28px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16));
}

@keyframes pgsc-item-enter {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pgsc-side-cart__item-media {
	display: flex;
	align-items: flex-start;
}

.pgsc-side-cart__item-image-frame {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
}

.pgsc-side-cart__item-image-link {
	display: block;
	width: 100%;
	border-radius: var(--pgsc-radius-md, 12px);
	overflow: hidden;
	line-height: 0;
	background: var(--pgsc-color-surface, var(--pgsc-white, #ffffff));
	box-shadow:
		0 0 0 1px var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de)),
		0 6px 16px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08));
	transition: box-shadow 0.28s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), transform 0.28s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__item-image img {
	display: block;
	width: 92px;
	height: 92px;
	object-fit: cover;
	transition: transform 0.35s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__item-card:hover .pgsc-side-cart__item-image-link {
	box-shadow:
		0 0 0 1px var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc)),
		0 8px 20px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16));
}

.pgsc-side-cart__item-card:hover .pgsc-side-cart__item-image img {
	transform: scale(1.03);
}

.pgsc-side-cart__item-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.pgsc-side-cart__item-actions {
	position: relative;
	z-index: 2;
}

.pgsc-side-cart__item-header {
	display: flex;
	align-items: flex-start;
	min-width: 0;
	padding-right: 4px;
}

.pgsc-side-cart__item.is-updating {
	position: relative;
	opacity: var(--pgsc-opacity-state-loading, 0.72);
	pointer-events: none;
}

.pgsc-side-cart__item.is-updating::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--pgsc-radius-lg, 16px);
	background: var(--pgsc-color-overlay-scrim-item, rgba(255, 255, 255, 0.65));
	pointer-events: none;
}

.pgsc-side-cart__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: 999px;
	background: var(--pgsc-color-surface, var(--pgsc-white, #ffffff));
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	cursor: pointer;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	pointer-events: auto;
	transition: background-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), border-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), transform 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__remove-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.pgsc-side-cart__remove-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.pgsc-side-cart__remove:hover,
.pgsc-side-cart__remove:focus-visible {
	background: var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	border-color: var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
	color: var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838));
	transform: scale(1.06);
	box-shadow: 0 4px 12px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08));
	outline: none;
}

.pgsc-side-cart__item-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	text-decoration: none;
	transition: color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__item-name:hover,
.pgsc-side-cart__item-name:focus-visible {
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-side-cart__quantity {
	display: inline-flex;
	align-items: center;
	gap: 0;
	width: fit-content;
	border: 1px solid var(--pgsc-color-border, #f3d9de);
	border-radius: 999px;
	overflow: hidden;
	background: var(--pgsc-color-surface, #ffffff);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	position: relative;
	z-index: 2;
	pointer-events: auto;
	transition: border-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__quantity:focus-within {
	border-color: var(--pgsc-color-primary-light, #8f3d52);
	box-shadow: 0 0 0 3px var(--pgsc-color-border-subtle, #f8e8ec);
}

.pgsc-side-cart__quantity.is-updating {
	pointer-events: none;
}

.pgsc-side-cart__quantity.is-updating .pgsc-side-cart__quantity-value {
	color: transparent;
}

.pgsc-side-cart__quantity.is-updating::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid var(--pgsc-color-state-spinner-track-brand, var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de)));
	border-top-color: var(--pgsc-color-state-spinner-active-brand, var(--pgsc-color-primary, var(--pgsc-wine, #6b2838)));
	border-radius: 50%;
	animation: pgsc-spin 0.7s linear infinite;
}

.pgsc-side-cart__quantity-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838));
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	position: relative;
	z-index: 1;
	pointer-events: auto;
	transition: background-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__quantity-btn span {
	pointer-events: none;
}

.pgsc-side-cart__quantity-btn:hover,
.pgsc-side-cart__quantity-btn:focus-visible {
	background: var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	color: var(--pgsc-color-button-primary-bg-hover, var(--pgsc-wine-dark, #4f1c2a));
	outline: none;
}

.pgsc-side-cart__quantity-btn:disabled {
	opacity: var(--pgsc-opacity-state-disabled-strong, 0.4);
	cursor: not-allowed;
}

.pgsc-side-cart__quantity-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pgsc-color-primary-hover, var(--pgsc-wine-dark, #4f1c2a));
	border-left: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-right: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	background: var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec));
}

.pgsc-side-cart__item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
}

.pgsc-side-cart__item-price {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px;
	font-weight: 600;
	color: var(--pgsc-color-primary-light, var(--pgsc-wine-light, #8f3d52));
}

.pgsc-side-cart__item-price-value {
	font-size: 13px;
	font-weight: 700;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-side-cart__item-price-value .woocommerce-Price-amount {
	font-weight: inherit;
	color: inherit;
}

.pgsc-side-cart__item-price-unit {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
}

.pgsc-side-cart__item-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 2px;
	padding-top: 10px;
	border-top: 1px solid var(--pgsc-color-border, #f3d9de);
}

.pgsc-side-cart__item-subtotal {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
	min-width: 0;
}

.pgsc-side-cart__item-subtotal-value {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--pgsc-color-primary-hover, var(--pgsc-wine-dark, #4f1c2a));
	white-space: nowrap;
}

.pgsc-side-cart__item-subtotal-value .woocommerce-Price-amount {
	font-weight: inherit;
	color: inherit;
}

.pgsc-side-cart__shipping {
	flex-shrink: 0;
	padding: 16px 20px 0;
	border-top: none;
	background: transparent;
}

.pgsc-side-cart__shipping--hidden {
	display: none;
}

/* Mostrar ubicación cuando el carrito tiene productos (incluso tras AJAX). */
.pgsc-side-cart:has(.pgsc-side-cart__items) .pgsc-side-cart__shipping {
	display: block;
}

/* Ocultar ubicación solo cuando el carrito está vacío. */
.pgsc-side-cart:has(.pgsc-side-cart__empty) .pgsc-side-cart__shipping {
	display: none;
}

.pgsc-side-cart__shipping.is-updating {
	position: relative;
	opacity: var(--pgsc-opacity-state-loading-soft, 0.7);
	pointer-events: none;
}

.pgsc-side-cart__shipping.is-updating::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--pgsc-color-overlay-scrim-shipping, var(--pgsc-color-overlay-scrim, rgba(255, 255, 255, 0.5)));
}

.pgsc-side-cart__shipping-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.pgsc-side-cart__shipping-fields {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

#pgsc-side-cart .woocommerce-shipping-fields .pgsc-location-layout {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	align-items: start;
	width: 100%;
}

#pgsc-side-cart .woocommerce-shipping-fields .pgsc-location-layout > .pgsc-location-field,
#pgsc-side-cart #shipping_state_field,
#pgsc-side-cart #shipping_city_field {
	float: none !important;
	clear: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	box-sizing: border-box;
}

.pgsc-location-field {
	margin: 0;
	padding: 0;
	min-width: 0;
	width: 100%;
	float: none;
}

.pgsc-side-cart__shipping-fields label,
.pgsc-location-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.pgsc-side-cart__shipping-fields select {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--pgsc-color-border, #f3d9de);
	border-radius: var(--pgsc-radius-sm, 8px);
	background: var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec));
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	font-size: 13px;
	transition: border-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), background-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__shipping-fields select:focus {
	border-color: var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
	box-shadow: 0 0 0 3px var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	outline: none;
}

.pgsc-side-cart__shipping-fields select:disabled {
	background: var(--pgsc-color-background-subtle, var(--pgsc-nude-deep, #ede3db));
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	cursor: not-allowed;
}

/* City autocomplete */
.pgsc-side-cart__shipping-fields,
.pgsc-location-field--city,
.pgsc-side-cart__city-autocomplete {
	overflow: visible;
}

.pgsc-location-field--city {
	position: relative;
	z-index: 1;
}

.pgsc-location-field--city:has(#pgsc-city-search:focus),
.pgsc-location-field--city:has(.pgsc-city-results:not([hidden])) {
	z-index: 12;
}

.pgsc-side-cart__city-autocomplete {
	position: relative;
	width: 100%;
}

#pgsc-side-cart #pgsc-city-search,
.pgsc-side-cart__city-search {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: var(--pgsc-radius-button, var(--pgsc-radius-sm, 8px));
	background: var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec));
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	font-size: 16px;
	line-height: 1.35;
	transition: border-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), background-color 0.25s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
	-webkit-appearance: none;
	appearance: none;
}

#pgsc-side-cart #pgsc-city-search::placeholder,
.pgsc-side-cart__city-search::placeholder {
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	opacity: 1;
}

#pgsc-side-cart #pgsc-city-search:focus,
.pgsc-side-cart__city-search:focus {
	border-color: var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
	background: var(--pgsc-color-surface, var(--pgsc-white, #ffffff));
	box-shadow: 0 0 0 3px var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	outline: none;
}

#pgsc-side-cart #pgsc-city-search:disabled,
.pgsc-side-cart__city-search:disabled {
	background: var(--pgsc-color-background-subtle, var(--pgsc-nude-deep, #ede3db));
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	cursor: not-allowed;
	opacity: 1;
}

#pgsc-side-cart #pgsc-city-search.is-loading-cities,
.pgsc-side-cart__city-search.is-loading-cities {
	background-image: linear-gradient(90deg, var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 0%, var(--pgsc-color-state-loading-shimmer-mid, var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec))) 50%, var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 100%);
	background-size: 200% 100%;
	animation: pgsc-city-loading 1.1s ease-in-out infinite;
}

@keyframes pgsc-city-loading {
	to {
		background-position: 200% 0;
	}
}

.pgsc-city-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: calc(var(--pgsc-sidecart-z-index, 99999) + 4);
	width: 100%;
	max-height: min(240px, 38dvh);
	margin: 0;
	padding: 4px 0;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: var(--pgsc-radius-button, var(--pgsc-radius-sm, 8px));
	background: var(--pgsc-color-surface, var(--pgsc-white, #ffffff));
	box-shadow: var(--pgsc-shadow-elevated, 0 10px 28px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08))), 0 2px 8px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16));
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--pgsc-color-accent, #e8b4bc) transparent;
}

.pgsc-city-results[hidden] {
	display: none !important;
}

.pgsc-city-results__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 14px;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	font-size: 14px;
	line-height: 1.35;
	text-align: center;
}

.pgsc-city-results__loading-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--pgsc-color-state-spinner-track-brand, var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de)));
	border-top-color: var(--pgsc-color-state-spinner-active-brand, var(--pgsc-color-primary, var(--pgsc-wine, #6b2838)));
	border-radius: 50%;
	animation: pgsc-city-spinner 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes pgsc-city-spinner {
	to {
		transform: rotate(360deg);
	}
}

.pgsc-city-results::-webkit-scrollbar {
	width: 5px;
}

.pgsc-city-results::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: var(--pgsc-color-accent, #e8b4bc);
}

.pgsc-city-result {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	font-family: inherit;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), color 0.2s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
	-webkit-tap-highlight-color: transparent;
}

.pgsc-city-result + .pgsc-city-result {
	border-top: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
}

.pgsc-city-result:hover {
	background: var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-city-result:active {
	background: var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-city-result:focus-visible {
	background: var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	outline: 2px solid var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	outline-offset: -2px;
}

.pgsc-side-cart__footer {
	flex-shrink: 0;
	padding: 0;
	border-top: none;
	background: transparent;
	box-shadow: none;
}

.pgsc-side-cart__footer-inner {
	padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.pgsc-side-cart__footer-actions {
	margin-top: 0;
}

.pgsc-side-cart__footer--hidden {
	display: none;
}

.pgsc-side-cart__footer.is-updating {
	opacity: var(--pgsc-opacity-state-loading, 0.72);
	pointer-events: none;
}

.pgsc-side-cart__summary {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 12px;
	padding: 0;
	border-radius: var(--pgsc-radius-lg, 16px);
	background: linear-gradient(165deg, var(--pgsc-color-surface, var(--pgsc-white, #ffffff)) 0%, var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 100%);
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	box-shadow: var(--pgsc-shadow-elevated, 0 8px 24px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08)));
	overflow: hidden;
}

.pgsc-side-cart__summary-title {
	margin: 0;
	padding: 14px 16px 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pgsc-color-primary-light, var(--pgsc-wine-light, #8f3d52));
}

.pgsc-side-cart__summary-lines {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 16px 14px;
}

.pgsc-side-cart__summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	line-height: 1.4;
}

.pgsc-side-cart__summary-row--subtotal {
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
}

.pgsc-side-cart__summary-row--shipping {
	padding-top: 2px;
}

.pgsc-side-cart__summary-label {
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	font-weight: 500;
}

.pgsc-side-cart__summary-label--shipping::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	background-color: currentColor;
	opacity: 0.55;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M1.5 3.5h9l1.5 3h2.5v4.5H12M1.5 11h2M11 11h1.5M3.25 12.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.75 12.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M1.5 3.5h9l1.5 3h2.5v4.5H12M1.5 11h2M11 11h1.5M3.25 12.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.75 12.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pgsc-side-cart__summary-value {
	font-weight: 700;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	text-align: right;
}

.pgsc-side-cart__summary-value .woocommerce-Price-amount {
	font-weight: inherit;
	color: inherit;
}

.pgsc-side-cart__summary-value--placeholder {
	font-weight: 500;
	font-size: 13px;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
}

.pgsc-side-cart__summary-value--free {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pgsc-color-border-subtle, #f8e8ec);
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: inset 0 0 0 1px var(--pgsc-color-accent, #e8b4bc);
}

.pgsc-side-cart__summary-row--shipping-free .pgsc-side-cart__summary-label--shipping {
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-side-cart__summary-total {
	margin-top: 0;
	padding: 14px 16px;
	background: linear-gradient(135deg, var(--pgsc-color-primary-hover, #4f1c2a) 0%, var(--pgsc-color-primary, #6b2838) 55%, var(--pgsc-color-primary-light, #8f3d52) 100%);
}

.pgsc-side-cart__summary-row--total {
	padding-top: 0;
	border-top: none;
	font-size: 18px;
	font-weight: 700;
}

.pgsc-side-cart__summary-row--total .pgsc-side-cart__summary-label,
.pgsc-side-cart__summary-row--total .pgsc-side-cart__summary-value,
.pgsc-side-cart__summary-value--total {
	color: var(--pgsc-color-surface, #ffffff);
}

.pgsc-side-cart__summary-value--total {
	font-size: 20px;
	line-height: 1.1;
}

.pgsc-side-cart__summary-value--total .woocommerce-Price-amount {
	color: inherit;
}

.pgsc-side-cart__trust {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 0 0 14px;
	padding: 0 4px;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
	text-align: center;
}

.pgsc-side-cart__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pgsc-side-cart__trust-item--secure::before,
.pgsc-side-cart__trust-item--shipping::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-color: var(--pgsc-color-primary-light, #8f3d52);
	flex-shrink: 0;
}

.pgsc-side-cart__trust-item--secure::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 1.75 3 4v4.25c0 2.45 2.13 4.74 5 5.25 2.87-.51 5-2.8 5-5.25V4L8 1.75Z' stroke='black' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M6.25 8.25 7.5 9.5 10 7' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 1.75 3 4v4.25c0 2.45 2.13 4.74 5 5.25 2.87-.51 5-2.8 5-5.25V4L8 1.75Z' stroke='black' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M6.25 8.25 7.5 9.5 10 7' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pgsc-side-cart__trust-item--shipping::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 4.5h8.5L12 7.5h2v4H12M2 11.5h1.75M11.25 11.5H13M4.25 12.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM11.75 12.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 4.5h8.5L12 7.5h2v4H12M2 11.5h1.75M11.25 11.5H13M4.25 12.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM11.75 12.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pgsc-side-cart__trust-separator {
	color: var(--pgsc-color-accent, #e8b4bc);
	font-weight: 700;
}

.pgsc-side-cart__checkout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 16px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838)) 0%, var(--pgsc-color-button-primary-bg-light, var(--pgsc-wine-light, #8f3d52)) 100%);
	color: var(--pgsc-color-on-primary, var(--pgsc-white, #ffffff));
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-align: center;
	box-shadow:
		0 12px 28px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16)),
		inset 0 1px 0 var(--pgsc-color-inset-highlight, rgba(255, 255, 255, 0.12));
	transition: background 0.3s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), transform 0.3s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow 0.3s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__checkout-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.pgsc-side-cart__checkout-label::after {
	content: '→';
	font-size: 16px;
	line-height: 1;
	transition: transform 0.3s var(--pgsc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-side-cart__checkout:hover,
.pgsc-side-cart__checkout:focus-visible {
	background: linear-gradient(135deg, var(--pgsc-color-button-primary-bg-hover, var(--pgsc-wine-dark, #4f1c2a)) 0%, var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838)) 100%);
	color: var(--pgsc-color-on-primary, var(--pgsc-white, #ffffff));
	transform: translateY(-2px);
	box-shadow:
		0 16px 32px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16)),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
	outline: none;
}

.pgsc-side-cart__checkout:hover .pgsc-side-cart__checkout-label::after,
.pgsc-side-cart__checkout:focus-visible .pgsc-side-cart__checkout-label::after {
	transform: translateX(4px);
}

.pgsc-side-cart__checkout[aria-disabled='true'],
.pgsc-side-cart__checkout.is-blocked-shipping {
	opacity: var(--pgsc-opacity-state-disabled, 0.68);
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
	box-shadow:
		0 8px 20px var(--pgsc-shadow-wine, rgba(107, 40, 56, 0.16)),
		inset 0 1px 0 var(--pgsc-color-state-disabled-inset-highlight, rgba(255, 255, 255, 0.08));
}

.pgsc-side-cart__checkout.is-calculating-shipping .pgsc-side-cart__checkout-label::after {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid var(--pgsc-color-state-spinner-track-on-primary, var(--pgsc-color-button-spinner-track, rgba(255, 255, 255, 0.35)));
	border-top-color: var(--pgsc-color-state-spinner-active-on-primary, var(--pgsc-color-on-primary, var(--pgsc-white, #ffffff)));
	border-radius: 50%;
	animation: pgsc-spin 0.7s linear infinite;
	transform: none;
}

.pgsc-side-cart__checkout.is-opening-checkout .pgsc-side-cart__checkout-label::after {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid var(--pgsc-color-state-spinner-track-on-primary, var(--pgsc-color-button-spinner-track, rgba(255, 255, 255, 0.35)));
	border-top-color: var(--pgsc-color-state-spinner-active-on-primary, var(--pgsc-color-on-primary, var(--pgsc-white, #ffffff)));
	border-radius: 50%;
	animation: pgsc-spin 0.7s linear infinite;
	transform: none;
}

.pgsc-side-cart__checkout-notice {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: var(--pgsc-radius-sm, 8px);
	background: var(--pgsc-color-state-error-bg, var(--pgsc-color-error-bg, #fdecea));
	color: var(--pgsc-color-state-error-text, var(--pgsc-color-error-text, #611a15));
	font-size: 13px;
	line-height: 1.45;
}

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

.pgsc-side-cart:not(.is-open) .pgsc-side-cart__overlay {
	pointer-events: none;
}

.pgsc-side-cart.is-open .pgsc-side-cart__overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.pgsc-side-cart.is-open .pgsc-side-cart__panel {
	transform: translateX(0);
}

/* FASE 6.2-D — legacy settings: shadow / animations */
.pgsc-side-cart--shadow-off {
	--pgsc-shadow-wine: transparent;
	--pgsc-shadow-soft: transparent;
	--pgsc-shadow-card: none;
	--pgsc-shadow-elevated: none;
}

.pgsc-side-cart--shadow-off .pgsc-side-cart__panel {
	box-shadow: none;
}

.pgsc-side-cart--motion-off .pgsc-side-cart__overlay,
.pgsc-side-cart--motion-off .pgsc-side-cart__panel {
	transition: none;
}

.pgsc-side-cart--motion-off .pgsc-side-cart__empty-card,
.pgsc-side-cart--motion-off .pgsc-side-cart__empty-icon,
.pgsc-side-cart--motion-off .pgsc-side-cart__empty-card::before,
.pgsc-side-cart--motion-off .pgsc-side-cart__empty-card::after {
	animation: none;
}

/* FASE 6.2-E — tema oscuro (fallback flag DS off) */
.pgsc-side-cart--theme-dark {
	--pgsc-primitive-nude: #1c1719;
	--pgsc-primitive-nude-deep: #141012;
	--pgsc-primitive-white: #2a2626;
	--pgsc-primitive-black-soft: #f5ede8;
	--pgsc-primitive-black-muted: #c9bdbf;
	--pgsc-primitive-rose-muted: #3d2f34;
	--pgsc-primitive-rose-soft: #2f2428;
	--pgsc-shadow-soft: transparent;
	--pgsc-shadow-wine: transparent;
	--pgsc-color-surface: #2a2626;
	--pgsc-color-background: #1c1719;
	--pgsc-color-text: #f5ede8;
	--pgsc-color-text-muted: #c9bdbf;
	--pgsc-color-border: #3d2f34;
	--pgsc-color-border-subtle: #2f2428;
}

.pgsc-side-cart--theme-dark .pgsc-side-cart__panel {
	background: var(--pgsc-color-background, #1c1719);
	color: var(--pgsc-color-text, #f5ede8);
}

.pgsc-side-cart--theme-dark .pgsc-side-cart__overlay {
	background: rgba(0, 0, 0, 0.62);
}

body.pgsc-side-cart-open {
	overflow: hidden;
}

@media screen and (min-width: 783px) {
	#pgsc-side-cart .woocommerce-shipping-fields .pgsc-location-layout {
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 782px) {
	.pgsc-side-cart {
		--pgsc-sidecart-width: 100%;
	}

	.pgsc-side-cart__header {
		padding: 18px 16px 16px;
	}

	.pgsc-side-cart__header::after {
		left: 16px;
		right: 16px;
	}

	.pgsc-side-cart__content,
	.pgsc-side-cart__footer-inner,
	.pgsc-side-cart__bottom,
	.pgsc-side-cart__shipping {
		padding-left: 16px;
		padding-right: 16px;
	}

	.pgsc-side-cart__shipping {
		padding-top: 16px;
		padding-bottom: 0;
	}

	.pgsc-side-cart__footer-inner {
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.pgsc-side-cart__summary-title {
		padding: 12px 14px 8px;
	}

	.pgsc-side-cart__summary-lines {
		padding: 0 14px 12px;
	}

	.pgsc-side-cart__summary-total {
		padding: 12px 14px;
	}

	.pgsc-side-cart__summary-row--total {
		font-size: 16px;
	}

	.pgsc-side-cart__summary-value--total {
		font-size: 18px;
	}

	.pgsc-side-cart__trust {
		font-size: 11px;
		margin-bottom: 12px;
	}

	.pgsc-side-cart__checkout {
		min-height: 48px;
		padding: 14px 18px;
		font-size: 14px;
	}

	.pgsc-side-cart__empty {
		min-height: min(320px, 48dvh);
		padding: 20px 16px 28px;
	}

	.pgsc-side-cart__empty-card {
		padding: 24px 18px 20px;
	}

	.pgsc-side-cart__empty-icon {
		width: 56px;
		height: 56px;
		font-size: 26px;
	}

	.pgsc-side-cart__empty-text {
		font-size: 16px;
	}

	.pgsc-side-cart__empty-subtitle {
		font-size: 13px;
	}

	.pgsc-side-cart__item-card {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 12px;
		padding: 12px 40px 12px 12px;
	}

	.pgsc-side-cart__item-image img {
		width: 76px;
		height: 76px;
	}

	.pgsc-side-cart__item-name {
		font-size: 13px;
	}

	.pgsc-side-cart__item-price-value {
		font-size: 12px;
	}

	.pgsc-side-cart__item-subtotal-value {
		font-size: 14px;
	}

	.pgsc-side-cart__quantity-btn {
		width: 34px;
		height: 34px;
		font-size: 17px;
	}

	.pgsc-side-cart__quantity-value {
		min-width: 34px;
		height: 34px;
		font-size: 13px;
	}

	.pgsc-side-cart__remove {
		top: 8px;
		right: 8px;
		width: 30px;
		height: 30px;
	}

	.pgsc-side-cart__title {
		font-size: 20px;
	}

	#pgsc-side-cart .woocommerce-shipping-fields .pgsc-location-layout {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.pgsc-side-cart__shipping-fields label,
	.pgsc-location-field label {
		font-size: 11px;
		letter-spacing: 0.04em;
	}

	.pgsc-side-cart__shipping-fields select {
		min-height: 40px;
		padding: 7px 10px;
		font-size: 12px;
	}

	#pgsc-side-cart #pgsc-city-search,
	.pgsc-side-cart__city-search {
		min-height: 44px;
		padding: 10px;
		font-size: 16px;
	}

	.pgsc-city-results {
		top: calc(100% + 4px);
		max-height: min(200px, 32dvh);
	}

	.pgsc-city-result {
		min-height: 44px;
		padding: 10px 12px;
		font-size: 15px;
	}
}

/* Floating cart button */
.pgsc-cart-button {
	--pgsc-button-color: var(--pgsc-color-button-floating-bg, #1d4ed8);
	position: fixed;
	z-index: calc(var(--pgsc-sidecart-z-index, 99999) - 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px;
	border: none;
	border-radius: 999px;
	background: var(--pgsc-button-color);
	color: var(--pgsc-color-on-primary, #ffffff);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	pointer-events: auto;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pgsc-cart-button:hover,
.pgsc-cart-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
	outline: none;
}

.pgsc-cart-button:focus-visible,
.pgsc-side-cart__close:focus-visible,
.pgsc-side-cart__remove:focus-visible,
.pgsc-side-cart__quantity-btn:focus-visible,
.pgsc-side-cart__checkout:focus-visible,
.pgsc-side-cart__empty-cta:focus-visible,
#pgsc-side-cart #pgsc-city-search:focus-visible {
	outline: 2px solid var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838));
	outline-offset: 2px;
}

.pgsc-cart-button__counter {
	transition: transform 0.25s ease;
}

.pgsc-cart-button__counter.is-bump {
	animation: pgsc-counter-bump 0.35s ease;
}

@keyframes pgsc-counter-bump {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}

/* Add to cart notice */
.pgsc-cart-notice {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: calc(var(--pgsc-sidecart-z-index, 99999) + 2);
	max-width: 320px;
	padding: 14px 18px;
	border-radius: 10px;
	background: var(--pgsc-color-state-notice-bg, #1d2327);
	color: var(--pgsc-color-state-notice-text, #ffffff);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.pgsc-cart-notice.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.pgsc-side-cart__panel,
	.pgsc-side-cart__overlay,
	.pgsc-side-cart__item-card,
	.pgsc-cart-button,
	.pgsc-side-cart__checkout,
	.pgsc-cart-notice,
	.pgsc-side-cart__item-image img,
	.pgsc-side-cart__item-image-link {
		transition: none;
		animation: none;
	}

	.pgsc-side-cart__empty-icon,
	.pgsc-side-cart__empty-card,
	.pgsc-side-cart__empty-card::before,
	.pgsc-side-cart__empty-card::after {
		animation: none;
	}

	.pgsc-side-cart__quantity.is-updating::after {
		animation: none;
		border-top-color: #dcdcde;
	}
}

.pgsc-cart-button.is-active {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

/* Positions */
.pgsc-cart-button--bottom-right {
	bottom: calc(var(--pgsc-button-bottom, 90px) + env(safe-area-inset-bottom, 0px));
	right: var(--pgsc-button-side, 20px);
}

.pgsc-cart-button--bottom-left {
	bottom: calc(var(--pgsc-button-bottom, 90px) + env(safe-area-inset-bottom, 0px));
	left: var(--pgsc-button-side, 20px);
}

.pgsc-cart-button--top-right {
	top: calc(var(--pgsc-button-bottom, 20px) + env(safe-area-inset-top, 0px));
	right: var(--pgsc-button-side, 20px);
}

.pgsc-cart-button--top-left {
	top: calc(var(--pgsc-button-bottom, 20px) + env(safe-area-inset-top, 0px));
	left: var(--pgsc-button-side, 20px);
}

/* Sizes */
.pgsc-cart-button--small {
	padding: 10px;
}

.pgsc-cart-button--small .pgsc-cart-button__icon svg {
	width: 18px;
	height: 18px;
}

.pgsc-cart-button--small .pgsc-cart-button__text {
	font-size: 13px;
}

.pgsc-cart-button--medium {
	padding: 14px;
}

.pgsc-cart-button--medium .pgsc-cart-button__icon svg {
	width: 22px;
	height: 22px;
}

.pgsc-cart-button--medium .pgsc-cart-button__text {
	font-size: 14px;
}

.pgsc-cart-button--large {
	padding: 18px 20px;
}

.pgsc-cart-button--large .pgsc-cart-button__icon svg {
	width: 26px;
	height: 26px;
}

.pgsc-cart-button--large .pgsc-cart-button__text {
	font-size: 15px;
}

/* Icon */
.pgsc-cart-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.pgsc-cart-button__icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Text */
.pgsc-cart-button__text {
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

/* Counter */
.pgsc-cart-button__counter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--pgsc-color-on-primary, #ffffff);
	color: var(--pgsc-button-color);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.pgsc-cart-button:not(.pgsc-cart-button--has-text) {
	position: fixed;
}

.pgsc-cart-button:not(.pgsc-cart-button--has-text) .pgsc-cart-button__counter {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border: 2px solid var(--pgsc-color-on-primary, #ffffff);
}

.pgsc-cart-button--has-text {
	position: fixed;
	border-radius: 12px;
}

