/* GP homepage left-side Shop by Category (Airlift-safe, handle bv-gp-home-shop) */
.gp-welcome-banner { position: relative; line-height: 0; }
.gp-welcome-banner img { width: 100%; height: auto; display: block; }
.gp-welcome-hit {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	z-index: 2;
}
.gp-welcome-hit-glass { left: 0; }
.gp-welcome-hit-paint { right: 0; }
.gp-welcome-hit:focus { outline: 3px solid #fff; outline-offset: -3px; }

.gp-home-hero {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	max-width: 1300px;
	margin: 18px auto 8px auto;
	padding: 0 12px;
	box-sizing: border-box;
	overflow: visible;
	position: relative;
	z-index: 30;
}
.gp-home-hero-main { min-width: 0; overflow: visible; }
.gp-home-hero-main .advertisement-banner-one,
.gp-home-hero-main .ad-banner-one-wrap,
.gp-home-hero-main .catalog-slider-promotion-box,
.gp-home-hero-main .catalog-slider-promotion-wrap,
.gp-home-hero-main .catalog-slider-promotion-inner {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	background: transparent !important;
}
body.home .gp-home-hero .catalog-menu-box,
body.home .gp-home-hero .main-slider,
body.home .gp-home-hero .layer-slider {
	display: none !important;
}

.gp-home-shop {
	position: relative;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,.08);
	overflow: visible;
	z-index: 40;
}
.gp-home-shop-toggle {
	display: none;
	width: 100%;
	border: 0;
	background: #3b8119;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .02em;
	padding: 12px 14px;
	text-align: left;
	cursor: pointer;
	border-radius: 8px 8px 0 0;
}
.gp-home-shop-heading {
	margin: 0;
	padding: 12px 14px;
	background: #3b8119;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .03em;
	border-radius: 8px 8px 0 0;
}
.gp-home-shop-list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
}
.gp-home-shop-item { margin: 0; }
.gp-home-shop-link {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	color: #222 !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.25;
	border-left: 3px solid transparent;
}
.gp-home-shop-item:hover > .gp-home-shop-link,
.gp-home-shop-item.is-open > .gp-home-shop-link,
.gp-home-shop-link:focus {
	background: #f3f8ef;
	border-left-color: #3b8119;
	color: #1b5e20 !important;
}
.gp-home-shop-thumb {
	width: 40px !important;
	height: 40px !important;
	object-fit: contain;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 6px;
	flex: 0 0 40px;
	padding: 2px;
	box-sizing: border-box;
	display: block;
}
.gp-home-flyout {
	display: none;
	box-sizing: border-box;
}
@media (min-width: 768px) {
	/* Position against the menu box, not the row, so every flyout opens
	   to the right of the sidebar and lines up with the top of the menu. */
	.gp-home-shop-item { position: static; }
	.gp-home-shop { z-index: 80; }
	.gp-home-flyout {
		position: absolute;
		left: calc(100% + 10px);
		top: 0;
		width: 700px;
		max-width: calc(100vw - 320px);
		background: #fff;
		border: 1px solid #e2e2e2;
		box-shadow: 0 12px 32px rgba(0,0,0,.16);
		border-radius: 8px;
		padding: 14px;
		z-index: 100050;
	}
	.gp-home-shop-item:hover > .gp-home-flyout,
	.gp-home-shop-item:focus-within > .gp-home-flyout,
	.gp-home-shop-item.is-open > .gp-home-flyout {
		display: block;
	}
	/* Tiles sit under the banner in the right column, beside the menu */
	.gp-home-hero-main .advertisement-banner-one {
		margin: 0 0 14px 0 !important;
	}
	.gp-home-hero-main .catalog-slider-promotion-box {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
}
.gp-home-flyout-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.gp-home-flyout-product {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none !important;
	color: #222 !important;
	padding: 8px 6px;
	border: 1px solid #eee;
	border-radius: 8px;
	background: #fafafa;
	height: 100%;
	box-sizing: border-box;
}
.gp-home-flyout-product:hover {
	border-color: #3b8119;
	background: #fff;
}
.gp-home-flyout-product img {
	width: 96px !important;
	height: 96px !important;
	object-fit: contain;
	background: #fff;
	border-radius: 6px;
	display: block;
	margin: 0 auto 8px auto;
}
.gp-home-flyout-name {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	display: block;
	min-height: 2.6em;
}
.gp-home-flyout-price {
	display: block;
	margin-top: 4px;
	color: #3b8119;
	font-weight: 700;
	font-size: 13px;
}
.gp-home-flyout-price .woocommerce-Price-amount,
.gp-home-flyout-price .amount { color: #3b8119 !important; }
.gp-home-flyout-all {
	display: block;
	margin-top: 12px;
	text-align: center;
	font-weight: 700;
	color: #3b8119 !important;
	text-decoration: none !important;
	padding: 8px;
}
.gp-home-flyout-all:hover { text-decoration: underline !important; }

@media (max-width: 767px) {
	.gp-home-hero {
		display: block;
		padding: 0 10px;
		margin: 12px auto;
	}
	.gp-home-shop { margin-bottom: 12px; }
	.gp-home-shop-heading { display: none; }
	.gp-home-shop-toggle { display: block; border-radius: 8px; }
	.gp-home-shop.is-open .gp-home-shop-toggle { border-radius: 8px 8px 0 0; }
	.gp-home-shop-list { display: none; }
	.gp-home-shop.is-open .gp-home-shop-list { display: block; }
	.gp-home-flyout {
		position: static;
		width: 100%;
		box-shadow: none;
		border: 0;
		border-top: 1px solid #eee;
		border-radius: 0;
		padding: 10px 10px 12px 10px;
		display: none;
	}
	.gp-home-shop-item.is-open > .gp-home-flyout { display: block; }
	.gp-home-flyout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gp-home-flyout-product img { width: 72px !important; height: 72px !important; }
}
