/* Gorillah WooCard — Quick View Modal */

#gwc-qv-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 9998;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
#gwc-qv-overlay.open {
	opacity: 1;
	pointer-events: all;
}

#gwc-qv-drawer {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 9999;
	background: #fff;
	border-radius: 20px;
	width: 100%;
	max-width: 680px;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	box-shadow: 0 24px 64px rgba(0,0,0,.22);
	transform: translate(-50%, calc(-50% + 12px)) scale(.9);
	opacity: 0;
	pointer-events: none;
	transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
#gwc-qv-drawer.open {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	pointer-events: auto;
}

#gwc-qv-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 10;
	background: #f4f4f2;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	font-size: 18px;
	color: #555;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, color .15s;
}
#gwc-qv-close:hover { background: #e8e8e6; color: #111; }

#gwc-qv-content { display: contents; }

/* ── Inner layout ── */
.gwc-qv-inner {
	display: flex;
	width: 100%;
	min-height: 0;
}

/* Gallery — left 52% */
.gwc-qv-gallery {
	flex: 0 0 52%;
	position: relative;
	min-height: 360px;
	max-height: 90vh;
	overflow: hidden;
	background: #e8e8e6;
}
.gwc-qv-main-image {
	width: 100%;
	height: 100%;
}
.gwc-qv-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gwc-qv-thumbs {
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: 12px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.gwc-qv-thumb {
	padding: 0;
	border: 2px solid rgba(255,255,255,.5);
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	transition: border-color .15s;
}
.gwc-qv-thumb.active,
.gwc-qv-thumb:hover { border-color: #fff; }
.gwc-qv-thumb img { width: 52px; height: 52px; object-fit: cover; display: block; }

/* Details — right panel */
.gwc-qv-details {
	flex: 1;
	padding: 36px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	overflow-y: auto;
	position: relative;
}

.gwc-qv-cat {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: #999;
	line-height: 1;
}
.gwc-qv-title {
	font-size: 22px;
	font-weight: 600;
	margin: 0;
	line-height: 1.25;
	letter-spacing: -.2px;
	color: #1a1a1a;
}
.gwc-qv-rating { font-size: 13px; color: #888; }

/* Price */
.gwc-qv-price {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.gwc-qv-price .amount {
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
}
.gwc-qv-price del .amount { font-size: 16px; color: #aaa; font-weight: 400; text-decoration: line-through; }
.gwc-qv-price ins { text-decoration: none; }
.gwc-qv-price ins .amount { color: #f87171; }

.gwc-qv-stock { font-size: 12px; font-weight: 600; }
.gwc-stock--in  { color: #22c55e; }
.gwc-stock--out { color: #ef4444; }

.gwc-qv-description {
	font-size: 14px;
	color: #555;
	line-height: 1.7;
}
.gwc-qv-description p { margin: 0 0 8px; }

/* Form */
.gwc-qv-form { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.gwc-qv-quantity { display: flex; align-items: center; gap: 8px; }
.gwc-qv-qty-input {
	width: 70px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	text-align: center;
}
.gwc-qv-add-to-cart {
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
	width: 100%;
}
.gwc-qv-add-to-cart:hover { background: #333; }
.gwc-qv-add-to-cart:disabled { opacity: .5; cursor: not-allowed; }

.gwc-qv-full-link {
	text-align: center;
	font-size: 13px;
	color: #888;
	text-decoration: none;
	font-weight: 500;
	padding: 8px;
	border-radius: 8px;
	transition: color .2s;
}
.gwc-qv-full-link:hover { color: #1a1a1a; }

/* Mobile */
@media (max-width: 600px) {
	#gwc-qv-drawer { top: auto; bottom: 0; left: 0; transform: translateY(12px) scale(.98); flex-direction: column; max-height: 92vh; border-radius: 16px 16px 0 0; align-self: flex-end; }
	#gwc-qv-drawer.open { transform: translateY(0) scale(1); }
	.gwc-qv-gallery { flex: 0 0 200px; min-height: 200px; }
	.gwc-qv-details { padding: 20px 20px 24px; }
	#gwc-qv-overlay { padding: 0; align-items: flex-end; }
}
