/* Anteprima rapida: styles are scoped to the new control and native dialog. */
.mgx-catalogue-3190 .mgx-quickview-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 44px; margin: 8px 0 -8px; padding: 10px 12px;
  border: 0; border-radius: 999px; background: transparent; color: #0b2b3d;
  font: 400 12px/1.5 "Libre Baskerville", Georgia, serif;
  text-transform: none; letter-spacing: 0; cursor: pointer;
  transition: background .18s ease;
}
.mgx-catalogue-3190 .mgx-quickview-trigger:hover { background: #f3ece4; color: #0b2b3d; }
.mgx-quickview-trigger[hidden], .mgx-quickview [hidden] { display: none !important; }
body.mgx-quickview-open { overflow: hidden; }
dialog.mgx-quickview {
  box-sizing: border-box; position: fixed; inset: 0;
  width: min(960px, calc(100% - 48px)); max-width: none;
  height: fit-content; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; overflow: hidden;
  border: 1px solid rgba(11,43,61,.12); border-radius: 26px;
  background: #fffaf5; color: #0b2b3d;
  box-shadow: 0 24px 90px rgba(7,31,45,.22);
  font: 400 14px/1.7 "Libre Baskerville", Georgia, serif;
  text-align: left; letter-spacing: normal;
}
dialog.mgx-quickview:not([open]) { display: none; }
.mgx-quickview::backdrop { background: rgba(7,31,45,.58); }
.mgx-quickview *, .mgx-quickview *::before, .mgx-quickview *::after { box-sizing: border-box; }
.mgx-quickview[open] { animation: mgx-quickview-enter .22s ease-out; }
.mgx-quickview .mgx-quickview__close {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  display: grid; place-items: center; width: 44px; height: 44px;
  min-width: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 1px solid rgba(11,43,61,.14); border-radius: 50%;
  background: #fffaf5; color: #0b2b3d; font: 400 28px/1 Georgia, serif;
  cursor: pointer; box-shadow: 0 3px 12px rgba(11,43,61,.04);
}
.mgx-quickview .mgx-quickview__close:hover { background: #f3ece4; color: #0b2b3d; }
.mgx-quickview__layout {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  max-height: calc(100vh - 50px); max-height: calc(100dvh - 50px);
  overflow: auto; overscroll-behavior: contain;
}
.mgx-quickview__visual {
  position: relative; display: grid; place-items: center; min-width: 0;
  min-height: 420px; padding: 24px; background: #f1eee9;
}
.mgx-quickview__visual img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.mgx-quickview__visual .mgx-product__placeholder { display: grid; place-items: center; min-height: 220px; color: rgba(11,43,61,.5); }
.mgx-quickview__visual .mgx-product__placeholder b { font: 400 54px/1 "Stardos Stencil", Georgia, serif; }
.mgx-quickview__content { min-width: 0; padding: 54px 36px 28px; overflow-wrap: anywhere; }
.mgx-quickview .mgx-quickview__family { margin: 0 0 12px; color: #9d4837; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mgx-quickview .mgx-quickview__title { margin: 0; color: #0b2b3d; font: 400 clamp(27px,3vw,36px)/1.25 "Libre Baskerville", Georgia, serif; letter-spacing: -.025em; text-transform: none; }
.mgx-quickview .mgx-quickview__name { margin: 10px 0 0; color: #52616a; font-size: 12px; line-height: 1.6; }
.mgx-quickview .mgx-quickview__description { margin: 22px 0; color: #354d5a; font-size: 13px; line-height: 1.85; }
.mgx-quickview__description > :first-child { margin-top: 0; }
.mgx-quickview__description > :last-child { margin-bottom: 0; }
.mgx-quickview .mgx-quickview__badge { display: inline-block; width: fit-content; margin: 14px 0 0; padding: 6px 11px; border-radius: 999px; background: #0b2b3d; color: #fffaf5; font-size: 10px; line-height: 1.5; }
.mgx-quickview .mgx-quickview__formats { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.mgx-quickview__formats legend { width: auto; margin: 0 0 10px; padding: 0; color: #52616a; font-size: 12px; }
.mgx-quickview__format-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mgx-quickview__formats button {
  min-width: 88px; min-height: 44px; margin: 0; padding: 10px 16px;
  border: 1px solid rgba(11,43,61,.2); border-radius: 999px;
  background: transparent; color: #0b2b3d; font: inherit; font-size: 12px;
  line-height: 1.5; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.mgx-quickview__formats button:hover { background: #f3ece4; color: #0b2b3d; }
.mgx-quickview__formats button[aria-pressed="true"] { border-color: #0b2b3d; background: #0b2b3d; color: #fffaf5; }
.mgx-quickview .mgx-quickview__status { margin: 12px 0 0; color: #52616a; font-size: 12px; }
.mgx-quickview .mgx-quickview__price { display: block; margin: 24px 0 16px; color: #0b2b3d; font-size: 26px; font-weight: 400; line-height: 1.4; }
.mgx-quickview__price del { color: #52616a; font-size: .75em; }
.mgx-quickview__price ins { background: transparent; color: #0b2b3d; text-decoration: none; }
.mgx-quickview__price small { display: block; font-size: 11px; }
.mgx-quickview__actions { display: flex; flex-direction: column; gap: 10px; }
.mgx-quickview .mgx-quickview__buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; margin: 0; padding: 13px 18px;
  border: 1px solid #0b2b3d; border-radius: 999px;
  background: #0b2b3d; color: #fffaf5; font: inherit; font-size: 12px;
  line-height: 1.6; text-align: center; text-decoration: none; letter-spacing: 0;
  text-transform: none; white-space: normal; cursor: pointer;
}
.mgx-quickview .mgx-quickview__buy:hover { background: #c95f4b; border-color: #c95f4b; color: #fffaf5; }
.mgx-quickview__buy.loading, .mgx-quickview__buy[aria-busy="true"] { opacity: .65; cursor: progress; }
.mgx-quickview__formats button:disabled { opacity: .6; cursor: wait; }
.mgx-quickview .mgx-quickview__details { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 0; color: #0b2b3d; font-size: 11px; line-height: 1.6; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.mgx-quickview .mgx-quickview__announcement { margin: 12px 0 0; color: #52616a; font-size: 11px; }
.mgx-quickview .mgx-quickview__announcement:empty { margin: 0; }
.mgx-quickview .added_to_cart { display: none; }
.mgx-quickview :is(a,button):focus-visible, .mgx-catalogue-3190 .mgx-quickview-trigger:focus-visible { outline: 3px solid #c95f4b; outline-offset: 3px; }
@media (max-width: 680px) {
  dialog.mgx-quickview { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 22px; }
  .mgx-quickview__layout { grid-template-columns: minmax(0,1fr); max-height: calc(100vh - 22px); max-height: calc(100dvh - 22px); }
  .mgx-quickview__visual { min-height: 0; height: 210px; padding: 18px 54px; }
  .mgx-quickview__visual img { width: 100%; height: 100%; max-height: 174px; }
  .mgx-quickview__visual .mgx-product__placeholder { min-height: 150px; }
  .mgx-quickview__content { padding: 24px; }
  .mgx-quickview .mgx-quickview__description { margin: 16px 0; }
  .mgx-quickview .mgx-quickview__price { margin-top: 18px; }
}
@keyframes mgx-quickview-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .mgx-quickview[open] { animation: none; }
  .mgx-quickview *, .mgx-quickview-trigger { transition: none !important; scroll-behavior: auto !important; }
}
