/* Native <dialog>: base, drawers (bag, filters), product quick view, zoom, info. */

dialog { color: var(--ink); background: var(--surface); border: 0; padding: 0; box-shadow: var(--shadow-dialog); overscroll-behavior: contain; }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
dialog[open] { animation: wy-enter .16s ease-out; }
@keyframes wy-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wy-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(470px, 100%); max-width: 100%;
  height: 100dvh; max-height: 100dvh; border-radius: var(--radius-dialog) 0 0 var(--radius-dialog); padding: 26px; overflow: auto;
}
.wy-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.wy-dialog-head h2 { font-size: 26px; font-weight: 500; letter-spacing: -.7px; line-height: 1.15; margin-top: 7px; }
.wy-dialog-loading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 30px; }

.wy-product-dialog { width: min(1000px, calc(100% - 48px)); max-width: 1000px; max-height: calc(100dvh - 48px); border-radius: var(--radius-dialog); overflow: auto; }

.wy-zoom-dialog { width: min(1100px, 95vw); max-width: 95vw; max-height: 95dvh; border-radius: var(--radius-banner); padding: 16px; overflow: auto; }
.wy-zoom-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; margin-bottom: 12px; }
.wy-zoom-top > span { max-width: 85%; overflow-wrap: anywhere; }
.wy-zoom-content .wy-photo-frame { display: flex; justify-content: center; aspect-ratio: auto; min-height: 200px; }
.wy-zoom-content img { width: auto; max-width: 100%; height: auto; max-height: 78dvh; object-fit: contain; aspect-ratio: auto; }

.wy-info-dialog { width: min(660px, calc(100% - 32px)); max-height: calc(100dvh - 40px); border-radius: var(--radius-dialog); padding: 28px; overflow: auto; }
.wy-info-content details { border-top: 1px solid var(--line); }
.wy-info-content summary { cursor: pointer; padding: 18px 0; font-size: 13px; font-weight: 500; line-height: 1.6; }
.wy-info-content p, .wy-info-content li { font-size: 14px; line-height: 1.85; color: var(--muted); }
.wy-info-content details p { margin-bottom: 18px; }

@media (max-width: 650px) {
  .wy-drawer { border-radius: var(--radius-banner) 0 0 var(--radius-banner); padding: 23px; width: min(440px, 94%); }
  .wy-dialog-head h2 { font-size: 23px; }
  .wy-product-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: var(--radius-banner); }
  .wy-dialog-loading { padding: 19px; }
  .wy-info-dialog { padding: 23px; width: calc(100% - 20px); border-radius: var(--radius-banner); }
  .wy-zoom-dialog { padding: 10px; }
  .wy-zoom-top { font-size: 12px; }
}
