/* PrestaShop-specific blocks, on the storefront and in the editor canvas. */
.cyb-blocs {
	box-sizing: border-box;
}
.cyb-blocs--header > *,
.cyb-blocs--footer > * {
	margin-block-start: 0;
}
.cyb-blocs img {
	max-width: 100%;
	height: auto;
}

.wp-block-cyb-logo {
	line-height: 0;
}
.wp-block-cyb-logo img {
	width: var(--cyb-logo-width, var(--cyb-logo-largeur, auto));
	max-width: 100%;
	height: auto;
}
.wp-block-cyb-logo.aligncenter {
	text-align: center;
}
.wp-block-cyb-logo.alignright {
	text-align: right;
	float: none;
}
.wp-block-cyb-logo.alignleft {
	float: none;
}

.wp-block-cyb-hook:empty {
	display: none;
}

.wp-block-cyb-shop-info p {
	margin: 0 0 .35em;
}

.cyb-social-links,
.cyb-payment-methods {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--cyb-social-links-gap, .75em);
	margin: 0;
	padding: 0;
	list-style: none;
}
.cyb-social-links__link {
	display: inline-flex;
	color: inherit;
}
.cyb-social-links__icon {
	width: var(--cyb-social-links-size, 1.5em);
	height: var(--cyb-social-links-size, 1.5em);
}
.cyb-payment-methods {
	gap: var(--cyb-payment-methods-gap, .5em 1em);
}

.wp-block-cyb-categories {
	display: grid;
	grid-template-columns: repeat(var(--cyb-columns, var(--cyb-colonnes, 3)), minmax(0, 1fr));
	gap: var(--wp--style--block-gap, 1.5rem);
}
.cyb-categories__item {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	color: inherit;
	text-decoration: none;
}
.cyb-categories__image {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #f4f4f4;
	aspect-ratio: 4 / 3;
}
.cyb-categories__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.cyb-categories__item:hover .cyb-categories__image img {
	transform: scale(1.04);
}
.cyb-categories__name {
	font-weight: 600;
	text-align: center;
}
.cyb-categories__count {
	display: block;
	margin-top: -.25rem;
	text-align: center;
	font-size: var(--cyb-categories-count-size, var(--cyb-categories-nombre-taille, 0.85em));
	opacity: var(--cyb-categories-count-opacity, var(--cyb-categories-nombre-opacite, 0.75));
}
@media (max-width: 767px) {
	.wp-block-cyb-categories {
		grid-template-columns: repeat(min(var(--cyb-columns, var(--cyb-colonnes, 3)), 2), minmax(0, 1fr));
	}
}
@media (prefers-reduced-motion: reduce) {
	.cyb-categories__image img {
		transition: none;
	}
}

/* Bar hooks (links, account, cart, languages...): modules side by side, as in the theme header. */
.cyb-hook--displayNav1,
.cyb-hook--displayNav2,
.cyb-hook--displayTop,
.cyb-hook--displayNav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.5rem;
}
/* Footer hooks: the theme modules are Bootstrap columns (.col-md-*). */
.cyb-hook--displayFooter,
.cyb-hook--displayFooterBefore {
	display: flex;
	flex-wrap: wrap;
	margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
}
.cyb-hook--displayFooter > *,
.cyb-hook--displayFooterBefore > * {
	padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

/* Catalog pages: the theme elements keep their styling, the template only places them. */
.cyb-page .wp-block-cyb-theme > :first-child {
	margin-top: 0;
}
/* Product list grid: the block's number of columns, following the width of the list rather than of the screen.
   Hummingbird only sets its grid under a layout class of the body (absent from the canvas, and 4 columns at
   full width). The classic theme keeps its Bootstrap grid (.products.row). */
.wp-block-cyb-product-list {
	container-type: inline-size;
}
.wp-block-cyb-product-list .products:not(.row) {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(var(--cyb-columns, var(--cyb-colonnes, 3)), minmax(0, 1fr));
}
@container (max-width: 720px) {
	.wp-block-cyb-product-list:not(.cyb-columns-1) .products:not(.row) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@container (max-width: 340px) {
	.wp-block-cyb-product-list .products:not(.row) {
		grid-template-columns: minmax(0, 1fr);
	}
}
.cyb-page .wp-block-cyb-filters #search_filters_wrapper,
.cyb-page .wp-block-cyb-filters #search_filters {
	display: block;
}

/* Tabs: without JS, titled sections one under the other; with views/js/onglets.js, a tab list (attribute data-cyb-tabs="ready"). */
.wp-block-cyb-tab + .wp-block-cyb-tab {
	margin-block-start: var(--cyb-tabs-gap, var(--cyb-onglets-ecart, 2rem));
}
.wp-block-cyb-tabs[data-cyb-tabs="ready"] > .wp-block-cyb-tab {
	margin-block-start: 0;
}
.wp-block-cyb-tabs > .wp-block-cyb-tab[hidden],
.wp-block-cyb-tab > .cyb-tab__title[hidden] {
	display: none !important;
}
.cyb-tab__content > :first-child {
	margin-block-start: 0;
}
.cyb-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0 0 1.5rem;
	border-bottom: 1px solid var(--cyb-tabs-border, var(--cyb-onglets-bordure, rgba(127, 127, 127, .35)));
}
.cyb-tabs__tab {
	appearance: none;
	margin: 0 0 -1px;
	padding: .65rem 1rem;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.cyb-tabs__tab[aria-selected="true"] {
	border-bottom-color: var(--cyb-tabs-active, var(--cyb-onglets-actif, currentColor));
	font-weight: 600;
}
.cyb-tabs__tab:focus-visible,
.wp-block-cyb-tab[role="tabpanel"]:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
@media print {
	.cyb-tabs__list {
		display: none;
	}
	.wp-block-cyb-tabs > .wp-block-cyb-tab[hidden],
	.wp-block-cyb-tab > .cyb-tab__title[hidden] {
		display: block !important;
	}
}

/* Product features: table, definition list or pills (--cyb-features-* variables). */
.cyb-features table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}
.cyb-features th,
.cyb-features td {
	padding: var(--cyb-features-spacing, var(--cyb-caracteristiques-espace, .6rem)) .75rem;
	border-bottom: 1px solid var(--cyb-features-border, var(--cyb-caracteristiques-bordure, rgba(127, 127, 127, .25)));
	text-align: start;
	vertical-align: top;
}
.cyb-features th {
	width: var(--cyb-features-name-width, var(--cyb-caracteristiques-largeur-nom, 40%));
	padding-inline-start: 0;
	font-weight: 600;
}
.cyb-features dl {
	margin: 0;
}
.cyb-features__row {
	display: grid;
	grid-template-columns: minmax(8rem, var(--cyb-features-name-width, var(--cyb-caracteristiques-largeur-nom, 40%))) 1fr;
	gap: 1rem;
	padding-block: var(--cyb-features-spacing, var(--cyb-caracteristiques-espace, .6rem));
	border-bottom: 1px solid var(--cyb-features-border, var(--cyb-caracteristiques-bordure, rgba(127, 127, 127, .25)));
}
.cyb-features dt {
	font-weight: 600;
}
.cyb-features dd {
	margin: 0;
}
.cyb-features ul {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cyb-features li {
	padding: .35rem .8rem;
	border: 1px solid var(--cyb-features-border, var(--cyb-caracteristiques-bordure, rgba(127, 127, 127, .35)));
	border-radius: var(--cyb-features-radius, var(--cyb-caracteristiques-arrondi, 999px));
	background: var(--cyb-features-background, var(--cyb-caracteristiques-fond, transparent));
}
.cyb-features__title {
	margin: 0 0 var(--cyb-features-title-gap, .75rem);
}
.cyb-features__name {
	opacity: .75;
}
.cyb-features__name::after {
	content: "\00a0:";
}
@media (max-width: 480px) {
	.cyb-features__row {
		grid-template-columns: 1fr;
		gap: .15rem;
	}
}

/* Feature values (cyb/feature-values): the values of a product feature with their number of products. A theme draws a
   size to scale from --cyb-fv-w / --cyb-fv-h (set on each item when the value looks like "L x H") and reads data-value.
   Properties, all optional: --cyb-feature-values-gap (.5rem), -padding (.5rem .9rem), -radius (999px, chips),
   -border (1px solid currentColor, chips), --cyb-feature-values-count-size (.85em), -count-opacity (.75). */
.cyb-feature-values__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.cyb-feature-values__item {
	margin: 0;
}
.cyb-feature-values__link,
.cyb-feature-values__text {
	display: flex;
	align-items: baseline;
	gap: .5em;
	color: inherit;
	text-decoration: none;
}
.cyb-feature-values__link:hover .cyb-feature-values__value {
	text-decoration: underline;
}
.cyb-feature-values__count {
	font-size: var(--cyb-feature-values-count-size, .85em);
	opacity: var(--cyb-feature-values-count-opacity, .75);
}
.cyb-feature-values--list .cyb-feature-values__link,
.cyb-feature-values--list .cyb-feature-values__text {
	justify-content: space-between;
	padding-block: .25rem;
}
.cyb-feature-values--chips .cyb-feature-values__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cyb-feature-values-gap, .5rem);
}
.cyb-feature-values--chips .cyb-feature-values__link,
.cyb-feature-values--chips .cyb-feature-values__text {
	padding: var(--cyb-feature-values-padding, .5rem .9rem);
	border: var(--cyb-feature-values-border, 1px solid currentColor);
	border-radius: var(--cyb-feature-values-radius, 999px);
}

/* Search form (cyb/search): a plain GET form. The label is for screen readers only (the field has its placeholder).
   Properties, all optional: --cyb-search-gap (.5rem), -padding (.6rem .9rem), -radius (.25rem), -border (1px solid currentColor). */
.cyb-search__form {
	display: flex;
	gap: var(--cyb-search-gap, .5rem);
	margin: 0;
}
.cyb-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.cyb-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: var(--cyb-search-padding, .6rem .9rem);
	border: var(--cyb-search-border, 1px solid currentColor);
	border-radius: var(--cyb-search-radius, .25rem);
	font: inherit;
	color: inherit;
	background: transparent;
}
.cyb-search__button {
	flex: 0 0 auto;
	padding: var(--cyb-search-padding, .6rem .9rem);
	border-radius: var(--cyb-search-radius, .25rem);
	font: inherit;
	cursor: pointer;
}

/* Lowest price (cyb/price-from): "From <price> incl. tax". Properties, all optional: --cyb-price-from-gap (.35em),
   -price-weight (inherit), -price-size (inherit), -affix-size (.9em), -affix-opacity (.75). */
.cyb-price-from {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--cyb-price-from-gap, .35em);
}
.cyb-price-from__prefix,
.cyb-price-from__suffix {
	font-size: var(--cyb-price-from-affix-size, .9em);
	opacity: var(--cyb-price-from-affix-opacity, .75);
}
.cyb-price-from__price {
	font-size: var(--cyb-price-from-price-size, inherit);
	font-weight: var(--cyb-price-from-price-weight, inherit);
}

/* Category header (cyb/category-header): image, title, product count, description. Properties, all optional:
   --cyb-ch-gap (1rem, between the image and the text), -spacing (.5rem, between the parts), -image-width (12rem),
   -image-radius (0), -count-size (.9em), -count-opacity (.75), -more-color (currentColor), -more-weight (600);
   --cyb-ch-lines is written by the block (lines kept before "Read more").
   "Read more" works without JavaScript: the checkbox comes before the text in the markup, the label is its button,
   and :checked ~ lifts the cut. The box is visually hidden, never display:none, so the keyboard still reaches it. */
.cyb-category-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--cyb-ch-gap, 1rem);
}
.cyb-category-header__image {
	flex: 0 0 var(--cyb-ch-image-width, 12rem);
	max-width: 100%;
}
.cyb-category-header__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--cyb-ch-image-radius, 0);
}
.cyb-category-header__body {
	flex: 1 1 18rem;
	min-width: 0;
}
.cyb-category-header__title {
	margin: 0 0 var(--cyb-ch-spacing, .5rem);
}
.cyb-category-header__count {
	margin: 0 0 var(--cyb-ch-spacing, .5rem);
	font-size: var(--cyb-ch-count-size, .9em);
	opacity: var(--cyb-ch-count-opacity, .75);
}
.cyb-category-header__description-box {
	position: relative;
}
.cyb-category-header__description > :first-child {
	margin-top: 0;
}
.cyb-category-header__description > :last-child {
	margin-bottom: 0;
}
.cyb-category-header__toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	opacity: 0;
}
.cyb-category-header__description-box--clamped .cyb-category-header__description {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--cyb-ch-lines, 4);
	line-clamp: var(--cyb-ch-lines, 4);
	overflow: hidden;
}
.cyb-category-header__toggle:checked ~ .cyb-category-header__description {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}
.cyb-category-header__more {
	display: inline-block;
	margin-top: var(--cyb-ch-spacing, .5rem);
	color: var(--cyb-ch-more-color, currentColor);
	font-weight: var(--cyb-ch-more-weight, 600);
	text-decoration: underline;
	cursor: pointer;
}
.cyb-category-header__toggle:focus-visible ~ .cyb-category-header__more {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.cyb-category-header__more-close,
.cyb-category-header__toggle:checked ~ .cyb-category-header__more .cyb-category-header__more-open {
	display: none;
}
.cyb-category-header__toggle:checked ~ .cyb-category-header__more .cyb-category-header__more-close {
	display: inline;
}
@media print {
	.cyb-category-header__description-box--clamped .cyb-category-header__description {
		display: block;
		-webkit-line-clamp: unset;
		line-clamp: unset;
		overflow: visible;
	}
	.cyb-category-header__more {
		display: none;
	}
}

/* core/image with optimized versions: the <picture> adds no box, the <img> lays out as before. */
.cyb-picture {
	display: contents;
}
