/**
 * WooCommerce Action Buttons Styles
 * 
 * @package Magical_Shop_Builder
 * @since   2.0.0
 */

/* Add to Cart Button */
.mpd-add-to-cart .button,
.mpd-add-to-cart .add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.mpd-add-to-cart .button:hover,
.mpd-add-to-cart .add_to_cart_button:hover {
	background: #555;
}

/* Wishlist Button */
.mpd-wishlist-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mpd-wishlist-btn:hover {
	background: #ff4757;
	border-color: #ff4757;
	color: #fff;
}

.mpd-wishlist-btn.active {
	background: #ff4757;
	border-color: #ff4757;
	color: #fff;
}

/* Compare Button */
.mpd-compare-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mpd-compare-btn:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* Quick View Button */
.mpd-quick-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mpd-quick-view-btn:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* Action Buttons Group */
.mpd-action-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mpd-action-buttons-vertical {
	flex-direction: column;
}

/* Product Loop Action Buttons */
.mpd-product-actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transform: translateX(10px);
	transition: all 0.3s ease;
}

.product:hover .mpd-product-actions {
	opacity: 1;
	transform: translateX(0);
}

/* Loading State */
.mpd-action-btn.loading {
	pointer-events: none;
	opacity: 0.7;
}

.mpd-action-btn.loading::after {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	border-top-color: currentColor;
	border-radius: 50%;
	animation: mpd-spin 0.6s linear infinite;
}

@keyframes mpd-spin {
	to {
		transform: rotate(360deg);
	}
}
