html.ym-shop-lock { overflow: hidden; }

.ym-shop-dialog {
  --ym-floor: #101112;
  --ym-panel: #191b1d;
  --ym-well: #232527;
  --ym-ink: #f5f4f0;
  --ym-muted: #b9bcc0;
  --ym-line: #373a3d;
  --ym-gold: #ffd12f;
  --ym-green: #29da78;
  --ym-green-ink: #062516;
  color-scheme: dark;
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  margin: 0 0 0 auto;
  padding: 0;
  width: min(100%, 31.5rem);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--ym-line);
  border-radius: 0;
  background: var(--ym-floor);
  color: var(--ym-ink);
  font: inherit;
  box-shadow: -18px 0 74px #0008;
}
.ym-shop-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.ym-shop-dialog[open] { animation: ym-shop-enter 180ms ease-out; }
.ym-shop-dialog * { box-sizing: border-box; }
.ym-shop-shell { display: flex; flex-direction: column; height: 100%; }
.ym-shop-dialog button, .ym-shop-dialog select, .ym-shop-toast button { font: inherit; }
.ym-shop-dialog button, .ym-shop-dialog a, .ym-shop-dialog select { -webkit-tap-highlight-color: transparent; }
.ym-shop-dialog :focus-visible, .ym-shop-toast :focus-visible {
  outline: 3px solid #ffe374;
  outline-offset: 3px;
}
.ym-shop-dialog button:disabled { cursor: default; }
.ym-shop-dialog [hidden], .ym-shop-toast[hidden] { display: none; }
.ym-shop-dialog svg, .ym-shop-toast svg { width: 1.35rem; height: 1.35rem; flex: none; }

.ym-shop-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1.2rem, env(safe-area-inset-top)) 1.55rem 1.2rem;
  border-bottom: 1px solid var(--ym-line);
  background: linear-gradient(104deg, #202224, #141517 63%, #101112);
}
.ym-shop-title {
  margin: 0;
  color: var(--ym-ink);
  font: inherit;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -.05em;
  font-weight: 700;
}
.ym-shop-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid #484b4d;
  border-radius: 50%;
  background: #1b1d1f;
  color: var(--ym-ink);
}
.ym-shop-icon:hover { background: #313437; border-color: #686e72; }
.ym-shop-body {
  flex: 1 1 10rem;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #5e6266 var(--ym-floor);
  padding: 0 1.55rem;
}
.ym-shop-bar { display: flex; gap: .8rem; align-items: center; min-height: 3.1rem; padding-top: .3rem; }
.ym-shop-bar > p { margin: 0 auto 0 0; color: var(--ym-muted); font-size: .9rem; }
.ym-shop-row {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr) auto;
  align-items: start;
  gap: .9rem;
  padding: 1.15rem 0;
}
.ym-shop-row + .ym-shop-row { border-top: 1px solid var(--ym-line); }
.ym-shop-row > .ym-shop-details:last-child { grid-column: 2 / -1; }
.ym-shop-photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #383b3f;
  border-radius: .65rem;
  height: auto;
  color: #92969a;
}
.ym-shop-photo:not(.photo) { background: #222528; }
.ym-shop-photo img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; padding: .34rem; }
.ym-shop-details { min-width: 0; }
.ym-shop-details h3 {
  margin: 0;
  color: var(--ym-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
  letter-spacing: -.018em;
}
.ym-shop-sku, .ym-shop-unit { margin: .24rem 0 0; color: var(--ym-muted); font-size: .8125rem; line-height: 1.4; }
.ym-shop-unit { font-size: .875rem; }
.ym-shop-lineprice {
  margin: .12rem 0 0;
  color: var(--ym-ink);
  font-size: .96rem;
  line-height: 1.35;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ym-shop-details .ym-shop-lineprice { margin-top: .45rem; color: var(--ym-gold); font-size: 1.15rem; letter-spacing: -.025em; }
.ym-shop-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .55rem; }
.ym-shop-stepper { display: inline-flex; align-items: center; border: 1px solid #46494c; border-radius: 999px; background: #1b1d1f; }
.ym-shop-step { min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 999px; color: var(--ym-ink); background: transparent; }
.ym-shop-step svg { width: .88rem; height: .88rem; stroke-width: 2; }
.ym-shop-step:not(:disabled):hover { background: #393d40; }
.ym-shop-step:disabled { color: #73777a; }
.ym-shop-stepper span { min-width: 1rem; max-width: 4rem; text-align: center; color: var(--ym-ink); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ym-shop-remove { min-height: 2.75rem; padding: .5rem .12rem; border: 0; background: none; color: var(--ym-muted); font-size: .875rem !important; text-decoration: underline; text-underline-offset: .15rem; white-space: nowrap; }
.ym-shop-remove:hover { color: #fff; }
.ym-shop-footer {
  flex: 0 1 auto;
  max-height: 54%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #5e6266 var(--ym-panel);
  padding: 1.25rem 1.55rem max(1.25rem, env(safe-area-inset-bottom));
  background: var(--ym-panel);
  border-top: 1px solid #414447;
}
.ym-shop-total { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: 1.15rem; font-size: 1rem; font-weight: 600; }
.ym-shop-total strong { color: var(--ym-gold); font-size: 1.6rem; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ym-shop-field { display: grid; gap: .48rem; margin-bottom: .85rem; }
.ym-shop-field label { color: var(--ym-ink); font-size: .89rem; font-weight: 600; }
.ym-shop-select {
  appearance: none;
  width: 100%;
  min-height: 3.1rem;
  margin: 0;
  padding: .7rem 2.6rem .7rem 1rem;
  border: 1px solid #5a5e60;
  border-radius: .65rem;
  color: var(--ym-ink);
  background: #222426 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24' stroke='%23e5e6e3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .95rem center / 1rem no-repeat;
  cursor: pointer;
  font-size: 1rem !important;
}
.ym-shop-select:hover { border-color: #909395; }
.ym-shop-select option { color: var(--ym-ink); background: #202224; }
.ym-shop-actions { display: grid; gap: .6rem; }
.ym-shop-whatsapp, .ym-shop-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-height: 3.5rem;
  padding: .75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  font-weight: 700 !important;
  font-size: 1.03rem !important;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.ym-shop-whatsapp { width: 100%; color: var(--ym-green-ink); background: var(--ym-green); }
.ym-shop-whatsapp:visited { color: var(--ym-green-ink); }
.ym-shop-whatsapp:hover { color: var(--ym-green-ink); background: #5de991; }
.ym-shop-whatsapp:active { color: var(--ym-green-ink); background: #23c56a; }
.ym-shop-whatsapp svg { width: 1.55rem; height: 1.55rem; }
.ym-shop-note { margin: .65rem 0 0; color: var(--ym-muted); font-size: .83rem; line-height: 1.5; }
.ym-shop-actions .ym-shop-note { margin: 0; }
.ym-shop-empty { display: flex; height: 100%; min-height: 14rem; flex-direction: column; justify-content: center; align-items: center; padding: 2rem .75rem; text-align: center; }
.ym-shop-empty-icon { display: grid; place-items: center; width: 3.8rem; height: 3.8rem; border: 1px solid #5a594a; border-radius: 50%; background: #252624; color: var(--ym-gold); }
.ym-shop-empty-icon svg { width: 1.75rem; height: 1.75rem; }
.ym-shop-empty h3 { margin: 1.15rem 0 .45rem; font: inherit; font-size: 1.38rem; font-weight: 700; letter-spacing: -.035em; }
.ym-shop-empty p { max-width: 19rem; margin: 0; color: var(--ym-muted); font-size: 1rem; line-height: 1.5; }
.ym-shop-secondary { margin-top: 1.25rem; background: var(--ym-gold); color: #19160a; }
.ym-shop-secondary:hover { background: #ffdf65; }
.ym-shop-toast {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 950;
  display: flex;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  align-items: center;
  justify-content: center;
  gap: .62rem;
  padding: .15rem .8rem .15rem 1rem;
  border: 1px solid #64676b;
  border-radius: 999px;
  color: #f7f7f4;
  background: #212326;
  box-shadow: 0 .4rem 1.4rem #0007;
  font: inherit;
  font-size: .9rem;
  line-height: 1.3;
  transform: translateX(-50%);
}
.ym-shop-toast > svg { width: 1.05rem; height: 1.05rem; color: #ffd12f; stroke-width: 2.2; }
.ym-shop-toast-link { min-height: 2.75rem; padding: 0 .3rem; border: 0; background: transparent; color: #ffe274; font-size: .875rem !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: .13rem; }
.ym-shop-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ym-shop-dialog[data-mode="inquiry"] {
  inset: 0;
  width: min(calc(100% - 2rem), 28.5rem);
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  border: 1px solid var(--ym-line);
  border-radius: 1.2rem;
}
.ym-shop-dialog[data-mode="inquiry"] .ym-shop-shell { height: auto; max-height: calc(100dvh - 2rem); overflow: auto; }
.ym-shop-dialog[data-mode="inquiry"] .ym-shop-body { flex: none; }
.ym-shop-dialog[data-mode="inquiry"] .ym-shop-row { align-items: center; grid-template-columns: 5.4rem minmax(0, 1fr); }
.ym-shop-dialog[data-mode="inquiry"] .ym-shop-footer { overflow: visible; max-height: none; }
@keyframes ym-shop-enter { from { transform: translateX(18px); opacity: .55; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 540px) {
  .ym-shop-dialog[data-mode="inquiry"] { inset: auto 0 0; width: 100%; max-height: calc(100dvh - 1rem); margin: 0; border-radius: 1rem 1rem 0 0; }
  .ym-shop-dialog[data-mode="inquiry"] .ym-shop-shell { max-height: calc(100dvh - 1rem); }
}
@media (max-width: 440px) {
  .ym-shop-body { padding-inline: 1rem; }
  .ym-shop-footer, .ym-shop-head { padding-inline: 1rem; }
  .ym-shop-row { grid-template-columns: 3.85rem minmax(0, 1fr) auto; gap: .65rem; }
  .ym-shop-lineprice { font-size: .88rem; }
}
@media (max-width: 375px) {
  .ym-shop-row { grid-template-columns: 3.65rem minmax(0, 1fr); }
  .ym-shop-row > .ym-shop-lineprice { grid-column: 2; }
}
@media (max-height: 520px) {
  .ym-shop-footer { max-height: 52%; }
  .ym-shop-head { padding-block: .45rem; }
}
@media (prefers-reduced-motion: reduce) { .ym-shop-dialog[open] { animation: none; } }

.ym-photo-dm { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .9rem; border-bottom:1px solid var(--ym-line); padding-bottom:.75rem; }
.ym-photo-dm-link, .ym-photo-copy { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.4rem .7rem; font:inherit; }
.ym-photo-dm-link { background:#262527; color:#fff; border:1px solid #69676a; font-weight:700; text-decoration:none; }
.ym-photo-copy { font-size:.85rem; color:#eee; border:0; background:transparent; text-decoration:underline; text-underline-offset:3px; cursor:pointer; max-width:100%; }
.ym-photo-dm :focus-visible { outline:2px solid #ffcf32; outline-offset:2px; }
