/**
 * Beautiful Armenian Cart Sidebar
 * Modern, stylish design with Armenian fonts
 */

/* ============================================
   ARMENIAN FONT FOR CART
   ============================================ */
.cart-widget-side,
.cart-widget-side *,
.widget_shopping_cart,
.widget_shopping_cart * {
	font-family: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ============================================
   CART SIDEBAR CONTAINER
   ============================================ */
.cart-widget-side {
	background: #fff;
	box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
	width: 420px !important;
	max-width: 90vw;
}

span.wd-action-text,
span.wd-action-text:hover,
.cart-widget-side .close-side-widget a,
.cart-widget-side .close-side-widget a:hover,
.cart-widget-side .close-side-widget a:before,
.cart-widget-side .close-side-widget a:hover:before {
    color: #28462F !important;
}

/* ============================================
   HEADER - Beautiful gradient
   ============================================ */
.cart-widget-side .wd-heading {
	background: linear-gradient(135deg, #2F5236 0%, #233E2A 100%) !important;;
	color: #fff !important;
	padding: 18px 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	box-shadow:  0 2px 10px rgba(35, 62, 42, 0.3) !important;
	position: relative !important;
	z-index: 10 !important;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
	gap: 15px !important;
	overflow: visible !important;
}

/* Ensure title doesn't push close button off */
.cart-widget-side .wd-heading .title {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.cart-widget-side .wd-heading .close-side-widget {
	flex: 0 0 auto !important;
}


.cart-widget-side .wd-heading .title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #fff !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
	position: relative !important;
	z-index: 1 !important;
}

.cart-widget-side .wd-heading .title:before {
	content: '🛒' !important;
	font-size: 20px !important;
}

.cart-widget-side .close-side-widget {
	background: rgba(255, 255, 255, 0.2) !important;
	min-width: auto !important;
	width: auto !important;
	height: 32px !important;
	border-radius: 16px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease !important;
	backdrop-filter: blur(10px) !important;
	padding: 0 12px !important;
	margin-left: 10px !important;
	flex-shrink: 0 !important;
}

.cart-widget-side .close-side-widget:hover {
	background: rgba(255, 255, 255, 0.3) !important;
	transform: none !important;
}

.cart-widget-side .close-side-widget a {
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1.4 !important;
	padding: 0 !important;
	gap: 6px !important;
	white-space: nowrap !important;
}

/* Hide the default Woodmart icon (prevents duplicate ×) */
.cart-widget-side .close-side-widget .wd-action-icon {
	display: none !important;
}

/* Make sure X and text are visible */
.cart-widget-side .close-side-widget a:before {
	content: '×' !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	display: inline-block !important;
}

/* ============================================
   CART ITEMS - Beautiful cards
   ============================================ */
.shopping-cart-widget-body {
	padding: 20px;
	background: #f9f9f9;
	max-height: calc(100vh - 300px);
	overflow-y: auto;
}

.shopping-cart-widget-body::-webkit-scrollbar {
	width: 6px;
}

.shopping-cart-widget-body::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.shopping-cart-widget-body::-webkit-scrollbar-thumb {
	background: #233E2A;
	border-radius: 10px;
}

.shopping-cart-widget-body::-webkit-scrollbar-thumb:hover {
	background: #233E2A;
}

/* Cart Item - More compact */
.woocommerce-mini-cart-item {
	background: #fff !important;
	border-radius: 12px !important;
	padding: 14px !important;
	margin-bottom: 12px !important;
	position: relative !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
	transition: all 0.2s ease !important;
	border: 1px solid #f0f0f0 !important;
	overflow: visible !important;
}

.woocommerce-mini-cart-item:hover {
	box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2) !important;
	border-color: #233E2A!important;
	transform: translateY(-2px) !important;
}

/* Remove button - Clean and visible, single X */
.woocommerce-mini-cart-item .remove,
.woocommerce-mini-cart-item .remove_from_cart_button {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	width: 26px !important;
	height: 26px !important;
	background: #fff !important;
	border: 2px solid #233E2A !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 18px !important;
	color: #233E2A !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	transition: all 0.2s ease !important;
	z-index: 5 !important;
	line-height: 1 !important;
	padding: 0 !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.woocommerce-mini-cart-item .remove:hover,
.woocommerce-mini-cart-item .remove_from_cart_button:hover {
	background: #233E2A !important;
	color: #fff !important;
	transform: scale(1.1) !important;
	box-shadow: 0 3px 8px rgba(255, 68, 68, 0.4) !important;
}

/* Show only one X - hide text content, show via CSS */
.woocommerce-mini-cart-item .remove,
.woocommerce-mini-cart-item .remove_from_cart_button {
	font-size: 0 !important;
}

.woocommerce-mini-cart-item .remove:after,
.woocommerce-mini-cart-item .remove_from_cart_button:after {
	content: '×' !important;
	font-size: 20px !important;
	line-height: 1 !important;
	display: block !important;
	color: inherit !important;
}

/* Product Image - Smaller */
.cart-item-image {
	width: 70px !important;
	height: 70px !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	display: block !important;
	margin-bottom: 10px !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
	transition: all 0.2s ease !important;
}

.cart-item-image:hover {
	transform: scale(1.03) !important;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
}

.cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Product Info */
.cart-info {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

/* Remove all borders from cart-info children except quantity input */
.cart-info > * {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Only quantity input container should have border */
.cart-info > .quantity:has(input.qty) {
	border: 1px solid #e0e0e0 !important;
}

.cart-info .wd-entities-title {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #333 !important;
	line-height: 1.4 !important;
	margin-bottom: 6px !important;
	display: block !important;
}

.cart-info .wd-product-sku {
	font-size: 11px !important;
	color: #888 !important;
	display: flex !important;
	align-items: center !important;
	gap: 4px !important;
	margin-bottom: 6px !important;
}

.cart-info .wd-product-sku .wd-label {
	font-weight: 600 !important;
	color: #666 !important;
}

/* Quantity in cart - Price display - COMPACT, NO BORDERS */
.cart-info > .quantity:not(.quantity input):not(.quantity .minus):not(.quantity .plus),
.cart-info .quantity:not(.quantity input):not(.quantity .minus):not(.quantity .plus) {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #233E2A!important;
	display: inline-block !important;
	margin-top: 8px !important;
	white-space: nowrap !important;
	line-height: 1.3 !important;
	border: none !important;
	padding: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Fix price display - make it compact, no borders */
.cart-info > .quantity:not(.quantity input):not(.quantity .minus):not(.quantity .plus) .woocommerce-Price-amount,
.cart-info .quantity:not(.quantity input):not(.quantity .minus):not(.quantity .plus) .woocommerce-Price-amount {
	font-size: 13px !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
	display: inline !important;
	border: none !important;
	padding: 0 !important;
	box-shadow: none !important;
}

/* Make sure price doesn't wrap and has no borders */
.cart-info > .quantity:not(.quantity input):not(.quantity .minus):not(.quantity .plus) *,
.cart-info .quantity:not(.quantity input):not(.quantity .minus):not(.quantity .plus) * {
	white-space: nowrap !important;
	display: inline !important;
	border: none !important;
}

/* Remove any borders from price span */
.cart-info .quantity span,
.cart-info > .quantity span {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Quantity controls - Compact, no extra borders */
.woocommerce-mini-cart-item .quantity {
	display: inline-flex !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	background: #fff !important;
	margin-top: 8px !important;
	width: auto !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Remove any extra borders from quantity input */
.woocommerce-mini-cart-item .quantity input.qty {
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.woocommerce-mini-cart-item .quantity input.qty {
	width: 35px !important;
	height: 28px !important;
	border: none !important;
	text-align: center !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #333 !important;
	background: #fff !important;
	padding: 0 !important;
	min-width: 35px !important;
}

.woocommerce-mini-cart-item .quantity .minus,
.woocommerce-mini-cart-item .quantity .plus {
	width: 26px !important;
	height: 28px !important;
	background: #f5f5f5 !important;
	border: none !important;
	cursor: pointer !important;
	font-size: 18px !important;
	font-weight: 900 !important;
	color: #333 !important;
	transition: all 0.2s ease !important;
	padding: 0 !important;
	line-height: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	-webkit-font-smoothing: antialiased !important;
	-moz-osx-font-smoothing: grayscale !important;
	font-family: Arial, sans-serif !important;
}

/* Ensure text is visible in normal state */
.woocommerce-mini-cart-item .quantity .minus,
.woocommerce-mini-cart-item .quantity .plus {
	color: #333 !important;
	text-shadow: none !important;
}

/* Hover state - keep dark color, just change background */
.woocommerce-mini-cart-item .quantity .minus:hover,
.woocommerce-mini-cart-item .quantity .plus:hover {
	background: #e0e0e0 !important;
	color: #333 !important;
	font-size: 18px !important;
	font-weight: 900 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.woocommerce-mini-cart-item .quantity .minus:hover,
.woocommerce-mini-cart-item .quantity .plus:hover {
	background: #233E2A!important;
	color: #fff !important;
}

.woocommerce-mini-cart-item .quantity .minus:hover::before,
.woocommerce-mini-cart-item .quantity .plus:hover::before,
.woocommerce-mini-cart-item .quantity .minus:hover::after,
.woocommerce-mini-cart-item .quantity .plus:hover::after {
	color: #fff !important;
}

/* Make sure button text is visible on hover */
.woocommerce-mini-cart-item .quantity .minus:hover,
.woocommerce-mini-cart-item .quantity .plus:hover {
	color: #fff !important;
}

.woocommerce-mini-cart-item .quantity .minus,
.woocommerce-mini-cart-item .quantity .plus {
	color: #666 !important;
}

/* Force text color */
.woocommerce-mini-cart-item .quantity input[type="button"].minus,
.woocommerce-mini-cart-item .quantity input[type="button"].plus {
	color: #666 !important;
}

.woocommerce-mini-cart-item .quantity input[type="button"].minus:hover,
.woocommerce-mini-cart-item .quantity input[type="button"].plus:hover {
	color: #fff !important;
	background-color: #233E2A!important;
}

/* ============================================
   FOOTER - Subtotal & Buttons
   ============================================ */
.shopping-cart-widget-footer {
	padding: 20px 25px;
	background: #fff;
	border-top: 2px solid #f0f0f0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Subtotal */
.woocommerce-mini-cart__total,
.shopping-cart-widget-footer .total {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 20px !important;
	padding: 20px 25px !important;
	background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%) !important;
	border-radius: 12px !important;
	border: 2px solid #233E2A !important;
	box-shadow: 0 4px 15px rgba(35, 62, 42, 0.15), inset 0 1px 0 rgba(255,255,255,0.8) !important;
	position: relative !important;
	overflow: hidden !important;
}

.woocommerce-mini-cart__total,
.shopping-cart-widget-footer .total {
	border-left: 6px solid #233E2A !important;
}

.woocommerce-mini-cart__total strong,
.shopping-cart-widget-footer .total strong {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #333 !important;
	text-transform: uppercase !important;
	letter-spacing: 1px !important;
}

.woocommerce-mini-cart__total .woocommerce-Price-amount,
.shopping-cart-widget-footer .total .woocommerce-Price-amount {
	font-size: 26px !important;
	font-weight: 900 !important;
	color: #233E2A !important;
	text-shadow: 0 2px 4px rgba(35, 62, 42, 0.2) !important;
}

/* Free Shipping Progress Bar */
.wd-free-progress-bar,
.wd-progress-bar.wd-free-progress-bar,
.wd-progress-bar {
	display: none !important;
}


.wd-free-progress-bar .progress-msg {
	margin-bottom: 12px !important;
}

.wd-free-progress-bar .progress-msg p {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #2E7D32 !important;
	margin: 0 !important;
	text-align: center !important;
	line-height: 1.5 !important;
}

.wd-free-progress-bar .progress-msg .woocommerce-Price-amount {
	color: #1B5E20 !important;
	font-weight: 900 !important;
	font-size: 16px !important;
	text-shadow: 0 1px 2px rgba(27, 94, 32, 0.2) !important;
}

.wd-free-progress-bar .progress-area {
	height: 14px !important;
	background: #C8E6C9 !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	position: relative !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.wd-free-progress-bar .progress-bar {
	height: 100% !important;
	background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%) !important;
	border-radius: 12px !important;
	transition: width 0.4s ease !important;
	position: relative !important;
	overflow: hidden !important;
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

/* Buttons */
.woocommerce-mini-cart__buttons,
.widget_shopping_cart .buttons,
.shopping-cart-widget-footer .buttons {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-mini-cart__buttons .button,
.widget_shopping_cart .buttons .button,
.shopping-cart-widget-footer .buttons .button {
	width: 100% !important;
	padding: 12px 20px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.3px !important;
	border-radius: 8px !important;
	text-align: center !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	border: none !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	margin: 0 !important;
	line-height: 1.4 !important;
}

.woocommerce-mini-cart__buttons .btn-cart,
.woocommerce-mini-cart__buttons .wc-forward:not(.checkout),
.widget_shopping_cart .buttons .button:not(.checkout),
.shopping-cart-widget-footer .button:not(.checkout) {
	background: #f5f5dc !important;
	color: #233e2a !important;
	border: 2px solid #233E2A !important;
}

.woocommerce-mini-cart__buttons .btn-cart:before,
.woocommerce-mini-cart__buttons .wc-forward:not(.checkout):before,
.widget_shopping_cart .buttons .button:not(.checkout):before {
	content: '🛒' !important;
	font-size: 16px !important;
	margin-right: 4px !important;
}

.woocommerce-mini-cart__buttons .btn-cart:hover,
.woocommerce-mini-cart__buttons .wc-forward:not(.checkout):hover,
.widget_shopping_cart .buttons .button:not(.checkout):hover {
	background: #233E2A !important;
	color: #fff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 15px rgba(35, 62, 42, 0.3) !important;
}

.woocommerce-mini-cart__buttons .checkout,
.widget_shopping_cart .buttons .checkout,
.shopping-cart-widget-footer .checkout {
	background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
	color: #fff !important;
	box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
	border: none !important;
}

.woocommerce-mini-cart__buttons .checkout:before,
.widget_shopping_cart .buttons .checkout:before {
	content: '✓' !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	margin-right: 4px !important;
}

.woocommerce-mini-cart__buttons .checkout:hover,
.widget_shopping_cart .buttons .checkout:hover {
	background: linear-gradient(135deg, #45a049 0%, #388E3C 100%) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
}

/* ============================================
   EMPTY CART
   ============================================ */
.woocommerce-mini-cart__empty-message {
	text-align: center;
	padding: 60px 20px;
	color: #999;
	font-size: 16px;
	font-weight: 600;
}

.woocommerce-mini-cart__empty-message:before {
	content: '🛒';
	display: block;
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.3;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
	.cart-widget-side {
		width: 100% !important;
		max-width: 100vw;
	}
	
	.cart-widget-side .wd-heading {
		padding: 20px;
	}
	
	.cart-widget-side .wd-heading .title {
		font-size: 18px;
	}
	
	.shopping-cart-widget-body {
		max-height: calc(100vh - 280px);
		padding: 15px;
	}
	
	.woocommerce-mini-cart-item {
		padding: 12px;
	}
	
	.cart-item-image {
		width: 70px;
		height: 70px;
	}
	
	.shopping-cart-widget-footer {
		padding: 15px 20px;
	}
	
	.woocommerce-mini-cart__total {
		padding: 12px 15px;
	}
	
	.woocommerce-mini-cart__buttons .button {
		padding: 13px 20px;
		font-size: 14px;
	}
}

/* ============================================
   SIMPLE ANIMATIONS (Optimized)
   ============================================ */
.cart-widget-side.wd-opened {
	opacity: 1;
}

/* ============================================
   CLEAR ALL BUTTON
   ============================================ */
.unf-clear-all-wrap {
	display: flex;
	justify-content: flex-end;
	padding: 0 0 12px 0;
	margin-right: 15px;
}

.unf-clear-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	color: #28462F !important;
	background: #fff !important;
	border: 1.5px solid #28462F !important;
	border-radius: 20px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	font-family: 'Noto Sans Armenian', -apple-system, sans-serif !important;
	line-height: 1.4 !important;
}

.unf-clear-all-btn:hover {
	background: #28462F !important;
	color: #fff !important;
	box-shadow: 0 3px 10px rgba(40, 70, 47, 0.3) !important;
	transform: translateY(-1px) !important;
}

.unf-clear-all-btn:hover svg {
	stroke: #fff !important;
}

.unf-clear-all-btn svg {
	flex-shrink: 0 !important;
	stroke: #28462F !important;
	transition: stroke 0.2s ease !important;
}

.unf-clear-all-btn.unf-loading {
	opacity: 0.7 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

.unf-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #28462F !important;
	border-top-color: transparent !important;
	border-radius: 50% !important;
	animation: unf-clear-spin 0.6s linear infinite !important;
}

@keyframes unf-clear-spin {
	to { transform: rotate(360deg); }
}
