/* Gorillah WC Sulbras — Quick View Modal */

#gwcs-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;
}
#gwcs-qv-overlay.open {
	opacity: 1;
	pointer-events: all;
}

#gwcs-qv-drawer {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 9999;
	background: #fff;
	border-radius: 16px;
	width: 800px;
	max-width: calc(100vw - 32px);
	height: 500px;
	max-height: calc(100vh - 32px);
	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;
}
#gwcs-qv-drawer.open {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	pointer-events: auto;
}

#gwcs-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;
}
#gwcs-qv-close:hover { background: #e8e8e6; color: #111; }

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

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

.gwcs-qv-gallery {
	flex: 0 0 46.5%;
	position: relative;
	height: 100%;
	overflow: hidden;
	background: #ffffff;
	border-right: 1px solid #ece8df;
}
.gwcs-qv-main-image {
	width: 100%;
	height: calc(100% - 108px);
	padding: 24px 22px 14px;
	background: #ffffff;
}
.gwcs-qv-main-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.gwcs-qv-thumbs-bar {
	height: 108px;
	display: flex;
	align-items: center;
	border-top: 1px solid #ece8df;
	background: #f2f1ee;
}
.gwcs-qv-thumbs {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.gwcs-qv-thumbs::-webkit-scrollbar { display: none; }
.gwcs-qv-thumbs-nav {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #173152;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	cursor: pointer;
	flex: 0 0 44px;
}
.gwcs-qv-thumbs-nav:hover { color: #111; }
.gwcs-qv-thumbs-nav--prev { margin-left: 10px; }
.gwcs-qv-thumbs-nav--next { margin-right: 10px; }
.gwcs-qv-thumb {
	padding: 0;
	border: 1px solid #d8d8d4;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: #fff;
	flex: 0 0 auto;
	transition: border-color .15s, box-shadow .15s;
}
.gwcs-qv-thumb.active,
.gwcs-qv-thumb:hover { border-color: #111; box-shadow: 0 0 0 1px #111 inset; }
.gwcs-qv-thumb img { width: 64px; height: 64px; object-fit: cover; display: block; }

.gwcs-qv-details {
	flex: 1;
	padding: 66px 32px 22px 34px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
}

.gwcs-qv-copy {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.gwcs-qv-description {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #5f5f5f;
}

.gwcs-qv-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 30px;
	font-weight: 700;
	margin: 0;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: #2a2a2a;
}

.gwcs-qv-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gwcs-qv-meta-row,
.gwcs-qv-price-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gwcs-qv-price-block {
	padding-top: 8px;
}

.gwcs-qv-price-prefix {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #777;
	margin-bottom: 4px;
}

.gwcs-qv-meta-row--inline {
	flex-direction: row;
	align-items: baseline;
	gap: 14px;
}

.gwcs-qv-meta-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .16em;
	color: #9b9b9b;
	line-height: 1;
}

.gwcs-qv-meta-value {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: 400;
	color: #2a2a2a;
	line-height: 1.2;
}

.gwcs-qv-price {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}
.gwcs-qv-price .amount {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 25px;
	font-weight: 700;
	color: #2a2a2a;
	line-height: 1;
}
.gwcs-qv-price del .amount {
	font-size: 16px;
	color: #a7a7a7;
	font-weight: 400;
	text-decoration: line-through;
}
.gwcs-qv-price ins { text-decoration: none; }
.gwcs-qv-price ins .amount {
	color: #ff7b7b;
	font-size: 26px;
}

.gwcs-qv-actions {
	display: flex;
	gap: 12px;
	margin-top: 4px;
}

.gwcs-qv-actions--variable {
	display: block;
}

.gwcs-qv-variable-form-wrap,
.gwcs-qv-variable-form-wrap .variations_form {
	width: 100%;
}

.gwcs-qv-variable-form-wrap .variations_form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.gwcs-qv-variation-selected {
	margin-bottom: 4px;
}

.gwcs-qv-variable-form-wrap table.variations,
.gwcs-qv-variable-form-wrap table.variations tbody,
.gwcs-qv-variable-form-wrap table.variations tr,
.gwcs-qv-variable-form-wrap table.variations td,
.gwcs-qv-variable-form-wrap table.variations th {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.gwcs-qv-variable-form-wrap table.variations {
	border-collapse: collapse;
}

.gwcs-qv-variable-form-wrap table.variations tr {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gwcs-qv-variable-form-wrap table.variations tr + tr {
	margin-top: 12px;
}

.gwcs-qv-variable-form-wrap .label label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #2a2a2a;
}

.gwcs-qv-variable-form-wrap select,
.gwcs-qv-variable-form-wrap .qty {
	width: 100%;
	border: 1px solid #d7d7d7;
	border-radius: 6px;
	background: #fff;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.2;
	color: #2a2a2a;
	box-sizing: border-box;
}

.gwcs-qv-variable-form-wrap select:focus,
.gwcs-qv-variable-form-wrap .qty:focus {
	outline: none;
	border-color: #2e61ab;
	box-shadow: 0 0 0 3px rgba(46, 97, 171, 0.12);
}

.gwcs-qv-qty-field {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 0 0 auto;
	min-width: 80px;
	width: 120px;
	height: 44px;
	position: relative;
	box-sizing: border-box;
}

.gwcs-qv-qty-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #2a2a2a;
	position: absolute;
	bottom: 100%;
	left: 0;
	margin-bottom: 6px;
	white-space: nowrap;
}

.gwcs-qv-variable-form-wrap .reset_variations {
	display: none !important;
}

.gwcs-qv-variable-form-wrap .quantity label,
.gwcs-qv-variable-form-wrap .quantity .qty-label {
	display: none !important;
}

.gwcs-qv-variable-form-wrap .woocommerce-variation-price,
.gwcs-qv-variable-form-wrap .woocommerce-variation-availability {
	display: none !important;
}

.gwcs-qv-variable-form-wrap .single_variation_wrap {
	display: block !important;
}

.gwcs-qv-variable-form-wrap .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin-top: 16px;
}

.gwcs-qv-simple-form-wrap {
	display: flex;
	align-items: stretch;
	gap: 12px;
	width: 100%;
}

.gwcs-qv-simple-form-wrap .gwcs-qv-qty-field {
	flex: 0 0 auto;
}

.gwcs-qv-simple-form-wrap .gwcs-qv-add-to-cart {
	flex: 1 1 auto;
}

.gwcs-qv-simple-form-wrap .qty {
	width: 100%;
	min-height: 44px;
	border: 1px solid #d7d7d7;
	border-radius: 6px;
	background: #fff;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.2;
	color: #2a2a2a;
	box-sizing: border-box;
}

.gwcs-qv-simple-form-wrap .qty:focus {
	outline: none;
	border-color: #2e61ab;
	box-shadow: 0 0 0 3px rgba(46, 97, 171, 0.12);
}

.gwcs-qv-variable-form-wrap .quantity {
	margin: 0;
}

.gwcs-qv-variable-form-wrap .single_add_to_cart_button.gwcs-qv-add-to-cart {
	flex: 1 1 auto;
}

.gwcs-qv-variable-form-wrap .single_add_to_cart_button {
	flex: 1 1 auto;
}

.gwcs-qv-add-to-cart {
	height: 44px;
	background: #202020;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s;
	flex: 1 1 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
}
.gwcs-qv-add-to-cart:hover { background: #444; }
.gwcs-qv-add-to-cart:active { background: #111; }
.gwcs-qv-add-to-cart:disabled { opacity: .5; cursor: not-allowed; }

.gwcs-qv-buy-link,
.gwcs-qv-full-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	color: #2a2a2a;
	text-decoration: none;
	font-weight: 700;
	padding: 0 20px;
	border-radius: 12px;
	border: 1px solid #d9d9d9;
	background: #fff;
	transition: border-color .2s, color .2s, background .2s;
	flex: 1 1 0;
}
.gwcs-qv-buy-link:hover,
.gwcs-qv-full-link:hover {
	color: #2a2a2a;
	border-color: #111;
	background: #f7f7f7;
	text-decoration: none;
}

.gwcs-qv-details .added_to_cart,
.gwcs-qv-details .wc-forward,
.gwcs-qv-actions .added_to_cart,
.gwcs-qv-actions .wc-forward,
.gwcs-qv-actions a[href*="cart"] {
	display: none !important;
}

/* Mobile */
@media (max-width: 767px) {
	#gwcs-qv-drawer { top: auto; bottom: 0; left: 0; width: 100%; max-width: 100%; height: auto; max-height: 92vh; transform: translateY(12px) scale(.98); border-radius: 16px 16px 0 0; align-self: flex-end; }
	#gwcs-qv-drawer.open { transform: translateY(0) scale(1); }
	.gwcs-qv-inner { flex-direction: column; height: auto; }
	.gwcs-qv-gallery { flex: 0 0 240px; height: 240px; border-right: 0; border-bottom: 1px solid #ece8df; }
	.gwcs-qv-main-image { height: calc(100% - 76px); padding: 16px; }
	.gwcs-qv-thumbs-bar { height: 76px; }
	.gwcs-qv-thumbs { padding: 12px 0; }
	.gwcs-qv-thumbs-nav { width: 34px; height: 34px; flex-basis: 34px; font-size: 22px; }
	.gwcs-qv-thumbs-nav--prev { margin-left: 8px; }
	.gwcs-qv-thumbs-nav--next { margin-right: 8px; }
	.gwcs-qv-thumb img { width: 52px; height: 52px; }
	.gwcs-qv-details { padding: 24px 20px 24px; justify-content: flex-start; overflow-y: auto; }
	.gwcs-qv-copy { gap: 18px; }
	.gwcs-qv-title { font-size: 22px; }
	.gwcs-qv-price .amount { font-size: 24px; }
	.gwcs-qv-actions { flex-direction: column; }
	.gwcs-qv-variable-form-wrap .woocommerce-variation-add-to-cart { flex-direction: column; }
	#gwcs-qv-overlay { padding: 0; align-items: flex-end; }
}
