/* Covin 50 ans — couleurs de la catégorie (palette choisie dans le back-office du module)
   Variables posées dans l'en-tête : --c50p-band (fond), --c50p-img (fond des photos), --c50p-ink (titres),
   --c50p-sub (textes secondaires), --c50p-line (bordures). L'en-tête et le pied de page du thème ne changent pas. */

/* fond de la page */
html.c50pal body,
html.c50pal #wrapper,
html.c50pal #content-wrapper,
html.c50pal #main,
html.c50pal main,
html.c50pal #content,
html.c50pal .page-content,
html.c50pal #products,
html.c50pal #js-product-list,
html.c50pal #js-product-list-top,
html.c50pal #js-product-list-header,
html.c50pal .block-category{background-color:var(--c50p-band)!important}
html.c50pal #wrapper,html.c50pal main{color:var(--c50p-ink)}

/* titres et textes de la page (hors cartes) */
html.c50pal :is(#wrapper,main) :is(h1,.h1,.page-heading,.category-title,.block-category h1){color:var(--c50p-ink)!important}
html.c50pal :is(#js-product-list-top,.products-selection,.total-products,.sort-by,.showing,.breadcrumb,.breadcrumb a,#js-product-list-header,.category-description){color:var(--c50p-sub)!important}
html.c50pal :is(.subcategories,.subcategory-heading,[class*="subcategor"]) a{color:var(--c50p-ink)!important;border-color:var(--c50p-line)!important}

/* cartes produit : restent blanches, photo sur le fond de la palette */
html.c50pal .c50g-card,
html.c50pal .products .product-miniature .thumbnail-container{background-color:#fff!important;color:#14235e;border-color:var(--c50p-line)!important}
html.c50pal .c50g-card .c50g-img,
html.c50pal .products .product-miniature :is(.thumbnail-top,.product-thumbnail){background-color:var(--c50p-img)!important;border-color:var(--c50p-line)!important}
html.c50pal .c50g-card .c50g-img img,
html.c50pal .products .product-miniature .product-thumbnail img{mix-blend-mode:multiply}

/* fiche produit */
html.c50pal :is(.product-cover,.images-container,.product-images,.js-qv-mask) {background-color:var(--c50p-img)!important}
html.c50pal .product-cover img{mix-blend-mode:multiply}

/* palette sombre (Bleu nuit) : textes clairs sur le fond, cartes inchangées */
html.c50pal--dark :is(#wrapper,main) :is(.select-title,.sort-by-row,.products-sort-order .select-title){color:#14235e}
html.c50pal--dark .c50g-card :is(h1,h2,h3,h4,.product-title,a){color:#14235e}

/* couleurs d'une marque : liseré de la couleur de la marque sur les cartes et sous le titre */
html.c50pal--brand .c50g-card,
html.c50pal--brand .products .product-miniature .thumbnail-container{box-shadow:inset 0 3px 0 var(--c50p-accent)!important}
html.c50pal--brand :is(#wrapper,main) :is(h1,.h1){text-decoration:underline;text-decoration-color:var(--c50p-accent);text-decoration-thickness:3px;text-underline-offset:10px}
