/* Alexa : écran Catégories de l'app mobile (façon Shein) et bouton de fermeture des panneaux. */

/* Fermeture : pas de cadre bleu au toucher, anneau discret au clavier. */
button.swe-app-panel__close:focus:not(:focus-visible) {
	outline: none;
}

button.swe-app-panel__close:focus-visible {
	border-radius: 50%;
	outline: 2px solid var(--alx-blue);
	outline-offset: -4px;
}

/* Barre du haut : retour, pilule de recherche, favoris */
.alx-catsbar {
	gap: 2px;
	justify-content: flex-start;
	padding: env(safe-area-inset-top, 0px) 6px 0 2px;
	border-bottom: 0;
}

.alx-catsbar button.alx-catsbar__back {
	flex: none;
	width: 40px;
	height: 44px;
	color: var(--alx-ink);
}

.alx-catsbar button.alx-catsbar__search {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--alx-ink);
	border-radius: var(--alx-radius-pill);
	background: var(--alx-white);
	box-shadow: none;
	color: #6b6b72;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	-webkit-tap-highlight-color: transparent;
}

.alx-catsbar button.alx-catsbar__search:hover,
.alx-catsbar button.alx-catsbar__search:focus {
	background: var(--alx-white);
	color: #6b6b72;
	box-shadow: none;
}

.alx-catsbar button.alx-catsbar__search:active {
	background: var(--alx-soft);
}

.alx-catsbar__search svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--alx-ink);
}

.alx-catsbar__search span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.alx-catsbar a.alx-catsbar__fav {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--alx-ink);
	-webkit-tap-highlight-color: transparent;
}

.alx-catsbar__fav svg {
	width: 24px;
	height: 24px;
}

/* Colonne des rayons : défile seule */
.alx-appcats {
	border-top: 1px solid var(--alx-line);
}

.alx-appcats .swe-app-cats__nav {
	width: 112px;
	padding-bottom: 12px;
	background: var(--alx-soft);
}

.alx-appcats button.swe-app-cats__parent {
	min-height: 52px;
	padding: 14px 8px 14px 12px;
	border-left-width: 4px;
	color: #444;
	font-size: 13px;
	line-height: 1.25;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.alx-appcats button.swe-app-cats__parent.is-active {
	border-left-color: var(--alx-ink);
	background: var(--alx-white);
	color: var(--alx-ink);
	font-weight: 700;
}

/* Colonne de droite : chaque volet défile seul */
.alx-appcats .swe-app-cats__panes {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.alx-appcats .swe-app-cats__pane {
	flex: 1 1 auto;
	min-height: 0;
	padding: 14px 12px 24px 10px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.alx-appcats .swe-app-cats__pane[hidden] {
	display: none;
}

/* Titre de section + « Tout voir » */
.alx-appcats__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 12px;
}

.alx-appcats__head h3 {
	min-width: 0;
	margin: 0;
	color: var(--alx-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.alx-appcats__head a {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 2px;
	color: var(--alx-text-soft);
	font-size: 12px;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

/* Tuiles : image arrondie + libellé sur 2 lignes */
.alx-appcats__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.alx-appcats__grid li {
	min-width: 0;
	margin: 0;
	padding: 0;
}

.alx-appcats__grid a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--alx-ink);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.alx-appcats__grid a:active {
	opacity: 0.7;
}

.alx-appcats__img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 16px;
	background: #f3f3f5;
}

.alx-appcats__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	mix-blend-mode: multiply;
}

.alx-appcats__name {
	display: -webkit-box;
	width: 100%;
	overflow: hidden;
	color: #4a4a50;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.alx-appcats__empty {
	margin: 0;
	color: var(--alx-text-soft);
	font-size: 13px;
}

/* Jamais de mot coupé dans la colonne des rayons ; pas de cadre bleu au toucher sur le retour. */
.alx-appcats button.swe-app-cats__parent {
	padding-right: 6px;
	padding-left: 10px;
}

.alx-catsbar button.alx-catsbar__back:focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}
