/* =====================================================
CONTENEDOR GENERAL
===================================================== */

.itshop-cart{

	position:fixed;

	inset:0;

	z-index:999999;

	pointer-events:none;

}


/* =====================================================
OVERLAY
===================================================== */

.itshop-cart__overlay{

	position:absolute;

	inset:0;

	background:rgba(0,0,0,.45);

	opacity:0;

	transition:.30s;

}


/* =====================================================
DRAWER
===================================================== */

.itshop-cart__drawer{

	position:absolute;

	top:0;

	right:0;

	width:420px;

	max-width:100%;

	height:100%;

	background:#fff;

	transform:translateX(100%);

	transition:.35s ease;

	box-shadow:-12px 0 30px rgba(0,0,0,.15);

	display:flex;

	flex-direction:column;

}


/* =====================================================
ESTADO ABIERTO
===================================================== */

.itshop-cart.is-open{

	pointer-events:auto;

}

.itshop-cart.is-open
.itshop-cart__overlay{

	opacity:1;

}

.itshop-cart.is-open
.itshop-cart__drawer{

	transform:translateX(0);

}


/* =====================================================
HEADER
===================================================== */

.itshop-cart__header{

	display:flex;

	align-items:center;

	justify-content:space-between;

	padding:24px;

	border-bottom:1px solid #E5EAF2;

}

.itshop-cart__header h2{

	margin:0;

	font-size:28px;

	font-weight:700;

	color:#2A2757;

}


/* =====================================================
   BOTÓN CERRAR
===================================================== */

.itshop-cart__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 42px;
	height: 42px;
	min-width: 42px;

	margin: 0;
	padding: 0;

	color: #214c8e !important;

	background-color:
		rgba(33, 76, 142, 0.08) !important;

	border:
		1px solid
		rgba(33, 76, 142, 0.12) !important;

	border-radius: 50% !important;

	appearance: none;
	-webkit-appearance: none;

	outline: none !important;
	box-shadow: none !important;

	cursor: pointer;

	transform: none;

	transition:
		color 0.25s ease,
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.itshop-cart__close i {
	color: inherit !important;

	font-size: 19px;
	line-height: 1;
}


/* Estado hover */

.itshop-cart__close:hover {
	color: #ffffff !important;

	background-color: #214c8e !important;
	border-color: #214c8e !important;

	outline: none !important;
	box-shadow: none !important;

	transform: rotate(90deg);
}


/* Clic momentáneo */

.itshop-cart__close:active {
	color: #ffffff !important;

	background-color: #2b6cb0 !important;
	border-color: #2b6cb0 !important;

	outline: none !important;
	box-shadow: none !important;

	transform: rotate(90deg) scale(0.94);
}


/* Foco normal después del clic */

.itshop-cart__close:focus {
	color: #214c8e !important;

	background-color:
		rgba(33, 76, 142, 0.08) !important;

	border-color:
		rgba(33, 76, 142, 0.12) !important;

	outline: none !important;
	box-shadow: none !important;

	transform: none;
}


/* Foco visible únicamente con teclado */

.itshop-cart__close:focus-visible {
	color: #214c8e !important;

	background-color:
		rgba(33, 76, 142, 0.08) !important;

	border-color: #00d0ff !important;

	outline:
		2px solid #00d0ff !important;

	outline-offset: 3px;

	box-shadow: none !important;

	transform: none;
}


/* Firefox */

.itshop-cart__close::-moz-focus-inner {
	padding: 0;

	border: 0;
}

/* =====================================================
BODY
===================================================== */

.itshop-cart__body{

	flex:1;

	padding:24px;

	overflow:auto;

}




body.itshop-cart-open {
	overflow: hidden;
}


/* =====================================================
   ESTADO VACÍO
===================================================== */

.itshop-cart__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;

	min-height: 320px;

	padding: 30px 15px;

	text-align: center;
}

.itshop-cart__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 72px;
	height: 72px;
	margin-bottom: 20px;

	color: #214c8e;

	background-color: rgba(33, 76, 142, 0.08);

	border-radius: 50%;
}

.itshop-cart__empty-icon i {
	font-size: 28px;
}

.itshop-cart__empty h3 {
	margin: 0 0 8px;

	color: #2a2757;

	font-size: 22px;
	line-height: 1.25;
}

.itshop-cart__empty p {
	max-width: 280px;
	margin: 0;

	color: #69717e;

	font-size: 15px;
	line-height: 1.5;
}


/* =====================================================
   PRODUCTO DEL CARRITO
===================================================== */

.itshop-cart-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);

	gap: 16px;

	padding: 18px 0;

	border-bottom: 1px solid #e5eaf2;
}

.itshop-cart-item__image {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 92px;
	height: 92px;

	overflow: hidden;

	background-color: #ffffff;

	border: 1px solid rgba(33, 76, 142, 0.12);
	border-radius: 12px;
}

.itshop-cart-item__image img {
	width: 100%;
	height: 100%;

	padding: 8px;

	object-fit: contain;
}

.itshop-cart-item__content {
	min-width: 0;
}

.itshop-cart-item__title {
	margin: 0 0 8px;

	color: #2a2757;

	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.itshop-cart-item__price {
	margin-bottom: 6px;

	color: #214c8e;

	font-size: 18px;
	font-weight: 700;
}

.itshop-cart-item__quantity {
	color: #69717e;

	font-size: 14px;
	line-height: 1.4;
}

/* =====================================================
   PIE DEL CARRITO
===================================================== */

.itshop-cart__footer {
	flex-shrink: 0;

	padding: 20px 24px 24px;

	background-color: #ffffff;

	border-top: 1px solid #e5eaf2;

	box-shadow:
		0 -8px 24px rgba(24, 50, 100, 0.06);
}

.itshop-cart__subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 20px;

	margin-bottom: 16px;
}

.itshop-cart__subtotal span {
	color: #5f6673;

	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.itshop-cart__subtotal strong {
	color: #214c8e;

	font-size: 23px;
	font-weight: 700;
	line-height: 1.2;
}


/* =====================================================
   BOTÓN WHATSAPP
===================================================== */

.itshop-cart__whatsapp-button,
.itshop-cart__whatsapp-button:link,
.itshop-cart__whatsapp-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 10px;

	width: 100%;
	min-height: 52px;

	padding: 12px 20px;

	color: #ffffff !important;

	background:
		linear-gradient(
			90deg,
			#214c8e 0%,
			#2b6cb0 55%,
			#00d0ff 100%
		) !important;

	background-size: 160% 160% !important;
	background-position: left center !important;

	border: 0 !important;
	border-radius: 12px;

	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;

	box-shadow:
		0 10px 24px rgba(33, 76, 142, 0.18);

	transition:
		background-position 0.35s ease,
		box-shadow 0.35s ease,
		transform 0.25s ease;
}

.itshop-cart__whatsapp-button:hover,
.itshop-cart__whatsapp-button:focus,
.itshop-cart__whatsapp-button:active {
	color: #ffffff !important;

	background-position: right center !important;

	text-decoration: none !important;

	box-shadow:
		0 14px 30px rgba(33, 76, 142, 0.25);

	transform: translateY(-1px);
}

.itshop-cart__whatsapp-button i {
	color: inherit !important;

	font-size: 20px;
	line-height: 1;
}


/* =====================================================
   CONTROLES DE CANTIDAD
===================================================== */

.itshop-cart-item__controls {
	display: flex;
	align-items: center;

	gap: 7px;

	margin-top: 12px;
}

.itshop-cart-item__minus,
.itshop-cart-item__plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;
	min-width: 34px;

	margin: 0 !important;
	padding: 0 !important;

	color: #214c8e !important;

	background-color: #ffffff !important;

	border: 1px solid rgba(33, 76, 142, 0.22) !important;
	border-radius: 9px !important;

	font-size: 20px;
	font-weight: 600;
	line-height: 1;

	cursor: pointer;

	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.itshop-cart-item__minus:hover,
.itshop-cart-item__minus:focus,
.itshop-cart-item__plus:hover,
.itshop-cart-item__plus:focus {
	color: #ffffff !important;

	background-color: #214c8e !important;
	border-color: #214c8e !important;

	transform: translateY(-1px);
}

.itshop-cart-item__qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 30px;
	height: 34px;

	color: #2a2757;

	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}


/* =====================================================
   BOTÓN ELIMINAR
===================================================== */

.itshop-cart-item__delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;
	min-width: 34px;

	margin: 0 0 0 auto !important;
	padding: 0 !important;

	color: #8b93a1 !important;

	background-color: transparent !important;

	border: 0 !important;
	border-radius: 9px !important;

	cursor: pointer;

	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		transform 0.2s ease;
}

.itshop-cart-item__delete i {
	color: inherit !important;

	font-size: 15px;
	line-height: 1;
}

.itshop-cart-item__delete:hover,
.itshop-cart-item__delete:focus {
	color: #c8324a !important;

	background-color: rgba(200, 50, 74, 0.08) !important;

	transform: translateY(-1px);
}


/* =====================================================
   PRODUCTOS DEL CARRITO
===================================================== */

.itshop-cart-item {
	align-items: start;

	padding: 20px 0;
}

.itshop-cart-item:first-child {
	padding-top: 4px;
}

.itshop-cart-item__title {
	display: -webkit-box;

	overflow: hidden;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 520px) {

	.itshop-cart__drawer {
		width: 100%;
	}

	.itshop-cart__header {
		padding: 18px;
	}

	.itshop-cart__body {
		padding: 18px;
	}

	.itshop-cart__footer {
		padding: 18px;
	}

	.itshop-cart-item {
		grid-template-columns:
			78px minmax(0, 1fr);

		gap: 13px;
	}

	.itshop-cart-item__image {
		width: 78px;
		height: 78px;
	}

	.itshop-cart__subtotal strong {
		font-size: 21px;
	}
}



/* =====================================================
   NOTIFICACIONES DEL CARRITO
===================================================== */

.itshop-cart-notice {
	position: fixed;
	z-index: 1000000;
	right: 24px;
	bottom: 24px;

	display: flex;
	align-items: center;

	gap: 12px;

	width: min(
		calc(100% - 36px),
		390px
	);

	padding: 14px 18px;

	color: #ffffff;

	background:
		linear-gradient(
			90deg,
			#214c8e 0%,
			#2b6cb0 68%,
			#2584c7 100%
		);

	border: 1px solid rgba(
		255,
		255,
		255,
		0.16
	);

	border-radius: 14px;

	box-shadow:
		0 16px 38px
		rgba(24, 50, 100, 0.28);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transform:
		translateY(18px);

	transition:
		opacity 0.28s ease,
		visibility 0.28s ease,
		transform 0.28s ease;
}

.itshop-cart-notice.is-visible {
	opacity: 1;
	visibility: visible;

	transform:
		translateY(0);
}

.itshop-cart-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	width: 34px;
	height: 34px;

	color: #ffffff;

	background-color:
		rgba(255, 255, 255, 0.14);

	border-radius: 50%;
}

.itshop-cart-notice__icon i {
	color: inherit;

	font-size: 15px;
	line-height: 1;
}

.itshop-cart-notice__message {
	color: #ffffff;

	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.itshop-cart-notice.is-warning {
	background:
		linear-gradient(
			90deg,
			#2a2757 0%,
			#214c8e 100%
		);
}

@media (max-width: 520px) {

	.itshop-cart-notice {
		right: 18px;
		bottom: 18px;
		left: 18px;

		width: auto;
	}
}


.itshop-cart__whatsapp-button i{

	color:inherit !important;

	font-size:20px;

	line-height:1;

}

/* Estado deshabilitado */

.itshop-cart__whatsapp-button.is-disabled{

	opacity:.5;

	cursor:not-allowed;

	transition:
		opacity .25s ease;

}