/**
 * ReAvantex Pro Frontend Styles
 *
 * @package ReAvantex_Pro
 */

/* ==========================================================================
   1. FAQ Live Search & Category Controls
   ========================================================================== */
.reavantex-pro-faq-controls {
	margin-top: -10px;
}

.faq-search-box {
	position: relative;
	max-width: 650px;
	margin: 0 auto;
}

.faq-search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	font-size: 16px;
	pointer-events: none;
}

.faq-search-input {
	width: 100%;
	padding: 14px 45px 14px 48px;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #f8fafc;
	font-size: 15px;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-search-input:focus {
	background: rgba(15, 23, 42, 0.85);
	border-color: #06b6d4;
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25), 0 10px 25px -5px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	outline: none;
}

.faq-search-clear-btn {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 50%;
	transition: color 0.2s ease;
}

.faq-search-clear-btn:hover {
	color: #ef4444;
}

.faq-category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 20px;
}

.faq-pill-btn {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #94a3b8;
	padding: 8px 20px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.faq-pill-btn:hover,
.faq-pill-btn.active {
	background: linear-gradient(135deg, #4f46e5, #06b6d4);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

/* ==========================================================================
   2. WooCommerce Quick View Modal & Buttons
   ========================================================================== */
.reavantex-quickview-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	background: rgba(15, 23, 42, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #e2e8f0;
	padding: 7px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.reavantex-quickview-btn:hover {
	background: linear-gradient(135deg, #4f46e5, #06b6d4);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.reavantex-quickview-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.reavantex-quickview-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(3, 7, 18, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.reavantex-quickview-dialog {
	position: relative;
	width: 100%;
	max-width: 860px;
	max-height: 90vh;
	overflow-y: auto;
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 35px;
	color: #f8fafc;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
	z-index: 10;
	animation: reavantexModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes reavantexModalPop {
	0% { opacity: 0; transform: scale(0.95) translateY(10px); }
	100% { opacity: 1; transform: scale(1) translateY(0); }
}

.reavantex-quickview-close {
	position: absolute;
	top: 15px;
	right: 18px;
	background: rgba(255, 255, 255, 0.08);
	border: none;
	color: #cbd5e1;
	font-size: 24px;
	line-height: 1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 12;
}

.reavantex-quickview-close:hover {
	background: #ef4444;
	color: #ffffff;
}

.reavantex-quickview-image {
	position: relative;
}

.reavantex-quickview-image img {
	max-height: 380px;
	object-fit: contain;
	width: 100%;
}

.reavantex-quickview-image .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	margin: 0;
	z-index: 2;
}

.reavantex-quickview-summary .quickview-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #ffffff;
}

.reavantex-quickview-summary .quickview-price {
	font-size: 20px;
	font-weight: 700;
	color: #06b6d4;
}

.reavantex-quickview-summary .quickview-price del {
	color: #94a3b8;
	font-size: 16px;
	margin-right: 6px;
}

.reavantex-quickview-summary .quickview-price ins {
	text-decoration: none;
	color: #38bdf8;
}

/* Star ratings in Quick View modal aligned with theme Font Awesome 6 */
.reavantex-quickview-summary .star-rating {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	letter-spacing: 0 !important;
	width: 7.55em !important;
	font-size: 0.9em;
	color: var(--avantex-star-color, #f59e0b);
	display: inline-block;
	position: relative;
	overflow: hidden;
}

.reavantex-quickview-summary .star-rating::before {
	content: "\f005\f005\f005\f005\f005";
	color: var(--avantex-star-empty, #cbd5e1);
	letter-spacing: 0 !important;
}

.reavantex-quickview-summary .star-rating span {
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
}

.reavantex-quickview-summary .star-rating span::before {
	content: "\f005\f005\f005\f005\f005";
	color: var(--avantex-star-color, #f59e0b);
	letter-spacing: 0 !important;
}

.reavantex-quickview-summary .star-rating-placeholder {
	opacity: 0.45;
}

.reavantex-quickview-summary form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 15px;
}

.reavantex-quickview-summary .single_add_to_cart_button {
	background: linear-gradient(135deg, #4f46e5, #06b6d4);
	color: #ffffff;
	border: none;
	padding: 12px 28px;
	border-radius: 8px;
	font-weight: 600;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.reavantex-quickview-summary .single_add_to_cart_button:hover {
	opacity: 0.95;
	transform: translateY(-1px);
}

.reavantex-quickview-summary table.variations {
	width: 100%;
	margin-bottom: 15px;
}

.reavantex-quickview-summary table.variations td.label {
	color: #cbd5e1;
	padding: 6px 12px 6px 0;
	font-weight: 600;
	vertical-align: middle;
}

.reavantex-quickview-summary table.variations td.value {
	padding: 6px 0;
}

.reavantex-quickview-summary select {
	background: #1e293b;
	color: #f8fafc;
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 8px 14px;
	border-radius: 8px;
	width: 100%;
	max-width: 250px;
}

.reavantex-quickview-summary .reset_variations {
	color: #94a3b8;
	font-size: 12px;
	margin-left: 10px;
	text-decoration: underline;
}

/* ==========================================================================
   3. Sticky Add To Cart Bar
   ========================================================================== */
.reavantex-sticky-cart-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 12px 0;
	z-index: 9999;
	box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.35);
	transform: translateY(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reavantex-sticky-cart-bar.active {
	transform: translateY(0);
}

.sticky-cart-thumb img {
	width: 48px;
	height: 48px;
	object-fit: cover;
}

.sticky-cart-title {
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
}

.sticky-cart-price {
	font-size: 14px;
}

.reavantex-btn-gradient {
	background: linear-gradient(135deg, #4f46e5, #06b6d4);
	border: none;
	color: #ffffff;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.25s ease;
}

.reavantex-btn-gradient:hover {
	opacity: 0.92;
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}
