/* ============================================
   EGB Elementor Widgets — Category Cards
   Structural base styles. Colors, sizes and
   effects are controlled from the Elementor
   panel via the widget's Style tab.
   ============================================ */

/* ---- Wrapper height guards ----
   Prevent height collapse inside Elementor flex containers
   (fixed-height parents / align-items: stretch). */
.elementor-widget-egb_category_cards,
.elementor-widget-egb_category_cards .elementor-widget-container {
	height: auto !important;
	min-height: 0 !important;
	align-self: flex-start;
	width: 100%;
}

.egb-cat-grid {
	--egb-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--egb-cols), minmax(0, 1fr));
	grid-auto-rows: auto;
	gap: 22px;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	box-sizing: border-box;
}
.egb-cat-grid * {
	box-sizing: border-box;
	min-width: 0;
}

/* ---- Card ---- */
.egb-cat-card {
	--egb-ratio: 1.27;
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	isolation: isolate;
	transition: transform .3s ease, box-shadow .3s ease;
}

/* Card height source: padding-top spacer (bulletproof intrinsic
   height in all browsers and all layout contexts, including grid
   stretch). The Aspect Ratio control adjusts --egb-ratio. */
.egb-cat-card::before {
	content: "";
	display: block;
	width: 100%;
	padding-top: calc(var(--egb-ratio) * 100%);
}

.egb-cat-photo {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform .6s cubic-bezier(.22, .61, .36, 1);
	z-index: 1;
}

/* ---- Overlay gradient (colors via CSS vars from controls) ---- */
.egb-cat-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	--egb-ov-top: rgba(18, 67, 42, 0.28);
	--egb-ov-bottom: rgba(10, 26, 17, 0.88);
	background: linear-gradient(
		180deg,
		var(--egb-ov-top) 0%,
		rgba(0, 0, 0, 0) 38%,
		var(--egb-ov-bottom) 100%
	);
	transition: opacity .4s;
	pointer-events: none;
}

/* ---- Number ---- */
.egb-cat-number {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 3;
	font-family: 'League Spartan', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 3px;
	color: #fff;
	line-height: 1;
}
.egb-cat-number b { font-weight: 800; }

/* ---- Chip ---- */
.egb-cat-chip {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	background: #C0392B;
	color: #fff;
	font-family: 'League Spartan', sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 6px 12px 5px;
	border-radius: 40px;
	line-height: 1;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .3s, transform .3s;
}
.egb-cat-card:hover .egb-cat-chip,
.egb-cat-card.egb-chip-always .egb-cat-chip {
	opacity: 1;
	transform: translateY(0);
}

/* ---- Bottom content ---- */
.egb-cat-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 22px 20px 20px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.egb-cat-name {
	font-family: 'League Spartan', sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: #fff;
	line-height: 1.1;
	transition: color .2s;
}

.egb-cat-count {
	font-family: 'League Spartan', sans-serif;
	font-weight: 500;
	font-size: 12.5px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 6px;
	line-height: 1;
}

/* ---- Hover underline ---- */
.egb-cat-nameblock.egb-has-underline::after {
	content: "";
	display: block;
	width: 0;
	height: 3px;
	margin-top: 10px;
	background: #C0392B;
	transition: width .35s ease;
}
.egb-cat-card:hover .egb-cat-nameblock.egb-has-underline::after {
	width: 52px;
}

/* ---- Arrow ---- */
.egb-cat-arrow {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 17px;
	transition: all .3s;
	background-color: transparent;
}
.egb-cat-arrow svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}
.egb-cat-card:hover .egb-cat-arrow {
	background-color: #C0392B;
	border-color: #C0392B;
	transform: rotate(45deg);
}
.egb-cat-grid.egb-no-arrow-rotate .egb-cat-card:hover .egb-cat-arrow {
	transform: none;
}

/* ---- Responsive fallbacks ----
   These set the column variable per breakpoint. If the user sets
   explicit tablet/mobile values in the widget's Columns control,
   Elementor's higher-specificity rules override these — both paths
   resolve through the same var, so the grid can never stay at the
   desktop column count on small screens. */
@media (max-width: 1024px) {
	.egb-cat-grid { --egb-cols: 2; }
}
@media (max-width: 767px) {
	.egb-cat-grid { --egb-cols: 1; gap: 16px; }
	.egb-cat-card { --egb-ratio: 0.9; }
	.egb-cat-name { font-size: 22px; }
}

/* ============================================
   EGB Product Cards
   ============================================ */

.egb-products-grid {
	--egb-pcols: 4;
	display: grid;
	grid-template-columns: repeat(var(--egb-pcols), minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	box-sizing: border-box;
}
.egb-products-grid * ,
.egb-products-swiper * {
	box-sizing: border-box;
	min-width: 0;
}

.elementor-widget-egb_product_cards,
.elementor-widget-egb_product_cards .elementor-widget-container {
	height: auto !important;
	min-height: 0 !important;
	align-self: flex-start;
	width: 100%;
}

/* ---- Card ---- */
.egb-product-card {
	background: #fff;
	border: 1px solid rgba(18, 67, 42, 0.10);
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.egb-product-card:hover {
	box-shadow: 0 16px 34px rgba(18, 67, 42, 0.13);
	border-color: rgba(18, 67, 42, 0.18);
}

/* ---- Media ---- */
.egb-product-media {
	--egb-pratio: 0.92;
	position: relative;
	display: block;
	background: #FAF6EF;
	overflow: hidden;
}
.egb-product-media::before {
	content: "";
	display: block;
	width: 100%;
	padding-top: calc(var(--egb-pratio) * 100%);
}
.egb-product-img {
	position: absolute;
	inset: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-origin: content-box;
	padding: 16px;
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

/* ---- Badges ---- */
.egb-badge-sale {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #C0392B;
	color: #fff;
	font-family: 'League Spartan', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .5px;
	line-height: 1;
	padding: 7px 12px 6px;
	border-radius: 8px;
	z-index: 2;
	box-shadow: 0 4px 10px rgba(192, 57, 43, .3);
}
.egb-badge-chip {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(18, 67, 42, 0.92);
	color: #fff;
	font-family: 'League Spartan', sans-serif;
	font-weight: 600;
	font-size: 10.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	line-height: 1;
	padding: 6px 10px 5px;
	border-radius: 30px;
	z-index: 2;
}

/* ---- Media link overlay ---- */
.egb-media-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* ---- Quick add (inside media, bottom-anchored) ---- */
.egb-quickadd {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	background: rgba(18, 67, 42, 0.96);
	color: #fff !important;
	font-family: 'League Spartan', sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	padding: 13px 10px 12px;
	transform: translateY(100%);
	transition: transform .3s ease, background .2s;
	cursor: pointer;
}
.egb-product-card:hover .egb-quickadd { transform: translateY(0); }
.egb-quickadd:hover { background: #C0392B; }
.egb-quickadd.added { background: #1A5D3A; }
.egb-quickadd.egb-disabled {
	background: #8a8a84;
	cursor: not-allowed;
	pointer-events: none;
	transform: translateY(0);
}
.egb-product-card.egb-add-always .egb-quickadd { transform: translateY(0); }
.egb-badge-sale { z-index: 3; }
.egb-badge-chip { z-index: 3; }

/* ---- Info ---- */
.egb-product-info {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.egb-product-cat {
	font-family: 'League Spartan', sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #5a5a54;
	line-height: 1;
}
.egb-product-name {
	font-family: 'League Spartan', sans-serif;
	font-weight: 700;
	font-size: 18.5px;
	color: #12432A;
	line-height: 1.25;
	text-decoration: none;
	transition: color .2s;
}
.egb-product-unit {
	font-family: 'Poppins', sans-serif;
	font-size: 12.5px;
	color: #5a5a54;
	font-weight: 400;
}
.egb-price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 6px;
}
.egb-price {
	font-family: 'League Spartan', sans-serif;
	font-weight: 800;
	font-size: 21px;
	color: #1A5D3A;
	line-height: 1;
}
/* Theme CSS may color .woocommerce-Price-amount/.amount directly,
   which overrides parent color. Force inheritance on all inner
   price markup so our colors always win. */
.egb-price .woocommerce-Price-amount,
.egb-price .amount,
.egb-price bdi,
.egb-price .woocommerce-Price-currencySymbol,
.egb-price-old .woocommerce-Price-amount,
.egb-price-old .amount,
.egb-price-old bdi,
.egb-price-old .woocommerce-Price-currencySymbol,
.egb-save .woocommerce-Price-amount,
.egb-save .amount,
.egb-save bdi,
.egb-save .woocommerce-Price-currencySymbol {
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}
/* Accessibility spans from get_price_html: keep for screen readers, hide visually */
.egb-price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.egb-price del { opacity: .55; font-weight: 500; font-size: .7em; }
.egb-price ins { text-decoration: none; }
.egb-price-old {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: #9a9a94;
	text-decoration: line-through;
}
.egb-save {
	background: rgba(192, 57, 43, 0.1);
	color: #C0392B;
	font-family: 'League Spartan', sans-serif;
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: .5px;
	line-height: 1;
	padding: 4px 8px 3px;
	border-radius: 6px;
}

/* ---- Carousel ---- */
.egb-products-swiper {
	width: 100%;
	overflow: hidden;
	padding-bottom: 6px;
}
.egb-products-swiper .swiper-slide { height: auto; display: flex; }
.egb-products-swiper .swiper-slide .egb-product-card { width: 100%; }
.egb-products-swiper .swiper-pagination {
	position: relative;
	margin-top: 18px;
}
.egb-carousel-nav {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 18px;
}
.egb-carousel-nav button {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid #12432A;
	background: transparent;
	color: #12432A;
	font-size: 17px;
	cursor: pointer;
	transition: all .25s;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---- Touch devices: quick add always visible ---- */
@media (hover: none) {
	.egb-product-card .egb-quickadd {
		transform: translateY(0);
	}
}

/* ---- Responsive fallbacks ---- */
@media (max-width: 1024px) {
	.egb-products-grid { --egb-pcols: 2; }
}
@media (max-width: 767px) {
	.egb-products-grid { --egb-pcols: 2; gap: 12px; }
	.egb-product-name { font-size: 16px; }
	.egb-price { font-size: 18px; }
	.egb-product-info { padding: 14px 14px 16px; }
}

/* ============================================
   EGB Category Cards Light
   ============================================ */

.elementor-widget-egb_category_cards_light,
.elementor-widget-egb_category_cards_light .elementor-widget-container {
	height: auto !important;
	min-height: 0 !important;
	align-self: flex-start;
	width: 100%;
}

.egb-catl-grid {
	--egb-lcols: 6;
	display: grid;
	grid-template-columns: repeat(var(--egb-lcols), minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	box-sizing: border-box;
}
.egb-catl-grid * {
	box-sizing: border-box;
	min-width: 0;
}

/* ---- Card ---- */
.egb-catl-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	padding: 0 0 20px;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(20, 40, 25, 0.06);
	transition: transform .28s ease, box-shadow .28s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
}
.egb-catl-card:hover {
	box-shadow: 0 14px 30px rgba(20, 40, 25, 0.14);
}

/* ---- Image: edge-to-edge, padding-top spacer for height ---- */
.egb-catl-img {
	--egb-lratio: 1;
	display: block;
	width: 100%;
	position: relative;
	overflow: hidden;
	background: #FAF6EF;
}
.egb-catl-img::before {
	content: "";
	display: block;
	width: 100%;
	padding-top: calc(var(--egb-lratio) * 100%);
}
.egb-catl-img > span {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform .45s ease;
}

/* ---- Name ---- */
.egb-catl-name {
	font-family: 'League Spartan', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #1c1c1c;
	margin: 16px 8px 12px;
	line-height: 1.3;
}
.egb-catl-name small {
	font-weight: 500;
	font-size: 11px;
	color: #8a8a84;
}

/* ---- Button ---- */
.egb-catl-btn {
	font-family: 'League Spartan', sans-serif;
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #fff;
	background: #2E8B34;
	padding: 9px 18px 8px;
	border-radius: 6px;
	line-height: 1;
	transition: background .2s, transform .2s;
}

/* ---- Responsive fallbacks ---- */
@media (max-width: 1024px) {
	.egb-catl-grid { --egb-lcols: 3; }
}
@media (max-width: 767px) {
	.egb-catl-grid { --egb-lcols: 2; gap: 14px; }
	.egb-catl-name { font-size: 13px; }
}

/* ============================================
   EGB Google Reviews
   ============================================ */

.elementor-widget-egb_google_reviews,
.elementor-widget-egb_google_reviews .elementor-widget-container {
	height: auto !important;
	min-height: 0 !important;
	align-self: flex-start;
	width: 100%;
}

.egb-grev-wrap { width: 100%; }
.egb-grev-wrap.egb-grev-left {
	display: grid;
	grid-template-columns: 210px 1fr;
	gap: 30px;
	align-items: start;
}
.egb-grev-wrap * { box-sizing: border-box; min-width: 0; }

/* ---- Summary ---- */
.egb-grev-summary { padding-top: 4px; }
.egb-grev-wrap:not(.egb-grev-left) .egb-grev-summary { margin-bottom: 26px; }
.egb-grev-logo {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 26px;
	letter-spacing: -0.5px;
	margin-bottom: 8px;
	line-height: 1;
}
.egb-grev-logo span:nth-child(1) { color: #4285F4; }
.egb-grev-logo span:nth-child(2) { color: #EA4335; }
.egb-grev-logo span:nth-child(3) { color: #FBBC05; }
.egb-grev-logo span:nth-child(4) { color: #4285F4; }
.egb-grev-logo span:nth-child(5) { color: #34A853; }
.egb-grev-logo span:nth-child(6) { color: #EA4335; }

.egb-grev-stars { display: inline-flex; gap: 3px; }
.egb-grev-stars svg { width: 22px; height: 22px; fill: #F5B50A; }
.egb-grev-stars.small svg { width: 14px; height: 14px; }
.egb-grev-summary .egb-grev-stars { margin-bottom: 12px; }

.egb-grev-num {
	font-family: 'League Spartan', sans-serif;
	font-weight: 800;
	font-size: 52px;
	line-height: 1;
	color: #1c1c1c;
}
.egb-grev-outof {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #1c1c1c;
	margin-top: 4px;
}
.egb-grev-basis {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	color: #6b6b66;
	margin-top: 10px;
	line-height: 1.5;
}
.egb-grev-btn {
	display: inline-block;
	font-family: 'League Spartan', sans-serif;
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #fff !important;
	background: #2E8B34;
	padding: 11px 20px 10px;
	border-radius: 30px;
	text-decoration: none;
	margin-top: 16px;
	transition: background .2s, transform .2s;
}
.egb-grev-btn:hover { transform: translateY(-2px); }

/* ---- Grid ---- */
.egb-grev-grid {
	--egb-rcols: 3;
	display: grid;
	grid-template-columns: repeat(var(--egb-rcols), minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	height: auto !important;
}

/* ---- Card ---- */
.egb-grev-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 14px;
	padding: 18px 18px 16px;
	box-shadow: 0 4px 14px rgba(20, 40, 25, 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}
.egb-grev-top {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.egb-grev-ago {
	font-family: 'Poppins', sans-serif;
	font-size: 10.5px;
	color: #9a9a94;
}
.egb-grev-text {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.65;
	color: #3a3a36;
	flex: 1;
	margin: 0;
}
.egb-grev-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}
.egb-grev-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
.egb-grev-avatar img { width: 100%; height: 100%; object-fit: cover; }
.egb-grev-avatar.is-initials {
	background: #12432A;
	color: #fff;
	font-family: 'League Spartan', sans-serif;
	font-weight: 700;
	font-size: 14px;
}
.egb-grev-name {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: #1c1c1c;
	flex: 1;
}
.egb-grev-g { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---- Slider ---- */
.egb-grev-swiper { width: 100%; overflow: hidden; padding-bottom: 6px; }
.egb-grev-swiper .swiper-slide { height: auto; display: flex; }
.egb-grev-swiper .swiper-slide .egb-grev-card { width: 100%; }
.egb-grev-swiper .swiper-pagination { position: relative; margin-top: 16px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.egb-grev-wrap.egb-grev-left { grid-template-columns: 180px 1fr; }
	.egb-grev-grid { --egb-rcols: 2; }
}
@media (max-width: 767px) {
	.egb-grev-wrap.egb-grev-left { grid-template-columns: 1fr; gap: 22px; }
	.egb-grev-grid { --egb-rcols: 1; }
}
