html,
body{
	height:100%;
}

/* -------------------------------------------------
   SIDEBAR REAL HEIGHT
------------------------------------------------- */

.nv-sidebar-wrap.shop-sidebar{
	height:100vh;
	min-height:100vh;
	display:flex;
	flex-direction:column;
}

.nv-sidebar-wrap.shop-sidebar .sidebar-header{
	flex:0 0 auto;
}

.nv-sidebar-wrap.shop-sidebar aside#secondary{
	flex:1 1 auto;
	min-height:0;
	height:auto;
	overflow:hidden;
	display:flex;
	flex-direction:column;
}

.nv-sidebar-wrap.shop-sidebar aside#secondary .widget_block{
	flex:1 1 auto;
	min-height:0;
	height:100%;
	display:flex;
	flex-direction:column;
	margin-bottom:0;
}

.nv-sidebar-wrap.shop-sidebar aside#secondary .widget_block > p:empty{
	display:none;
	margin:0;
}

/* -------------------------
   SIBLINGS
------------------------- */

.kpk-product-siblings-wrap{
	flex:1 1 auto;
	min-height:0;
	height:100%;
	display:flex;
	flex-direction:column;
	box-sizing:border-box;
}

.kpk-product-siblings-head{
	flex:0 0 auto;
	padding:0 6px 12px 0;
}

.kpk-product-siblings-title{
	margin:0;
	font-size:20px;
	line-height:1.15;
	font-weight:700;
	color:#111;
	word-break:break-word;
}

.kpk-product-siblings{
	flex:1 1 auto;
	min-height:0;
	height:auto;
	overflow-y:auto;
	overflow-x:hidden;
	-webkit-overflow-scrolling:touch;
	overscroll-behavior:contain;
	cursor:grab;
	display:flex;
	flex-direction:column;
	gap:10px;
	touch-action:pan-y;
	scroll-behavior:auto;
	padding-right:6px;
	padding-bottom:8px;
	box-sizing:border-box;
}

.kpk-product-siblings.dragging{
	cursor:grabbing;
}

.kpk-product-siblings-item{
	display:flex;
	align-items:center;
	gap:14px;
	padding:12px;
	text-decoration:none;
	user-select:none;
	-webkit-user-drag:none;
	border:1px solid rgba(0,0,0,0.08);
	border-radius:12px;
	background:#fff;
	box-sizing:border-box;
	cursor:inherit;
	pointer-events:auto;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.15s ease,
		transform 0.15s ease;
}

.kpk-product-siblings.dragging .kpk-product-siblings-item{
	cursor:grabbing;
}

.kpk-product-siblings-item *{
	pointer-events:none;
}

.kpk-product-siblings-item:hover{
	background:#fafafa;
	border-color:rgba(0,0,0,0.16);
	box-shadow:0 4px 14px rgba(0,0,0,0.06);
	transform:translateY(-1px);
}

.kpk-product-siblings-item .thumb{
	flex:0 0 84px;
	width:84px;
	line-height:0;
	border-radius:12px;
	overflow:hidden;
	background:#f4f4f4;
}

.kpk-product-siblings-item .thumb img{
	display:block;
	width:100%;
	height:84px;
	object-fit:cover;
	border-radius:12px;
}

.kpk-product-siblings-item .meta{
	flex:1 1 auto;
	min-width:0;
	display:flex;
	align-items:center;
}

.kpk-product-siblings-item .name{
	font-size:15px;
	line-height:1.3;
	font-weight:600;
	color:#111;
	margin:0;
	word-break:break-word;
}

.kpk-product-siblings-item.is-current{
	background:#111;
	border-color:#111;
	box-shadow:0 8px 18px rgba(0,0,0,0.14);
}

.kpk-product-siblings-item.is-current .name{
	color:#fff;
}

.kpk-product-siblings-item.is-current .thumb{
	background:rgba(255,255,255,0.12);
}

.kpk-product-siblings-item.is-current .thumb img{
	opacity:0.96;
}

.kpk-product-siblings::-webkit-scrollbar{
	width:8px;
}

.kpk-product-siblings::-webkit-scrollbar-track{
	background:transparent;
}

.kpk-product-siblings::-webkit-scrollbar-thumb{
	background:rgba(0,0,0,0.18);
	border-radius:20px;
}

.kpk-product-siblings::-webkit-scrollbar-thumb:hover{
	background:rgba(0,0,0,0.28);
}

/* -------------------------
   CATEGORIES
------------------------- */

.kpk-categories{
	display:grid;
	grid-template-columns:repeat(6, 1fr);
	gap:20px;
}

.kpk-cat{
	display:flex;
	flex-direction:column;
	gap:5px;
	text-decoration:none;
}

.kpk-cat-image{
	width:100%;
	aspect-ratio:1 / 1;
	background-size:cover;
	background-position:center;
	border-radius:25px;
}

.kpk-cat-title{
	font-size:13px;
	line-height:1.2;
	text-align:center;
}

/* -------------------------
   CATEGORY HEADER
------------------------- */

.kpk-category-header{
	position:relative;
	display:flex;
	align-items:flex-end;
	width:100%;
	background-color:#111;
	background-size:cover;
	background-position:center;
	background-repeat:no-repeat;
	overflow:hidden;
}

.kpk-category-header-overlay{
	position:absolute;
	inset:0;
	background:linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.12) 100%);
	pointer-events:none;
}

.kpk-category-header-inner{
	position:relative;
	z-index:2;
	width:100%;
	padding:24px 24px 22px 24px;
	box-sizing:border-box;
}

.kpk-category-header-title{
	margin:0;
	color:#fff;
	font-size:clamp(28px, 4.2vh, 52px);
	line-height:1.02;
	font-weight:700;
	text-shadow:0 2px 12px rgba(0,0,0,0.28);
}

.kpk-category-header-desc,
.kpk-category-header-desc p{
	margin:10px 0 0 0;
	color:rgba(255,255,255,0.94);
	font-size:clamp(14px, 1.8vh, 20px);
	line-height:1.35;
}

@media (max-width: 1200px){
	.kpk-categories{
		grid-template-columns:repeat(6, 1fr);
	}
}

@media (max-width: 768px){

	.nv-sidebar-wrap.shop-sidebar{
		height:auto;
		min-height:0;
		display:block;
	}

	.nv-sidebar-wrap.shop-sidebar aside#secondary{
		height:auto;
		min-height:0;
		overflow:visible;
		display:block;
	}

	.nv-sidebar-wrap.shop-sidebar aside#secondary .widget_block{
		height:auto;
		display:block;
	}

	.kpk-product-siblings-wrap{
		height:70vh;
		min-height:70vh;
		max-height:70vh;
		display:flex;
		flex-direction:column;
	}

	.kpk-product-siblings-head{
		padding:0 4px 10px 0;
	}

	.kpk-product-siblings-title{
		font-size:17px;
		line-height:1.15;
	}

	.kpk-categories{
		grid-template-columns:repeat(4, 1fr);
	}

	.kpk-product-siblings{
		padding-bottom:10px;
	}

	.kpk-product-siblings-item{
		padding:10px;
		gap:12px;
	}

	.kpk-product-siblings-item .thumb{
		flex:0 0 64px;
		width:64px;
	}

	.kpk-product-siblings-item .thumb img{
		height:64px;
	}

	.kpk-product-siblings-item .name{
		font-size:13px;
		line-height:1.25;
	}

	.kpk-category-header-inner{
		padding:20px 16px 18px 16px;
	}
}

@media (max-width: 480px){
	.kpk-categories{
		grid-template-columns:repeat(3, 1fr);
	}
}


/* =========================================================
   PRODUCT TAG BADGES
========================================================= */

.kpk-product-tag-badges,
.kpk-product-badges-legend{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:10px 16px;
}

.kpk-product-tag-badges--single{
	margin:16px 0 0 0;
	padding:6px 0 0 0;
}

.kpk-product-badges-legend--single{
	margin:22px 0 0 0;
	padding:12px 0 0 0;
	border-top:1px solid rgba(0,0,0,0.08);
}

.kpk-product-tag-badge{
	display:inline-flex;
	align-items:center;
	gap:8px;
	text-decoration:none;
	color:#2b2b2b;
	font-size:13px;
	line-height:1.1;
	font-weight:700;
}

.kpk-product-tag-badges--icon-only .kpk-product-tag-badge,
.kpk-product-tag-badges--icon-only.kpk-product-tag-badges .kpk-product-tag-badge{
	gap:0;
}

.kpk-product-tag-badges--icon-only .kpk-product-tag-badge-text{
	display:none;
}

.kpk-product-tag-badge-icon{
	width:22px;
	height:22px;
	flex:0 0 22px;
	background-repeat:no-repeat;
	background-position:center;
	background-size:contain;
}

.kpk-product-tag-badge.is-vegetaria .kpk-product-tag-badge-icon,
.kpk-product-tag-badge.is-vegetari .kpk-product-tag-badge-icon,
.kpk-product-tag-badge.is-vegetarian .kpk-product-tag-badge-icon{
	background-image:url('../img/badge-vegetaria.png');
}

.kpk-product-tag-badge.is-vega .kpk-product-tag-badge-icon,
.kpk-product-tag-badge.is-vegan .kpk-product-tag-badge-icon{
	background-image:url('../img/badge-vega.png');
}

.kpk-product-tag-badge.is-equivalent-sense-gluten .kpk-product-tag-badge-icon,
.kpk-product-tag-badge.is-sense-gluten .kpk-product-tag-badge-icon,
.kpk-product-tag-badge.is-gluten .kpk-product-tag-badge-icon,
.kpk-product-tag-badge.is-sense-gluten-equivalent .kpk-product-tag-badge-icon{
	background-image:url('../img/badge-equivalent-sense-gluten.png');
}

.kpk-product-badges-legend .kpk-product-tag-badge{
	font-size:12px;
	font-weight:600;
}

.kpk-product-badges-legend .kpk-product-tag-badge-icon{
	width:18px;
	height:18px;
	flex:0 0 18px;
}

.kpk-product-tag-badge:hover{
	opacity:0.9;
}

@media (max-width: 768px){
	.kpk-product-tag-badges,
	.kpk-product-badges-legend{
		gap:8px 12px;
	}

	.kpk-product-tag-badge{
		font-size:12px;
	}

	.kpk-product-tag-badge-icon{
		width:20px;
		height:20px;
		flex:0 0 20px;
	}

	.kpk-product-badges-legend .kpk-product-tag-badge{
		font-size:11px;
	}
}
