/**
 * CartUp Core — plugin front-end styles.
 *
 * The CartUp theme provides the full design system; these styles only cover
 * plugin-injected UI (search suggestions, quick view internals, wishlist
 * state) so the plugin remains usable with other WooCommerce themes too.
 */

/* Wishlist button state */

.cartup-wishlist-button.is-wishlisted {
	color: #dc2626 !important;
}

.cartup-wishlist-button.is-wishlisted svg {
	fill: currentColor;
}

/* Quick view internals (rendered single-product hooks inside the modal) */

.cartup-qv {
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	padding: 24px;
}

@media (max-width: 768px) {
	.cartup-qv {
		grid-template-columns: 1fr;
	}
}

.cartup-qv__summary {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cartup-qv__summary .product_title {
	font-size: 24px;
	margin: 0 0 8px;
}

.cartup-qv__summary p.price,
.cartup-qv__summary span.price {
	font-size: 22px;
	font-weight: 800;
	color: #ff6b35;
	margin-bottom: 12px;
}

.cartup-qv__full-link {
	margin-top: 16px;
}

/* Search suggestions (when rendered by the plugin on non-CartUp themes) */

.cartup-search-suggestions {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
	left: 0;
	max-height: 420px;
	overflow-y: auto;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 960;
}

.cartup-search-suggestion {
	align-items: center;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
}

.cartup-search-suggestion:last-child {
	border-bottom: 0;
}

.cartup-search-suggestion:hover {
	background: #f7f8fa;
}

.cartup-search-suggestion img {
	border-radius: 6px;
	flex: 0 0 44px;
	height: 44px;
	object-fit: cover;
	width: 44px;
}

.cartup-search-suggestion__name {
	color: #111827;
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.cartup-search-suggestion__price {
	color: #ff6b35;
	font-size: 13px;
	font-weight: 700;
}

/* Newsletter shortcode grid fallback (testimonials) */

.cu-testimonials-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
