/* 
 * Get a Quote Product Collection - Public CSS
 */

:root {
	--gqpc-bg-color: #ffffff;
	--gqpc-border-color: #eaeaea;
	--gqpc-text-main: #1a1a1a;
	--gqpc-text-muted: #6b7280;
	--gqpc-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--gqpc-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
	--gqpc-shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
	--gqpc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Grid Layout */
.gqpc-collections-wrap,
.gqpc-products-wrap {
	width: 100%;
	margin: 0 auto;
}

.gqpc-grid {
	display: grid;
	gap: var(--gqpc-grid-gap, 2rem);
	grid-template-columns: repeat(var(--gqpc-cols-mobile, 2), 1fr);
}

@media (min-width: 640px) {
	.gqpc-grid {
		grid-template-columns: repeat(var(--gqpc-cols-tablet, 4), 1fr);
	}
}

@media (min-width: 992px) {
	.gqpc-grid {
		grid-template-columns: repeat(var(--gqpc-cols-desktop, 5), 1fr);
	}
}

/* Cards Design */
.gqpc-card {
	background: var(--gqpc-bg-color);
	border: 1px solid var(--gqpc-border-color);
	border-radius: var(--gqpc-radius, 12px);
	overflow: hidden;
	box-shadow: var(--gqpc-shadow-sm);
	transition: var(--gqpc-transition);
	display: flex;
	flex-direction: column;
}

.gqpc-card:hover {
	box-shadow: var(--gqpc-shadow-hover);
	transform: translateY(-4px);
}

/* Image Wrappers */
.gqpc-card-img-wrap {
	position: relative;
	width: 100%;
	height: var(--gqpc-image-height-mobile, 200px);
	background: #f9fafb;
	overflow: hidden;
}

@media (min-width: 640px) {
	.gqpc-card-img-wrap {
		height: var(--gqpc-image-height-tablet, 200px);
	}
}

@media (min-width: 992px) {
	.gqpc-card-img-wrap {
		height: var(--gqpc-image-height-desktop, 200px);
	}
}

.gqpc-card-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: var(--gqpc-transition);
}

/* When image alignment is used, image needs position:static */
.gqpc-card-img-wrap[style*="justify-content"] .gqpc-card-img {
	position: static;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.gqpc-card:hover .gqpc-card-img {
	transform: scale(1.05);
}

.gqpc-card-img-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d1d5db;
}

.gqpc-card-link-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
}

/* Overlays & Badges */
.gqpc-card-img-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
	display: flex;
	align-items: flex-end;
	padding: 1.5rem;
}

.gqpc-badge-count {
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 99px;
	font-size: 0.875rem;
	font-weight: 500;
	border: 1px solid rgba(255,255,255,0.4);
}

.gqpc-collection-tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: #fff;
	color: var(--gqpc-text-main);
	padding: 0.25rem 0.75rem;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: var(--gqpc-shadow-sm);
	z-index: 2;
}

.gqpc-card-hover-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--gqpc-transition);
	z-index: 1;
}

.gqpc-product-card:hover .gqpc-card-hover-overlay {
	opacity: 1;
}

.gqpc-sku-badge {
	background: #fff;
	color: var(--gqpc-text-main);
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.875rem;
	transform: translateY(10px);
	transition: var(--gqpc-transition);
}

.gqpc-product-card:hover .gqpc-sku-badge {
	transform: translateY(0);
}

/* Card Body */
.gqpc-card-body {
	padding: 15px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.gqpc-card-title {
	margin: 0 0 5px 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--gqpc-text-main);
	line-height: 1.3;
}

.gqpc-card-desc {
	color: var(--gqpc-text-muted);
	font-size: 0.9375rem;
	margin: 0 0 1rem 0;
	line-height: 1.5;
}

.gqpc-card-price {
	margin-bottom: 10px;
}

.gqpc-price-amount {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--gqpc-text-main);
}

.gqpc-price-currency {
	font-size: 1rem;
	font-weight: 500;
	margin-right: 2px;
}

.gqpc-price-poa {
	font-size: 1rem;
	font-weight: 600;
	color: var(--gqpc-primary);
}

/* Card Footer & Buttons */
.gqpc-card-footer {
	padding: 0 15px 15px;
	margin-top: auto;
}

.gqpc-btn-card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 1.5rem;
	background: linear-gradient(135deg, var(--gqpc-primary), var(--gqpc-secondary));
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: var(--gqpc-transition);
}

.gqpc-btn-card:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	color: #fff;
}

/* Uniform Grid — when enabled via Elementor prefix_class */
.gqpc-uniform-grid-yes .gqpc-card {
	height: 100%;
}

.gqpc-uniform-grid-yes .gqpc-card-body {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.gqpc-uniform-grid-yes .gqpc-card-footer {
	margin-top: auto;
}

/* Compact card defaults for mobile */
@media (max-width: 639px) {
	.gqpc-card-body {
		padding: 10px;
	}
	.gqpc-card-footer {
		padding: 0 10px 10px;
	}
	.gqpc-card-title {
		font-size: 0.9375rem;
		margin-bottom: 4px;
	}
	.gqpc-card-price {
		margin-bottom: 8px;
	}
	.gqpc-price-amount {
		font-size: 1.125rem;
	}
	.gqpc-btn-card {
		padding: 0.625rem 1rem;
		font-size: 0.875rem;
	}
}

/* --------------------------------------------------------
 * Modal Styles
 * -------------------------------------------------------- */

.gqpc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.gqpc-modal-overlay[hidden] {
	display: none;
	opacity: 0;
}

.gqpc-modal {
	background: #fff;
	width: 95%;
	max-width: 650px; /* updated width */
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	position: relative;
	transform: scale(1);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 768px) {
	.gqpc-modal {
		width: 90%;
	}
}


.gqpc-modal-overlay[hidden] .gqpc-modal {
	transform: scale(0.95);
}

/* Modal Header */
.gqpc-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 1.5rem;
	border-bottom: 1px solid var(--gqpc-border-color);
}

.gqpc-modal-header-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.gqpc-modal-icon {
	width: 48px;
	height: 48px;
	background: #f4f3ff;
	color: #4f46e5;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gqpc-modal-title {
	margin: 0 0 0.25rem 0 !important;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gqpc-text-main);
}

.gqpc-modal-subtitle {
	margin: 0;
	color: var(--gqpc-text-muted);
	font-size: 0.9375rem;
}

.gqpc-modal-close {
	background: none;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 50%;
	transition: var(--gqpc-transition);
}

.gqpc-modal-close:hover {
	background: #f3f4f6;
	color: var(--gqpc-text-main);
}

/* Modal Product Bar */
.gqpc-modal-product-bar {
	background: #fafafa;
	padding: 1.5rem;
	border-bottom: 1px solid var(--gqpc-border-color);
}

.gqpc-selected-product {
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.gqpc-sp-image {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid var(--gqpc-border-color);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gqpc-sp-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.gqpc-sp-details {
	flex-grow: 1;
}

.gqpc-sp-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gqpc-text-muted);
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.gqpc-sp-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gqpc-text-main);
	margin: 0 0 0.25rem 0;
}

.gqpc-sp-sku {
	font-size: 0.875rem;
	color: var(--gqpc-text-muted);
	margin-bottom: 0.25rem;
}

.gqpc-sp-price {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--gqpc-primary);
}

/* Modal Body / Form */
.gqpc-modal-body {
	padding: 1.5rem;
	overflow-y: auto;
}

.gqpc-form-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -0.75rem;
}

.gqpc-form-group {
	padding: 0 0.75rem;
	margin-bottom: 1.25rem;
	width: 100%;
}

@media (min-width: 640px) {
	.gqpc-col-6 { width: 50%; }
}

.gqpc-modal-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--gqpc-text-main);
}

.gqpc-required {
	color: #ef4444;
}

.gqpc-input-icon-wrap {
	position: relative;
}

.gqpc-field-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
}

.gqpc-modal-input,
.gqpc-modal-textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 15px;
	font-size: 0.9375rem;
	transition: box-shadow 0.3s, border-color 0.3s;
	background: #fff;
}

.gqpc-modal-input {
	height: 50px;
}

.gqpc-modal-input:focus,
.gqpc-modal-textarea:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.gqpc-modal-textarea {
	resize: vertical;
	min-height: 80px;
}

/* Modal Footer */
.gqpc-modal-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--gqpc-border-color);
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	background: #fafafa;
	border-radius: 0 0 16px 16px;
	position: sticky;
	bottom: 0;
	z-index: 10;
}

.gqpc-btn-modal-cancel {
	background: #fff;
	border: 1px solid #d1d5db;
	color: var(--gqpc-text-main);
	padding: 0.625rem 1.25rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--gqpc-transition);
}

.gqpc-btn-modal-cancel:hover {
	background: #f9fafb;
}

.gqpc-btn-modal-submit {
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	border: none;
	color: #fff;
	padding: 0.625rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--gqpc-transition);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.gqpc-btn-modal-submit:hover {
	opacity: 0.9;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.gqpc-btn-modal-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.gqpc-btn-text,
.gqpc-btn-loading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.gqpc-spinner {
	animation: gqpc-spin 1s linear infinite;
}

@keyframes gqpc-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Alert & Success States */
.gqpc-form-alert {
	padding: 1rem 1.5rem;
	background: #fee2e2;
	color: #991b1b;
	border-bottom: 1px solid #fecaca;
	font-size: 0.9375rem;
}

.gqpc-success-state {
	padding: 3rem 2rem;
	text-align: center;
}

.gqpc-success-icon {
	width: 64px;
	height: 64px;
	background: #ecfdf5;
	color: #10b981;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.gqpc-success-state h3 {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	color: var(--gqpc-text-main);
}

.gqpc-success-state p {
	color: var(--gqpc-text-muted);
	margin: 0 0 2rem 0;
	line-height: 1.6;
}

/* --------------------------------------------------------
 * Single Product Detail Page Styles
 * -------------------------------------------------------- */
.gqpc-single-product-container {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1.5rem;
}

.gqpc-breadcrumb {
	margin-bottom: 2rem;
}

.gqpc-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--gqpc-text-muted);
	text-decoration: none;
	font-weight: 500;
	transition: var(--gqpc-transition);
}

.gqpc-back-link:hover {
	color: var(--gqpc-primary);
}

.gqpc-single-row {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

@media (min-width: 768px) {
	.gqpc-single-row {
		flex-direction: row;
		align-items: flex-start;
	}
}

.gqpc-single-gallery {
	flex: 1;
	background: #f9fafb;
	border: 1px solid var(--gqpc-border-color);
	border-radius: var(--gqpc-radius, 12px);
	padding: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gqpc-detail-img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.gqpc-detail-img-placeholder {
	width: 100%;
	padding-bottom: 100%; /* 1:1 Aspect Ratio */
	position: relative;
	color: #d1d5db;
}
.gqpc-detail-img-placeholder svg {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
}

.gqpc-single-summary {
	flex: 1;
}

.gqpc-detail-collection {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gqpc-primary);
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.gqpc-detail-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--gqpc-text-main);
	margin: 0 0 1rem 0;
	line-height: 1.2;
}

.gqpc-detail-sku {
	font-size: 1rem;
	color: var(--gqpc-text-muted);
	margin-bottom: 1rem;
}

.gqpc-detail-price {
	font-size: 2rem;
	font-weight: 700;
	color: var(--gqpc-text-main);
	margin-bottom: 2rem;
}

.gqpc-detail-price-currency {
	font-size: 1.25rem;
	font-weight: 500;
	margin-right: 4px;
}

.gqpc-detail-price-poa {
	color: var(--gqpc-primary);
	font-size: 1.5rem;
}

.gqpc-detail-description {
	font-size: 1.0625rem;
	color: var(--gqpc-text-muted);
	line-height: 1.7;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--gqpc-border-color);
	padding-bottom: 2rem;
}

.gqpc-detail-actions {
	margin-bottom: 2rem;
}

.gqpc-btn-detail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem 2.5rem;
	background: linear-gradient(135deg, var(--gqpc-primary), var(--gqpc-secondary));
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1.125rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: var(--gqpc-transition);
	width: 100%;
}

@media (min-width: 640px) {
	.gqpc-btn-detail {
		width: auto;
	}
}

.gqpc-btn-detail:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
	opacity: 0.95;
}

.gqpc-detail-meta p {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	color: var(--gqpc-text-muted);
	margin: 0 0 0.5rem 0;
}
