/* One product card shared by the storefront and Window. */
.product-dialog {
  --ink: #11110f;
  --ivory: #f4efe5;
  --paper: #fbf8f1;
  --pink-1: #ffc8dd;
  --blue-1: #bde0fe;
  --line: rgba(17, 17, 15, 0.22);
  --serif: "ARCA Instrument Serif", Georgia, serif;
  --sans: "ARCA Manrope", Arial, sans-serif;
  --mono: "ARCA DM Mono", monospace;
  font: 16px/1.5 var(--sans);
  border-radius: 0;
}
:where(.product-dialog) button { font: inherit; color: inherit; }
:where(.product-dialog) img { display: block; width: 100%; }
.product-dialog .eyebrow { margin: 0 0 22px; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.product-dialog .icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; transition: transform .2s ease, background .2s ease; }
.product-dialog .icon-button:hover { background: var(--pink-1); transform: rotate(8deg); }
.product-dialog button:disabled { opacity: .5; cursor: wait; }
.product-dialog {
  width: min(1060px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}
.product-dialog::backdrop { background: rgba(17,17,15,.75); backdrop-filter: blur(4px); }
.product-dialog .dialog-close { position: absolute; z-index: 3; top: 18px; right: 18px; background: var(--paper); }
.dialog-content { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 620px; }
.dialog-gallery { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; max-height: calc(100svh - 40px); background: var(--blue-1); }
.dialog-gallery-stage { position: relative; min-height: 0; overflow: hidden; }
.dialog-gallery-slide { position: absolute; inset: 0; visibility: hidden; }
.dialog-gallery-slide.is-active { visibility: visible; }
.dialog-gallery-stage picture,
.dialog-gallery-stage img { width: 100%; height: 100%; }
.dialog-gallery-stage img { object-fit: contain; }
.dialog-gallery-caption { padding: 19px 30px 22px; background: var(--paper); border-top: 1px solid var(--line); }
.dialog-gallery-caption .eyebrow { margin: 0 0 6px; font-size: .6rem; }
.dialog-gallery-caption h2 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(2rem, 2.8vw, 2.55rem); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.dialog-gallery-caption p:last-child { max-width: 60ch; margin: 0; color: rgba(17,17,15,.65); font-size: .78rem; line-height: 1.45; }
.dialog-thumbnails { display: flex; gap: 10px; padding: 10px; overflow-x: auto; background: rgba(244,239,229,.92); border-top: 1px solid var(--line); }
.dialog-thumbnail { flex: 0 0 76px; width: 76px; height: 76px; padding: 0; overflow: hidden; background: var(--paper); border: 1px solid transparent; cursor: pointer; opacity: .62; transition: border-color .2s ease, opacity .2s ease; }
.dialog-thumbnail.is-active { border-color: var(--ink); opacity: 1; }
.dialog-thumbnail picture,
.dialog-thumbnail img { width: 100%; height: 100%; }
.dialog-thumbnail img { object-fit: cover; }
.dialog-copy { display: flex; flex-direction: column; padding: clamp(32px, 4vw, 56px); }
.dialog-copy .eyebrow { margin-bottom: auto; }
.dialog-copy h2 { margin: 30px 0 16px; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.3rem); font-weight: 400; line-height: .88; letter-spacing: -.04em; }
.dialog-description { color: rgba(17,17,15,.65); }
.dialog-spec { margin: 18px 0 28px; border-top: 1px solid var(--line); font-size: .8rem; }
.dialog-spec > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dialog-spec dt { color: rgba(17,17,15,.65); }
.dialog-spec dd { margin: 0; text-align: right; }
.material-picker { margin: 20px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.material-picker-heading { margin-bottom: 14px; }
.material-picker-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 2.5vw, 2.1rem); font-weight: 400; line-height: 1; }
.material-options { display: grid; gap: 9px; }
.material-option { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 15px; width: 100%; min-height: 94px; padding: 7px 12px 7px 7px; text-align: left; background: #fffdf9; border: 1px solid #d9d4ce; border-radius: 9px; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.material-option:hover { transform: translateY(-2px); border-color: #b99091; }
.material-option.is-selected { border-color: #d6a3a0; box-shadow: 0 0 0 2px rgba(229, 175, 169, .24), 0 8px 22px rgba(138, 83, 78, .1); }
.material-option:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.material-option-swatch { width: 82px; height: 78px; object-fit: cover; border-radius: 6px; }
.material-option-copy { min-width: 0; }
.material-option-name { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.material-option-copy small { display: block; margin-top: 9px; color: #77716d; font-family: var(--mono); font-size: .62rem; line-height: 1.4; letter-spacing: .03em; }
.material-option-end { display: flex; flex-direction: column; align-items: end; justify-content: space-between; align-self: stretch; padding: 5px 0 3px; white-space: nowrap; }
.material-option-radio { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid #c8c7c5; border-radius: 50%; }
.material-option.is-selected .material-option-radio { border-color: #d69f98; background: #f3cbc7; }
.material-option.is-selected .material-option-radio::after { content: ""; width: 12px; height: 12px; background: var(--ink); border-radius: 50%; }
.material-option-price { font-family: var(--serif); font-size: 1.27rem; line-height: 1; }
.material-option-price .price-approx { font-family: var(--mono); font-size: .5em; line-height: 1.3; }
.has-material-picker .dialog-spec { margin: 18px 0 17px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.has-material-picker .dialog-spec > div { grid-template-columns: 92px 1fr; padding: 4px 0; border: 0; }
.has-material-picker .dialog-spec dt::after { content: "–"; float: right; }
.has-material-picker .dialog-spec dd { text-align: left; }
.dialog-price { margin: 0 0 25px; font-family: var(--serif); font-size: 2rem; }
.dialog-price .price-approx { font-family: var(--mono); font-size: .36em; }
.dialog-add { display: block; width: 100%; padding: 16px; color: var(--ivory); background: var(--ink); border: 1px solid var(--ink); cursor: pointer; font-family: var(--mono); font-size: .75rem; text-align: center; text-transform: uppercase; }
.material-purchase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.material-purchase .dialog-add { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .03em; text-transform: none; }
.material-purchase .dialog-add span { margin-left: 12px; }
.material-signature { color: #77717a; font-family: var(--serif); font-size: 1.02rem; font-style: italic; line-height: .88; transform: rotate(-12deg); white-space: nowrap; }
.has-gallery-caption .dialog-copy { justify-content: center; padding: 34px 36px; }
.has-gallery-caption .material-picker { margin: 0 0 8px; padding-top: 0; border-top: 0; }
.has-gallery-caption .dialog-spec { margin: 14px 0 15px; padding: 10px 0; }
.has-gallery-caption .dialog-price { margin-bottom: 15px; }

@media (min-width: 781px) and (max-height: 820px) {
  .has-material-picker .dialog-copy { padding: 21px 34px; }
  .has-material-picker .dialog-copy .eyebrow { margin-bottom: 0; }
  .has-material-picker .dialog-copy h2 { margin: 9px 0 6px; font-size: clamp(2.9rem, 3.8vw, 3.8rem); }
  .has-material-picker .dialog-description { margin: 4px 0; font-size: .82rem; line-height: 1.42; }
  .has-material-picker .dialog-spec { margin: 7px 0 9px; padding: 5px 0; font-size: .72rem; }
  .has-material-picker .dialog-spec > div { padding: 2px 0; }
  .has-material-picker .material-picker { margin: 8px 0 3px; padding-top: 8px; }
  .has-material-picker .material-picker-heading { margin-bottom: 6px; }
  .has-material-picker .material-picker-heading h3 { font-size: 1.4rem; }
  .has-material-picker .material-options { gap: 5px; }
  .has-material-picker .material-option { grid-template-columns: 54px minmax(0, 1fr) auto; min-height: 62px; padding: 4px 9px 4px 4px; gap: 10px; }
  .has-material-picker .material-option-swatch { width: 54px; height: 52px; }
  .has-material-picker .material-option-name { font-size: 1.3rem; }
  .has-material-picker .material-option-copy small { margin-top: 4px; font-size: .54rem; }
  .has-material-picker .material-option-price { font-size: 1.12rem; }
  .has-material-picker .dialog-price { margin-bottom: 7px; font-size: 1.56rem; }
  .has-material-picker .dialog-add { padding: 10px; }
}

@media (max-width: 780px) {
  .product-dialog { inset: 0; width: 100%; max-width: none; height: 100svh; height: 100dvh; max-height: none; margin: 0; }
  .product-dialog .dialog-close { position: fixed; top: 16px; right: 16px; }
  .dialog-content { display: block; min-height: 100%; }
  .dialog-gallery { max-height: none; }
  .dialog-gallery-stage { height: 48svh; }
  .dialog-thumbnails { padding: 8px 12px; }
  .dialog-thumbnail { flex-basis: 64px; width: 64px; height: 64px; }
  .dialog-copy { padding: 35px 25px 40px; }
  .dialog-copy .eyebrow { margin-bottom: 25px; }
  .has-gallery-caption .dialog-gallery-caption { padding: 18px 24px 24px; }
  .has-gallery-caption .dialog-gallery-caption h2 { font-size: 2.1rem; }
  .has-gallery-caption .dialog-copy { padding: 28px 24px 40px; }
  .material-option { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; min-height: 82px; padding: 5px 8px 5px 5px; }
  .material-option-swatch { width: 70px; height: 70px; }
  .material-option-name { font-size: 1.4rem; }
  .material-option-copy small { margin-top: 6px; font-size: .55rem; }
  .material-option-price { font-size: 1.05rem; }
  .material-purchase { gap: 8px; }
  .material-signature { font-size: .84rem; }
}

@font-face {
  font-family: 'ARCA DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./worlds/fonts/dm-mono-normal-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'ARCA Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(./worlds/fonts/instrument-serif-italic-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'ARCA Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./worlds/fonts/instrument-serif-normal-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'ARCA Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./worlds/fonts/manrope-normal-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'ARCA Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./worlds/fonts/manrope-normal-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'ARCA Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./worlds/fonts/manrope-normal-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}