/**
 * ShopZone Pro — Slide-out Flyout Side Cart Drawer Styles
 */

/* Backdrop Overlay */
.shopzone-cart-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999990;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.shopzone-cart-drawer-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Slide-out Drawer Panel */
.shopzone-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 440px;
	max-width: 100vw;
	height: 100%;
	background: #ffffff;
	box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
	z-index: 999995;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}

.shopzone-cart-drawer.active {
	transform: translateX(0);
}

.shopzone-cart-drawer-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

/* Drawer Header */
.shopzone-cart-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: #ffffff;
	border-bottom: 1px solid #edf0f5;
}

.shopzone-cart-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.shopzone-cart-title-wrap i {
	font-size: 20px;
	color: #ff6000;
}

.shopzone-cart-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.shopzone-cart-count-badge {
	background: #ff6000;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	min-width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.shopzone-cart-drawer-close {
	background: #f1f5f9;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #475569;
	font-size: 16px;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.shopzone-cart-drawer-close:hover {
	background: #fee2e2;
	color: #ef4444;
	transform: rotate(90deg);
}

/* Free Shipping Bar */
.shopzone-cart-free-shipping {
	background: #fff8f3;
	border-bottom: 1px solid #ffe6d5;
	padding: 14px 24px;
}

.free-shipping-text {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.free-shipping-text .unlocked {
	color: #16a34a;
	display: flex;
	align-items: center;
	gap: 6px;
}

.free-shipping-progress-track {
	width: 100%;
	height: 7px;
	background: #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.free-shipping-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #ff7a1a 0%, #ff4500 100%);
	border-radius: 10px;
	transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Drawer Body (Items list) */
.shopzone-cart-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 24px;
	position: relative;
}

.shopzone-cart-drawer-body::-webkit-scrollbar {
	width: 5px;
}
.shopzone-cart-drawer-body::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.shopzone-cart-items-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shopzone-cart-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
	transition: opacity 0.2s ease;
}

.shopzone-cart-item:last-child {
	border-bottom: none;
}

.cart-item-image {
	width: 72px;
	height: 72px;
	min-width: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #edf2f7;
}

.cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cart-item-details {
	flex: 1;
	min-width: 0;
}

.cart-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}

.cart-item-name {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
	line-height: 1.35;
}

.cart-item-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.cart-item-name a:hover {
	color: #ff6000;
}

.cart-item-remove {
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 2px 4px;
	font-size: 14px;
	transition: color 0.15s ease, transform 0.15s ease;
}

.cart-item-remove:hover {
	color: #ef4444;
	transform: scale(1.15);
}

.cart-item-meta {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 10px;
}

.cart-item-meta dl {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cart-item-meta dt, .cart-item-meta dd {
	margin: 0;
	display: inline;
}

.cart-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Quantity adjuster */
.cart-item-qty-adjuster {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #f8fafc;
	padding: 2px;
}

.cart-item-qty-adjuster .qty-btn {
	background: #ffffff;
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 10px;
	color: #334155;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: background 0.15s, color 0.15s;
}

.cart-item-qty-adjuster .qty-btn:hover {
	background: #ff6000;
	color: #ffffff;
}

.cart-item-qty-adjuster .qty-input {
	width: 32px;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	-moz-appearance: textfield;
	padding: 0;
}

.cart-item-qty-adjuster .qty-input::-webkit-outer-spin-button,
.cart-item-qty-adjuster .qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cart-item-subtotal {
	font-size: 15px;
	font-weight: 700;
	color: #ff6000;
}

/* Empty State */
.shopzone-cart-empty {
	text-align: center;
	padding: 48px 16px;
}

.shopzone-cart-empty .empty-icon {
	font-size: 54px;
	color: #cbd5e1;
	margin-bottom: 16px;
}

.shopzone-cart-empty h4 {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
}

.shopzone-cart-empty p {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 24px;
	line-height: 1.5;
}

.shopzone-cart-empty .shopzone-cart-return-shop {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

/* Drawer Footer */
.shopzone-cart-drawer-footer {
	background: #ffffff;
	border-top: 1px solid #edf0f5;
	padding: 20px 24px;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

.shopzone-cart-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.shopzone-cart-subtotal-row .subtotal-label {
	font-size: 16px;
	font-weight: 600;
	color: #334155;
}

.shopzone-cart-subtotal-row .subtotal-amount {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

.cart-tax-notice {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 16px 0;
	text-align: center;
}

.shopzone-cart-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.shopzone-cart-actions .btn-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	background: #ff6000;
	color: #ffffff;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background 0.2s ease, transform 0.15s ease;
}

.shopzone-cart-actions .btn-checkout:hover {
	background: #e05300;
	color: #ffffff;
	transform: translateY(-1px);
}

.shopzone-cart-actions .btn-view-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 11px 20px;
	background: #f1f5f9;
	color: #334155;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.shopzone-cart-actions .btn-view-cart:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
	.shopzone-cart-drawer {
		width: 100vw;
	}
	.shopzone-cart-drawer-header,
	.shopzone-cart-free-shipping,
	.shopzone-cart-drawer-body,
	.shopzone-cart-drawer-footer {
		padding-left: 16px;
		padding-right: 16px;
	}
}
