/* ===========================================================
   HELLO ELEMENTOR CHILD — CUSTOM.CSS
   Printables Marketplace — combined from Phases 4, 5, 8
   =========================================================== */

/* -----------------------------------------------------------
   1. Hero, buttons, badges, product card hover (Phase 4)
   ----------------------------------------------------------- */

.hero-section {
	background: linear-gradient(135deg, rgba(109, 74, 255, 0.12), rgba(56, 189, 248, 0.12));
}

/* Primary CTA button — apply class "btn-gradient" to Elementor button widgets */
.btn-gradient {
	background: linear-gradient(135deg, #6D4AFF, #38BDF8);
	color: #ffffff;
	border-radius: 12px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-gradient:hover {
	transform: translateY(-2px);
	opacity: 0.92;
}

/* Badge classes — apply via Elementor custom CSS on product loop items */
.badge-instant-download {
	background: #0F9D6C;
	color: #ffffff;
	border-radius: 999px;
	font-size: 11px;
	padding: 2px 8px;
}

.badge-sale {
	background: #E24B4A;
	color: #ffffff;
	border-radius: 999px;
	font-size: 11px;
	padding: 2px 8px;
}

/* Product card hover lift — applies to Elementor Pro Products widget items */
.woocommerce ul.products li.product {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 16px;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(31, 27, 46, 0.08);
}


/* -----------------------------------------------------------
   2. Shop page — filter drawer & quick actions (Phase 5)
   ----------------------------------------------------------- */

/* Mobile off-canvas filter drawer */
.filter-drawer {
	position: fixed;
	top: 0;
	left: -100%;
	width: 85%;
	max-width: 320px;
	height: 100%;
	background: var(--surface-2, #ffffff);
	transition: left 0.25s ease;
	z-index: 999;
	overflow-y: auto;
	padding: 16px;
}

.filter-drawer.is-open {
	left: 0;
}

.filter-drawer__apply {
	position: sticky;
	bottom: 0;
	background: linear-gradient(135deg, #6D4AFF, #38BDF8);
	color: #fff;
	text-align: center;
	padding: 12px;
	border-radius: 12px;
	margin-top: 16px;
}

/* Quick view + wishlist icon overlay on product cards */
.product-quick-actions {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	gap: 6px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.woocommerce ul.products li.product:hover .product-quick-actions {
	opacity: 1;
}

.product-quick-actions button {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
}


/* -----------------------------------------------------------
   3. Blog — "Shop this printable" CTA block (Phase 8)
   Rendered by the [shop_cta id="123"] shortcode in functions.php
   ----------------------------------------------------------- */

.blog-shop-cta {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, rgba(109, 74, 255, 0.08), rgba(56, 189, 248, 0.08));
	border-radius: 12px;
	padding: 14px;
	margin: 20px 0;
}

.blog-shop-cta__title {
	font-weight: 500;
	margin: 0 0 2px;
	font-size: 14px;
}

.blog-shop-cta__price {
	font-size: 12px;
	color: var(--text-secondary, #6b7280);
	margin: 0;
}

.blog-shop-cta__btn {
	margin-left: auto;
	white-space: nowrap;
	padding: 8px 16px;
}

@media (max-width: 600px) {
	.blog-shop-cta {
		flex-wrap: wrap;
	}

	.blog-shop-cta__btn {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}