/*
Theme Name: Schwibo Objets
Theme URI: https://schwibo.com
Description: Boutique d'objets choisis au feeling : vitrine flottante, boutique monoproduit, panier latéral. À utiliser avec l'extension Schwibo Boutique.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.0
Author: Schwibo
Text Domain: schwibo
WC requires at least: 9.0
*/

:root {
  --fond: #fcfcfd;
  --encre: #111113;
  --gris: #6e6e73;
  --trait: #e6e6ea;
  --verre: rgba(232, 232, 236, .72);
  --blanc: #ffffff;
  --r: 10px;
  --police: 'Geist', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--fond); color: var(--encre); font: 400 14px/1.45 var(--police); letter-spacing: -.01em; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
/* Les photos fournisseur ont un fond « presque blanc » : on le pousse au blanc pour que l'objet flotte */
.objet img, .grande img:not(.photo), .rayon img, .ligne img, .suggestions img { filter: brightness(1.04) contrast(1.06); }

/* ---------- Navigation flottante (pilule de verre) ---------- */
.nav {
  position: fixed; top: 36px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: var(--verre); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: var(--r); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.logo { width: 46px; height: 42px; position: relative; display: block; font-weight: 600; font-size: 14px; }
.logo span { position: absolute; }
.logo span:nth-child(1) { left: 12px; top: 6px; }
.logo span:nth-child(2) { left: 24px; top: 18px; }
.logo::after { content: ''; position: absolute; left: 22px; top: 5px; width: 1px; height: 32px; background: var(--encre); transform: rotate(32deg); opacity: .55; }
.nav-liens { display: flex; gap: 18px; padding: 0 18px 0 8px; font-size: 13.5px; }
.nav-liens a:hover { opacity: .55; }
.langue { display: flex; gap: 2px; font-size: 12.5px; padding-right: 10px; color: var(--gris); }
.langue button { padding: 4px 5px; border-radius: 5px; }
.langue button[aria-pressed="true"] { color: var(--encre); background: rgba(255,255,255,.7); }
.btn-panier {
  background: var(--blanc); border-radius: 7px; padding: 0 16px; height: 42px;
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; margin-left: 70px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.btn-panier b { font-weight: 500; min-width: 18px; height: 18px; border-radius: 9px; background: var(--encre); color: var(--blanc); font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* ---------- Accueil : la grille d'objets ---------- */
.vitrine { position: relative; width: 116vw; margin-left: -8vw; padding: 0 0 160px; }
.grille { display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 0; }
.objet { position: relative; height: 256px; display: flex; align-items: center; justify-content: center; }
.objet img { width: 150px; height: 150px; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.objet:hover img { transform: scale(1.12) translateY(-6px); }
.objet .etiquette {
  position: absolute; left: 50%; bottom: 34px; transform: translate(-50%, 6px); white-space: nowrap;
  font-size: 12.5px; opacity: 0; transition: .3s; text-align: center; pointer-events: none;
}
.objet .etiquette em { font-style: normal; color: var(--gris); }
.objet:hover .etiquette { opacity: 1; transform: translate(-50%, 0); }
.objet .humeur { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--gris); opacity: 0; transition: .3s; }
.objet:hover .humeur { opacity: 1; }

.pied {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 22px 22px 18px;
  display: flex; align-items: center; font-size: 13px; pointer-events: none;
}
.pied a, .pied span { pointer-events: auto; }
.pied .gauche, .pied .centre { display: flex; gap: 30px; }
.pied .centre { margin-left: auto; padding-left: 60px; }
.pied .droite { margin-left: auto; color: var(--encre); }
.pied a:hover { opacity: .55; }

/* ---------- Boutique monoproduit ---------- */
.mono { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.rayon {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--trait);
  padding: 118px 14px 30px; scrollbar-width: thin;
}
.rayon h2 { font-size: 12px; font-weight: 500; color: var(--gris); padding: 0 8px 12px; display: flex; justify-content: space-between; }
.rayon a { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.25; }
.rayon a img { width: 46px; height: 46px; object-fit: contain; mix-blend-mode: multiply; }
.rayon a small { display: block; color: var(--gris); font-size: 11.5px; margin-top: 2px; }
.rayon a:hover { background: #f1f1f4; }
.rayon a[aria-current="page"] { background: var(--encre); color: var(--blanc); }
.rayon a[aria-current="page"] small { color: rgba(255,255,255,.6); }
.rayon a[aria-current="page"] img { mix-blend-mode: normal; background: var(--blanc); border-radius: 5px; }

.fiche { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 56px; padding: 118px 56px 80px; max-width: 1360px; }
.scene { position: relative; }
.scene .grande { aspect-ratio: 1; display: grid; place-items: center; }
.scene .grande img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.scene .grande img.photo { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; border-radius: var(--r); }
.vignettes { display: flex; gap: 10px; margin-top: 14px; }
.vignettes button { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; outline: 1px solid var(--trait); outline-offset: -1px; }
.vignettes button[aria-pressed="true"] { outline: 1.5px solid var(--encre); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }

.achat { position: sticky; top: 118px; align-self: start; }
.achat .humeur { font-size: 12px; color: var(--gris); }
.achat h1 { font-size: 34px; line-height: 1.08; font-weight: 500; letter-spacing: -.035em; margin: 8px 0 14px; }
.achat .prix { display: flex; align-items: baseline; gap: 10px; font-size: 20px; }
.achat .prix s { font-size: 15px; color: var(--gris); }
.achat .prix .badge { font-size: 12px; border: 1px solid var(--encre); border-radius: 5px; padding: 1px 6px; }
.achat p.texte { color: #3a3a3f; margin: 16px 0 26px; max-width: 46ch; }

.paliers { display: grid; gap: 8px; }
.paliers legend { font-size: 12px; color: var(--gris); margin-bottom: 8px; }
.palier { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--trait); border-radius: var(--r); cursor: pointer; background: var(--blanc); }
.palier input { appearance: none; width: 16px; height: 16px; border: 1.5px solid #b8b8bf; border-radius: 50%; }
.palier input:checked { border: 5px solid var(--encre); }
.palier:has(input:checked) { border-color: var(--encre); }
.palier strong { font-weight: 500; }
.palier .eco { font-size: 12px; color: var(--gris); display: block; }
.palier .total { text-align: right; }
.palier .total s { display: block; font-size: 12px; color: var(--gris); }
.palier .pastille { font-size: 11px; background: var(--encre); color: var(--blanc); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }

.actions { display: grid; gap: 8px; margin-top: 18px; }
.btn { height: 52px; border-radius: var(--r); font-weight: 500; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.noir { background: var(--encre); color: var(--blanc); }
.btn.noir:hover { background: #2a2a2e; }
.btn.clair { background: var(--blanc); border: 1px solid var(--trait); }
.btn.clair:hover { border-color: var(--encre); }

.paiement { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.paiement span { font-size: 11.5px; border: 1px solid var(--trait); border-radius: 5px; padding: 3px 8px; color: #3a3a3f; background: var(--blanc); }

.infos { margin-top: 26px; border-top: 1px solid var(--trait); }
.infos details { border-bottom: 1px solid var(--trait); }
.infos summary { list-style: none; cursor: pointer; padding: 15px 0; display: flex; justify-content: space-between; font-weight: 500; }
.infos summary::-webkit-details-marker { display: none; }
.infos summary::after { content: '+'; font-weight: 400; color: var(--gris); }
.infos details[open] summary::after { content: '–'; }
.infos details p { padding: 0 0 16px; color: #3a3a3f; max-width: 52ch; }

.delai { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--blanc); }
.delai div { padding: 12px 14px; font-size: 12px; color: var(--gris); }
.delai div + div { border-left: 1px solid var(--trait); }
.delai b { display: block; font-weight: 500; color: var(--encre); font-size: 13px; }

/* Autres produits sous la fiche */
.encore { padding: 0 56px 140px; }
.encore h3 { font-size: 13px; font-weight: 500; color: var(--gris); margin-bottom: 8px; }
.encore .grille { grid-template-columns: repeat(5, 1fr); }
.encore .objet { height: 220px; }

/* ---------- Panier tiroir ---------- */
.voile { position: fixed; inset: 0; background: rgba(17,17,19,.18); opacity: 0; pointer-events: none; transition: .3s; z-index: 80; }
.tiroir {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(420px, calc(100vw - 20px)); z-index: 90;
  background: var(--fond); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.18);
  transform: translateX(110%); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column;
}
body.panier-ouvert .voile { opacity: 1; pointer-events: auto; }
body.panier-ouvert .tiroir { transform: none; }
.tiroir header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--trait); font-weight: 500; }
.tiroir .lignes { flex: 1; overflow-y: auto; padding: 8px 22px; }
.ligne { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--trait); font-size: 13px; }
.ligne img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; background: #f3f3f6; border-radius: 8px; }
.ligne small { color: var(--gris); display: block; }
.ligne .qte { display: inline-flex; gap: 10px; align-items: center; margin-top: 6px; border: 1px solid var(--trait); border-radius: 6px; padding: 2px 8px; }
.vide { color: var(--gris); padding: 30px 0; }
.suggestions { padding: 14px 22px 4px; }
.suggestions h4 { font-size: 12px; font-weight: 500; color: var(--gris); margin-bottom: 8px; }
.suggestions .rang { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.suggestions a { flex: 0 0 92px; font-size: 11.5px; line-height: 1.2; }
.suggestions img { width: 92px; height: 92px; object-fit: contain; mix-blend-mode: multiply; background: #f3f3f6; border-radius: 8px; margin-bottom: 5px; }
.tiroir footer { padding: 16px 22px 22px; border-top: 1px solid var(--trait); display: grid; gap: 10px; }
.tiroir footer .somme { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; }
.tiroir footer .remise { display: flex; justify-content: space-between; font-size: 13px; color: var(--gris); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav { top: 14px; width: calc(100% - 32px); }
  .nav-liens { display: none; }
  .btn-panier { margin-left: auto; }
  .vitrine { width: 100%; margin-left: 0; padding-top: 70px; }
  .grille, .encore .grille { grid-template-columns: repeat(2, 1fr); }
  .objet { height: 210px; }
  .objet img { width: 120px; height: 120px; }
  .objet .etiquette, .objet .humeur { opacity: 1; transform: translate(-50%, 0); }
  .objet .etiquette { bottom: 14px; white-space: normal; width: 90%; }
  .objet .humeur { top: 18px; }
  .pied { position: static; flex-wrap: wrap; gap: 14px; padding: 0 16px 30px; }
  .pied .gauche, .pied .centre { flex-wrap: wrap; gap: 14px 20px; padding: 0; margin: 0; }
  .pied .droite { margin: 0; width: 100%; }

  .mono { display: block; }
  .rayon { position: static; height: auto; border: 0; border-bottom: 1px solid var(--trait); padding: 76px 16px 10px; display: flex; gap: 6px; overflow-x: auto; }
  .rayon h2 { display: none; }
  .rayon a { flex: 0 0 auto; grid-template-columns: 40px; padding: 5px; }
  .rayon a img { width: 40px; height: 40px; }
  .rayon a span { display: none; }
  .fiche { grid-template-columns: 1fr; gap: 26px; padding: 18px 16px 40px; }
  .achat { position: static; }
  .achat h1 { font-size: 28px; }
  .encore { padding: 0 16px 60px; }
}

/* =========================================================================
 * Ajouts WordPress / WooCommerce
 * ====================================================================== */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
ul.menu, ul.menu li { display: contents; list-style: none; }
.langue a { padding: 4px 5px; border-radius: 5px; }
.langue a[aria-current="true"] { color: var(--encre); background: rgba(255,255,255,.7); }
body.admin-bar .nav { top: 68px; }
body.admin-bar .rayon { top: 32px; height: calc(100vh - 32px); }
.vide-vitrine { grid-column: 1 / -1; text-align: center; padding: 40vh 0; color: var(--gris); }

/* Pied : fixe sur la vitrine (comme la référence), dans le flux ailleurs */
.pied:not(.fixe) { position: static; pointer-events: auto; border-top: 1px solid var(--trait); }

/* Images WooCommerce dans la grille et le rayon */
.objet img { width: 150px; height: 150px; }
.grande img[hidden] { display: none; }
.grande img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.grande img.photo { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; border-radius: var(--r); }
.achat .texte { color: #3a3a3f; margin: 16px 0 26px; max-width: 46ch; }
.achat .texte p + p { margin-top: .6em; }
.paliers { border: 0; }
.epuise { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--trait); border-radius: var(--r); color: var(--gris); }
.infos .desc { padding: 0 0 16px; color: #3a3a3f; max-width: 60ch; }
.infos .desc p + p, .infos .desc ul { margin-top: .7em; }
.infos .desc ul { padding-left: 1.2em; }
.infos .desc img { border-radius: 8px; margin: 10px 0; height: auto; }

/* Formulaire d'ajout WooCommerce rangé comme la maquette */
.actions { margin-top: 18px; }
.actions form.cart { display: grid; gap: 8px; }
.achat:has(.paliers) form.cart .quantity { display: none !important; }
.actions .added_to_cart { display: none; }
.actions .single_variation_wrap, .actions .woocommerce-variation-add-to-cart { display: grid; gap: 8px; }
.actions .sb-direct { order: -1; width: 100%; }
.actions .single_add_to_cart_button {
  height: 52px; border-radius: var(--r); font-weight: 500; font-size: 14.5px; width: 100%;
  background: var(--blanc); border: 1px solid var(--trait); color: var(--encre);
}
.actions .single_add_to_cart_button:hover { border-color: var(--encre); }
.actions .single_add_to_cart_button.loading { opacity: .5; }
.actions .single_add_to_cart_button.disabled, .actions .sb-direct:disabled { opacity: .4; cursor: not-allowed; }
.actions table.variations { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.actions table.variations th, .actions table.variations td { display: block; text-align: left; padding: 0; }
.actions table.variations th { font-size: 12px; color: var(--gris); font-weight: 400; margin: 8px 0 6px; }
.actions table.variations select { width: 100%; height: 46px; border: 1px solid var(--trait); border-radius: var(--r); padding: 0 14px; font: inherit; background: var(--blanc); color: var(--encre); }
.actions .reset_variations { font-size: 12px; color: var(--gris); display: inline-block; margin-top: 6px; }
.actions .woocommerce-variation-price { font-size: 13px; color: var(--gris); }
.actions .stock { font-size: 12px; color: var(--gris); }

/* Notices WooCommerce */
.woocommerce-notices-wrapper:not(:empty) { padding: 110px 56px 0; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { list-style: none; padding: 12px 16px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--blanc); font-size: 13px; }

/* Tiroir : le corps est remplacé d'un bloc par les fragments WooCommerce */
.tiroir-corps { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tiroir-corps .lignes { flex: 1; overflow-y: auto; padding: 8px 22px; }
.tiroir-corps footer { padding: 16px 22px 22px; border-top: 1px solid var(--trait); display: grid; gap: 10px; }
.ligne img { width: 64px; height: 64px; }
.suggestions img { width: 92px; height: 92px; }
.ligne del { color: var(--gris); }

/* Pages de contenu, panier et paiement */
.page-texte { max-width: 760px; margin: 0 auto; padding: 140px 24px 100px; }
.page-texte.page-commerce { max-width: 1120px; }
.page-texte h1 { font-size: 34px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 28px; }
.contenu { color: #3a3a3f; }
.contenu > * + * { margin-top: 1em; }
.contenu h2, .contenu h3 { color: var(--encre); font-weight: 500; letter-spacing: -.02em; margin-top: 1.8em; }
.contenu a { text-decoration: underline; text-underline-offset: 2px; }
.contenu ul, .contenu ol { padding-left: 1.3em; }
.page-commerce .wc-block-components-button:not(.is-link) { background: var(--encre); color: var(--blanc); border-radius: var(--r); }
.page-commerce .wc-block-components-text-input input, .page-commerce .wc-blocks-components-select__select { border-radius: 8px !important; }

@media (max-width: 900px) {
  .objet.doublon { display: none; }
  .objet img { width: 120px; height: 120px; }
  body.admin-bar .nav { top: 60px; }
  .page-texte { padding: 96px 16px 60px; }
  .page-texte h1 { font-size: 28px; }
  .woocommerce-notices-wrapper:not(:empty) { padding: 0 16px; }
}

/* Le sélecteur FR/EN est dans la pilule : on masque le sélecteur flottant de TranslatePress */
#trp-floater-ls, .trp-floating-switcher { display: none !important; }

/* Panier latéral : prix de la ligne et lien « Retirer » empilés à droite */
.ligne-fin { display: grid; justify-items: end; gap: 6px; }
.ligne .retirer { font-size: 12px; color: var(--gris); text-decoration: underline; text-underline-offset: 2px; padding: 2px 0; }
.ligne .retirer:hover { color: var(--encre); }
.ligne button:disabled { opacity: .4; }

/* =========================================================================
 * Pages WooCommerce classiques (commande reçue, connexion, mot de passe)
 * Les feuilles WooCommerce sont désactivées : tout est redessiné ici.
 * ====================================================================== */

.page-commerce .woocommerce > * + *, .woocommerce-order > * + *, .woocommerce-order-details + * { margin-top: 32px; }
.woocommerce-order-overview { margin-top: 14px !important; }
.page-commerce h2, .page-commerce h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--encre); margin: 0 0 14px; }

/* Message de remerciement */
.woocommerce-thankyou-order-received { font-size: 18px; color: var(--encre); }

/* Récapitulatif : n°, date, e-mail, total, paiement, en cartes comme les délais de la fiche produit */
ul.woocommerce-order-overview {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--trait); border-radius: var(--r); background: var(--blanc); overflow: hidden;
}
ul.woocommerce-order-overview li { padding: 14px 16px; font-size: 12px; color: var(--gris); border-left: 1px solid var(--trait); margin-left: -1px; }
ul.woocommerce-order-overview li strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; color: var(--encre); overflow-wrap: anywhere; }

/* Tableau de la commande */
.page-commerce table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.page-commerce table.shop_table th, .page-commerce table.shop_table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--trait); vertical-align: top; color: var(--encre); }
.page-commerce table.shop_table thead th { font-size: 12px; font-weight: 400; color: var(--gris); }
.page-commerce table.shop_table th:last-child, .page-commerce table.shop_table td:last-child { text-align: right; }
.page-commerce table.shop_table tfoot th { font-weight: 400; color: var(--gris); }
.page-commerce table.shop_table tfoot tr:last-child th, .page-commerce table.shop_table tfoot tr:last-child td { border-bottom: 0; }
.page-commerce table.shop_table .product-name a { text-decoration: none; }
.page-commerce table.shop_table .product-quantity { color: var(--gris); font-weight: 400; }
.page-commerce table.shop_table .wc-item-meta { list-style: none; padding: 0; margin-top: 4px; font-size: 12px; color: var(--gris); }
.page-commerce table.shop_table .wc-item-meta p { display: inline; }

/* Adresses */
.woocommerce-customer-details address {
  font-style: normal; line-height: 1.6; padding: 16px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--blanc); color: #3a3a3f;
}
.woocommerce-customer-details address p { margin: 0; }
.woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* Formulaires et boutons WooCommerce classiques */
.page-commerce .form-row { margin-bottom: 14px; }
.page-commerce .form-row label { display: block; font-size: 12px; color: var(--gris); margin-bottom: 6px; }
.page-commerce .form-row label.woocommerce-form__label-for-checkbox { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--encre); }
.page-commerce input.input-text, .page-commerce select, .page-commerce textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--trait); border-radius: 8px; background: var(--blanc); font: inherit; color: var(--encre);
}
.page-commerce input.input-text:focus { outline: none; border-color: var(--encre); }
.page-commerce .woocommerce-form-login, .page-commerce .woocommerce-form-register { max-width: 420px; padding: 22px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--blanc); }
.page-commerce .button, .page-commerce button.button {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: var(--r);
  background: var(--encre); color: var(--blanc); font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer;
}
.page-commerce .button:hover { background: #2a2a2e; }
.page-commerce .lost_password a { font-size: 13px; color: var(--gris); }
.page-commerce .clear { clear: both; }
.page-commerce .woocommerce-info, .page-commerce .woocommerce-message, .page-commerce .woocommerce-error { margin-bottom: 16px; }
.page-commerce .required { color: var(--gris); text-decoration: none; }

@media (max-width: 900px) {
  ul.woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
  .page-commerce table.shop_table th, .page-commerce table.shop_table td { padding: 11px 12px; }
}

/* Objet sans photo sur fond blanc : vignette photo arrondie plutôt qu'un détourage raté */
.objet.photo img { width: 132px; height: 132px; object-fit: cover; mix-blend-mode: normal; filter: none; border-radius: var(--r); }
.objet.photo:hover img { transform: scale(1.06) translateY(-4px); }
.rayon a img.photo { object-fit: cover; mix-blend-mode: normal; filter: none; border-radius: 6px; }
@media (max-width: 900px) { .objet.photo img { width: 110px; height: 110px; } }
