html.ls-open { overflow: hidden; }
.ls-dialog {
  --ls-wine: #642731;
  --ls-ink: #392e2a;
  --ls-muted: #756a63;
  --ls-line: #e2d8cf;
  --ls-paper: #fbf8f2;
  box-sizing: border-box;
  width: min(1060px, calc(100vw - 56px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid rgba(94,57,40,.12);
  border-radius: 12px;
  margin: auto;
  color: var(--ls-ink);
  background: var(--ls-paper);
  box-shadow: 0 26px 100px #2d1c1a30;
  font: 400 15px/1.55 "DM Sans", Arial, sans-serif;
  text-align: left;
}
.ls-dialog::backdrop { background: rgba(35,26,25,.48); backdrop-filter: blur(3px); }
.ls-dialog[open] { animation: ls-appear .2s ease-out; }
.ls-dialog *, .ls-dialog *::before, .ls-dialog *::after { box-sizing: border-box; }
.ls-dialog button, .ls-dialog select, .ls-dialog input { font: inherit; color: inherit; }
.ls-dialog button { box-shadow: none; cursor: pointer; text-transform: none; letter-spacing: normal; }
.ls-dialog button:disabled { cursor: default; opacity: .45; }
.ls-dialog button:focus-visible, .ls-dialog input:focus-visible, .ls-dialog select:focus-visible, .ls-dialog summary:focus-visible { outline: 2px solid var(--ls-wine); outline-offset: 3px; }
.ls-dialog svg { width: 21px; height: 21px; flex: none; }
.ls-frame { display: flex; flex-direction: column; width: 100%; max-height: min(88dvh, 1000px); }
.ls-header { display: flex; flex: none; align-items: center; gap: 12px; min-height: 84px; padding: 18px 32px; border-bottom: 1px solid var(--ls-line); }
.ls-header h2, .ls-empty h3, .ls-details h3 {
  margin: 0; color: var(--ls-wine); font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; line-height: 1.14; letter-spacing: -.035em;
}
.ls-header h2 { font-size: clamp(28px, 3.2vw, 39px); outline: none; }
.ls-close { margin-left: auto; }
.ls-dialog .ls-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ls-line); border-radius: 50%; background: transparent; color: var(--ls-wine); transition: background .18s, border-color .18s; }
.ls-dialog .ls-icon:hover:not(:disabled) { background: #f0e6df; border-color: #cbb7ab; }
.ls-body { overflow-y: auto; overscroll-behavior: contain; padding: 26px 32px 32px; }
.ls-tools { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.ls-searchbox { display: flex; align-items: center; flex: 1 1 220px; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--ls-line); border-radius: 4px; background: #fffdf9; }
.ls-searchbox svg { width: 18px; color: var(--ls-wine); }
.ls-searchbox input { width: 100%; height: 100%; padding: 0; border: none; background: transparent; font-size: 14px; }
.ls-searchbox input:focus { outline: none; }
.ls-searchbox:focus-within { outline: 2px solid var(--ls-wine); outline-offset: 2px; }
.ls-selects { display: flex; gap: 12px; }
.ls-selects label, .ls-variant, .ls-qty-label { display: flex; flex-direction: column; gap: 4px; color: var(--ls-muted); font-size: 12px; }
.ls-dialog select { height: 44px; max-width: 100%; padding: 0 28px 0 10px; border: 1px solid var(--ls-line); border-radius: 3px; background: #fffdf9; font-size: 14px; }
.ls-result-count, .ls-loading { margin: 0 0 16px; color: var(--ls-muted); font-size: 13px; }
.ls-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px 18px; }
.ls-card { position: relative; min-width: 0; }
.ls-dialog .ls-card-main { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.ls-photo { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; width: 100%; aspect-ratio: 4 / 5; background: #eee4d7; border-radius: 3px; }
.ls-photo > span { position: relative; z-index: -1; color: #9a726c; font: 400 19px/1 Arial,sans-serif; letter-spacing: .16em; }
.ls-photo img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ls-photo img[hidden] { display: none; }
.ls-card-main:hover img { transform: scale(1.035); }
.ls-card-title { display: block; margin-top: 11px; color: var(--ls-ink); font-size: 15px; line-height: 1.35; }
.ls-price { display: block; margin-top: 5px; color: var(--ls-wine); font-size: 13px; }
.ls-dialog .ls-save { position: absolute; top: 9px; right: 9px; width: 34px; height: 34px; border-color: #f9f4ec99; background: #fffbf4ee; }
.ls-save svg { width: 17px; height: 17px; }
.ls-saved svg { fill: var(--ls-wine); }
.ls-pages { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 28px; font-size: 13px; }
.ls-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ls-dialog.ls-drawer { inset: 0 0 0 auto; width: min(470px,100vw); height: 100dvh; margin: 0 0 0 auto; border-radius: 0; }
.ls-drawer .ls-frame { max-height: 100dvh; height: 100%; }
.ls-drawer .ls-header { padding: 22px 25px; }
.ls-drawer .ls-header h2 { font-size: 32px; }
.ls-drawer .ls-body { flex: 1; padding: 22px 25px; }
.ls-drawer .ls-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ls-empty { display: flex; min-height: 255px; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 12px; }
.ls-empty h3 { margin-top: 14px; font-size: 29px; }
.ls-empty p { max-width: 330px; margin: 10px 0 0; color: var(--ls-muted); font-size: 14px; }
.ls-empty-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--ls-wine); background: #f2e9e0; }
.ls-empty .ls-btn-secondary { margin-top: 22px; }
.ls-dialog .ls-btn-secondary, .ls-dialog .ls-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--ls-wine); border-radius: 3px; background: transparent; color: var(--ls-wine); font-size: 14px; transition: background .2s, color .2s; }
.ls-dialog .ls-btn-secondary:hover { background: #f1e7dd; }
.ls-dialog .ls-primary { background: var(--ls-wine); color: #fffaf1; }
.ls-dialog .ls-primary:hover:not(:disabled) { background: #50202a; }
.ls-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px,4vw,52px); align-items: start; }
.ls-gallery { min-width: 0; }
.ls-gallery > .ls-photo { aspect-ratio: 1 / 1.06; }
.ls-gallery > .ls-photo img { object-fit: contain; }
.ls-thumbs { display: flex; overflow-x: auto; gap: 8px; padding: 8px 1px; }
.ls-thumbs button { flex: none; width: 58px; padding: 2px; border: 1px solid transparent; border-radius: 4px; background: transparent; }
.ls-thumbs .ls-photo { aspect-ratio: 1; }
.ls-thumbs [aria-pressed="true"] { border-color: var(--ls-wine); }
.ls-gallery-controls { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 9px; }
.ls-gallery-controls .ls-icon { width: 36px; height: 36px; }
.ls-gallery-count { color: var(--ls-muted); font: 500 12px/1.4 "DM Sans", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.ls-thumbs .ls-photo > small { position: static; padding: 0; text-align: center; font-size: 10px; background: transparent; }
.ls-thumbs .ls-photo img { object-fit: contain; }
.ls-category { margin: 1px 0 8px; color: var(--ls-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ls-details h3 { font-size: clamp(28px,3.5vw,42px); overflow-wrap: anywhere; }
.ls-details .ls-detail-price { margin: 14px 0 24px; font-size: 21px; color: var(--ls-wine); }
.ls-variant { margin-bottom: 14px; }
.ls-qty-label { margin-bottom: 4px; }
.ls-stepper { display: inline-flex; align-items: center; justify-content: space-between; min-width: 105px; height: 40px; border: 1px solid var(--ls-line); border-radius: 3px; }
.ls-stepper button { display: grid; place-items: center; width: 34px; height: 100%; padding: 0; border: 0; background: transparent; }
.ls-stepper button:hover:not(:disabled) { background: #f3eae1; }
.ls-stepper svg { width: 14px; height: 14px; }
.ls-stepper span { font-size: 14px; }
.ls-actions { display: flex; gap: 8px; margin: 15px 0; }
.ls-actions .ls-primary { flex: 1; }
.ls-dialog .ls-detail-save { width: 46px; height: 46px; border-radius: 3px; }
.ls-dialog .ls-text-btn, .ls-dialog .ls-remove { border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 1px 0; color: var(--ls-wine); background: transparent; font-size: 13px; }
.ls-text-btn svg { vertical-align: middle; height: 13px; width: 13px; }
.ls-description { border-top: 1px solid var(--ls-line); margin-top: 22px; padding: 15px 0 0; }
.ls-description summary { cursor: pointer; font-weight: 600; }
.ls-description p { color: var(--ls-muted); white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.ls-lines { display: grid; gap: 18px; }
.ls-line { display: flex; align-items: flex-start; gap: 15px; border-bottom: 1px solid var(--ls-line); padding-bottom: 18px; }
.ls-dialog .ls-line-photo { width: 83px; flex: none; border: 0; padding: 0; background: transparent; }
.ls-line-info { flex: 1; min-width: 0; }
.ls-line h3 { margin: 0; font: 500 16px/1.35 "DM Sans",Arial,sans-serif; overflow-wrap: anywhere; }
.ls-line p { margin: 4px 0; color: var(--ls-muted); font-size: 13px; }
.ls-line .ls-line-price { color: var(--ls-wine); font-weight: 550; }
.ls-line-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 9px; }
.ls-line-controls .ls-stepper { height: 34px; min-width: 88px; }
.ls-line-controls .ls-stepper button { width: 28px; }
.ls-bag-total { display: flex; justify-content: space-between; margin: 22px 0 4px; font-size: 18px; }
.ls-bag-total strong { font-weight: 550; color: var(--ls-wine); }
.ls-bag-note { margin: 6px 0 20px; color: var(--ls-muted); font-size: 13px; }
.ls-continue { width: 100%; }
@keyframes ls-appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (max-width: 830px) {
  .ls-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ls-header { padding: 16px 22px; }
  .ls-body { padding: 20px 22px 26px; }
}
@media (max-width: 620px) {
  .ls-dialog, .ls-dialog.ls-drawer { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; margin: 0; }
  .ls-frame { max-height: 100dvh; height: 100%; }
  .ls-header, .ls-drawer .ls-header { min-height: 72px; padding: 13px 16px; }
  .ls-header h2, .ls-drawer .ls-header h2 { font-size: 30px; }
  .ls-body, .ls-drawer .ls-body { padding: 18px 16px 32px; }
  .ls-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .ls-tools { flex-direction: column; align-items: stretch; gap: 8px; }
  .ls-searchbox { flex: auto; }
  .ls-selects label { min-width: 0; flex: 1; }
  .ls-detail { grid-template-columns: 1fr; gap: 18px; }
  .ls-gallery > .ls-photo { aspect-ratio: 1.24; }
  .ls-card-title { font-size: 14px; }
  .ls-stepper { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-dialog *, .ls-dialog[open] { animation: none; transition: none; }
}
.ls-dialog .ls-card-main { text-decoration: none; color: var(--ls-ink); }
.ls-dialog .ls-card-main:focus-visible { outline: 2px solid var(--ls-wine); outline-offset: 3px; }
.ls-photo > small { position: absolute; z-index: 1; bottom: 9px; left: 9px; background: #fffcf4ef; color: var(--ls-ink); padding: 3px 8px; border-radius: 2px; font-size: 11px; }
.ls-copy-link { display: block; margin-top: 12px; }
.ls-link-field { width: 100%; border: 1px solid var(--ls-line); border-radius: 3px; padding: 8px; background: #fffcf7; }
.ls-gallery-recovery { display: inline-flex; align-items: center; margin-top: 5px; min-height: 38px; color: var(--ls-wine); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.ls-gallery-recovery[hidden] { display: none; }
.ls-gallery { position: relative; }
.ls-gallery > .ls-main-photo img { width: auto; height: auto; max-width: 100%; max-height: 100%; inset: 50% auto auto 50%; transform: translate(-50%,-50%); }
.ls-dialog .ls-enlarge { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 0; border: 0; border-radius: 0; background: transparent; color: var(--ls-wine); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.ls-enlarge + .ls-gallery-controls { float: right; margin: 3px 0 0 10px; }
.ls-thumbs { clear: both; }
.ls-image-dialog { width: min(95vw,1500px); max-width: none; max-height: 94dvh; padding: 18px; border: 1px solid #d5c9bb; border-radius: 4px; background: #faf7f0; color: #55171d; }
.ls-image-dialog::backdrop { background: #231a19bf; }
.ls-image-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ls-image-dialog h2 { margin: 0; font: 500 clamp(19px,2.7vw,30px)/1.15 'Cormorant Garamond', Georgia, serif; }
.ls-image-dialog button { flex: none; min-height: 40px; border: 1px solid #ccbdae; background: transparent; color: inherit; padding: 6px 12px; font: 500 14px/1.3 'DM Sans',Arial,sans-serif; cursor: pointer; }
.ls-image-dialog figure { margin: 14px 0 0; }
.ls-zoom-slot { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: min(72dvh,900px); background: #f1ebe3; }
.ls-zoom-slot img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ls-zoom-slot small { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; background: #fffaf0; }
.ls-image-dialog figcaption { margin-top: 5px; font-size: 12px; text-align: center; }
@media (max-width: 680px) { .ls-image-dialog { width: 100vw; margin: auto 0; padding: 13px; } }
