/* Akeso Black Friday: top bar, pop-up, shop category filter. */

/* ---- Top bar ---------------------------------------------------------- */
.akeso-bf-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px 12px;
	min-height: 40px;
	padding: 8px 16px;
	background: #000;
	color: #fff;
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: 0.1em;
	text-align: center;
	text-decoration: none;
}

.akeso-bf-bar:hover,
.akeso-bf-bar:focus,
.akeso-bf-bar:visited {
	color: #fff;
	text-decoration: none;
}

.akeso-bf-bar:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.akeso-bf-bar__title {
	font-weight: 700;
}

.akeso-bf-bar__sep {
	opacity: 0.45;
}

.akeso-bf-bar__offer {
	font-weight: 500;
}

.akeso-bf-bar__cta {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	white-space: nowrap;
}

.akeso-bf-bar:hover .akeso-bf-bar__cta {
	text-decoration-thickness: 2px;
}

@media (max-width: 600px) {
	.akeso-bf-bar {
		font-size: 11.5px;
		letter-spacing: 0.06em;
		gap: 0 8px;
	}

	.akeso-bf-bar__cta {
		display: none;
	}
}

/* ---- Pop-up ------------------------------------------------------------ */
.akeso-bf-popup[hidden] {
	display: none;
}

.akeso-bf-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.akeso-bf-popup.is-open {
	opacity: 1;
}

.akeso-bf-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.akeso-bf-popup__dialog {
	position: relative;
	width: min(100%, 540px, calc(100vh - 80px));
	width: min(100%, 540px, calc(100dvh - 80px));
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
}

.akeso-bf-popup.is-open .akeso-bf-popup__dialog {
	transform: none;
}

.akeso-bf-popup__link {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	background: #111;
}

.akeso-bf-popup__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.akeso-bf-popup__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
}

.akeso-bf-popup .akeso-bf-popup__close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.akeso-bf-popup .akeso-bf-popup__close:hover {
	background: #000;
	color: #fff;
}

.akeso-bf-popup .akeso-bf-popup__close:focus-visible {
	outline: 3px solid #88ad99;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.akeso-bf-popup .akeso-bf-popup__close {
		top: -12px;
		right: -8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.akeso-bf-popup,
	.akeso-bf-popup__dialog {
		transition: none;
	}
}

/* ---- Shop sidebar: category filter ------------------------------------- */
.akeso-bf-cats {
	margin-bottom: 30px;
	padding-bottom: 26px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.akeso-bf-cats .akeso-bf-cats__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.akeso-bf-cats__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 30px;
	background: #000;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.akeso-bf-cats .akeso-bf-cats__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.akeso-bf-cats .akeso-bf-cats__list li {
	margin: 0;
	padding: 0;
}

.akeso-bf-cats .akeso-bf-cats__list li + li {
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.akeso-bf-cats .akeso-bf-cats__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	color: #242424;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.akeso-bf-cats .akeso-bf-cats__list a:hover,
.akeso-bf-cats .akeso-bf-cats__list .is-current a {
	color: #5f8a73;
}

.akeso-bf-cats .akeso-bf-cats__list .is-current a {
	font-weight: 700;
}

.akeso-bf-cats__count {
	flex: none;
	min-width: 28px;
	padding: 2px 8px;
	border-radius: 30px;
	background: rgba(0, 0, 0, 0.06);
	color: #555;
	font-size: 12px;
	font-weight: 500;
	text-align: center;
}

.akeso-bf-cats .is-current .akeso-bf-cats__count {
	background: #000;
	color: #fff;
}
