/* Correctif ciblé du 21-11-2026 : aucun rectangle beige foncé autour des images.
   Fonds et contours des contenants photos uniquement : fichiers images inchangés.
   Les bordures ORANGE des cartes et les indicateurs de variante active restent visibles. */

/* Boutique en ligne, exclusivités de Noël et nouveautés : une seule surface de carte. */
body.boutique-refresh-page :is(#product-grid, .noel-exclusives .noel-grid, .nouveautes-grid)
:is(a.boutique-refresh-photo, .boutique-refresh-photo, a.product-photo, .product-photo),
body.boutique-refresh-page :is(#product-grid, .noel-exclusives .noel-grid, .nouveautes-grid)
:is(a.boutique-refresh-photo, .product-photo)::before,
body.boutique-refresh-page :is(#product-grid, .noel-exclusives .noel-grid, .nouveautes-grid)
:is(a.boutique-refresh-photo, .product-photo)::after {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
body.boutique-refresh-page :is(#product-grid, .noel-exclusives .noel-grid, .nouveautes-grid)
:is(.boutique-refresh-photo, .product-photo) img {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
  mix-blend-mode:normal!important;
}
/* La carte conserve son beige très pâle et sa bordure orange, pas de deuxième cadre. */
body.boutique-refresh-page :is(#product-grid, .noel-exclusives .noel-grid)
article.boutique-refresh-card {background-color:#FFF9F0!important;}

/* Fiches produits : suppression du cadre coloré autour de la grande image. */
body.product-page-beige .product-detail :is(
  .refuge-product-photo-stage,
  .refuge-product-photo-stage.refuge-apprentis-stage,
  .nouveautes-main-photo,
  .main-photo-wrap,
  .product-photo-pending,
  .nouveaute-image-manquante
) {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
body.product-page-beige .product-detail :is(
  .main-photo, .refuge-product-photo-stage img, .nouveautes-main-photo img,
  .boutique-refresh-photo, .boutique-refresh-photo img
) {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  mix-blend-mode:normal!important;
}
/* Miniatures : sans fond beige; l'encadrement vert de la variante sélectionnée reste actif. */
body.product-page-beige .product-detail :is(
  .thumb-grid button,
  .nouveautes-thumbnails button,
  .nouveautes-thumbnails [data-etui-image],
  .noel-choice
) {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.product-page-beige .product-detail :is(
  .thumb-grid img,
  .nouveautes-thumbnails img,
  .noel-choice img
) {
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
}
body.product-page-beige .product-detail :is(
  .thumb-grid button:not(.active),
  .nouveautes-thumbnails button:not(.active),
  .noel-choice:not(.active)
) {border-color:transparent!important;}

/* 21-11-2026 : décorations de Noël — photo originale panoramique, sans cadre beige supplémentaire. */
body.boutique-refresh-page .ornements-noel-card .product-photo img {
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  padding: 0 !important;
}
body.product-page-beige .ornements-noel-detail .ornements-noel-photo-stage {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  background: transparent !important;
}
body.product-page-beige .ornements-noel-detail .ornements-noel-photo-stage img {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  background: transparent !important;
}
body.product-page-beige .ornements-noel-detail .ornements-noel-intro {
  color: #24543d; font: italic 600 clamp(17px, 2vw, 22px)/1.4 Georgia, serif;
  margin: 12px 0 18px;
}
body.product-page-beige .ornements-noel-detail .ornements-noel-caption {
  text-align: center; font-size: 14px; color: #466852; margin: 9px 0 0;
}
body.product-page-beige .ornements-noel-detail .ornements-noel-description p { margin: 0 0 15px; }
body.boutique-refresh-page .ornements-noel-card .noel-vente-sur-place {font-size: 13px;}
@media (max-width: 900px) {
  body.product-page-beige .ornements-noel-detail {grid-template-columns: 1fr !important;}
}


/* 21 novembre 2026 — retour du style approuvé sur TOUTES les cartes Boutique.
   Deux contours orange, intérieur crème uniforme, photographie originale non retouchée.
   Cette section s'applique après les anciennes règles de retrait des bordures. */
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  align-items:stretch !important;
  gap:18px !important;
}
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card {
  display:flex !important;
  flex-direction:column !important;
  padding:8px 8px 12px !important;
  min-width:0 !important;
  border:1.5px solid #D38930 !important;
  border-radius:16px !important;
  background:#FFF9F0 !important;
  background-color:#FFF9F0 !important;
  background-image:none !important;
  box-shadow:0 3px 9px rgba(75,48,25,.07) !important;
}
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card :is(a.boutique-refresh-photo, a.product-photo, .boutique-refresh-photo, .product-photo) {
  display:grid !important;
  place-items:center !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) !important;
  flex:none !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:3/4 !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1.5px solid #D38930 !important;
  border-radius:12px !important;
  outline:none !important;
  background:#FFF9F0 !important;
  background-color:#FFF9F0 !important;
  background-image:none !important;
  box-shadow:none !important;
}
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card :is(.boutique-refresh-photo, .product-photo) img {
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-height:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  padding:8px !important;
  margin:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  filter:none !important;
  mix-blend-mode:normal !important;
  transform:none !important;
}
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card .boutique-refresh-body {
  background:#FFF9F0 !important;
  background-color:#FFF9F0 !important;
  background-image:none !important;
  padding:10px 5px 1px !important;
  gap:5px !important;
  flex:1 1 auto !important;
  text-align:center !important;
}
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card :is(.noel-label, .ri-catalogue-label) {
  color:#AF4C38 !important;
  font-weight:800 !important;
}
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card .boutique-refresh-body h3,
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card .boutique-refresh-body h3 a {
  color:#173D32 !important;
  font-family:Georgia,'Times New Roman',serif !important;
  text-align:center !important;
}
body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card .boutique-refresh-body .price {
  color:#C56626 !important;
  margin-top:auto !important;
  text-align:center !important;
}
/* Les ornements panoramiques sont montrés entiers, dans un cadre identique. */
body.boutique-refresh-page #noel-exclusivites .ornements-noel-card .product-photo img {
  padding:7px !important;
  object-fit:contain !important;
}
@media (max-width:940px) {
  body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width:700px) {
  body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:11px !important; }
  body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) > article.boutique-refresh-card :is(a.boutique-refresh-photo, a.product-photo, .boutique-refresh-photo, .product-photo) { aspect-ratio:3/4 !important; }
}
@media (max-width:390px) {
  body.boutique-refresh-page :is(#product-grid, #noel-exclusivites .noel-grid) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}


/* V8 — Filtrage catégories : une carte masquée ne doit jamais être affichée.
   Important : ces sélecteurs priment sur les anciens display:flex!important des cartes. */
body.boutique-refresh-page #product-grid > article[data-product-card][hidden],
body.boutique-refresh-page #noel-exclusivites .noel-grid > article[data-product-card][hidden],
body.boutique-refresh-page [data-product-card][hidden] {
  display:none!important;
}
body.boutique-refresh-page #noel-exclusivites[hidden],
body.boutique-refresh-page #boutique-en-ligne[hidden],
body.boutique-refresh-page #mini-etuis-pub[hidden],
body.boutique-refresh-page #nos-foulards[hidden] {
  display:none!important;
}
