/* 
 * Custom Woo Card Plugin Styles
 * @package CustomWooCard
 * @author Foysal Hasan
 * @license GPL2
 */

/* Add this at the top of your CSS file */
@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik/Rubik-Regular.woff2") format("woff2"),
		url("../fonts/rubik/Rubik-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik/Rubik-Bold.woff2") format("woff2"), url("../fonts/rubik/Rubik-Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Color System - Primary Color Variants */
:root {
	/* Primary color RGB values for rgba usage */
	--cwc-primary-rgb: 37, 99, 235; /* Default blue RGB values */

	/* Primary color variants using rgba with CSS variables */
	--cwc-primary-50: rgba(var(--cwc-primary-rgb), 0.05);
	--cwc-primary-100: rgba(var(--cwc-primary-rgb), 0.1);
	--cwc-primary-200: rgba(var(--cwc-primary-rgb), 0.2);
	--cwc-primary-300: rgba(var(--cwc-primary-rgb), 0.3);
	--cwc-primary-500: var(--cwc-primary, #2563eb);

	/* Darker variants for modern browsers with color-mix support */
	--cwc-primary-600: #1d4ed8; /* Fallback */
	--cwc-primary-700: #1e40af; /* Fallback */
	--cwc-primary-800: #1e3a8a; /* Fallback */
}

/* Modern color-mix support for dynamic color variants */
@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--cwc-primary-600: color-mix(in srgb, var(--cwc-primary, #2563eb) 90%, black 10%);
		--cwc-primary-700: color-mix(in srgb, var(--cwc-primary, #2563eb) 80%, black 20%);
		--cwc-primary-800: color-mix(in srgb, var(--cwc-primary, #2563eb) 70%, black 30%);
	}
}

.custom-woo-card,
.custom-woo-card * {
	font-family: "Rubik", Arial, Helvetica, sans-serif !important;
}
.custom-woo-card {
	width: 100%;
	max-width: 450px;
	min-height: 370px;
	background-color: rgb(255, 255, 255);
	box-shadow: rgba(0, 0, 0, 0.18) 0px 0.602187px 0.602187px -1.25px, rgba(0, 0, 0, 0.16) 0px 2.28853px 2.28853px -2.5px,
		rgba(0, 0, 0, 0.06) 0px 10px 10px -3.75px;
	margin: 0 auto;
	border-radius: 32px;
	padding: 40px;
	border: 1px solid rgba(34, 34, 34, 0.25);
	position: relative;
}
.custom-woo-card .attribute-items-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	user-select: none;
}
.custom-woo-card .attribute-item {
	background: transparent;
	color: #000;
	font-weight: 400;
	font-size: 14px;
	border: 1px solid rgb(0 0 0 / 20%);
	padding: 12px 16px;
	border-radius: 8px;
	text-transform: uppercase;
	transition: border-color 0.3s ease-in-out, background 0.3s ease-in-out, color 0.3s ease-in-out;
}
.custom-woo-card .attribute-item:hover {
	border-color: var(--cwc-primary);
	color: var(--cwc-primary);
}
.custom-woo-card .attribute-label {
	font-weight: 400 !important;
	color: #1b1b1b !important;
	text-transform: capitalize;
	margin-bottom: 8px !important;
	font-size: 16px !important;
	line-height: 1;
}
.custom-woo-card-price {
	margin-bottom: 30px;
}
.custom-woo-card-bottom-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
button.custom-woo-card-add-to-cart {
	background: transparent;
	border: 1px solid var(--cwc-primary);
	color: var(--cwc-primary);
	user-select: none;
	text-transform: uppercase;
	padding: 10px 12px;
	font-size: 16px;
	transition: background 0.3s ease-in-out;
}
button.custom-woo-card-add-to-cart:hover {
	background: var(--cwc-primary);
	color: #fff;
}
.custom-woo-card-view-counter {
	display: flex;
	align-items: center;
	color: var(--cwc-primary);
	font-weight: 600;
	line-height: 1;
}
.custom-woo-card-view-counter path {
	stroke: var(--cwc-primary);
}
.custom-woo-card .attribute-group {
	display: block;
	margin-bottom: 30px;
}
.custom-woo-card .attribute-group.hidden {
	display: none;
}
.custom-woo-card .show-all-btn {
	margin: 10px 0;
	padding: 5px 10px;
}
.custom-woo-card .attribute-item:disabled {
	background: rgba(231, 236, 229, 0.64) !important;
	color: rgba(0, 0, 0, 0.3) !important;
	padding: 12px 16px !important;
	font-weight: 300;
	cursor: not-allowed;
	border-radius: 8px !important;
	border: 1px solid rgba(231, 236, 229, 0);
}
.custom-woo-toast {
	position: fixed;
	right: 30px;
	bottom: 30px;
	min-width: 220px;
	max-width: 90vw;
	padding: 16px 24px;
	border-radius: 6px;
	background: #222;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.4s, transform 0.4s;
	z-index: 9999;
	pointer-events: none;
}
.custom-woo-toast.show {
	opacity: 1;
	transform: translateY(0);
}
.custom-woo-toast-success {
	background: var(--cwc-primary);
}
.custom-woo-toast-error {
	background: #ff4646;
}
.custom-woo-toast-info {
	background: #17a2b8;
}
.custom-woo-card .cwc-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 3px solid #fff;
	border-top: 3px solid var(--cwc-primary);
	border-radius: 50%;
	vertical-align: middle;
	animation: cwc-spin 0.7s linear infinite;
	margin-right: 0;
}
@keyframes cwc-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Animation Styles */
@keyframes cwc-fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes cwc-slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes cwc-slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes cwc-scaleIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes cwc-bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3);
	}
	50% {
		opacity: 1;
		transform: scale(1.05);
	}
	70% {
		transform: scale(0.9);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Content animations - initially hidden */
.custom-woo-card-content {
	opacity: 0;
}

.custom-woo-card-content.cwc-animate {
	opacity: 1 !important;
}

/* Individual element animations */
.custom-woo-card-content.cwc-animate .custom-woo-card-price-details {
	animation: cwc-fadeInUp 0.6s ease-out forwards;
	animation-delay: 0.1s;
	opacity: 0;
	animation-fill-mode: forwards;
}

.custom-woo-card-content.cwc-animate .attribute-group {
	animation: cwc-slideInLeft 0.6s ease-out forwards;
	opacity: 0;
	animation-fill-mode: forwards;
}

.custom-woo-card-content.cwc-animate .attribute-group:nth-child(odd) {
	animation-name: cwc-slideInLeft;
	animation-delay: 0.2s;
}

.custom-woo-card-content.cwc-animate .attribute-group:nth-child(even) {
	animation-name: cwc-slideInRight;
	animation-delay: 0.3s;
}

.custom-woo-card-content.cwc-animate .attribute-group:nth-child(3) {
	animation-delay: 0.4s;
}

.custom-woo-card-content.cwc-animate .attribute-group:nth-child(4) {
	animation-delay: 0.5s;
}

.custom-woo-card-content.cwc-animate .custom-woo-card-bottom-wrapper {
	animation: cwc-fadeInUp 0.5s ease-out forwards;
	animation-delay: 0.6s;
	opacity: 0;
	animation-fill-mode: forwards;
}

/* Attribute items staggered animation */
.custom-woo-card-content.cwc-animate .attribute-item {
	animation: cwc-scaleIn 0.4s ease-out forwards;
	opacity: 0;
	animation-fill-mode: forwards;
}

.custom-woo-card-content.cwc-animate .attribute-item:nth-child(1) {
	animation-delay: 0.3s;
}
.custom-woo-card-content.cwc-animate .attribute-item:nth-child(2) {
	animation-delay: 0.35s;
}
.custom-woo-card-content.cwc-animate .attribute-item:nth-child(3) {
	animation-delay: 0.4s;
}
.custom-woo-card-content.cwc-animate .attribute-item:nth-child(4) {
	animation-delay: 0.45s;
}
.custom-woo-card-content.cwc-animate .attribute-item:nth-child(5) {
	animation-delay: 0.5s;
}
.custom-woo-card-content.cwc-animate .attribute-item:nth-child(6) {
	animation-delay: 0.55s;
}
.custom-woo-card-content.cwc-animate .attribute-item:nth-child(7) {
	animation-delay: 0.6s;
}
.custom-woo-card-content.cwc-animate .attribute-item:nth-child(8) {
	animation-delay: 0.65s;
}

/* Enhanced transitions for interactive elements */
.custom-woo-card .attribute-item {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateY(0);
}

.custom-woo-card .attribute-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-woo-card .attribute-item:active {
	transform: translateY(0);
	transition-duration: 0.1s;
}

button.custom-woo-card-add-to-cart {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateY(0);
}

button.custom-woo-card-add-to-cart:hover:not(:disabled) {
	background: var(--cwc-primary);
	color: #fff;
	border-color: var(--cwc-primary);
}

button.custom-woo-card-add-to-cart:active {
	transform: scale(0.98);
	transition-duration: 0.1s;
}

/* View counter animation */
.custom-woo-card-view-counter {
	transition: all 0.2s ease;
}

.custom-woo-card-view-counter:hover {
	opacity: 0.8;
}

/* Skeleton Loader Styles */
.custom-woo-card-skeleton {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	z-index: 10;
	border-radius: 32px;
	padding: 40px;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
	justify-content: flex-start;
	transition: opacity 0.5s ease-out;
}
.skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%);
	background-size: 400% 100%;
	animation: skeleton-loading 1.2s ease-in-out infinite;
	border-radius: 8px;
}

/* Custom skeletons for loading */
.skeleton-1 {
	width: 300px;
	height: 40px;
}
.skeleton-2 {
	width: 200px;
	height: 60px;
}
.skeleton-3 {
	width: 300px;
	height: 60px;
}
.skeleton-4 {
	width: 140px;
	height: 50px;
}

@keyframes skeleton-loading {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0 50%;
	}
}
.cwc-sale-price {
	font-size: 24px;
	font-weight: 700;
	color: var(--cwc-primary);
}
.cwc-regular-price {
	font-size: 24px;
	color: #e74c3c !important;
	font-weight: 700;
}
.cwc-discount {
	font-size: 14px;
	margin-left: auto;
	background: rgb(233 141 77 / 15%);
	padding: 4px 8px;
	text-transform: uppercase;
	font-weight: 500;
	border-radius: 4px;
	color: #e98d4d;
}
.custom-woo-card-price-details {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
}
@media (max-width: 600px) {
	.custom-woo-card {
		max-width: 100%;
		padding: 18px;
		border-radius: 18px;
		min-height: 260px;
	}
	.custom-woo-card .attribute-item {
		font-size: 12px;
		padding: 8px 10px;
		border-radius: 6px;
	}
	.custom-woo-card .attribute-item:disabled {
		padding: 8px 10px !important;
	}
	.custom-woo-card .attribute-label {
		font-size: 14px !important;
		margin-bottom: 4px !important;
		text-align: left;
	}
	button.custom-woo-card-add-to-cart {
		font-size: 14px;
		padding: 8px 10px;
	}
	.custom-woo-card .attribute-group {
		margin-bottom: 18px;
	}
	/* Reduce animation intensity on mobile */
	.custom-woo-card-content.cwc-animate .attribute-item:hover {
		transform: translateY(-1px);
	}

	button.custom-woo-card-add-to-cart:hover:not(:disabled) {
		background: var(--cwc-primary);
		color: #fff;
		border-color: var(--cwc-primary);
	}

	.custom-woo-card .attribute-items-wrapper {
		gap: 6px;
	}
	.custom-woo-card-skeleton {
		padding: 18px;
		border-radius: 18px;
		gap: 12px;
	}
	.skeleton-1 {
		width: 90%;
		height: 38px;
	}
	.skeleton-2 {
		width: 60%;
		height: 50px;
	}
	.skeleton-3 {
		width: 90%;
		height: 50px;
	}
	.skeleton-4 {
		width: 40%;
		height: 38px;
	}
	.cwc-sale-price,
	.cwc-regular-price {
		font-size: 18px;
	}
	.cwc-discount {
		font-size: 11px;
		padding: 2px 6px;
	}
	.custom-woo-card-price-details {
		gap: 8px;
		margin-bottom: 18px;
	}
}

/* Prefers-reduced-motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
	.custom-woo-card-content.cwc-animate * {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
	}

	.custom-woo-card .attribute-item:hover,
	button.custom-woo-card-add-to-cart:hover:not(:disabled) {
		transform: none;
	}
}

/* Cart Sidebar Styles - Lincoln Mails Inspired */
.cwc-cart-overlay,
.cwc-cart-sidebar,
.cwc-cart-sidebar * {
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.cwc-cart-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cwc-cart-overlay.show {
	opacity: 1;
	visibility: visible;
}

.cwc-cart-sidebar {
	position: fixed;
	top: 40px;
	right: 40px;
	width: 100%;
	max-width: 420px;
	height: calc(100vh - 80px);
	background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12), -2px 0 16px rgba(0, 0, 0, 0.08);
	z-index: 1000000;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-left: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 20px;
}

.cwc-cart-sidebar.show {
	transform: translateX(0);
}

.cwc-cart-header {
	padding: 10px;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	justify-content: flex-end;
	position: relative;
}

.cwc-cart-header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 28px;
	right: 28px;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.cwc-cart-title {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	letter-spacing: -0.02em;
	margin-bottom: 0;
}

.cwc-cart-close {
	background: rgba(0, 0, 0, 0.03);
	color: var(--cwc-primary-500);
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 12px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.cwc-cart-close:hover {
	color: var(--cwc-primary-500) !important;
	background: rgba(0, 0, 0, 0.03) !important;
}

.cwc-cart-close svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s linear;
}
.cwc-cart-close:hover svg {
	transform: rotate(180deg);
}

.cwc-cart-content {
	flex: 1;
	padding: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.cwc-cart-content::-webkit-scrollbar {
	width: 6px;
}

.cwc-cart-content::-webkit-scrollbar-track {
	background: transparent;
}

.cwc-cart-content::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.15);
	border-radius: 3px;
}

.cwc-cart-content::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.25);
}

.cwc-cart-item {
	display: flex;
	gap: 16px;
	padding: 20px 28px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: background-color 0.2s ease;
	position: relative;
}

.cwc-cart-item:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.cwc-cart-item:last-child {
	border-bottom: none;
}

.cwc-cart-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.cwc-cart-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.cwc-cart-item-title {
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #1a1a1a !important;
	margin: 0 !important;
	line-height: 1.4 !important;
	letter-spacing: -0.01em !important;
}

.cwc-cart-item-attributes {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	font-weight: 500;
}

.cwc-cart-attr {
	color: #333;
	font-weight: 400;
}

.cwc-cart-item-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--cwc-primary-500);
	margin: 0;
	letter-spacing: -0.01em;
}

.cwc-cart-item-quantity {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 0;
}

.cwc-quantity-btn {
	width: 20px;
	height: 20px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #ffffff;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.2s ease;
	color: #374151;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	padding: 8px 20px !important;
}

.cwc-quantity-btn:hover {
	border-color: var(--cwc-primary-500);
	background: var(--cwc-primary-500);
	color: #ffffff;
	transform: scale(1.05);
	box-shadow: 0 4px 12px var(--cwc-primary-200);
}

.cwc-quantity-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	border-color: rgba(0, 0, 0, 0.08);
	color: #9ca3af;
	background: #f9fafb;
	transform: none;
	box-shadow: none;
}

.cwc-quantity-btn:disabled:hover {
	border-color: rgba(0, 0, 0, 0.08);
	color: #9ca3af;
	background: #f9fafb;
}

.cwc-quantity-value {
	font-size: 15px;
	font-weight: 600;
	min-width: 24px;
	text-align: center;
	color: #1a1a1a;
}

/* Remove Button Styles */
.cwc-remove-btn {
	width: 24px;
	height: 24px;
	border: 1px solid #ef4444 !important;
	background: rgba(239, 68, 68, 0.05);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ef4444;
	transition: all 0.2s ease;
	margin-left: auto;
	padding: 0;
}

.cwc-remove-btn:hover {
	background: #ef4444 !important;
	color: #ffffff;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cwc-remove-btn:active {
	transform: scale(0.95);
}

.cwc-remove-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.cwc-remove-btn svg {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.cwc-remove-btn:hover svg {
	transform: scale(1.1);
}

.cwc-cart-footer {
	padding: 24px 28px;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	position: relative;
}

.cwc-cart-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 28px;
	right: 28px;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.cwc-cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 16px 20px;
	background: var(--cwc-primary-50);
	border-radius: 12px;
	border: 1px solid var(--cwc-primary-100);
}

.cwc-cart-total span:first-child {
	font-size: 16px;
	font-weight: 600;
	color: #374151;
}

.cwc-cart-total span:last-child {
	font-size: 18px;
	font-weight: 700;
	color: var(--cwc-primary-500);
	letter-spacing: -0.02em;
}

.cwc-cart-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cwc-cart-btn {
	padding: 16px 24px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: all 0.3s ease;
	display: inline-block;
	letter-spacing: -0.01em;
	position: relative;
	overflow: hidden;
	text-decoration: none !important;
	text-transform: uppercase;
}

.cwc-cart-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.cwc-cart-btn:hover::before {
	left: 100%;
}

.cwc-cart-btn-primary {
	background: linear-gradient(135deg, var(--cwc-primary-500) 0%, var(--cwc-primary-600) 100%);
	color: #ffffff;
	box-shadow: 0 4px 16px var(--cwc-primary-300);
	border: 1px solid transparent;
}

.cwc-cart-btn-primary:hover {
	transform: translateY(-2px);
	color: #ffffff;
}

.cwc-cart-btn-secondary {
	background: rgba(0, 0, 0, 0.02);
	color: var(--cwc-primary-500);
	border: 1px solid var(--cwc-primary-200);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cwc-cart-btn-secondary:hover {
	background: var(--cwc-primary-500);
	color: #ffffff;
	border-color: var(--cwc-primary-500);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px var(--cwc-primary-200);
}

.cwc-cart-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
	box-shadow: none;
}

.cwc-clear-cart-btn:disabled {
	background-color: #f3f4f6 !important;
	color: #9ca3af !important;
	border-color: #e5e7eb !important;
}

.cwc-cart-empty {
	text-align: center;
	padding: 60px 28px;
	color: #6b7280;
}

.cwc-cart-empty-icon {
	width: 80px;
	height: 80px;
	margin: 0;
	opacity: 0.4;
	color: #9ca3af;
}

.cwc-cart-empty-text {
	font-size: 18px;
	font-weight: 500;
	margin: 0;
	color: #6b7280;
	letter-spacing: -0.01em;
}

/* Mobile Responsive */

@media (max-width: 500px) {
	.custom-woo-toast {
		position: fixed;
		right: 30px;
		left: 30px;
		margin: auto;
		bottom: unset;
		top: 30px;
		transform: translateY(40px);
	}
	.cwc-cart-overlay {
		background-color: rgba(0, 0, 0, 0.8);
	}

	.cwc-cart-sidebar {
		top: 0;
		right: 0;
		max-width: 320px;
		width: 100%;
		height: 100vh;
		height: 100svh;
		border-radius: 0;
		border-left: none;
		box-shadow: none;
	}

	.cwc-cart-header {
		padding: 10px;
	}

	.cwc-cart-header::after {
		left: 20px;
		right: 20px;
	}

	.cwc-cart-title {
		font-size: 18px;
	}

	.cwc-cart-close {
		width: 36px;
		height: 36px;
		padding: 6px;
	}

	.cwc-cart-content {
		padding: 0;
	}

	.cwc-cart-item {
		gap: 14px;
		padding: 16px 20px;
	}

	.cwc-cart-item-image {
		width: 60px;
		height: 60px;
		border-radius: 10px;
	}

	.cwc-cart-item-title {
		font-size: 14px;
	}

	.cwc-cart-item-attributes {
		font-size: 12px;
	}

	.cwc-cart-item-price {
		font-size: 15px;
	}
	.cwc-quantity-btn {
		width: 28px;
		height: 28px;
		font-size: 14px;
		border-radius: 6px;
	}

	.cwc-remove-btn {
		width: 26px;
		height: 26px;
		border-radius: 6px;
		margin-left: auto;
	}

	.cwc-remove-btn svg {
		width: 12px;
		height: 12px;
	}

	.cwc-quantity-value {
		font-size: 14px;
		min-width: 20px;
	}

	.cwc-cart-footer {
		padding: 20px;
	}

	.cwc-cart-footer::before {
		left: 20px;
		right: 20px;
	}

	.cwc-cart-total {
		padding: 14px 16px;
		margin-bottom: 16px;
		border-radius: 10px;
	}

	.cwc-cart-total span:first-child {
		font-size: 15px;
	}

	.cwc-cart-total span:last-child {
		font-size: 16px;
	}

	.cwc-cart-btn {
		padding: 14px 20px;
		font-size: 14px;
		border-radius: 10px;
	}

	.cwc-cart-empty {
		padding: 50px 20px;
	}

	.cwc-cart-empty-icon {
		width: 70px;
		height: 70px;
		margin-bottom: 16px;
	}

	.cwc-cart-empty-text {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.cwc-cart-overlay {
		background-color: rgba(0, 0, 0, 0.9);
	}

	.cwc-cart-header {
		padding: 16px 16px 12px;
	}

	.cwc-cart-header::after {
		left: 16px;
		right: 16px;
	}

	.cwc-cart-close {
		width: 32px;
		height: 32px;
		padding: 4px;
	}

	.cwc-cart-close svg {
		width: 16px;
		height: 16px;
	}

	.cwc-cart-item {
		padding: 14px 16px;
		gap: 12px;
	}

	.cwc-cart-item-image {
		width: 55px;
		height: 55px;
	}

	.cwc-cart-item-title {
		font-size: 13px !important;
	}

	.cwc-cart-item-attributes {
		font-size: 11px;
	}

	.cwc-cart-item-price {
		font-size: 14px;
	}

	.cwc-quantity-btn {
		width: 26px;
		height: 26px;
		font-size: 12px;
		padding: 6px 16px !important;
	}

	.cwc-remove-btn {
		width: 24px;
		height: 24px;
		margin-left: auto;
	}

	.cwc-remove-btn svg {
		width: 10px;
		height: 10px;
	}

	.cwc-quantity-value {
		font-size: 13px;
		min-width: 18px;
	}

	.cwc-cart-footer {
		padding: 16px;
	}

	.cwc-cart-footer::before {
		left: 16px;
		right: 16px;
	}

	.cwc-cart-total {
		padding: 12px 14px;
		margin-bottom: 14px;
		border-radius: 8px;
	}

	.cwc-cart-total span:first-child {
		font-size: 14px;
	}

	.cwc-cart-total span:last-child {
		font-size: 15px;
	}

	.cwc-cart-btn {
		padding: 12px 16px;
		font-size: 13px;
		border-radius: 8px;
	}

	.cwc-cart-empty {
		padding: 40px 16px;
	}

	.cwc-cart-empty-icon {
		width: 60px;
		height: 60px;
		margin-bottom: 12px;
	}

	.cwc-cart-empty-text {
		font-size: 14px;
	}
}

/* Extra small devices */
@media (max-width: 360px) {
	.cwc-cart-item {
		padding: 12px 14px;
		gap: 10px;
	}

	.cwc-cart-item-title {
		font-size: 12px !important;
		line-height: 1.3 !important;
	}

	.cwc-cart-item-attributes {
		font-size: 10px;
	}

	.cwc-cart-item-price {
		font-size: 13px;
	}

	.cwc-quantity-btn {
		width: 24px;
		height: 24px;
		font-size: 11px;
		padding: 4px 12px !important;
	}

	.cwc-remove-btn {
		width: 22px;
		height: 22px;
	}

	.cwc-quantity-value {
		font-size: 12px;
		min-width: 16px;
	}

	.cwc-cart-footer {
		padding: 14px;
	}

	.cwc-cart-total {
		padding: 10px 12px;
		margin-bottom: 12px;
	}

	.cwc-cart-btn {
		padding: 10px 14px;
		font-size: 12px;
	}
}

/* Modern animations and visual enhancements */
@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.cwc-cart-sidebar.show {
	animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cwc-cart-item {
	animation: fadeInUp 0.3s ease-out;
}

.cwc-cart-item:nth-child(2) {
	animation-delay: 0.05s;
}

.cwc-cart-item:nth-child(3) {
	animation-delay: 0.1s;
}

.cwc-cart-item:nth-child(4) {
	animation-delay: 0.15s;
}

.cwc-cart-total {
	animation: fadeInUp 0.4s ease-out;
	animation-delay: 0.2s;
	animation-fill-mode: both;
}

.cwc-cart-actions {
	animation: fadeInUp 0.4s ease-out;
	animation-delay: 0.25s;
	animation-fill-mode: both;
}

/* Enhanced loading states */
.cwc-cart-item.loading {
	opacity: 0.6;
	pointer-events: none;
}

.cwc-cart-item.loading .cwc-quantity-btn {
	background: #f3f4f6 !important;
	border-color: #e5e7eb !important;
	color: #9ca3af !important;
}

/* Enhanced hover effects */
.cwc-cart-item-image:hover {
	transform: scale(1.05);
	transition: transform 0.2s ease;
}

.cwc-cart-btn-primary:active {
	transform: translateY(-1px) scale(0.98);
}

.cwc-cart-btn-secondary:active {
	transform: scale(0.98);
}

/* Smooth cart updates */
.cwc-cart-item.updating {
	background: var(--cwc-primary-50);
	border-left: 3px solid var(--cwc-primary-500);
	padding-left: 25px;
	transition: all 0.3s ease;
}

/* Enhanced empty state */
.cwc-cart-empty {
	background: radial-gradient(circle at center, var(--cwc-primary-50) 0%, transparent 70%);
}

/* Glassmorphism effect for overlay */
.cwc-cart-overlay {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Landscape orientation support for mobile */
@media (max-width: 896px) and (orientation: landscape) {
	.cwc-cart-sidebar {
		top: 10px;
		right: 10px;
		height: calc(100vh - 20px);
		max-width: 380px;
		border-radius: 12px;
	}

	.cwc-cart-header {
		padding: 12px 20px 10px;
	}

	.cwc-cart-item {
		padding: 12px 20px;
		gap: 12px;
	}

	.cwc-cart-footer {
		padding: 16px 20px;
	}

	.cwc-cart-empty {
		padding: 30px 20px;
	}
}

/* High DPI and Retina display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.cwc-cart-sidebar {
		box-shadow: -12px 0 60px rgba(0, 0, 0, 0.15), -4px 0 24px rgba(0, 0, 0, 0.1);
	}
}
