/* Bazar V2 ---------------------------------------------------------------
   Nouveau rendu isolé : aucun sélecteur ne modifie le Bazar historique. */
.bazar-v2-root {
  --bazar-v2-cream: #fff9f2;
  --bazar-v2-cream-soft: rgb(255 250 244 / 91%);
  --bazar-v2-ink: #49362f;
  --bazar-v2-muted: #775b50;
  --bazar-v2-rose: #ad5e73;
  --bazar-v2-rose-deep: #8e4258;
  --bazar-v2-gold: #f1bc5c;
  --bazar-v2-radius: 24px;
  --bazar-v2-pad: clamp(12px, 3.9vw, 20px);
  position: absolute;
  z-index: 12;
  inset: 0;
  overflow: hidden;
  color: var(--bazar-v2-ink);
  font-family: system-ui;
}

.bazar-v2-root[hidden] { display: none; }
.bazar-v2-root.is-preparing { visibility: hidden; pointer-events: none; }

.bazar-v2-shell,
.bazar-v2-scroll {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.bazar-v2-shell { position: relative; }

.bazar-v2-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.bazar-v2-scroll::-webkit-scrollbar { display: none; }

.bazar-v2-header {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(17px, env(safe-area-inset-top)) var(--bazar-v2-pad) 8px;
  pointer-events: none;
}

.bazar-v2-room-button {
  display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: min(52vw, 260px);
    border: 1px solid rgb(139 105 93 / 14%);
    border-radius: 999px;
    padding: 8px 12px;
    color: inherit;
    background: rgb(255 250 242 / 72%);
    box-shadow: 0 8px 22px rgb(88 55 42 / 10%);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0;
    pointer-events: auto;
}

.bazar-v2-counter-slot { min-width: 0; pointer-events: auto; }
.bazar-v2-counter-slot .chocolate-counters {
  position: static;
  display: flex;
  gap: 7px;
  padding: 0;
}

.bazar-v2-counter-slot .chocolate-counter {
  min-width: 0;
  min-height: 42px;
  padding-inline: 11px;
  border-color: rgb(119 81 57 / 14%);
  background: rgb(255 251 245 / 92%);
  box-shadow: 0 8px 18px rgb(71 42 25 / 12%);
  font-size: 0.88rem;
}

.bazar-v2-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(525px, 69svh, 525px);
  overflow: visible;
  z-index: 0;
}

.bazar-v2-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(54 30 16 / 16%), transparent 52%),
    linear-gradient(180deg, rgb(255 220 161 / 12%), transparent 40%, rgb(56 30 16 / 20%));
  content: "";
  pointer-events: none;
}

.bazar-v2-owen {
  position: absolute;
  z-index: 1;
  top: clamp(417px, 7svh, 64px);
  right: clamp(-135px, -30vw, -102px);
  width: clamp(316px, 91vw, 410px);
  height: clamp(514px, 96svh, 720px);
  pointer-events: none;
}

.bazar-v2-owen svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 22px rgb(52 27 16 / 28%));
  transform: scale(1.5);
  transform-origin: 52% bottom;
}

.bazar-v2-phrase {
position: absolute;
    z-index: 3;
    top: clamp(164px, 23svh, 214px);
    left: var(--bazar-v2-pad);
    width: min(44%, 190px);
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-family: serif;
    font-size: clamp(0.76rem, 4.15vw, 1.1rem);
    font-style: italic;
    font-weight: 400;
    text-shadow: 0 1px 3px rgb(21 21 21 / 92%);
    border-radius: 10px;
    text-align: center;
}

.bazar-v2-featured {
  position: absolute;
  z-index: 4;
  bottom: clamp(33px, -9svh, -50px);
  left: var(--bazar-v2-pad);
  width: min(68%, 300px);
}

.bazar-v2-product-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgb(114 73 57 / 14%);
  border-radius: 18px;
  color: var(--bazar-v2-ink);
  background: var(--bazar-v2-cream-soft);
  box-shadow: 0 12px 25px rgb(66 40 28 / 14%);
}

.bazar-v2-product-card.is-featured {
  grid-template-columns: minmax(88px, 0.84fr) minmax(0, 1fr);
  grid-template-areas:
    "visual copy"
    "footer footer";
  gap: 9px 10px;
  padding: 11px;
  border-radius: 22px;
  background: rgb(255 252 247 / 95%);
  box-shadow: 0 17px 32px rgb(62 36 21 / 25%), inset 0 1px rgb(255 255 255 / 82%);
}

.bazar-v2-product-visual {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(132 89 64 / 15%);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff6e8, #efd8ba);
}

.bazar-v2-product-card.is-featured .bazar-v2-product-visual { grid-area: visual; }
.bazar-v2-product-visual.is-placeholder { color: #bf8a55; font-size: 2.3rem; }
.bazar-v2-product-visual.is-product-detail-trigger,
.bazar-v2-favorite-media.is-product-detail-trigger { cursor: pointer; }
.bazar-v2-product-visual.is-product-detail-trigger:focus-visible,
.bazar-v2-favorite-media.is-product-detail-trigger:focus-visible {
  outline: 3px solid var(--bazar-v2-rose);
  outline-offset: 2px;
}

.bazar-v2-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgb(75 44 26 / 14%));
}

.bazar-v2-product-copy { display: grid; min-width: 0; align-content: start; gap: 4px; }
.bazar-v2-product-card.is-featured .bazar-v2-product-copy { grid-area: copy; padding-top: 2px; }
.bazar-v2-product-name { display: -webkit-box; margin: 0; overflow: hidden; color: inherit; font-size: 0.88rem;letter-spacing: -0.025em; line-height: 1.08; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bazar-v2-product-card.is-featured .bazar-v2-product-name { font-size: clamp(0.93rem, 4.2vw, 1.12rem); }
.bazar-v2-product-category { margin: 0; color: var(--bazar-v2-muted); font-size: 0.67rem; font-weight: 800; line-height: 1.15; }
.bazar-v2-product-status {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 999px;
  color: #536649;
  background: rgb(103 137 85 / 14%);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}
.bazar-v2-product-status[data-status="locked"] { color: #745e55; background: rgb(116 94 85 / 13%); }
.bazar-v2-product-status[data-status="pending-assets"],
.bazar-v2-product-status[data-status="pending-manual"] { color: #8a6033; background: rgb(180 129 69 / 14%); }
.bazar-v2-product-description { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: #684d42; font-size: 0.67rem; line-height: 1.22; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.bazar-v2-product-promo {
  position: absolute;
  top: -16px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 999px;
  color: #613815;
  background: linear-gradient(135deg, #ffe29b, #f4bd55);
  box-shadow: 0 7px 14px rgb(72 41 17 / 18%);
  font-size: 0.66rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bazar-v2-product-footer {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.bazar-v2-product-card.is-featured .bazar-v2-product-footer { grid-area: footer; }
.bazar-v2-product-price { display: flex; min-width: 0; margin: 0; gap: 4px; align-items: baseline; color: #573b31; font-size: 0.77rem; font-weight: 900; white-space: nowrap; }
.bazar-v2-product-regular-price { color: #8e7566; font-size: 0.66rem; text-decoration-thickness: 2px; }
.bazar-v2-product-current-price { color: #5a3128; font-size: 0.82rem; }
.app.background-night .bazar-v2-root .bazar-v2-product-price,
.app.background-night .bazar-v2-root .bazar-v2-product-current-price,
.app.background-night .bazar-v2-root .bazar-v2-favorite-price,
.app.background-night .bazar-v2-root .bazar-v2-favorite-price .bazar-v2-product-current-price {
  color: #fff0e4 !important;
}

.app.background-night .bazar-v2-root .bazar-v2-product-regular-price {
  color: #dcc7b9 !important;
}
}

.app.background-night .bazar-v2-product-regular-price {
  color: var(--bazar-v2-muted);
}
.bazar-v2-product-action {
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: #fffaf6;
  background: linear-gradient(145deg, var(--bazar-v2-rose), var(--bazar-v2-rose-deep));
  box-shadow: 0 6px 12px rgb(112 53 67 / 20%);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
}

.bazar-v2-product-action:disabled { color: #75645d; background: rgb(128 98 84 / 15%); box-shadow: none; cursor: default; }
.bazar-v2-favorite-toggle { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; width: 31px; height: 31px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--bazar-v2-rose); background: rgb(255 252 247 / 91%); box-shadow: 0 4px 10px rgb(62 36 21 / 12%); cursor: pointer; font: inherit; font-size: 1.16rem; line-height: 1; }

.bazar-v2-favorites {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgb(114 73 57 / 13%);
  border-radius: var(--bazar-v2-radius);
  background: rgb(255 250 244 / 94%);
  box-shadow: 0 13px 26px rgb(65 38 26 / 16%);
}

.bazar-v2-section-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.bazar-v2-section-heading h2 { min-width: 0; margin: 0; color: var(--bazar-v2-ink); font-size: 1.05rem; letter-spacing: -0.03em; }
.bazar-v2-see-all, .bazar-v2-inline-link { padding: 3px 0; border: 0; color: #604137; background: transparent; cursor: pointer; font: inherit; font-size: 0.72rem; font-weight: 850; white-space: nowrap; }
.bazar-v2-favorite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }

.bazar-v2-favorite-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  grid-template-areas:
    "title title"
    "media content";
  min-width: 0;
  gap: 7px 8px;
  padding: 8px 8px 2px 8px;
  overflow: hidden;
  border: 1px solid rgb(114 73 57 / 13%);
  border-radius: 16px;
  color: var(--bazar-v2-ink);
  background: linear-gradient(
    135deg,
    rgb(255 253 249 / 98%),
    rgb(249 238 226 / 94%)
  );
  box-shadow: 0 7px 16px rgb(65 38 26 / 10%);
}

.bazar-v2-favorite-card > .bazar-v2-favorite-name {
  grid-area: title;
}

.bazar-v2-favorite-media {
  display: grid;
  min-width: 0;
  aspect-ratio: 1 / 1;
  place-items: center;
  align-self: start;
  overflow: hidden;
  border: 1px solid rgb(114 73 57 / 9%);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7eb, #ecd8bb);
  grid-area: media;
}

.bazar-v2-favorite-media.is-placeholder { color: #bf8a55; font-size: 1.75rem; }
.bazar-v2-favorite-image { width: 100%; height: 100%; object-fit: contain; }

.bazar-v2-favorite-content {
  grid-area: content;
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 3px;
  padding: 0 1px 0 0;
}

.bazar-v2-favorite-name {
  display: -webkit-box;
  min-width: 0;
  max-width: 90%;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: clamp(0.69rem, 3.15vw, 0.82rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


.bazar-v2-favorite-footer {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.bazar-v2-favorite-price { min-width: 0; margin: 0; gap: 3px; font-size: 0.67rem; }
.bazar-v2-favorite-price .bazar-v2-product-current-price { 
  font-size: 1.1rem;
  margin: 5px auto;
  font-weight: 700; }
.bazar-v2-favorite-price .bazar-v2-product-regular-price { font-size: 0.58rem; }

.bazar-v2-favorite-action {
  width: 100%;
  min-height: 34px;
  padding-inline: 5px;
  font-size: clamp(0.56rem, 2.55vw, 0.67rem);
  line-height: 1.05;
}

.bazar-v2-favorite-card .bazar-v2-favorite-toggle {
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  font-size: 1.02rem;
}

.bazar-v2-favorite-empty,
.bazar-v2-favorites-empty {
  display: grid;
  min-height: 172px;
  place-content: center;
  gap: 6px;
  padding: 15px 10px;
  border: 1px dashed rgb(147 103 80 / 34%);
  border-radius: 16px;
  color: var(--bazar-v2-muted);
  background: rgb(255 247 238 / 62%);
  text-align: center;
}

.bazar-v2-favorite-empty { cursor: pointer; font: inherit; }
.bazar-v2-favorite-empty-icon { color: var(--bazar-v2-rose); font-size: 1.65rem; }
.bazar-v2-favorite-empty strong { color: var(--bazar-v2-ink); font-size: 0.78rem; }
.bazar-v2-favorite-empty small, .bazar-v2-favorites-empty span { font-size: 0.67rem; line-height: 1.25; }
.bazar-v2-favorites-empty { grid-column: 1 / -1; min-height: 112px; }
.bazar-v2-favorites-empty strong { color: var(--bazar-v2-ink); font-size: 0.84rem; }

.bazar-v2-catalog-anchor {
  position: relative;
  z-index: 2;
  display: block;
  scroll-margin-top: 12px;
}

.bazar-v2-catalog-anchor .kitchen-catalog-section {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px 14px 18px;
  border: 1px solid rgb(114 73 57 / 13%);
  border-radius: var(--bazar-v2-radius);
  background: rgb(255 250 244 / 95%);
  box-shadow: 0 13px 26px rgb(65 38 26 / 16%);
}

.bazar-v2-catalog-anchor .kitchen-catalog-heading { display: flex; align-items: center; justify-content: space-between; }
.bazar-v2-catalog-anchor .kitchen-catalog-heading h2 { margin: 0; color: var(--bazar-v2-ink); font-size: 1.05rem; }
.bazar-v2-catalog-anchor .kitchen-panel-kicker { display: none; }
.bazar-v2-catalog-anchor .kitchen-catalog-filters { width: 100%; box-sizing: border-box; }

.bazar-v2-back-to-top {
  position: absolute;
  z-index: 9;
  right: 14px;
  bottom: calc(var(--global-room-nav-height) + 12px);
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(114 73 57 / 16%);
  border-radius: 50%;
  color: var(--bazar-v2-ink);
  background: rgb(255 251 245 / 94%);
  box-shadow: 0 10px 20px rgb(65 38 26 / 18%);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
}

.bazar-v2-root.is-scrolled .bazar-v2-back-to-top { display: grid; }

.app.background-night .bazar-v2-root {
  --bazar-v2-cream: #292633;
  --bazar-v2-cream-soft: rgb(42 39 52 / 92%);
  --bazar-v2-ink: #fff0e4;
  --bazar-v2-muted: #dcc7b9;
}

.app.background-night .bazar-v2-hero::before { background: linear-gradient(180deg, rgb(13 16 29 / 8%), rgb(8 11 20 / 34%)); }
.app.background-night .bazar-v2-room-button,
.app.background-night .bazar-v2-counter-slot .chocolate-counter,
.app.background-night .bazar-v2-favorites,
.app.background-night .bazar-v2-product-card.is-featured,
.app.background-night .bazar-v2-catalog-anchor .kitchen-catalog-section,
.app.background-night .bazar-v2-back-to-top { border-color: rgb(255 239 220 / 15%); color: var(--bazar-v2-ink); background: rgb(38 36 48 / 93%); }
.app.background-night .bazar-v2-product-card { border-color: rgb(255 239 220 / 14%); background: rgb(255 246 235 / 10%); }
.app.background-night .bazar-v2-product-visual { border-color: rgb(255 239 220 / 12%); background: linear-gradient(135deg, #403748, #2e2938); }
.app.background-night .bazar-v2-favorite-card { border-color: rgb(255 239 220 / 14%); background: rgb(255 246 235 / 10%); }
.app.background-night .bazar-v2-favorite-media { border-color: rgb(255 239 220 / 12%); background: linear-gradient(135deg, #403748, #2e2938); }
.app.background-night .bazar-v2-product-description { color: #d9c5b8; }
.app.background-night .bazar-v2-phrase { color: #fff0e4; text-shadow: 0 1px 5px rgb(9 10 18 / 94%); }
.app.background-night .bazar-v2-favorite-empty, .app.background-night .bazar-v2-favorites-empty { border-color: rgb(255 239 220 / 20%); color: #d8c5b9; background: rgb(255 246 235 / 8%); }
.app.background-night .bazar-v2-favorite-empty strong, .app.background-night .bazar-v2-favorites-empty strong { color: #fff0e4; }

@media (max-width: 360px) {
  .bazar-v2-hero { min-height: clamp(525px, 69svh, 525px)}
  .bazar-v2-owen { right: -92px; width: 330px; height: 525px; }
  .bazar-v2-featured { width: min(72%, 270px); }
  .bazar-v2-product-card.is-featured { grid-template-columns: 84px minmax(0, 1fr); padding: 9px; }
  .bazar-v2-product-description { -webkit-line-clamp: 2; }
  .bazar-v2-favorites { margin-top: 74px; padding: 12px; }
  .bazar-v2-favorite-grid { gap: 5px; }
  .bazar-v2-favorite-card { min-height: 136px; gap: 6px; padding: 6px; }
  .bazar-v2-favorite-name { font-size: 0.66rem; }
  .bazar-v2-favorite-action { min-height: 32px; padding-inline: 3px; font-size: 0.54rem; }
  .bazar-v2-favorite-card .bazar-v2-favorite-toggle { top: 4px; right: 4px; width: 25px; height: 25px; font-size: 0.92rem; }
  .bazar-v2-product-action { min-height: 32px; padding-inline: 6px; font-size: 0.62rem; }
}

@media (min-width: 640px) {
  .bazar-v2-scroll { max-width: 500px; margin: 0 auto; }
  .bazar-v2-hero { min-height: clamp(525px, 69svh, 525px) }
  .bazar-v2-owen { right: -38px; width: 440px; height: 630px; }
  .bazar-v2-featured { width: min(66%, 320px); }
}
