.vgw-showcase-wrap {
	position: relative;
}

/* ---------- Header ---------- */
.vgw-showcase-header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.vgw-header-dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.vgw-header-arrow {
	display: inline-flex;
	align-items: center;
	transition: transform 0.25s ease;
}

.vgw-header-arrow svg {
	width: 1em;
	height: 1em;
	display: block;
}

.vgw-header-dropdown-toggle.is-open .vgw-header-arrow {
	transform: rotate(180deg);
}

.vgw-dropdown-panel {
	position: absolute;
	top: 100%;
	margin-top: 8px;
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	background: #fff;
	border: 1px solid #eee;
	z-index: 20;
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.vgw-dropdown-panel.is-open {
	display: flex;
}

.vgw-dropdown-item {
	display: block;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---------- Grid ---------- */
.vgw-showcase-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.vgw-card {
	display: flex;
	flex-direction: column;
}

.vgw-card-image-wrap {
	position: relative;
	width: 100%;
	height: 0;
	overflow: hidden;
	display: block;
	background: #f2f2f2;
}

.vgw-card-image-link {
	position: absolute;
	inset: 0;
	display: block;
}

.vgw-card-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.vgw-showcase-wrap.vgw-zoom-yes .vgw-card:hover .vgw-card-image {
	transform: scale(1.05);
}

.vgw-card-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vgw-card-label {
	line-height: 1.4;
}

.vgw-card-title {
	text-decoration: none;
	transition: color 0.2s ease;
}

.vgw-card-price {
	line-height: 1.4;
}

.vgw-card-price del {
	margin-inline-end: 6px;
	opacity: 0.7;
}

.vgw-no-products {
	grid-column: 1 / -1;
	text-align: center;
}

/* ---------- Hover icons ---------- */
.vgw-icons-stack {
	position: absolute;
	display: flex;
	z-index: 5;
}

.vgw-icons-top-right-vertical {
	flex-direction: column;
	top: 12px;
	right: 12px;
}

.vgw-icons-top-left-vertical {
	flex-direction: column;
	top: 12px;
	left: 12px;
}

.vgw-icons-bottom-horizontal {
	flex-direction: row;
	justify-content: center;
	left: 0;
	right: 0;
	bottom: 12px;
	margin: 0 auto;
}

.vgw-icons-visibility-hover {
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.vgw-card:hover .vgw-icons-visibility-hover {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.vgw-icons-visibility-always {
	opacity: 1;
}

.vgw-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.vgw-icon-btn:active {
	transform: scale(0.92);
}

.vgw-icon-btn svg {
	display: block;
	pointer-events: none;
}

.vgw-icon-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.vgw-icon-btn.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* YITH wishlist button rendered inside our own icon button wrapper —
   hide its default text/markup, we only want the click target. */
.vgw-yith-wishlist-wrap .yith-wcwl-add-to-wishlist {
	position: absolute;
	inset: 0;
	margin: 0 !important;
}

.vgw-yith-wishlist-wrap .yith-wcwl-add-to-wishlist a,
.vgw-yith-wishlist-wrap .yith-wcwl-add-to-wishlist .ajax-loading,
.vgw-yith-wishlist-wrap .yith-wcwl-wishlistaddedbrowse,
.vgw-yith-wishlist-wrap .yith-wcwl-wishlistexistsbrowse {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	text-indent: -9999px;
	opacity: 0;
}

/* Mini toast used by the AJAX add-to-cart fallback */
.vgw-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #1a1a1a;
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.vgw-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
