/* Add-to-cart modal (#addToCart) — footer.php, все страницы с карточками товаров */

body.modal-open {
	overflow: hidden;
}

.atc-modal {
	background: #fff;
	border-radius: 20px;
	width: 100%;
	max-width: 420px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
	position: relative;
}

.atc-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	background: rgba(0,0,0,.06);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	z-index: 2;
	transition: background .2s, color .2s;
}

.atc-modal__close:hover {
	background: rgba(0,0,0,.12);
	color: #333;
}

.atc-modal__header {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	padding: 38px 24px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
}

.atc-modal__header::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 20px;
	background: #fff;
	border-radius: 20px 20px 0 0;
}

.atc-modal__check {
	width: 52px;
	height: 52px;
	background: rgba(0,167,225,.12);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.atc-modal__check svg {
	width: 26px;
	height: 26px;
	stroke: #00a7e1;
	stroke-width: 2.5;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.atc-modal__title {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.25;
}

.atc-modal__product {
	padding: 20px 24px 0;
	display: flex;
	align-items: center;
	gap: 16px;
}

.atc-modal__product-img {
	width: 68px;
	height: 68px;
	border-radius: 12px;
	object-fit: cover;
	background: #f5f5f0;
	flex-shrink: 0;
	border: 1px solid #eee;
}

.atc-modal__product-info {
	flex: 1;
	min-width: 0;
}

.atc-modal__product-name {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 4px;
}

.atc-modal__product-price {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	font-variant-numeric: tabular-nums;
}

.atc-modal__divider {
	height: 1px;
	background: #f0f0ee;
	margin: 18px 24px 0;
}

.atc-modal__actions {
	padding: 18px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.atc-modal__btn-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	background: linear-gradient(135deg, #00a7e1 0%, #0091c7 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0,167,225,.25);
	transition: transform .15s, box-shadow .2s;
}

.atc-modal__btn-cart:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0,167,225,.35);
	color: #fff;
}

.atc-modal__btn-cart:active {
	transform: translateY(0) scale(.98);
}

.atc-modal__btn-cart svg {
	fill: currentColor;
	flex-shrink: 0;
}

.atc-modal__btn-continue {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 20px;
	background: transparent;
	color: #666;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid #e8e8e6;
	border-radius: 12px;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}

.atc-modal__btn-continue:hover {
	background: #f7f7f5;
	border-color: #ccc;
	color: #333;
}
