/**
 * Side Cart for WooCommerce styling
 * Tailored for Cukiernia theme & Figma designs (355:17644, 355:17718, 355:17710)
 */

/* Hide default floating basket so only header trigger is used */
.xoo-wsc-basket {
	display: none !important;
}

/* Modal and Backdrop */
.xoo-wsc-modal {
	z-index: 999999 !important;
}

.xoo-wsc-opac {
	background-color: rgba(0, 0, 0, 0.45) !important;
	backdrop-filter: blur(3px);
	transition: opacity 0.35s ease !important;
}

/* Side Cart Panel Container */
.xoo-wsc-modal .xoo-wsc-container {
	background-color: #F4EBE1 !important;
	height: 100% !important;
	box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15) !important;
	display: flex !important;
	flex-direction: column !important;
	font-family: var(--font-primary, 'KyivType Sans');
	color: #4D3024 !important;
	border: none !important;
	box-sizing: border-box !important;
}

/* Header */
.xoo-wsc-header {
	background-color: #F4EBE1 !important;
	padding: 0 !important;
	border-bottom: 1px solid rgba(77, 48, 36, 0.15) !important;
	flex-shrink: 0 !important;
}

.xoo-wsch-top {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 24px 32px 20px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.xoo-wsch-heading {
	flex-grow: 1 !important;
}

.xoo-wsch-text {
	font-family: 'Romile', serif !important;
	font-size: 24px !important;
	line-height: 1.2 !important;
	font-weight: 400 !important;
	color: #80142E !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
}

/* Close button */
.xoo-wsc-header .xoo-wsch-close {
	background: transparent !important;
	border: none !important;
	cursor: pointer !important;
	color: #80142E !important;
	padding: 4px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	transition: opacity 0.2s ease, transform 0.2s ease !important;
	outline: none !important;
}

.xoo-wsc-header .xoo-wsch-close:hover {
	opacity: 0.7 !important;
	transform: rotate(90deg) !important;
}

.xoo-wsc-header .xoo-wsch-close svg {
	width: 22px !important;
	height: 22px !important;
	display: block !important;
}

/* Body container */
.xoo-wsc-body {
	background-color: #F4EBE1 !important;
	flex: 1 1 auto !important;
	overflow-y: auto !important;
	padding: 8px 32px 24px !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
}

/* Custom scrollbar */
.xoo-wsc-body::-webkit-scrollbar {
	width: 5px;
}

.xoo-wsc-body::-webkit-scrollbar-track {
	background: #F4EBE1;
}

.xoo-wsc-body::-webkit-scrollbar-thumb {
	background-color: rgba(128, 20, 46, 0.2);
	border-radius: 4px;
}

/* Products List */
.xoo-wsc-products {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
}

/* Product Card */
.xoo-wsc-product {
	padding: 20px 0 !important;
	border-bottom: 1px solid rgba(77, 48, 36, 0.15) !important;
	background: transparent !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.xoo-wsc-product:last-child {
	border-bottom: none !important;
}

.xoo-wsc-card-inner {
	display: flex !important;
	gap: 16px !important;
	align-items: flex-start !important;
	width: 100% !important;
}

/* Product Thumbnail */
.xoo-wsc-img-col {
	width: 48px !important;
	height: 48px !important;
	flex-shrink: 0 !important;
	border-radius: 4px !important;
	overflow: hidden !important;
	background-color: rgba(77, 48, 36, 0.05) !important;
}

.xoo-wsc-img-col img {
	width: 48px !important;
	height: 48px !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: 4px !important;
}

/* Product Summary Col */
.xoo-wsc-sum-col {
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	width: auto !important;
}

.xoo-wsc-sm-top {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	gap: 12px !important;
	width: 100% !important;
}

.xoo-wsc-pname-wrap {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
}

.xoo-wsc-pname {
	font-family: 'Romile', serif !important;
	font-size: 20px !important;
	line-height: 1.25 !important;
	font-weight: 400 !important;
	color: #80142E !important;
	text-transform: uppercase !important;
	letter-spacing: 0.01em !important;
}

.xoo-wsc-pname a {
	color: #80142E !important;
	text-decoration: none !important;
}

.xoo-wsc-pname a:hover {
	opacity: 0.8 !important;
}

.xoo-wsc-pmeta {
	font-family: var(--font-primary, 'KyivType Sans');
	font-size: 12px !important;
	color: #4D3024 !important;
	opacity: 0.85 !important;
	line-height: 1.3 !important;
}

/* Delete button */
.xoo-wsc-smr-del {
	background: transparent !important;
	border: none !important;
	cursor: pointer !important;
	color: #80142E !important;
	padding: 2px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	opacity: 0.8 !important;
	transition: opacity 0.2s ease !important;
	outline: none !important;
}

.xoo-wsc-smr-del:hover {
	opacity: 1 !important;
}

.xoo-wsc-smr-del svg {
	width: 20px !important;
	height: 20px !important;
	display: block !important;
}

/* Product Bottom Row */
.xoo-wsc-sm-bottom {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	gap: 12px !important;
	margin-top: 2px !important;
	width: 100% !important;
}

.xoo-wsc-pprice {
	display: flex !important;
	align-items: baseline !important;
	gap: 6px !important;
}

.xoo-wsc-price-label {
	font-family: var(--font-primary, 'KyivType Sans');
	font-size: 14px !important;
	color: #4D3024 !important;
}

.xoo-wsc-price-val,
.xoo-wsc-price-val .woocommerce-Price-amount,
.xoo-wsc-pprice .amount {
	font-family: var(--font-primary, 'KyivType Sans');
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #80142E !important;
}

/* Quantity Box */
.xoo-wsc-qty-box {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

.xoo-wsc-minus,
.xoo-wsc-plus {
	background: transparent !important;
	border: none !important;
	color: #4D3024 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	width: 22px !important;
	height: 22px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	transition: color 0.2s ease, transform 0.15s ease !important;
}

.xoo-wsc-minus:hover,
.xoo-wsc-plus:hover {
	color: #80142E !important;
}

input[type="number"].xoo-wsc-qty {
	width: 24px !important;
	height: 24px !important;
	border-radius: 50% !important;
	background-color: #80142E !important;
	color: #F4EBE1 !important;
	border: none !important;
	text-align: center !important;
	font-family: var(--font-primary, 'KyivType Sans');
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 24px !important;
	padding: 0 !important;
	margin: 0 !important;
	appearance: textfield !important;
	-moz-appearance: textfield !important;
	-webkit-appearance: none !important;
	outline: none !important;
	box-shadow: none !important;
}

input[type="number"].xoo-wsc-qty::-webkit-outer-spin-button,
input[type="number"].xoo-wsc-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Empty Cart State */
.xoo-wsc-empty-cart {
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	padding: 40px 16px !important;
	margin: auto 0 !important;
}

.xoo-wsc-empty-text {
	font-family: 'Romile', serif !important;
	font-size: 24px !important;
	line-height: 1.3 !important;
	font-weight: 400 !important;
	color: #80142E !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
	margin: 0 0 28px 0 !important;
}

.xoo-wsc-empty-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 24px 32px !important;
	font-family: var(--font-primary, 'KyivType Sans');
	font-size: 14px !important;
	font-weight: 300 !important;
	text-transform: none !important;
	letter-spacing: 0.04em !important;
	color: #F4EBE1 !important;
	background-color: #80142E !important;
	border: 1px solid #80142E !important;
	border-radius: 20px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	outline: none !important;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.xoo-wsc-empty-btn:hover {
	background-color: transparent !important;
	color: #80142E !important;
}

/* Suggested Products (Радимо додати:) */
.xoo-wsc-sp-container {
	background-color: transparent !important;
	margin-top: 16px !important;
	padding: 16px 0 0 !important;
	border-top: 1px solid rgba(77, 48, 36, 0.15) !important;
}

.xoo-wsc-sp-heading {
	font-family: 'Romile', serif !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	color: #80142E !important;
	text-transform: uppercase !important;
	margin: 0 0 14px 0 !important;
}

.xoo-wsc-sp-slider {
	display: flex !important;
	gap: 12px !important;
	overflow-x: auto !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 0 8px 0 !important;
}

.xoo-wsc-sp-product {
	flex: 0 0 auto !important;
	display: flex !important;
	gap: 10px !important;
	align-items: center !important;
	background: rgba(255, 255, 255, 0.6) !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	box-shadow: 0 2px 6px rgba(77, 48, 36, 0.05) !important;
}

.xoo-wsc-sp-left-col img {
	width: 40px !important;
	height: 40px !important;
	object-fit: cover !important;
	border-radius: 4px !important;
	display: block !important;
}

.xoo-wsc-sp-title {
	font-family: 'Romile', serif !important;
	font-size: 14px !important;
	color: #80142E !important;
	text-transform: uppercase !important;
}

.xoo-wsc-sp-price {
	font-family: var(--font-primary, 'KyivType Sans');
	font-size: 13px !important;
	color: #80142E !important;
	font-weight: 500 !important;
}

/* Footer Section */
.xoo-wsc-footer {
	background-color: #F4EBE1 !important;
	border-top: 1px solid rgba(77, 48, 36, 0.15) !important;
	padding: 24px 32px 32px !important;
	flex-shrink: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
}

/* Hide odd default empty-cart link */
.xoo-wsc-ecl {
	display: none !important;
}

/* Totals Row */
.xoo-wsc-ft-totals {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.xoo-wsc-ft-amt {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
}

.xoo-wsc-ft-amt-label {
	font-family: 'Romile', serif !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	color: #80142E !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
}

.xoo-wsc-ft-amt-value,
.xoo-wsc-ft-amt-value .amount,
.xoo-wsc-ft-amt-value .woocommerce-Price-amount {
	font-family: 'Romile', serif !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	color: #80142E !important;
	letter-spacing: 0.02em !important;
}

/* Action Buttons */
.xoo-wsc-ft-buttons-cont {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	grid-template-columns: none !important;
}

.xoo-wsc-btn {
	width: 100% !important;
	height: 68px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 20px !important;
	font-family: var(--font-primary, 'KyivType Sans');
	font-size: 14px !important;
	font-weight: 300 !important;
	text-transform: none !important;
	letter-spacing: 0.04em !important;
	padding: 24px 32px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
	outline: none !important;
}

/* Continue button */
.xoo-wsc-btn-continue {
	background-color: transparent !important;
	border: 1px solid #80142E !important;
	color: #80142E !important;
}

.xoo-wsc-btn-continue:hover {
	background-color: #80142E !important;
	color: #F4EBE1 !important;
}

/* Checkout button */
.xoo-wsc-btn-checkout {
	background-color: #80142E !important;
	border: 1px solid #80142E !important;
	color: #F4EBE1 !important;
}

.xoo-wsc-btn-checkout:hover {
	background-color: #640f24 !important;
	border-color: #640f24 !important;
	color: #F4EBE1 !important;
}

.xoo-wsc-ft-amt-total {
	border: unset;
}

/* Mobile viewport adjustments */
@media (max-width: 575px) {

	.xoo-wsch-top {
		padding: 20px 20px 16px !important;
	}

	.xoo-wsch-text {
		font-size: 20px !important;
	}

	.xoo-wsc-body {
		padding: 6px 20px 20px !important;
	}

	.xoo-wsc-pname {
		font-size: 18px !important;
	}

	.xoo-wsc-footer {
		padding: 20px 20px 24px !important;
	}

	.xoo-wsc-ft-amt-label,
	.xoo-wsc-ft-amt-value,
	.xoo-wsc-ft-amt-value .amount,
	.xoo-wsc-ft-amt-value .woocommerce-Price-amount {
		font-size: 20px !important;
	}

	.xoo-wsc-btn {
		height: 54px !important;
		font-size: 13px !important;
	}

	.xoo-wsc-empty-text {
		font-size: 20px !important;
	}
}