/**
 * ACCESFY Premium Shop Layout
 */

body.assefy-cs-shop-drawer-open {
	overflow: hidden;
}

.assefy-cs-shop-categories {
	max-width: 1440px;
	margin: 0 auto 28px;
	padding: 0 24px;
}

.assefy-cs-shop-categories__track {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 24px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 8px;
}

.assefy-cs-shop-categories__track::-webkit-scrollbar {
	display: none;
}

.assefy-cs-shop-categories__item {
	flex: 0 0 auto;
	width: 108px;
	text-align: center;
	text-decoration: none;
	color: #fff;
}

.assefy-cs-shop-categories__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0 auto 10px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #111;
}

.assefy-cs-shop-categories__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.assefy-cs-shop-categories__placeholder {
	font-size: 24px;
	color: #a1a1aa;
}

.assefy-cs-shop-categories__name {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.assefy-cs-shop-categories__cta {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	color: #a1a1aa;
}

.assefy-cs-shop-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
}

.assefy-cs-shop-main {
	min-width: 0;
	width: 100%;
}

.assefy-cs-shop-sidebar__inner {
	position: sticky;
	top: 24px;
	padding: 20px;
	background: #111;
	border: 1px solid #1e1e1e;
	border-radius: 12px;
}

.assefy-cs-shop-sidebar__title {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.assefy-cs-shop-filter + .assefy-cs-shop-filter {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid #1e1e1e;
}

.assefy-cs-shop-filter__label {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 500;
	color: #a1a1aa;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.assefy-cs-shop-filter__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.assefy-cs-shop-filter__list li + li {
	margin-top: 8px;
}

.assefy-cs-shop-filter__link {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: #d4d4d8;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s ease;
}

.assefy-cs-shop-filter__link:hover,
.assefy-cs-shop-filter__link.is-active {
	color: #fff;
}

.assefy-cs-shop-filter__count {
	color: #71717a;
}

.assefy-cs-shop-price {
	display: flex;
	align-items: center;
	gap: 8px;
}

.assefy-cs-shop-price input {
	width: 100%;
	padding: 10px 12px;
	background: #000;
	border: 1px solid #1e1e1e;
	border-radius: 8px;
	color: #fff;
	font-size: 13px;
}

.assefy-cs-shop-filter__apply,
.assefy-cs-shop-filter__clear {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 14px;
	background: #fff;
	color: #000;
	border: none;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	cursor: pointer;
}

.assefy-cs-shop-filter__clear {
	background: transparent;
	color: #a1a1aa;
	border: 1px solid #1e1e1e;
}

.assefy-cs-shop-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.assefy-cs-shop-colors__swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid transparent;
	background: #333;
}

.assefy-cs-shop-colors__swatch.is-active {
	border-color: #fff;
}

.assefy-cs-shop-colors__swatch--gold { background: #c4a052; }
.assefy-cs-shop-colors__swatch--silver { background: #c0c0c0; }
.assefy-cs-shop-colors__swatch--black { background: #111; border-color: #333; }
.assefy-cs-shop-colors__swatch--rose-gold { background: #b76e79; }
.assefy-cs-shop-colors__swatch--white { background: #fff; }

.assefy-cs-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #1e1e1e;
}

.assefy-cs-shop-toolbar__count {
	margin: 0;
	font-size: 12px;
	color: #a1a1aa;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.assefy-cs-shop-toolbar .woocommerce-ordering select {
	background: #111;
	color: #fff;
	border: 1px solid #1e1e1e;
	border-radius: 8px;
	padding: 10px 36px 10px 12px;
	font-size: 13px;
}

.assefy-cs-shop-mobile-filter {
	display: none;
	width: calc(100% - 32px);
	margin: 0 16px 16px;
	padding: 14px 16px;
	background: #111;
	border: 1px solid #1e1e1e;
	border-radius: 10px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	justify-content: space-between;
	align-items: center;
}

.assefy-cs-shop-mobile-filter__count {
	color: #a1a1aa;
	font-weight: 500;
}

.assefy-cs-shop-drawer {
	position: fixed;
	inset: 0;
	z-index: 99990;
	pointer-events: none;
}

.assefy-cs-shop-drawer.is-open {
	pointer-events: auto;
}

.assefy-cs-shop-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.assefy-cs-shop-drawer.is-open .assefy-cs-shop-drawer__backdrop {
	opacity: 1;
}

.assefy-cs-shop-drawer__panel {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: min(92vw, 380px);
	background: #000;
	border-left: 1px solid #1e1e1e;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}

.assefy-cs-shop-drawer.is-open .assefy-cs-shop-drawer__panel {
	transform: translateX(0);
}

.assefy-cs-shop-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #1e1e1e;
}

.assefy-cs-shop-drawer__header h2 {
	margin: 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
}

.assefy-cs-shop-drawer__close {
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.assefy-cs-shop-drawer__body {
	padding: 20px;
}

.assefy-cs-shop-drawer__body .assefy-cs-shop-sidebar {
	display: block;
}

.assefy-cs-shop-drawer__body .assefy-cs-shop-sidebar__inner {
	position: static;
	padding: 0;
	background: transparent;
	border: none;
}

.assefy-cs-shop-drawer__sort {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #1e1e1e;
}

.assefy-cs-shop-drawer__sort h3 {
	margin: 0 0 12px;
	font-size: 12px;
	color: #a1a1aa;
	text-transform: uppercase;
}

.assefy-cs-shop-bottom-nav {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99980;
	background: #000;
	border-top: 1px solid #1e1e1e;
	padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}

.assefy-cs-shop-bottom-nav__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: #a1a1aa;
	text-decoration: none;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	position: relative;
}

.assefy-cs-shop-bottom-nav__item.is-active {
	color: #fff;
}

.assefy-cs-shop-bottom-nav__badge {
	position: absolute;
	top: -2px;
	right: calc(50% - 22px);
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.assefy-cs-shop-page .assefy-cs-products-grid--archive {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 0 0 60px;
}

@media (max-width: 1024px) {
	body.assefy-cs-shop-page .assefy-cs-products-grid--archive {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	body.assefy-cs-shop-page.assefy-cs-premium-archive .site-main,
	body.assefy-cs-shop-page.assefy-cs-premium-archive .content-area,
	body.assefy-cs-shop-page.assefy-cs-premium-archive #primary,
	body.assefy-cs-shop-page.assefy-cs-premium-archive .woocommerce,
	body.assefy-cs-shop-page .assefy-cs-archive-page,
	body.assefy-cs-shop-page .assefy-cs-shop-layout,
	body.assefy-cs-shop-page .assefy-cs-shop-main {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	.assefy-cs-shop-categories {
		padding: 0 12px 20px;
		border-bottom: 1px solid #1e1e1e;
	}

	.assefy-cs-shop-categories__track {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 16px;
	}

	.assefy-cs-shop-layout {
		display: block;
		padding: 0;
		width: 100%;
	}

	.assefy-cs-shop-main {
		width: 100%;
		overflow: hidden;
	}

	.assefy-cs-shop-sidebar {
		display: none;
	}

	.assefy-cs-shop-mobile-filter {
		display: flex;
		border-top: 1px solid #1e1e1e;
		border-bottom: 1px solid #1e1e1e;
		width: 100%;
		margin: 0 0 12px;
		padding: 14px 12px;
		border-radius: 0;
		box-sizing: border-box;
	}

	body.assefy-cs-shop-page .assefy-cs-products-grid--archive {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		width: 100%;
		padding: 0 12px 48px;
	}

	.assefy-cs-shop-toolbar {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		padding: 0 12px 14px;
		box-sizing: border-box;
	}

	.assefy-cs-shop-toolbar .woocommerce-ordering {
		display: none;
	}

	.assefy-cs-archive-header {
		padding: 0 12px;
		margin-bottom: 24px;
	}
}
