/* ---------- Shared card styling ---------- */
.envision-eb-empty { opacity: .6; font-size: 14px; }

.envision-eb-products-wrap,
.envision-eb-products-wrap * { box-sizing: border-box; }

.envision-eb-product-card {
	display: flex;
	flex-direction: column;
	border: none;
	background: none;
	position: relative;
}
.envision-eb-product-thumb {
	display: block;
	position: relative;
	border: none;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f2f3;
	aspect-ratio: 1;
}
.envision-eb-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.envision-eb-product-thumb:hover img:not(.envision-eb-hover-image) { transform: scale(1.04); }
.envision-eb-product-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.18), rgba(0,0,0,0) 55%);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}
.envision-eb-product-thumb:hover::after { opacity: 1; }
.envision-eb-product-card { transition: transform .25s ease; }
.envision-eb-product-card:hover { transform: translateY(-4px); }
.envision-eb-product-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #eee, #eee 10px, #f5f5f5 10px, #f5f5f5 20px);
}
.envision-eb-hover-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .35s ease;
}
.envision-eb-product-thumb:hover .envision-eb-hover-image { opacity: 1; }
.envision-eb-product-body { padding: 12px 2px 2px; display: flex; flex-direction: column; gap: 6px; }
.envision-eb-product-title { font-size: 15px; font-weight: 600; margin: 0; }
.envision-eb-product-title a { color: inherit; text-decoration: none; }
.envision-eb-product-rating { font-size: 13px; }
.envision-eb-product-cats {
	display: block;
	font-size: 12px;
	opacity: .6;
	margin-top: -2px;
}
.envision-eb-product-cats a { color: inherit; text-decoration: none; }
.envision-eb-product-cats a:hover { text-decoration: underline; }
.envision-eb-product-price { font-size: 14px; opacity: .85; }
.envision-eb-product-price del { opacity: .5; margin-right: 6px; }
.envision-eb-product-price ins { text-decoration: none; }
.envision-eb-product-cart a.button,
.envision-eb-product-cart a.added_to_cart {
	display: inline-block;
	margin-top: 2px;
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 13px;
	text-decoration: none;
	background: #17181c;
	color: #fff !important;
	border: none;
}
.envision-eb-product-cart a.button:hover { opacity: .88; }
.envision-eb-sale-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e0393e;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 999px;
	z-index: 1;
}

/* ---------- Products: grid ---------- */
.envision-eb-products--grid {
	display: grid;
	gap: 24px;
}
.envision-eb-products--cols-2 { grid-template-columns: repeat(2, 1fr); }
.envision-eb-products--cols-3 { grid-template-columns: repeat(3, 1fr); }
.envision-eb-products--cols-4 { grid-template-columns: repeat(4, 1fr); }
.envision-eb-products--cols-5 { grid-template-columns: repeat(5, 1fr); }
.envision-eb-products--cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) {
	.envision-eb-products--cols-4,
	.envision-eb-products--cols-5,
	.envision-eb-products--cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.envision-eb-products--grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Products: carousel ---------- */
.envision-eb-carousel { display: flex; align-items: center; gap: 8px; }
.envision-eb-products--carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	flex: 1;
	padding-bottom: 4px;
}
.envision-eb-products--carousel::-webkit-scrollbar { height: 6px; }
.envision-eb-products--carousel .envision-eb-product-card {
	flex: 0 0 240px;
	scroll-snap-align: start;
}
.envision-eb-carousel-nav {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,.12);
	background: #fff;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
}
.envision-eb-carousel-nav:hover { background: #f3f3f3; }

/* ---------- Card design variants (envision-eb-style--*) ---------- */

/* shadow (default): rounded card, soft shadow, white background */
.envision-eb-style--shadow .envision-eb-product-card {
	background: #fff;
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 6px 20px rgba(0,0,0,.06);
	transition: box-shadow .2s ease, transform .2s ease;
}
.envision-eb-style--shadow .envision-eb-product-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.12); transform: translateY(-3px); }

/* bordered: simple outlined box */
.envision-eb-style--bordered .envision-eb-product-card {
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 8px;
	padding: 10px;
}

/* minimal: no card chrome at all, just content */
.envision-eb-style--minimal .envision-eb-product-thumb { border-radius: 4px; }

/* overlay: price/rating/button appear over the image on hover */
.envision-eb-style--overlay .envision-eb-product-thumb { aspect-ratio: 4/5; }
.envision-eb-style--overlay .envision-eb-product-body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 16px 14px;
	background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
	color: #fff;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}
.envision-eb-style--overlay .envision-eb-product-card:hover .envision-eb-product-body { opacity: 1; transform: translateY(0); }
.envision-eb-style--overlay .envision-eb-product-card { position: relative; }
.envision-eb-style--overlay .envision-eb-product-price { color: #fff; opacity: 1; }

/* compact: smaller, denser grid — good for 5-6 columns */
.envision-eb-style--compact .envision-eb-product-body { padding: 8px 2px 2px; gap: 3px; }
.envision-eb-style--compact .envision-eb-product-title { font-size: 13px; }
.envision-eb-style--compact .envision-eb-product-price { font-size: 12px; }
.envision-eb-style--compact .envision-eb-product-cart a.button { padding: 6px 12px; font-size: 12px; }

/* badge: sale-ribbon corner (badge itself rendered conditionally in PHP) */
.envision-eb-style--badge .envision-eb-product-thumb { border-radius: 10px; }

/* centered: everything center-aligned, full-width button */
.envision-eb-style--centered .envision-eb-product-body { align-items: center; text-align: center; }
.envision-eb-style--centered .envision-eb-product-cart { width: 100%; }
.envision-eb-style--centered .envision-eb-product-cart a.button { display: block; width: 100%; }

/* split: image left, details right — only really suits 1-2 columns / list use */
.envision-eb-style--split .envision-eb-product-card { flex-direction: row; align-items: center; gap: 16px; }
.envision-eb-style--split .envision-eb-product-thumb { width: 120px; flex-shrink: 0; aspect-ratio: 1; }
.envision-eb-style--split .envision-eb-product-body { padding: 0; }

/* ---------- Category grid ---------- */
/* ---------- Category showcase (widget + [envision_categories]) ----------
   Columns / image shape / gap are CSS variables so the Elementor controls
   and the shortcode both just set a variable per breakpoint. */
.envision-eb-catshow,
.envision-eb-catshow * { box-sizing: border-box; }
.envision-eb-catshow {
	--eb-cols: 4;
	--eb-ratio: 1 / 1;
	--eb-gap: 20px;
	--eb-overlay: .35;
	display: grid;
	grid-template-columns: repeat(var(--eb-cols), minmax(0, 1fr));
	gap: var(--eb-gap);
}
@media (max-width: 1024px) { .envision-eb-catshow { --eb-cols: 3; } }
@media (max-width: 640px)  { .envision-eb-catshow { --eb-cols: 2; } }

.envision-eb-cs-item {
	position: relative;
	display: block;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}
.envision-eb-cs-thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: var(--eb-ratio);
	overflow: hidden;
	background: #f1f1f1;
}
.envision-eb-cs-thumb img,
.envision-eb-cs-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.envision-eb-cs-item:hover .envision-eb-cs-thumb img { transform: scale(1.06); }
.envision-eb-cat-placeholder { display: block; width: 100%; height: 100%; background: #e6e6e6; }
.envision-eb-cs-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.envision-eb-cs-count { display: block; font-size: 12px; opacity: .65; margin-top: 2px; }

/* 1) Image + name below */
.envision-eb-catshow--below .envision-eb-cs-thumb { border-radius: 8px; }
.envision-eb-catshow--below .envision-eb-cs-label { display: block; padding: 10px 2px 0; }
.envision-eb-catshow--below .envision-eb-cs-item:hover .envision-eb-cs-name { color: var(--envision-accent, currentColor); }

/* 2) Image + white pill label (top / center / bottom) */
.envision-eb-catshow--overlay_pill .envision-eb-cs-label {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	max-width: calc(100% - 20px);
	background: #fff;
	color: #111;
	border-radius: 999px;
	padding: 7px 20px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
	transition: background-color .25s ease, color .25s ease;
}
.envision-eb-catshow--overlay_pill .envision-eb-cs-name { display: inline; font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .01em; color: #111; }
.envision-eb-catshow--overlay_pill .envision-eb-cs-count { display: inline; margin: 0 0 0 8px; font-size: 12px; }
.envision-eb-catshow--pos-top.envision-eb-catshow--overlay_pill .envision-eb-cs-label { top: 14px; }
.envision-eb-catshow--pos-bottom.envision-eb-catshow--overlay_pill .envision-eb-cs-label { bottom: 14px; }
.envision-eb-catshow--pos-center.envision-eb-catshow--overlay_pill .envision-eb-cs-label { top: 50%; transform: translate(-50%, -50%); }
.envision-eb-catshow--overlay_pill .envision-eb-cs-item:hover .envision-eb-cs-label { background: var(--envision-accent, #111); }
.envision-eb-catshow--overlay_pill .envision-eb-cs-item:hover .envision-eb-cs-name,
.envision-eb-catshow--overlay_pill .envision-eb-cs-item:hover .envision-eb-cs-count { color: #fff; }

/* 3) Image + bottom gradient label */
.envision-eb-catshow--overlay_bottom .envision-eb-cs-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,calc(var(--eb-overlay) + .35)) 0%, rgba(0,0,0,0) 65%);
	pointer-events: none;
}
.envision-eb-catshow--overlay_bottom .envision-eb-cs-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; color: #fff; }
.envision-eb-catshow--overlay_bottom .envision-eb-cs-name { font-size: 17px; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.envision-eb-catshow--overlay_bottom .envision-eb-cs-count { color: #fff; }

/* 4) Image + dark overlay, centered label */
.envision-eb-catshow--overlay_center .envision-eb-cs-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,var(--eb-overlay));
	transition: background-color .3s ease;
	pointer-events: none;
}
.envision-eb-catshow--overlay_center .envision-eb-cs-item:hover .envision-eb-cs-thumb::after { background: rgba(0,0,0,calc(var(--eb-overlay) + .2)); }
.envision-eb-catshow--overlay_center .envision-eb-cs-label {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px;
	text-align: center;
	color: #fff;
	z-index: 1;
}
.envision-eb-catshow--overlay_center .envision-eb-cs-name { font-size: 18px; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.envision-eb-catshow--overlay_center .envision-eb-cs-name::after { content: ''; display: block; width: 28px; height: 2px; background: currentColor; margin: 8px auto 0; transition: width .3s ease; }
.envision-eb-catshow--overlay_center .envision-eb-cs-item:hover .envision-eb-cs-name::after { width: 56px; }
.envision-eb-catshow--overlay_center .envision-eb-cs-count { color: #fff; }

/* 5) Circle image + name below */
.envision-eb-catshow--circle .envision-eb-cs-item { overflow: visible; text-align: center; }
.envision-eb-catshow--circle .envision-eb-cs-thumb { aspect-ratio: 1 / 1; border-radius: 50%; }
.envision-eb-catshow--circle .envision-eb-cs-label { display: block; padding-top: 12px; }
.envision-eb-catshow--circle .envision-eb-cs-item:hover .envision-eb-cs-name { color: var(--envision-accent, currentColor); }

.envision-eb-cat-flat-list { list-style: none; margin: 0; padding: 0; }
.envision-eb-cat-flat-list li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.envision-eb-cat-flat-list a { text-decoration: none; color: inherit; }

/* ---------- Filters ---------- */
.envision-eb-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 16px;
	padding: 16px;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 10px;
}
.envision-eb-filter-field { display: flex; flex-direction: column; gap: 4px; }
.envision-eb-filter-field label { font-size: 12px; font-weight: 600; opacity: .7; }
.envision-eb-filter-field select,
.envision-eb-filter-field input {
	padding: 8px 10px;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 6px;
	font-size: 14px;
}
.envision-eb-price-inputs { display: flex; align-items: center; gap: 6px; }
.envision-eb-price-inputs input { width: 80px; }
.envision-eb-filter-submit {
	padding: 9px 22px;
	border: none;
	border-radius: 999px;
	background: #17181c;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
}
.envision-eb-filter-submit:hover { opacity: .9; }

/* ---------- Tabs (instant client-side switch, pre-rendered panels) ---------- */
.envision-eb-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.envision-eb-tab-btn {
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,.12);
	background: transparent;
	cursor: pointer;
	font-size: 14px;
}
.envision-eb-tab-btn.is-active { background: #17181c; color: #fff; border-color: #17181c; }
.envision-eb-tab-panel { display: none; }
.envision-eb-tab-panel.is-active { display: block; }

/* ---------- Text Block ---------- */
.envision-eb-text-block { line-height: 1.7; }
.envision-eb-text-block p:last-child { margin-bottom: 0; }

/* ---------- Section Title ---------- */
.envision-eb-section-title { display: flex; flex-direction: column; gap: 8px; }
.envision-eb-section-title--left { align-items: flex-start; text-align: left; }
.envision-eb-section-title--center { align-items: center; text-align: center; }
.envision-eb-section-title--right { align-items: flex-end; text-align: right; }
.envision-eb-section-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .6;
}
.envision-eb-section-heading { margin: 0; font-size: clamp(24px, 4vw, 36px); line-height: 1.2; }
.envision-eb-section-divider { width: 56px; height: 3px; background: currentColor; opacity: .25; border-radius: 999px; }
.envision-eb-section-desc { margin: 4px 0 0; max-width: 560px; opacity: .75; line-height: 1.6; }

.envision-eb-cat-count { font-size: 12px; opacity: .6; }
