/*
Premium Cart Drawer Styles
*/
/* Drawer base state */
.pcd-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	pointer-events: none;
}

.pcd-drawer .pcd-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.35s ease-in-out;
	pointer-events: none;
}

.pcd-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 560px;
	height: 100vh;
	background: #fff;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
	transform: translateX(600px);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	z-index: 10000;
}

/* Drawer open state */
.pcd-drawer.pcd-open {
	pointer-events: auto;
}

.pcd-drawer.pcd-open .pcd-overlay {
	pointer-events: auto;
	opacity: 1;
}

.pcd-drawer.pcd-open .pcd-panel {
	transform: translateX(0);
}

@media (max-width: 768px) {
	.pcd-panel {
		width: 100vw;
	}
}

.pcd-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 1.5rem 1rem;
	border-bottom: 1px solid #f3f4f6;
}

.pcd-header h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
}

.pcd-close {
	background: none;
	border: none;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	color: #222;
}

.pcd-items {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 1rem 1.5rem;
}

.pcd-cart-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #f3f4f6;
}

.pcd-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

.pcd-info {
	flex: 1 1 0;
}

.pcd-title {
	font-weight: 500;
}

.pcd-variation {
	font-size: 0.95em;
	color: #6b7280;
}

.pcd-qty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.pcd-qty button {
	background: #f3f4f6;
	border: none;
	border-radius: 4px;
	width: 28px;
	height: 28px;
	font-size: 1.1rem;
	cursor: pointer;
}

.pcd-qty-input {
	width: 40px;
	text-align: center;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	height: 28px;
}

.pcd-price {
	font-weight: 500;
	min-width: 70px;
	text-align: right;
}

.pcd-remove {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 1.2rem;
	cursor: pointer;
	margin-left: 0.5rem;
}

.pcd-cart-item.pcd-loading {
	opacity: 0.5;
	background: #f4f4f4;

	transition: opacity 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background 0.2s ease-in-out;
}

.pcd-cart-item.pcd-loading .pcd-qty button,
.pcd-cart-item.pcd-loading .pcd-qty-input,
.pcd-cart-item.pcd-loading .pcd-remove {
	pointer-events: none;
	opacity: 0.6;
}

.pcd-footer {
	border-top: 1px solid #f3f4f6;
	padding: 1.5rem;
}

.pcd-summary {
	margin-bottom: 1.5rem;
}

.pcd-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.pcd-total strong {
	font-size: 1.15rem;
}

.pcd-btn {
	display: block;
	width: 100%;
	padding: 0.85rem 0;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1.05rem;
	text-align: center;
	margin-bottom: 0.75rem;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.pcd-btn-primary {
	background: #22c55e;
	color: #fff;
	border: none;
}

.pcd-btn-primary:hover {
	background: #16a34a;
}

.pcd-btn-outline {
	background: #fff;
	color: #22c55e;
	border: 2px solid #22c55e;
}

.pcd-btn-outline:hover {
	background: #f3f4f6;
}

.pcd-empty {
	text-align: center;
	padding: 4rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.pcd-empty-icon-wrap {
	margin-bottom: 2rem;
}

.pcd-empty-icon {
	display: block;
}

.pcd-empty-title {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: #1f2933;
}

.pcd-empty-subtitle {
	font-size: 1rem;
	color: #6b7280;
	margin: 0 0 2rem;
}




/* My style */
.pcd-header svg {
	width: 20px;
}

.pcd-header h2 {
	font-size: 18px !important;
	line-height: 28px !important;
	font-weight: 600 !important;
	margin: 0;
	flex: 1;
	margin-left: 10px;
}

.pcd-close {
	background: none !important;
	font-size: 1.5rem !important;
}

.pcd-row {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.pcd-subtotal {
	color: #23321b;
}

.pcd-row.pcd-shipping {
	padding-bottom: 10px;
	border-bottom: 1px solid #dde4cd;
}

.pcd-total strong {
	font-size: 1.15rem;
	color: #23321b;
	padding-top: 5px;
}

.pcd-btn-primary {
	background: #396d1c;
	color: #fff !important;
	border: none;
	border-radius: .75rem;
}

.pcd-btn-primary:hover {
	background: #4c7b31;
}

.pcd-btn-outline {
	background: #fff;
	color: #396d1c !important;
	border: 3px solid #396d1c !important;
	border-radius: .75rem;
}

.pcd-btn-outline:hover {
	background: #396d1c !important;
	color: white !important;
	border: 3px solid #396d1c !important;
}

.pcd-thumb img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
}

.cart-input {
	display: inline-flex;
	width: 130px;
	border: 1px solid;
	border-radius: 12px;
}

.pcd-qty-down,
.pcd-qty-up {
	border: none;
	background: none !important;
	padding: 0px 10px !important;
}

.pcd-qty-input {
	appearance: textfield;
	-moz-appearance: textfield;
	/* Firefox */
	border: none !important;
}

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

.pcd-title {
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
}

.cart-right {
	flex: 1;
}

.pcd-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
}

.cart-input-main {
	display: flex;
	justify-content: space-between;
}

.pcd-remove:hover svg {
	color: red;
}

.pcd-price {
	color: #23321b;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
}

.pcd-remove {
	background: none !important;
	padding: 0px 10px !important;
}

.pcd-remove svg {
	width: 20px;
}

.pcd-empty-icon-wrap {
	padding: 23px;
	background-color: #edf1e4;
	border-radius: 100%;
	display: flex;
}

.pcd-empty-icon-wrap .lucide.lucide-shopping-bag.h-10.w-10.text-muted-foreground {
	width: 30px;
	height: 30px;
}

.pcd-empty {
	height: 100%;
}

.pcd-empty .pcd-btn.pcd-btn-primary {
	width: 200px;
}


.pcd-skeleton-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #F3F4F6;
}

.pcd-skeleton-thumb {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #E5E7EB;
}

.pcd-skeleton-lines {
	flex: 1 1 0;
}

.pcd-skeleton-line {
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, #E5E7EB 0%, #F3F4F6 50%, #E5E7EB 100%);
	background-size: 200% 100%;
	animation: pcd-skeleton 1.2s infinite;
	margin-bottom: 6px;
}

.pcd-skeleton-line:last-child {
	width: 60%;
	margin-bottom: 0;
}

.pcd-skeleton-price {
	width: 70px;
	height: 14px;
	border-radius: 999px;
	background: #E5E7EB;
}

.pcd-footer.pcd-skeleton {
	opacity: 0.8;
}

.pcd-footer.pcd-skeleton .pcd-row span,
.pcd-footer.pcd-skeleton .pcd-row strong {
	background: #E5E7EB;
	color: transparent;
	border-radius: 999px;
	padding: 4px 0;
}

@keyframes pcd-skeleton-shimmer {
	0% {
		background-position: -200% 0;
	}

	100% {
		background-position: 200% 0;
	}
}