/* Collection-book styling. Every selector is scoped to the component. */
.dmn-book {
  --book-ink:#272920;
  --book-muted:#706c60;
  --book-paper:#fbfaf6;
  --book-line:#dcd5c6;
  --book-gold:#99815b;
  background:var(--book-paper);
  color:var(--book-ink);
  font-family:'DM Sans',Arial,sans-serif;
  font-size:14px;
  line-height:1.5;
  margin:0 auto;
  max-width:1550px;
  padding:0 5%;
}
.dmn-book *, .dmn-book *::before, .dmn-book *::after { box-sizing:border-box; }
.dmn-book img { display:block; max-width:100%; }
.dmn-book a { color:inherit; }
.dmn-book button, .dmn-book input, .dmn-book select { font:inherit; }
.dmn-book button { cursor:pointer; }
.dmn-book button:focus-visible, .dmn-book a:focus-visible, .dmn-book summary:focus-visible,
.dmn-book input:focus-visible, .dmn-book select:focus-visible { outline:2px solid #6e5a3e; outline-offset:2px; }
.dmn-book [hidden] { display:none !important; }
.dmn-book .dmn-book__breadcrumb { color:#8b8271; font-size:10px; letter-spacing:.1em; padding:26px 0; text-transform:uppercase; }
.dmn-book .dmn-book__breadcrumb a { text-decoration:none; }
.dmn-book .dmn-book__breadcrumb [aria-current] { color:#34382d; }
.dmn-book .dmn-book__layout { align-items:start; display:grid; gap:7%; grid-template-columns:minmax(0,1fr) minmax(380px,.84fr); }
.dmn-book .dmn-book__gallery { min-width:0; position:sticky; top:20px; }
.dmn-book .dmn-book__stage { background:#e6e1d7; height:min(72vw,735px); min-height:500px; overflow:hidden; position:relative; }
.dmn-book .dmn-book__stage::after { box-shadow:inset 0 0 0 1px #352f2517; content:''; inset:0; pointer-events:none; position:absolute; }
.dmn-book .dmn-book__stage > a { display:block; height:100%; width:100%; }
.dmn-book .dmn-book__stage .dmn-book__hero { width:100%; height:100%; object-fit:cover; object-position:center 24%; }
.dmn-book .dmn-book__folio { background:#faf8f1eb; color:#4b473d; font-size:9px; left:24px; letter-spacing:.14em; padding:11px 13px; position:absolute; text-transform:uppercase; top:24px; z-index:1; }
.dmn-book .dmn-book__counter { background:#f8f5ecdb; bottom:22px; font-size:10px; letter-spacing:.14em; padding:8px 11px; position:absolute; right:24px; }
.dmn-book .dmn-book__thumbs { align-items:center; display:flex; gap:10px; margin-top:12px; }
.dmn-book .dmn-book__thumb { background:#e9e6dd; border:0; border-radius:0; height:72px; opacity:1; padding:0; width:64px; }
.dmn-book .dmn-book__thumb[aria-pressed='true'] { opacity:1; outline:1px solid #6b5940; outline-offset:3px; }
.dmn-book .dmn-book__thumb img { height:100%; object-fit:cover; width:100%; }
.dmn-book .dmn-book__image-note { color:#8b8275; font-size:10px; letter-spacing:.12em; margin-left:auto; text-transform:uppercase; }
.dmn-book .dmn-book__info { min-width:0; padding-top:15px; }
.dmn-book .dmn-book__eyebrow { color:#8c7758; font-size:10px; font-weight:600; letter-spacing:.2em; margin:0; text-transform:uppercase; }
.dmn-book .dmn-book__edition { color:#999082; float:right; font-size:10px; letter-spacing:.13em; }
.dmn-book .dmn-book__heading { color:var(--book-ink); font-family:'Playfair Display',Georgia,serif; font-size:clamp(42px,4.3vw,67px); font-weight:400; letter-spacing:-.035em; line-height:1.03; margin:18px 0 12px; }
.dmn-book .dmn-book__subline { color:#887960; font-family:'Playfair Display',Georgia,serif; font-size:20px; font-style:italic; }
.dmn-book .dmn-book__intro { color:#68655c; font-size:14px; line-height:1.8; margin:24px 0 22px; max-width:490px; }
.dmn-book .dmn-book__facts { border-block:1px solid var(--book-line); color:#716b5f; display:flex; flex-wrap:wrap; font-size:11px; gap:30px; padding:17px 0; }
.dmn-book .dmn-book__facts b { color:#292c25; font-weight:500; margin-left:5px; }
.dmn-book .dmn-book__price { color:var(--book-ink); font-family:'Playfair Display',Georgia,serif; font-size:18px; margin:15px 0 0; }
.dmn-book .dmn-book__selector { padding-top:27px; }
.dmn-book .dmn-book__selector-head { align-items:flex-start; display:flex; flex-direction:column; gap:6px; }
.dmn-book .dmn-book__selector-head h2 { color:var(--book-ink); font:600 12px/1.4 'DM Sans',Arial,sans-serif; letter-spacing:.08em; margin:0; text-transform:uppercase; }
.dmn-book .dmn-book__selected-code { color:#736b5d; font-size:12px; }
.dmn-book .dmn-book__selector-intro { color:#858071; font-size:12px; margin:11px 0 19px; }
.dmn-book .dmn-book__filters { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; }
.dmn-book .dmn-book__filter { background:transparent; border:1px solid transparent; border-radius:0; color:#817a6e; font-size:10px; letter-spacing:.05em; padding:7px 11px; text-transform:none; }
.dmn-book .dmn-book__filter[aria-pressed='true'] { background:#f7f4ed; border-color:#b8a991; color:#292c25; }
.dmn-book .dmn-book__swatches { display:grid; gap:12px; grid-template-columns:repeat(8,minmax(0,1fr)); max-height:255px; overflow:auto; padding:4px 5px 8px 3px; scrollbar-color:#9c8b70 #efebe3; scrollbar-width:thin; }
.dmn-book .dmn-book__swatch { background:transparent; border:0; border-radius:0; color:#71695c; display:block; min-width:0; padding:5px; text-align:center; text-decoration:none; transition:background-color .18s ease; }
.dmn-book .dmn-book__swatch[aria-pressed='true'], .dmn-book .dmn-book__swatch[aria-current='true'], .dmn-book .dmn-book__swatch[aria-current='page'] { background:#e9e3d7; color:#332d24; }
.dmn-book .dmn-book__swatch img { aspect-ratio:1; object-fit:cover; outline:1px solid #d6d1c7; outline-offset:2px; width:100%; }
.dmn-book .dmn-book__swatch span { display:block; font-size:9px; line-height:1.35; overflow:hidden; padding-top:8px; text-overflow:ellipsis; white-space:nowrap; }
.dmn-book .dmn-book__selection-foot { align-items:center; color:#80796c; display:flex; font-size:11px; gap:12px; justify-content:space-between; margin:18px 0 25px; }
.dmn-book .dmn-book__text-button { background:transparent; border:0; border-bottom:1px solid #8a785c; border-radius:0; color:#4a4439; font-size:11px; padding:0 0 3px; text-transform:none; }
.dmn-book .dmn-book__tailoring { border-top:1px solid var(--book-line); margin:0 0 20px; padding:24px 0 0; }
.dmn-book .dmn-book__tailoring-head { align-items:baseline; display:flex; gap:12px; justify-content:space-between; margin-bottom:15px; }
.dmn-book .dmn-book__tailoring-head h2 { color:var(--book-ink); font:600 12px/1.4 'DM Sans',Arial,sans-serif; letter-spacing:.08em; margin:0; text-transform:uppercase; }
.dmn-book .dmn-book__tailoring-head span { color:#81796b; font-size:11px; }
.dmn-book .dmn-book__size-label { color:#514d45; display:block; font-size:11px; margin-bottom:8px; }
.dmn-book .dmn-book__size-dropdown { position:relative; }
.dmn-book .dmn-book__size-dropdown summary { align-items:center; background:var(--book-paper); border:1px solid #cec5b6; cursor:pointer; display:flex; font-size:12px; gap:10px; justify-content:space-between; list-style:none; min-height:47px; padding:12px; }
.dmn-book .dmn-book__size-dropdown summary::-webkit-details-marker { display:none; }
.dmn-book .dmn-book__size-dropdown[open] summary { border-color:#9f8b6c; }
.dmn-book .dmn-book__size-arrow { color:#6e6250; font-size:17px; line-height:1; transition:transform .2s; }
.dmn-book .dmn-book__size-dropdown[open] .dmn-book__size-arrow { transform:rotate(180deg); }
.dmn-book .dmn-book__size-menu { background:var(--book-paper); border:1px solid #d6cec1; border-top:0; padding:8px 8px 6px; }
.dmn-book .dmn-book__size-head, .dmn-book .dmn-book__size-row { align-items:center; display:grid; gap:4px; grid-template-columns:1fr .7fr 1.25fr 1.25fr; text-align:left; }
.dmn-book .dmn-book__size-head { border-bottom:1px solid #e2dbd0; color:#716757; font-size:10px; padding:10px 9px; }
.dmn-book .dmn-book__size-rows { max-height:250px; overflow-y:auto; scrollbar-color:#ad9b80 #f4f0e8; scrollbar-width:thin; }
.dmn-book .dmn-book__size-row { background:transparent; border:0; border-radius:0; color:#4b4942; font-size:11px; padding:10px 9px; text-transform:none; width:100%; }
.dmn-book .dmn-book__size-row:hover, .dmn-book .dmn-book__size-row[aria-pressed='true'] { background:#eee9df; }
.dmn-book .dmn-book__size-row[aria-pressed='true'] { color:#302d26; font-weight:600; }
.dmn-book .dmn-book__native-select { background:var(--book-paper); border:1px solid #cec5b6; border-radius:0; color:var(--book-ink); display:block; font-size:12px; min-height:45px; padding:12px 32px 12px 12px; width:100%; }
.dmn-book .dmn-book__tailoring-help { color:#827a6e; font-size:10px; line-height:1.5; margin:10px 0 0; }
.dmn-book .dmn-book__field-error { color:#9b3e33; font-size:11px; margin:7px 0 0; }
.dmn-book .dmn-book__field-error:empty { display:none; }
.dmn-book .dmn-book__lapel-fieldset { border:0; margin:22px 0 0; min-width:0; padding:0; }
.dmn-book .dmn-book__lapel-fieldset legend { color:#514d45; font-size:11px; margin-bottom:9px; padding:0; }
.dmn-book .dmn-book__lapel-options { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.dmn-book .dmn-book__lapel-card { align-items:flex-start; background:#fbfaf6; border:1px solid #d6cec1; cursor:pointer; display:flex; flex-direction:column; gap:8px; min-width:0; padding:14px 13px; position:relative; transition:border-color .2s,background .2s; }
.dmn-book .dmn-book__lapel-card:has(input:checked), .dmn-book .dmn-book__lapel-card[aria-checked='true'] { background:#f1eee6; border-color:#837051; }
.dmn-book .dmn-book__lapel-card:has(input:focus-visible) { outline:2px solid #6e5a3e; outline-offset:2px; }
.dmn-book .dmn-book__lapel-card:not(:has(input:disabled)):hover { border-color:#9b8a6e; }
.dmn-book .dmn-book__lapel-card input[type='radio'] { accent-color:#554d3e; height:16px; margin:0; position:absolute; right:22px; top:22px; width:16px; z-index:1; }
.dmn-book .dmn-book__lapel-image { aspect-ratio:1; background:#e8e2d8; object-fit:cover; object-position:center 25%; width:100%; }
.dmn-book .dmn-book__lapel-title { color:#302f28; font-family:'Playfair Display',Georgia,serif; font-size:17px; }
.dmn-book .dmn-book__lapel-desc { color:#797368; font-size:11px; line-height:1.55; max-width:220px; }
.dmn-book .dmn-book__lapel-occasion { border-top:1px solid #ded7ca; color:#766b5d; font-size:10px; line-height:1.5; margin-top:2px; padding-top:9px; }
.dmn-book .dmn-book__lapel-occasion strong { color:#827052; display:block; font-size:9px; letter-spacing:.1em; margin-bottom:4px; text-transform:uppercase; }
.dmn-book .dmn-book__action { align-items:center; background:var(--book-ink); border:1px solid var(--book-ink); border-radius:0; color:#fff; display:inline-flex; font-size:11px; gap:13px; justify-content:center; letter-spacing:.09em; min-height:50px; padding:16px 20px; text-decoration:none; text-transform:uppercase; }
.dmn-book .dmn-book__action:hover { background:#3d4137; color:#fff; }
.dmn-book .dmn-book__action:disabled { background:#d5d0c7; border-color:#d5d0c7; color:#686359; cursor:not-allowed; }
.dmn-book .dmn-book__action--primary { margin:16px 0 0; width:100%; }
.dmn-book .dmn-book__action--light { background:transparent; border-color:#c7bdad; color:var(--book-ink); }
.dmn-book .dmn-book__action--light:hover { background:#f0ece4; color:var(--book-ink); }
.dmn-book .dmn-book__secondary { display:flex; gap:10px; }
.dmn-book .dmn-book__secondary .dmn-book__action { flex:1; }
.dmn-book .dmn-book__small-note { color:#8b857a; font-size:11px; line-height:1.6; margin:12px 0 0; }
.dmn-book .dmn-book__detail-links { border-block:1px solid var(--book-line); display:grid; font-size:11px; gap:12px; grid-template-columns:1fr 1fr; margin-top:26px; padding:19px 0; }
.dmn-book .dmn-book__detail-links span { color:#8f806a; margin-right:6px; }
.dmn-book .dmn-book__editorial { align-items:center; border-top:1px solid var(--book-line); display:grid; gap:14%; grid-template-columns:.7fr 1fr; margin-top:100px; padding:80px 0; }
.dmn-book .dmn-book__editorial-image { background:#e8e1d3; padding:28px; }
.dmn-book .dmn-book__editorial-image img { max-height:530px; object-fit:cover; width:100%; }
.dmn-book .dmn-book__editorial-copy h2, .dmn-book .dmn-book__share-copy h2 { color:var(--book-ink); font-family:'Playfair Display',Georgia,serif; font-size:clamp(36px,4vw,55px); font-weight:400; letter-spacing:-.035em; line-height:1.12; margin:20px 0; }
.dmn-book .dmn-book__editorial-copy p:not(.dmn-book__eyebrow), .dmn-book .dmn-book__share-copy p:not(.dmn-book__eyebrow) { color:#716c61; font-size:14px; line-height:1.9; max-width:470px; }
.dmn-book .dmn-book__share { align-items:center; border-top:1px solid var(--book-line); display:grid; gap:8%; grid-template-columns:.65fr 1fr; padding:70px 0 100px; }
.dmn-book .dmn-book__share .dmn-book__action { margin-top:20px; }
.dmn-book .dmn-book__share-card { aspect-ratio:1.48; background:#342f29; display:grid; gap:12px; grid-template-columns:1.17fr .75fr; overflow:hidden; padding:4%; position:relative; }
.dmn-book .dmn-book__share-card::before { background:linear-gradient(#211f1aaa,#211f1a9c),var(--book-fabric) center/cover; content:''; inset:0; position:absolute; }
.dmn-book .dmn-book__share-card > * { position:relative; }
.dmn-book .dmn-book__frame { background:#bba177; border:1px solid #e0cba5; box-shadow:0 3px 14px #0005; min-height:0; padding:5px; }
.dmn-book .dmn-book__frame img { height:100%; object-fit:cover; width:100%; }
.dmn-book .dmn-book__share-right { display:grid; gap:12px; grid-template-rows:1fr auto; min-height:0; }
.dmn-book .dmn-book__card-label { background:#f3eddf; color:#342e25; padding:15px; text-align:center; }
.dmn-book .dmn-book__card-label strong { display:block; font-family:'Playfair Display',Georgia,serif; font-size:clamp(15px,2vw,25px); font-weight:400; }
.dmn-book .dmn-book__card-label small { display:block; font-size:9px; letter-spacing:.1em; margin-top:5px; }
.dmn-book .dmn-book__dialog { background:var(--book-paper); border:0; color:var(--book-ink); max-width:min(92vw,620px); padding:0; width:100%; }
.dmn-book .dmn-book__dialog::backdrop { background:#171914b8; }
.dmn-book .dmn-book__dialog-head { align-items:center; border-bottom:1px solid var(--book-line); display:flex; justify-content:space-between; padding:19px 23px; }
.dmn-book .dmn-book__dialog-head h2 { color:var(--book-ink); font:400 22px/1.3 'Playfair Display',Georgia,serif; margin:0; }
.dmn-book .dmn-book__close { background:transparent; border:0; border-radius:0; color:var(--book-ink); font-size:28px; padding:0; }
.dmn-book .dmn-book__dialog-body { padding:20px; }
.dmn-book .dmn-book__dialog-body img { background:#e7e2d8; max-height:70vh; object-fit:contain; width:100%; }
.dmn-book .dmn-book__dialog-body p { color:#716c61; line-height:1.6; }
@media(max-width:760px) {
  .dmn-book { padding:0 5%; }
  .dmn-book .dmn-book__breadcrumb { font-size:9px; padding:18px 0; }
  .dmn-book .dmn-book__layout { display:flex; flex-direction:column; gap:0; }
  .dmn-book .dmn-book__gallery { position:static; width:100%; }
  .dmn-book .dmn-book__layout > .dmn-book__selector { padding-top:30px; width:100%; }
  .dmn-book .dmn-book__stage { height:112vw; max-height:560px; min-height:0; }
  .dmn-book .dmn-book__folio { left:15px; top:15px; }
  .dmn-book .dmn-book__counter { bottom:15px; right:15px; }
  .dmn-book .dmn-book__thumbs { margin-top:10px; }
  .dmn-book .dmn-book__thumb { height:54px; width:49px; }
  .dmn-book .dmn-book__image-note { font-size:9px; }
  .dmn-book .dmn-book__info { padding-top:20px; width:100%; }
  .dmn-book .dmn-book__heading { font-size:43px; margin:15px 0 9px; }
  .dmn-book .dmn-book__subline { font-size:18px; }
  .dmn-book .dmn-book__intro { font-size:13px; margin:17px 0; }
  .dmn-book .dmn-book__facts { gap:14px; }
  .dmn-book .dmn-book__swatches { grid-template-columns:repeat(5,minmax(0,1fr)); max-height:244px; }
  .dmn-book .dmn-book__selection-foot { margin:17px 0 21px; }
  .dmn-book .dmn-book__secondary { flex-direction:column; }
  .dmn-book .dmn-book__secondary .dmn-book__action { width:100%; }
  .dmn-book .dmn-book__editorial { gap:30px; grid-template-columns:1fr; margin-top:60px; padding:55px 0; }
  .dmn-book .dmn-book__editorial-image { padding:20px; }
  .dmn-book .dmn-book__editorial-image img { max-height:410px; }
  .dmn-book .dmn-book__share { align-items:stretch; display:flex; flex-direction:column; gap:28px; padding:55px 0 65px; }
  .dmn-book .dmn-book__share-card { gap:8px; }
  .dmn-book .dmn-book__share-right { gap:8px; }
  .dmn-book .dmn-book__card-label { padding:9px 4px; }
  .dmn-book .dmn-book__card-label strong { font-size:16px; }
  .dmn-book .dmn-book__card-label small { font-size:7px; }
}
@media(prefers-reduced-motion:reduce) {
  .dmn-book .dmn-book__swatch, .dmn-book .dmn-book__lapel-card, .dmn-book .dmn-book__size-arrow { transition:none; }
}
.dmn-book [data-book-purchase] .single_add_to_cart_button { align-items:center; background:#272920; border:1px solid #272920; border-radius:0; color:#fff; display:flex; font:600 11px/1.4 'DM Sans',Arial,sans-serif; justify-content:center; letter-spacing:.09em; margin:16px 0 0; min-height:50px; padding:15px 20px; text-transform:uppercase; width:100%; }
.dmn-book [data-book-purchase] .single_add_to_cart_button:disabled, .dmn-book [data-book-purchase] .single_add_to_cart_button.disabled { opacity:.5; cursor:not-allowed; }
.dmn-book [data-book-purchase] form.cart { margin:0; }
.dmn-book [data-book-purchase] table.variations { width:100%; }
.dmn-book [data-book-purchase] .dlp-option-note { color:#81796b;font-size:11px; }
.dmn-book [data-book-purchase] select { max-width:100%; }

/* Provisional selection is clearly highlighted while the server verifies it. */
.dmn-book[aria-busy='true'] .dmn-book__swatch[aria-current='page'] { background:transparent; color:#71695c; }
.dmn-book .dmn-book__swatch[data-book-pending='true'] { background:#e9e3d7; color:#332d24; }
.dmn-book .dmn-book__loading { color:#76684f; font-size:11px; margin:0 0 12px; }
.dmn-book .dmn-book__loading::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#99815b; margin-right:7px; vertical-align:middle; }
.dmn-book[aria-busy='true'] .dmn-book__tailoring, .dmn-book[aria-busy='true'] [data-dlp-share] { opacity:.55; }

/* Product-book colour filter: scoped to avoid affecting fitting-room controls. */
.dmn-book .dmn-book__color-filter { margin:0 0 18px; }
.dmn-book .dmn-book__color-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 9px; }
.dmn-book .dmn-book__color-head label { color:#514d45; font:500 11px/1.4 'DM Sans',Arial,sans-serif; margin:0; }
.dmn-book .dmn-book__color-head [data-book-color-label] { color:#756a59; font:500 11px/1.4 'DM Sans',Arial,sans-serif; text-align:right; }
.dmn-book .dmn-book__color-controls { display:flex; align-items:center; gap:12px; min-width:0; }
.dmn-book .dmn-book__color-controls input.dmn-book__color-slider {
  -webkit-appearance:none; appearance:none; display:block; flex:1 1 auto; width:100%; min-width:0;
  height:28px; min-height:28px; margin:0; padding:0; border:0; border-radius:0;
  background:transparent; box-shadow:none; cursor:pointer;
  --dmn-book-spectrum:linear-gradient(to right,#16191d 0%,#50545a 7.14%,#a5a8ab 14.29%,#f3ecdc 21.43%,#d4b477 28.57%,#895029 35.71%,#962946 42.86%,#793d88 50%,#193e80 57.14%,#227cc7 64.29%,#098b8e 71.43%,#388b49 78.57%,#959e32 85.71%,#cf913d 92.86%,#c83a3a 100%);
}
.dmn-book .dmn-book__color-slider::-webkit-slider-runnable-track { height:12px; border:1px solid rgba(55,48,38,.16); border-radius:99px; background:var(--spectrum,var(--dmn-book-spectrum)); }
.dmn-book .dmn-book__color-slider::-moz-range-track { height:12px; border:1px solid rgba(55,48,38,.16); border-radius:99px; background:var(--spectrum,var(--dmn-book-spectrum)); }
.dmn-book .dmn-book__color-slider::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:23px; height:23px; margin-top:-6px; border:3px solid #fff; border-radius:50%; background:var(--selected,#16191d); box-shadow:0 0 0 1px #6f614b,0 2px 5px rgba(40,35,28,.23); }
.dmn-book .dmn-book__color-slider::-moz-range-thumb { width:17px; height:17px; border:3px solid #fff; border-radius:50%; background:var(--selected,#16191d); box-shadow:0 0 0 1px #6f614b,0 2px 5px rgba(40,35,28,.23); }
.dmn-book .dmn-book__color-slider:focus-visible { outline:2px solid #756649; outline-offset:3px; }
.dmn-book .dmn-book__color-reset { flex:none; min-height:36px; border:1px solid #c7bdad; border-radius:0; padding:8px 11px; background:transparent; color:#514b41; font:500 10px/1.4 'DM Sans',Arial,sans-serif; letter-spacing:.03em; text-transform:none; cursor:pointer; }
.dmn-book .dmn-book__color-reset[aria-pressed='true'] { border-color:#30372e; background:#30372e; color:#fff; }
.dmn-book .dmn-book__color-reset:focus-visible { outline:2px solid #756649; outline-offset:2px; }
.dmn-book [data-book-filter-hint] { color:#80796c; font-size:11px; line-height:1.5; margin:8px 0 0; }
.dmn-book [data-book-filter-hint][hidden] { display:none !important; }
@media(max-width:760px) {
  .dmn-book .dmn-book__color-filter { margin-bottom:16px; }
  .dmn-book .dmn-book__color-controls { gap:10px; }
  .dmn-book .dmn-book__color-reset { padding-inline:9px; }
}

/* Color family tags sit above the book-specific shade bar. */
.dmn-book .dmn-book__color-tags { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 15px; }
.dmn-book .dmn-book__color-tags .dmn-book__color-tag { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:5px 8px; border:0; border-radius:5px; background:transparent; color:#756e61; font:500 11px/1.4 'DM Sans',Arial,sans-serif; letter-spacing:.03em; text-transform:none; cursor:pointer; }
.dmn-book .dmn-book__color-tags .dmn-book__color-tag:hover { background:#f3efe7; color:#332f28; }
.dmn-book .dmn-book__color-tags .dmn-book__color-tag[aria-pressed="true"], .dmn-book .dmn-book__color-tags .dmn-book__color-tag[aria-pressed="true"]:hover, .dmn-book .dmn-book__color-tags .dmn-book__color-tag[aria-pressed="true"]:focus { background:#f7f4ed; color:#292c25; }
.dmn-book .dmn-book__color-tags .dmn-book__color-tag:focus-visible { outline:2px solid #756649; outline-offset:2px; }
.dmn-book .dmn-book__color-controls { width:100%; }
@media(max-width:760px) { .dmn-book .dmn-book__color-tags { gap:4px; margin-bottom:13px; } .dmn-book .dmn-book__color-tags .dmn-book__color-tag { padding-inline:7px; } }

/* Collection cover beside its title and details. */
.dmn-book .dmn-book__identity--with-cover { display:grid; grid-template-columns:clamp(66px, 7vw, 100px) minmax(0,1fr); gap:clamp(14px, 1.8vw, 24px); align-items:start; }
.dmn-book .dmn-book__identity-content { min-width:0; }
.dmn-book .dmn-book__cover { min-width:0; padding-top:2px; }
.dmn-book .dmn-book__cover img { display:block; width:100%; height:auto; object-fit:contain; box-shadow:0 5px 15px rgba(37,31,22,.12); }
.dmn-book .dmn-book__identity--with-cover .dmn-book__heading { font-size:clamp(32px, 3.5vw, 50px); overflow-wrap:normal; word-break:normal; }
@media(max-width:760px) { .dmn-book .dmn-book__identity--with-cover { grid-template-columns:clamp(64px, 19vw, 78px) minmax(0,1fr); gap:14px; } .dmn-book .dmn-book__identity--with-cover .dmn-book__heading { font-size:clamp(29px, 7.8vw, 38px); line-height:1.08; } .dmn-book .dmn-book__identity--with-cover .dmn-book__intro { margin:14px 0; } .dmn-book .dmn-book__identity--with-cover .dmn-book__facts { gap:8px 14px; } }

/* Consistent warm hover across product-page controls. */
@media (hover:hover) {
  .dmn-book a:not(.disabled):not([aria-disabled="true"]):hover,
  .dmn-book button:not(:disabled):not(.disabled):not([aria-disabled="true"]):hover,
  .dmn-book summary:hover,
  .dmn-book select:not(:disabled):hover,
  .dmn-book .dmn-book__lapel-card:not(:has(input:disabled)):hover {
    background-color:#EEE9DF !important;
    color:#292c25 !important;
    filter:none !important;
  }
}

/* A book cover accompanies the details, keeping the title full-width. */
.dmn-book .dmn-book__identity--with-cover {
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(68px,7vw,100px);
  grid-template-areas:"eyebrow edition" "heading heading" "subline cover" "intro cover" "facts cover" "price price";
  column-gap:clamp(24px,3.5vw,48px);
  row-gap:0;
  align-items:start;
}
.dmn-book .dmn-book__identity--with-cover .dmn-book__identity-content { display:contents; }
.dmn-book .dmn-book__identity--with-cover .dmn-book__eyebrow { grid-area:eyebrow; }
.dmn-book .dmn-book__identity--with-cover .dmn-book__edition { grid-area:edition; float:none; text-align:right; }
.dmn-book .dmn-book__identity--with-cover .dmn-book__heading { grid-area:heading; font-size:clamp(36px,4vw,60px); }
.dmn-book .dmn-book__identity--with-cover .dmn-book__subline { grid-area:subline; }
.dmn-book .dmn-book__identity--with-cover .dmn-book__intro { grid-area:intro; }
.dmn-book .dmn-book__identity--with-cover .dmn-book__facts { grid-area:facts; }
.dmn-book .dmn-book__identity--with-cover .dmn-book__cover { grid-area:cover; padding:0; }
.dmn-book .dmn-book__identity--with-cover .dmn-book__price { grid-area:price; }
@media(max-width:760px) {
  .dmn-book .dmn-book__identity--with-cover { grid-template-columns:minmax(0,1fr) clamp(62px,18vw,76px); column-gap:20px; }
  .dmn-book .dmn-book__identity--with-cover .dmn-book__heading { font-size:clamp(32px,8vw,43px); }
}

/* Quiet link to the collection's fabric story. */
.dmn-book .dmn-book__price-row { align-items:center; display:flex; flex-wrap:wrap; gap:10px 18px; justify-content:space-between; margin:15px 0 0; min-width:0; }
.dmn-book .dmn-book__identity--with-cover .dmn-book__price-row { grid-area:price; }
.dmn-book .dmn-book__price-row .dmn-book__price { margin:0; }
.dmn-book .dmn-book__story-link { color:#645b4e; font-size:12px; line-height:1.4; text-decoration:underline; text-underline-offset:3px; text-decoration-color:#b6a890; }
.dmn-book .dmn-book__editorial { scroll-margin-top:90px; }

.dmn-book .dmn-book__selector .dmn-book__color-filter { margin-top:12px; }

/* Place the collection-details link beneath the book cover. */
.dmn-book .dmn-book__cover .dmn-book__story-link { display:block; font-size:11px; line-height:1.4; margin-top:32px; text-align:center; }
@media (max-width:760px) { .dmn-book .dmn-book__cover .dmn-book__story-link { font-size:10px; margin-top:18px; } }

/* Collection story and selected-cloth chapter. */
.dmn-book .dmn-book__editorial { display:block; }
.dmn-book .dmn-book__story-opening { align-items:start; display:grid; gap:clamp(48px,9vw,140px); grid-template-columns:minmax(0,.72fr) minmax(0,1fr); }
.dmn-book .dmn-book__editorial-image img { display:block; height:auto; max-height:590px; object-fit:contain; }
.dmn-book .dmn-book__editorial-copy { align-self:center; min-width:0; }
.dmn-book .dmn-book__editorial-copy h2 { margin:18px 0 24px; }
.dmn-book .dmn-book__editorial-copy p:not(.dmn-book__eyebrow) { margin:0 0 15px; max-width:570px; }
.dmn-book .dmn-book__editorial-copy p.dmn-book__story-lead { color:#393b34; font-size:16px; }
.dmn-book .dmn-book__story-facts { border-top:1px solid var(--book-line); display:grid; gap:0 20px; grid-template-columns:repeat(2,minmax(0,1fr)); margin:28px 0 0; max-width:570px; }
.dmn-book .dmn-book__story-facts div { border-bottom:1px solid var(--book-line); min-width:0; padding:12px 0; }
.dmn-book .dmn-book__story-facts dt { color:#8a7c66; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
.dmn-book .dmn-book__story-facts dd { color:var(--book-ink); font-size:13px; margin:4px 0 0; overflow-wrap:anywhere; }
.dmn-book .dmn-book__story-cloth { align-items:center; border-top:1px solid var(--book-line); display:grid; gap:clamp(32px,7vw,100px); grid-template-columns:minmax(0,.72fr) minmax(0,1fr); margin-top:75px; padding-top:60px; }
.dmn-book .dmn-book__story-cloth-image { background:#eeeae1; display:flex; justify-content:center; min-height:180px; align-items:center; overflow:hidden; }
.dmn-book .dmn-book__story-cloth-image img { display:block; height:auto; max-height:340px; object-fit:contain; width:100%; }
.dmn-book .dmn-book__story-cloth-image span { color:#716c61; font-size:12px; padding:24px; }
.dmn-book .dmn-book__story-cloth-copy h3 { color:var(--book-ink); font:400 clamp(26px,3vw,38px)/1.2 'Playfair Display',Georgia,serif; letter-spacing:-.025em; margin:16px 0; }
.dmn-book .dmn-book__story-cloth-copy h3 span { color:#887960; display:block; font:italic 18px/1.5 'Playfair Display',Georgia,serif; letter-spacing:0; margin-top:6px; }
.dmn-book .dmn-book__story-cloth-copy > p:not(.dmn-book__eyebrow) { color:#716c61; font-size:14px; line-height:1.9; margin:0 0 22px; max-width:500px; }
@media(max-width:760px) {
 .dmn-book .dmn-book__story-opening, .dmn-book .dmn-book__story-cloth { gap:28px; grid-template-columns:minmax(0,1fr); }
 .dmn-book .dmn-book__editorial-image img { max-height:460px; }
 .dmn-book .dmn-book__story-cloth { margin-top:48px; padding-top:38px; }
 .dmn-book .dmn-book__story-cloth-image img { max-height:330px; }
 .dmn-book .dmn-book__story-facts { margin-top:24px; }
}

/* The book cover and its caption lead to the collection story. */
.dmn-book .dmn-book__cover-link { display:block; line-height:0; }

/* Inquiry and sharing sit together while the Woo form retains its controls. */
.dmn-book .dmn-book__purchase-actions { align-items:end; display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:16px; width:min(90%,380px); }
.dmn-book .dmn-book__purchase-actions [data-book-purchase], .dmn-book .dmn-book__purchase-actions .dmn-book__secondary { min-width:0; }
.dmn-book .dmn-book__purchase-actions .single_add_to_cart_button { margin-top:0; min-width:0; padding-left:8px; padding-right:8px; width:100%; }
.dmn-book .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action { min-width:0; padding-left:8px; padding-right:8px; }

.dmn-book .dmn-book__tailoring--inquiry { margin-bottom:0; }
.dmn-book .dmn-book__purchase-actions:has(table.variations:not([hidden])) { grid-template-columns:1fr; }
@media(max-width:380px) { .dmn-book .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action { font-size:10px; letter-spacing:.04em; } }

/* Brand-first collection story: the artwork is illustrative; the cover is real. */
.dmn-book .dmn-book__selector { scroll-margin-top:90px; }
.dmn-book .dmn-book__story-opening { align-items:center; gap:clamp(36px,6vw,96px); grid-template-columns:minmax(0,.82fr) minmax(0,1fr); }
.dmn-book .dmn-book__editorial .dmn-book__story-composite { align-items:center; background:#ddd4c5; display:flex; isolation:isolate; justify-content:center; margin:0; min-height:clamp(380px,45vw,620px); overflow:hidden; padding:clamp(26px,4.5vw,70px); position:relative; }
.dmn-book .dmn-book__editorial .dmn-book__story-composite:before { background:linear-gradient(135deg,rgba(41,36,29,.24),rgba(45,38,30,.08)); content:''; inset:0; position:absolute; z-index:0; }
.dmn-book .dmn-book__editorial .dmn-book__story-composite .dmn-book__story-background { height:100%; inset:0; max-height:none; object-fit:cover; position:absolute; width:100%; z-index:-1; }
.dmn-book .dmn-book__editorial .dmn-book__story-composite .dmn-book__story-book-cover { box-shadow:0 14px 38px rgba(30,24,18,.28); display:block; height:auto; max-height:460px; max-width:65%; object-fit:contain; position:relative; width:auto; z-index:1; }
.dmn-book .dmn-book__house-copy { align-self:center; }
.dmn-book .dmn-book__book-chapter { border-top:1px solid var(--book-line); display:grid; gap:clamp(36px,6vw,96px); grid-template-columns:minmax(0,.82fr) minmax(0,1fr); margin-top:clamp(55px,7vw,100px); padding-top:clamp(48px,6vw,80px); }
.dmn-book .dmn-book__book-chapter-heading h3 { color:var(--book-ink); font:400 clamp(30px,3.4vw,46px)/1.13 'Playfair Display',Georgia,serif; letter-spacing:-.035em; margin:18px 0 0; }
.dmn-book .dmn-book__book-chapter-copy { min-width:0; }
.dmn-book .dmn-book__book-chapter-copy > p { color:#716c61; font-size:14px; line-height:1.9; margin:0 0 15px; max-width:570px; }
.dmn-book .dmn-book__book-chapter-copy > p.dmn-book__story-lead { color:#393b34; font-size:16px; }
.dmn-book .dmn-book__explore-fabrics { color:#51483b; display:inline-block; font-size:11px; letter-spacing:.08em; margin-top:26px; text-decoration:underline; text-underline-offset:5px; text-transform:uppercase; }
@media(max-width:760px) {
 .dmn-book .dmn-book__story-opening, .dmn-book .dmn-book__book-chapter { gap:28px; grid-template-columns:minmax(0,1fr); }
 .dmn-book .dmn-book__editorial .dmn-book__story-composite { min-height:360px; padding:30px; }
 .dmn-book .dmn-book__editorial .dmn-book__story-composite .dmn-book__story-book-cover { max-height:360px; max-width:70%; }
 .dmn-book .dmn-book__book-chapter { margin-top:48px; padding-top:38px; }
}
@media(max-width:380px) { .dmn-book .dmn-book__editorial .dmn-book__story-composite { min-height:320px; } }

.dmn-book .dmn-book__story-image-caption { background:rgba(34,30,25,.68); bottom:12px; color:#fff; font-size:10px; font-style:normal; letter-spacing:.025em; line-height:1.4; padding:4px 7px; position:absolute; right:12px; z-index:2; }

.dmn-book .dmn-book__story-source { color:#756a59; display:inline-block; font-size:11px; line-height:1.5; margin-top:7px; text-decoration:underline; text-underline-offset:4px; }

/* Keep the illustrative image above the figure background and behind the cover. */
.dmn-book .dmn-book__editorial .dmn-book__story-composite .dmn-book__story-background { z-index:0; }
.dmn-book .dmn-book__editorial .dmn-book__story-composite:before { z-index:1; }
.dmn-book .dmn-book__editorial .dmn-book__story-composite .dmn-book__story-book-cover { z-index:2; }
.dmn-book .dmn-book__story-image-caption { z-index:3; }
/* Product fabric viewer: same fitted 1x canvas, gestures and scrollbars as the fitting room. */
.dmn-book .dmn-book__dialog-body .dmn-book__fabric-view { --dmn-fabric-view-height: min(70vh, calc(100dvh - 225px)); position:relative; max-width:100%; margin:0 auto; }
.dmn-book .dmn-book__dialog-body .dmn-book__fabric-canvas { display:block; max-width:100%; height:auto; margin:0 auto; touch-action:none; cursor:grab; }
.dmn-book .dmn-book__dialog-body .dmn-book__fabric-canvas.is-dragging { cursor:grabbing; }
.dmn-book .dmn-book__dialog-body > img[hidden], .dmn-book .dmn-book__dialog-body .dmn-book__fabric-view[hidden], .dmn-book .dmn-book__dialog-body .dmn-book__fabric-canvas[hidden], .dmn-book .dmn-book__dialog-body .dmn-book__fabric-hint[hidden], .dmn-book .dmn-book__dialog-body .dmn-book__fabric-scroll[hidden] { display:none !important; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll { -webkit-appearance:none; appearance:none; position:absolute; z-index:2; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; cursor:pointer; touch-action:none; opacity:.9; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--horizontal { left:8px; bottom:2px; width:calc(100% - 36px); min-width:0; height:24px; min-height:0; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--vertical { right:2px; top:8px; width:24px; min-width:0; height:calc(100% - 36px); min-height:0; writing-mode:vertical-lr; direction:ltr; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll::-webkit-slider-runnable-track { background:rgba(20,20,18,.58); border-radius:8px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--horizontal::-webkit-slider-runnable-track { height:6px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--vertical::-webkit-slider-runnable-track { width:6px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; background:#eeeae2; border:1px solid rgba(42,38,32,.55); border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.35); }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--horizontal::-webkit-slider-thumb { width:var(--dmn-fabric-scroll-thumb,32px); height:12px; margin-top:-3px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--vertical::-webkit-slider-thumb { width:12px; height:var(--dmn-fabric-scroll-thumb,32px); margin-left:-3px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll::-moz-range-track { background:rgba(20,20,18,.58); border:0; border-radius:8px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--horizontal::-moz-range-track { height:6px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--vertical::-moz-range-track { width:6px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll::-moz-range-thumb { background:#eeeae2; border:1px solid rgba(42,38,32,.55); border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.35); }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--horizontal::-moz-range-thumb { width:var(--dmn-fabric-scroll-thumb,32px); height:12px; }
.dmn-book .dmn-book__dialog-body input.dmn-book__fabric-scroll--vertical::-moz-range-thumb { width:12px; height:var(--dmn-fabric-scroll-thumb,32px); }
.dmn-book .dmn-book__dialog-body .dmn-book__fabric-hint { margin:8px 0 0; color:#625d53; font:12px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
@media(max-width:760px) { .dmn-book .dmn-book__dialog-body .dmn-book__fabric-view { --dmn-fabric-view-height: min(70vh, calc(100dvh - 245px)); } }


/* A fixed, real fabric image introduces the collection chapter. */
.dmn-book .dmn-book__book-chapter-image { aspect-ratio:2 / 1; background:#eeeae1; display:block; height:auto; margin-top:30px; object-fit:cover; object-position:center; width:100%; }
@media(max-width:760px) { .dmn-book .dmn-book__book-chapter-image { margin-top:22px; } }


/* Keep the price and inquiry actions available while browsing the book. */
.dmn-book .dmn-book__price-row { align-items:center; background:var(--book-paper); flex-wrap:nowrap; gap:10px; padding:8px 0; position:sticky; top:calc(51px + var(--wp-admin--admin-bar--height, 0px)); z-index:20; }
.dmn-book .dmn-book__price-row .dmn-book__price { flex:1 1 auto; min-width:0; }
.dmn-book .dmn-book__price-row .dmn-book__purchase-actions { flex:0 1 min(68%,380px); margin:0 0 0 auto; min-width:0; width:min(68%,380px); }
@media(max-width:1024px) { .dmn-book .dmn-book__price-row { top:calc(69px + var(--wp-admin--admin-bar--height, 0px)); } }
@media(max-width:760px) { .dmn-book .dmn-book__layout > .dmn-book__price-row { align-self:stretch; width:100%; } .dmn-book .dmn-book__price-row .dmn-book__price { font-size:14px; line-height:1.25; } }
@media(max-width:430px) { .dmn-book .dmn-book__price-row .dmn-book__purchase-actions { gap:5px; } .dmn-book .dmn-book__price-row .single_add_to_cart_button, .dmn-book .dmn-book__price-row .dmn-book__secondary .dmn-book__action { font-size:9px; letter-spacing:0; padding-left:4px; padding-right:4px; } }
/* Keep native, unenhanced selects usable in the ordinary document flow. */
.dmn-book .dmn-book__price-row:has(table.variations:not([hidden])) { align-items:stretch; flex-wrap:wrap; position:static; }
.dmn-book .dmn-book__price-row:has(table.variations:not([hidden])) .dmn-book__purchase-actions { flex-basis:100%; width:100%; }
@media(max-width:1100px) { .dmn-book .dmn-book__price-row .dmn-book__price { font-size:14px; line-height:1.25; } .dmn-book .dmn-book__price-row .dmn-book__secondary .dmn-book__action { font-size:10px; letter-spacing:.02em; } }
@media(max-width:430px) { .dmn-book .dmn-book__price-row .dmn-book__secondary .dmn-book__action { font-size:9px; letter-spacing:0; } }
@media(max-width:430px) { .dmn-book .dmn-book__price-row .dmn-book__purchase-actions { flex:0 0 68%; } .dmn-book .dmn-book__price-row .single_add_to_cart_button, .dmn-book .dmn-book__price-row .dmn-book__secondary .dmn-book__action { font-size:10px; padding-left:2px; padding-right:2px; } }
/* Decorative family swatches; the text remains the accessible label. */
.dmn-book .dmn-book__color-tag[data-book-color-family] { gap:6px; }
.dmn-book .dmn-book__color-tag[data-book-color-family]::before { background:var(--dmn-tag-dot,#8c8578); border-radius:50%; content:''; flex:0 0 10px; height:10px; width:10px; }
.dmn-book .dmn-book__color-tag[data-book-color-family="black"] { --dmn-tag-dot:#272a2d; }
.dmn-book .dmn-book__color-tag[data-book-color-family="blue"] { --dmn-tag-dot:#3a5879; }
.dmn-book .dmn-book__color-tag[data-book-color-family="grey"] { --dmn-tag-dot:#929395; }
.dmn-book .dmn-book__color-tag[data-book-color-family="brown"] { --dmn-tag-dot:#805e49; }
.dmn-book .dmn-book__color-tag[data-book-color-family="beige"] { --dmn-tag-dot:#c9b697; }
.dmn-book .dmn-book__color-tag[data-book-color-family="light"] { --dmn-tag-dot:#ddd5c8; }
.dmn-book .dmn-book__color-tag[data-book-color-family="green"] { --dmn-tag-dot:#667b61; }
.dmn-book .dmn-book__color-tag[data-book-color-family="red"] { --dmn-tag-dot:#9b5055; }
.dmn-book .dmn-book__color-tag[data-book-color-family="purple"] { --dmn-tag-dot:#80647e; }
.dmn-book .dmn-book__color-tag[data-book-color-family="other"]::before { background:conic-gradient(#8b6b72,#a08263,#6a806e,#6b7c96,#8b6b72); }

/* Product gallery: swipe on touch, drag on desktop, or use the arrows. */
.dmn-book .dmn-book__gallery--slide .dmn-book__thumbs { display:none; }
.dmn-book .dmn-book__gallery--slide .dmn-book__stage { cursor:grab; touch-action:pan-y pinch-zoom; user-select:none; }
.dmn-book .dmn-book__gallery--slide .dmn-book__stage.is-dragging { cursor:grabbing; }
.dmn-book .dmn-book__gallery--slide .dmn-book__hero { display:block; will-change:transform; }
.dmn-book .dmn-book__stage .dmn-book__slide-clone { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 24%; pointer-events:none; will-change:transform; }
.dmn-book .dmn-book__gallery--slide .dmn-book__folio, .dmn-book .dmn-book__gallery--slide .dmn-book__counter { z-index:2; pointer-events:none; }
.dmn-book .dmn-book__gallery-arrow { position:absolute; z-index:3; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:38px; height:44px; padding:0; border:0; border-radius:0; background:#faf8f1df; color:#292b25; font:normal 30px/1 Georgia,serif; cursor:pointer; }
.dmn-book .dmn-book__gallery-arrow:hover { background:#eee9df; }
.dmn-book .dmn-book__gallery-arrow.is-prev { left:0; }
.dmn-book .dmn-book__gallery-arrow.is-next { right:0; }

/* Introduce the collection before the image gallery on mobile. */
@media(max-width:760px) {
  .dmn-book .dmn-book__layout > .dmn-book__identity { align-self:stretch; min-width:0; width:100%; }
  .dmn-book .dmn-book__layout > .dmn-book__gallery { margin-top:12px; }
}

/* The cart action is a temporary, non-interactive preview. */
.dmn-book [data-book-purchase] .dmn-book__cart-placeholder:disabled { opacity:1; }

/* Compact paired actions in the sticky product row. */
.dmn-book .dmn-book__price-row .dmn-book__purchase-actions .single_add_to_cart_button,
.dmn-book .dmn-book__price-row .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action { border-radius:5px; box-sizing:border-box; min-height:44px; padding-block:10px; }
@media(min-width:761px) {
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions { flex:0 1 min(64%,340px); width:min(64%,340px); }
}

/* A vertical gallery rail and a taller portrait frame. */
.dmn-book .dmn-book__gallery--slide { display:grid; grid-template-columns:58px minmax(0,1fr); grid-template-areas:'thumbs main'; gap:12px; align-items:start; }
.dmn-book .dmn-book__gallery--slide .dmn-book__stage { grid-area:main; width:100%; height:auto; min-height:0; max-height:none; aspect-ratio:4 / 5; }
.dmn-book .dmn-book__gallery--slide .dmn-book__thumbs { grid-area:thumbs; display:flex; flex-direction:column; align-items:stretch; gap:10px; margin:0; min-width:0; }
.dmn-book .dmn-book__gallery--slide .dmn-book__thumb { flex:none; width:100%; height:auto; aspect-ratio:4 / 5; }
.dmn-book .dmn-book__gallery--slide .dmn-book__image-note { display:none; }
@media(max-width:760px) {
  .dmn-book .dmn-book__gallery--slide { grid-template-columns:42px minmax(0,1fr); gap:9px; }
  .dmn-book .dmn-book__gallery--slide .dmn-book__stage { height:auto; max-height:none; aspect-ratio:3 / 5; }
}

/* Keep the portrait unobstructed in the narrower mobile frame. */
@media(max-width:760px) { .dmn-book .dmn-book__gallery--slide .dmn-book__folio { display:none; } }

/* Keep the sticky gallery clear of the fixed site header. */
@media(min-width:761px) {
  .dmn-book .dmn-book__gallery { top:calc(63px + var(--wp-admin--admin-bar--height, 0px)); }
}
@media(min-width:761px) and (max-width:1024px) {
  .dmn-book .dmn-book__gallery { top:calc(81px + var(--wp-admin--admin-bar--height, 0px)); }
}
@media(min-width:1025px) and (max-width:1150px) {
  .dmn-book .dmn-book__gallery { top:calc(104px + var(--wp-admin--admin-bar--height, 0px)); }
}

/* Extend the mobile sticky bar to both screen edges while retaining a comfortable content inset. */
@media(max-width:760px) {
  .dmn-book .dmn-book__layout > .dmn-book__price-row {
    box-sizing:border-box; width:111.111111%; margin:0 -5.555556%; padding:4px 5.555556% 6px;
  }
}
/* Main image viewer: content sits above the image and below navigation arrows. */
.dmn-book .dmn-book__stage .dmn-book__gallery-canvas {
  display:block; position:absolute; inset:0; width:100%; height:100%; z-index:1;
  cursor:zoom-in; user-select:none; -webkit-user-select:none;
}
.dmn-book .dmn-book__stage .dmn-book__gallery-canvas.is-zoomed { cursor:grab; }
.dmn-book .dmn-book__stage .dmn-book__gallery-canvas.is-dragging { cursor:grabbing; }
.dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls {
  position:absolute; z-index:4; display:flex; gap:3px; left:12px; bottom:13px;
}
.dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls[hidden],
.dmn-book .dmn-book__stage .dmn-book__gallery-scroll[hidden] { display:none !important; }
.dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button {
  display:grid; place-items:center; box-sizing:border-box; width:34px; height:34px;
  padding:0; border:0; border-radius:2px; background:#faf8f1ed; color:#272920;
  font:400 20px/1 Arial,sans-serif; cursor:pointer;
}
.dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button:hover { background:#eee9df; color:#272920; }
.dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button:disabled { opacity:.5; cursor:default; }
.dmn-book .dmn-book__stage .dmn-book__gallery-scroll {
  position:absolute; z-index:4; margin:0; padding:0; accent-color:#88765e; cursor:pointer;
}
.dmn-book .dmn-book__stage .dmn-book__gallery-scroll--horizontal {
  left:50%; bottom:53px; width:min(55%,240px); height:18px; transform:translateX(-50%);
}
.dmn-book .dmn-book__stage .dmn-book__gallery-scroll--vertical {
  top:12px; right:5px; height:min(28%,160px); width:18px; writing-mode:vertical-lr; direction:rtl;
}
@media(max-width:760px) {
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls { left:8px; bottom:9px; }
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button { width:32px; height:32px; }
  .dmn-book .dmn-book__stage .dmn-book__gallery-scroll--horizontal { bottom:47px; }
}


/* Native WooCommerce purchase controls in the existing compact price row. */
.woocommerce .dmn-book .dmn-book__purchase-actions form.cart .woocommerce-variation-add-to-cart { display:flex; align-items:stretch; gap:8px; }
.woocommerce .dmn-book .dmn-book__purchase-actions form.cart .quantity { flex:0 0 48px; margin:0; }
.woocommerce .dmn-book .dmn-book__purchase-actions form.cart .quantity .qty { box-sizing:border-box; width:48px; min-height:50px; margin:0; padding:8px 0; border:1px solid #c7bdad; border-radius:0; color:var(--book-ink); background:var(--book-paper); text-align:center; }
.woocommerce .dmn-book .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt { flex:1; width:auto; margin:0; background:var(--book-ink); color:#fff; border-color:var(--book-ink); }
.woocommerce .dmn-book .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:hover { background:#414536; border-color:#414536; }

/* Keep native options usable when a product needs controls beyond the illustrated cards. */
.woocommerce .dmn-book [data-book-purchase] table.variations:not([hidden]) select.woo-variation-raw-select { display:block!important; width:100%; min-height:44px; font:inherit; color:var(--book-ink); background:var(--book-paper); }

/* Keep the mobile purchase controls and image together while browsing fabrics. */
@media(max-width:760px) {
  .dmn-book {
    --book-mobile-top:0px;
    --book-mobile-row-height:60px;
    --book-mobile-dock-height:90px;
    --book-mobile-gallery-size:max(96px,min(65vh,calc(100vh - var(--book-mobile-top) - var(--book-mobile-row-height) - var(--book-mobile-dock-height) - 88px)));
  }
  .dmn-book .dmn-book__mobile-sticky {
    align-self:stretch;position:sticky;top:var(--book-mobile-top);z-index:30;
    display:flex;flex-direction:column;gap:8px;box-sizing:border-box;
    width:111.111111%;margin:0 -5.555556%;padding:4px 5.555556% 10px;
    background:var(--book-paper);border-bottom:1px solid var(--book-line);
  }
  .dmn-book .dmn-book__mobile-sticky > .dmn-book__price-row {
    position:static;top:auto;z-index:auto;width:100%;margin:0;padding:0;
  }
  .dmn-book .dmn-book__mobile-sticky > .dmn-book__gallery {
    position:static;top:auto;width:100%;height:var(--book-mobile-gallery-size);
    min-height:0;margin:0;align-items:stretch;grid-template-columns:52px minmax(0,1fr);
  }
  .dmn-book .dmn-book__mobile-sticky .dmn-book__gallery--slide .dmn-book__stage {
    width:var(--book-mobile-image-width,100%);height:100%;
    min-height:0;max-height:none;aspect-ratio:auto;justify-self:center;
  }
  .dmn-book .dmn-book__mobile-sticky .dmn-book__thumbs {
    height:100%;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;
    padding:4px;scrollbar-width:thin;scrollbar-color:var(--book-gold) var(--book-paper);
  }
  .dmn-book .dmn-book__selector,.dmn-book .dmn-book__tailoring,
  .dmn-book [data-book-swatch],.dmn-book .dmn-book__size-dropdown,.dmn-book .dmn-book__size-dropdown summary,
  .dmn-book .dmn-book__lapel-card,.dmn-book .dmn-book__lapel-card input {
    scroll-margin-top:calc(var(--book-mobile-top) + var(--book-mobile-row-height) + var(--book-mobile-gallery-size) + 28px);
  }
  @supports(height:1svh) {
    .dmn-book { --book-mobile-gallery-size:max(96px,min(65svh,calc(100svh - var(--book-mobile-top) - var(--book-mobile-row-height) - var(--book-mobile-dock-height) - 88px))); }
  }
}

/* One control family for quantity, purchase and sharing. */
.dmn-book .dmn-book__price-row .dmn-book__purchase-actions {
  align-items:center;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;
}
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .woocommerce-variation-add-to-cart {
  align-items:center;gap:6px;
}
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .quantity { flex:0 0 44px; }
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .quantity .qty {
  width:44px;height:44px;min-height:44px;margin:0;padding:6px 2px;
  border:1px solid #c7bdad;border-radius:5px;background:transparent;color:var(--book-ink);
  font-family:inherit;font-size:16px;font-weight:400;line-height:1.25;font-variant-numeric:tabular-nums;
  appearance:textfield;box-shadow:none;
}
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .qty::-webkit-inner-spin-button,
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .qty::-webkit-outer-spin-button { -webkit-appearance:none;margin:0; }
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt,
.dmn-book .dmn-book__price-row .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action {
  display:flex;align-items:center;justify-content:center;box-sizing:border-box;
  height:44px;min-height:44px;margin:0;padding:8px 6px;border:1px solid #c7bdad;border-radius:5px;
  background:transparent;color:var(--book-ink);box-shadow:none;opacity:1;
  font-family:inherit;font-size:10px;font-weight:500;line-height:1.3;letter-spacing:.025em;
  text-transform:uppercase;text-align:center;white-space:nowrap;
}
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:not(:disabled):not(.disabled):hover,
.dmn-book .dmn-book__price-row .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action:hover {
  background:#eee9df;border-color:#99815b;color:var(--book-ink);
}
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:disabled,
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt.disabled {
  background:#eee9df;border-color:#c7bdad;color:#6d624f;opacity:1;cursor:not-allowed;
}
@media(max-width:760px) {
  .dmn-book .dmn-book__price-row { gap:8px; }
  .dmn-book .dmn-book__price-row .dmn-book__price { flex:0 0 auto;white-space:nowrap; }
  .dmn-book .dmn-book__price-row .dmn-book__purchase-actions { flex:1 1 auto;width:auto;min-width:0; }
}
@media(max-width:360px) {
  .dmn-book .dmn-book__price-row { flex-wrap:wrap; }
  .dmn-book .dmn-book__price-row .dmn-book__price { flex-basis:100%; }
  .dmn-book .dmn-book__price-row .dmn-book__purchase-actions { flex-basis:100%;width:100%; }
}

/* Give the purchase row room above and below; keep the cart action black. */
.dmn-book .dmn-book__price-row { padding-block:12px; }
@media(max-width:760px) {
  .dmn-book .dmn-book__mobile-sticky > .dmn-book__price-row { padding-block:12px; }
}
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt,
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:disabled,
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt.disabled {
  background:#000;border-color:#000;color:#fff;opacity:1;
}
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:not(:disabled):not(.disabled):hover {
  background:#202020;border-color:#202020;color:#fff;
}
/* Product pages add one item; quantity remains editable in the cart. */
.woocommerce .dmn-book .dmn-book__price-row .dmn-book__purchase-actions form.cart .quantity { display:none!important; }

/* Give the price more emphasis and keep purchase actions compact. */
.dmn-book .dmn-book__price-row .dmn-book__price { font-size:22px;font-weight:500;line-height:1.2; }
.dmn-book .dmn-book__price-row .dmn-book__purchase-actions {
  grid-template-columns:104px max-content;justify-content:end;
}
@media(min-width:761px) {
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions { flex:0 0 auto;width:auto; }
}
@media(max-width:760px) {
  .dmn-book .dmn-book__price-row .dmn-book__price { font-size:20px; }
  .dmn-book .dmn-book__price-row .dmn-book__purchase-actions { flex:0 0 auto;width:auto; }
}

/* The unzoomed mobile image always preserves the complete composition. */
@media(max-width:760px) {
  .dmn-book .dmn-book__mobile-sticky .dmn-book__stage .dmn-book__hero { object-fit:contain;object-position:center; }
}

/* Keep the product photo free of the numeric gallery badge. */
.dmn-book .dmn-book__counter { display:none; }

/* Compact mobile sticky gallery: actions at left, complete photo at right. */
@media(max-width:760px) {
  .dmn-book .dmn-book__stage .dmn-book__gallery-arrow {
    width:44px;height:44px;padding:0;font-size:23px;
    background:linear-gradient(rgba(250,248,241,.68),rgba(250,248,241,.68)) center / 28px 34px no-repeat;
  }
  .dmn-book .dmn-book__stage .dmn-book__gallery-arrow:hover {
    background:linear-gradient(rgba(238,233,223,.82),rgba(238,233,223,.82)) center / 28px 34px no-repeat;
  }
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button {background:rgba(250,248,241,.65)}

}

/* Center the mobile image controls with compact translucent backgrounds. */
@media(max-width:760px) {
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls {
    left:50%;right:auto;bottom:8px;transform:translateX(-50%);gap:2px;
  }
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button {
    position:relative;isolation:isolate;display:grid;place-items:center;
    width:32px;height:32px;padding:0;background:transparent;border:0;
    color:#272920;font:400 18px/1 Arial,sans-serif;
  }
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button::before,
  .dmn-book .dmn-book__stage .dmn-book__gallery-arrow::before {
    content:'';position:absolute;z-index:-1;pointer-events:none;
    background:rgba(250,248,241,.65);border-radius:4px;
  }
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button::before {inset:2px}
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button:hover {background:transparent}
  .dmn-book .dmn-book__stage .dmn-book__gallery-arrow,
  .dmn-book .dmn-book__stage .dmn-book__gallery-arrow:hover {background:transparent}
  .dmn-book .dmn-book__stage .dmn-book__gallery-arrow {position:absolute;isolation:isolate}
  .dmn-book .dmn-book__stage .dmn-book__gallery-arrow::before {inset:7px 9px}
  .dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls button:hover::before,
  .dmn-book .dmn-book__stage .dmn-book__gallery-arrow:hover::before {background:rgba(238,233,223,.82)}
}

/* Mobile purchase row and expandable gallery preview. */
@media(max-width:760px) {
  .dmn-book {overflow-anchor:none}
  .dmn-book .dmn-book__mobile-sticky {
    position:static;display:flex;flex-direction:column;gap:0;
    padding:0 5.555556%;border:0;background:transparent;
  }
  .dmn-book .dmn-book__mobile-sticky > .dmn-book__price-row {
    position:static;top:auto;z-index:31;
    width:100%;padding-block:12px;background:var(--book-paper);
  }
  .dmn-book .dmn-book__price-spacer {display:none}
  .dmn-book.dmn-book--gallery-pinned .dmn-book__price-spacer {display:block;flex:none;height:var(--book-mobile-row-height)}
  .dmn-book.dmn-book--gallery-pinned .dmn-book__mobile-sticky > .dmn-book__price-row {
    position:fixed;left:0;right:0;top:var(--book-mobile-top);width:100%;
    box-sizing:border-box;padding:12px 5%;z-index:100001;
  }
  .dmn-book .dmn-book__gallery-slot {width:100%;min-width:0;margin-top:8px}
  .dmn-book .dmn-book__gallery-slot > .dmn-book__gallery,
  .dmn-book .dmn-book__gallery-preview-expanded > .dmn-book__gallery {
    position:static;top:auto;width:100%;height:var(--book-mobile-gallery-size);
    min-height:0;margin:0;align-items:stretch;grid-template-columns:52px minmax(0,1fr);
  }
  .dmn-book .dmn-book__gallery-preview[hidden],
  .dmn-book .dmn-book__gallery-preview-expanded[hidden] {display:none!important}
  .dmn-book .dmn-book__gallery-preview {
    position:fixed;left:0;right:0;top:calc(var(--book-mobile-top) + var(--book-mobile-row-height));
    z-index:100001;box-sizing:border-box;width:100%;background:var(--book-paper);
    border-bottom:1px solid var(--book-line);box-shadow:0 5px 16px rgba(39,36,30,.08);
  }
  .dmn-book .dmn-book__gallery-preview-bar {
    box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;
    min-height:var(--book-mobile-row-height);padding:5px 5%;
  }
  .dmn-book .dmn-book__gallery-preview-bar img {
    display:block;flex:none;width:44px;height:calc(var(--book-mobile-row-height) - 10px);
    max-height:58px;object-fit:contain;object-position:center;background:#eee9df;
  }
  .dmn-book .dmn-book__gallery-preview-bar button {
    display:inline-flex;align-items:center;justify-content:center;min-height:44px;
    margin:0;padding:8px 14px;border:1px solid #c7bdad;border-radius:5px;
    background:transparent;color:var(--book-ink);font-family:inherit;font-size:12px;font-weight:500;line-height:1.25;cursor:pointer;
  }
  .dmn-book .dmn-book__gallery-preview-bar button:hover {background:#eee9df}
  .dmn-book .dmn-book__gallery-preview-expanded {padding:0 5% 10px;box-sizing:border-box}
  .dmn-book.dmn-book--gallery-pinned :is(.dmn-book__selector,.dmn-book__tailoring,[data-book-swatch],.dmn-book__size-dropdown,.dmn-book__size-dropdown summary,.dmn-book__lapel-card,.dmn-book__lapel-card input) {
    scroll-margin-top:calc(var(--book-mobile-top) + var(--book-mobile-panel-height,136px) + 16px);
  }
}

/* The purchase row sticks from its original position; selection reveals the gallery. */
@media(max-width:760px) {
  .dmn-book .dmn-book__price-spacer {display:block;flex:none;height:0}
  .dmn-book.dmn-book--gallery-pinned .dmn-book__price-spacer {height:var(--book-mobile-row-height)}
  .dmn-book .dmn-book__gallery-preview {overflow:hidden}
  .dmn-book .dmn-book__gallery-preview:not(.is-closing) {animation:dmn-book-gallery-reveal .22s ease-out both}
  .dmn-book .dmn-book__gallery-preview.is-closing {pointer-events:none;animation:dmn-book-gallery-dismiss .18s ease-in both}
  .dmn-book .dmn-book__gallery-preview-expanded {padding:8px 5% 10px}
}
@keyframes dmn-book-gallery-reveal {
  from {opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(-8px)}
  to {opacity:1;clip-path:inset(0);transform:translateY(0)}
}
@keyframes dmn-book-gallery-dismiss {
  from {opacity:1;clip-path:inset(0);transform:translateY(0)}
  to {opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(-8px)}
}
@media(prefers-reduced-motion:reduce) {
  .dmn-book .dmn-book__gallery-preview:not(.is-closing),.dmn-book .dmn-book__gallery-preview.is-closing {animation:none}
}

/* A compact three-column thumbnail rail in the mobile sticky gallery. */
@media(max-width:760px) {
  .dmn-book .dmn-book__gallery-preview-expanded > .dmn-book__gallery {
    grid-template-columns:min(44%, 160px) minmax(0,1fr);
  }
  .dmn-book .dmn-book__gallery-preview-expanded .dmn-book__thumbs {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;
    align-content:start;gap:5px;
  }
}

/* The sticky gallery uses its thumbnail grid for image selection. */
@media(max-width:760px) {
  .dmn-book .dmn-book__gallery-preview-expanded .dmn-book__gallery-arrow {display:none}
}

/* Remove the mobile tap flash on sticky gallery and purchase controls. */
@media(max-width:760px) {
  .dmn-book .dmn-book__gallery-preview,
  .dmn-book .dmn-book__gallery-preview *,
  .dmn-book .dmn-book__price-row,
  .dmn-book .dmn-book__price-row * {-webkit-tap-highlight-color:transparent}
}

/* Show a clean selected-fabric preview while the verified product loads. */
@media(max-width:760px){
  .dmn-book .dmn-book__gallery-preview .dmn-book__gallery-pending {
    position:absolute;inset:0;z-index:9;display:grid;grid-template-columns:min(44%,160px) minmax(0,1fr);
    gap:9px;box-sizing:border-box;padding:8px 5% 10px;background:var(--book-paper);pointer-events:none;
  }
  .dmn-book .dmn-book__gallery-pending-rail {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;
    gap:5px;padding:4px;overflow:hidden;
  }
  .dmn-book .dmn-book__gallery-pending-rail span {display:block;aspect-ratio:4/5;background:#eee9df}
  .dmn-book .dmn-book__gallery-pending-photo {position:relative;min-width:0;min-height:0;background:#eee9df}
  .dmn-book .dmn-book__gallery-pending-photo img {width:100%;height:100%;display:block;object-fit:contain;object-position:center}
  .dmn-book .dmn-book__gallery-pending-photo img[hidden] {display:none}
  .dmn-book.dmn-book--pending-gallery .dmn-book__price-row .dmn-book__price {visibility:hidden}
}

/* Show four fabric choices per row on the collection product page. */
.dmn-book .dmn-book__swatches {grid-template-columns:repeat(4,minmax(0,1fr))}

/* Desktop uses five fabric swatches per row. */
@media(min-width:761px) {
  .dmn-book .dmn-book__swatches {grid-template-columns:repeat(5,minmax(0,1fr))}
}

/* Mobile uses three fabric swatches per row. */
@media(max-width:760px) {
  .dmn-book .dmn-book__swatches {grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Once the pending preview is open, cross into the loaded gallery without a second slide. */
@media(max-width:760px) {
  .dmn-book .dmn-book__gallery-preview.is-loaded-handoff:not(.is-closing) {animation:none}
  .dmn-book .dmn-book__gallery-preview.is-loaded-handoff:not(.is-closing) .dmn-book__gallery-preview-expanded {
    animation:dmn-book-gallery-loaded-fade .22s ease-out both;
  }
}
@keyframes dmn-book-gallery-loaded-fade {from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce) {
  .dmn-book .dmn-book__gallery-preview.is-loaded-handoff:not(.is-closing) .dmn-book__gallery-preview-expanded {animation:none}
}

/* Keep the mobile price and purchase actions together when options are enhanced. */
@media(max-width:430px) {
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) {
    flex-wrap:nowrap;gap:6px;
  }
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__price {
    flex:0 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere;
    font-size:clamp(15px,5vw,20px);
  }
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions {
    flex:1 1 auto;width:auto;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
  }
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt,
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action {
    width:100%;height:auto;min-height:44px;padding-inline:3px;white-space:normal;overflow-wrap:anywhere;line-height:1.15;
  }
}

/* Keep the mobile gallery still and fade the loading cover into the ready image. */
@media(max-width:760px) {
  .dmn-book .dmn-book__gallery-preview:not(.is-closing) {animation:none}
  .dmn-book .dmn-book__gallery-preview.is-closing {animation:dmn-book-gallery-close-fade .16s ease-out both}
  .dmn-book .dmn-book__gallery-preview.is-loaded-handoff:not(.is-closing) .dmn-book__gallery-preview-expanded {animation:none}
  .dmn-book .dmn-book__gallery-preview .dmn-book__gallery-pending.is-handoff-cover {
    animation:dmn-book-pending-cover-fade .18s ease-out forwards;
  }
}
@keyframes dmn-book-gallery-close-fade {from{opacity:1}to{opacity:0}}
@keyframes dmn-book-pending-cover-fade {from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce) {
  .dmn-book .dmn-book__gallery-preview.is-closing,
  .dmn-book .dmn-book__gallery-preview .dmn-book__gallery-pending.is-handoff-cover {animation:none}
}

/* Compact visual buttons with full-size mobile touch targets. */
@media(max-width:760px) {
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__price {
    flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere;
  }
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions {
    flex:0 1 min(64%,200px);width:min(64%,200px);min-width:0;
    grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;
  }
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt,
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:disabled,
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt.disabled,
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:hover,
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:focus {
    position:relative;isolation:isolate;z-index:0;box-sizing:border-box;width:100%;min-height:44px;
    padding-inline:5px;border-color:transparent;background:transparent;color:#fff;
  }
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action,
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action:hover,
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action:focus {
    position:relative;isolation:isolate;z-index:0;box-sizing:border-box;width:100%;min-height:44px;
    padding-inline:5px;border-color:transparent;background:transparent;color:var(--book-ink);
  }
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt::before,
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action::before {
    content:'';position:absolute;z-index:-1;inset:4px 3px;border-radius:5px;pointer-events:none;
  }
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt::before {background:#000}
  .woocommerce .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions form.cart .single_add_to_cart_button.button.alt:not(:disabled):not(.disabled):hover::before {background:#202020}
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action::before {box-sizing:border-box;border:1px solid #c7bdad;background:var(--book-paper)}
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action:hover::before {background:#eee9df}
}
@media(max-width:430px) {
  .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__purchase-actions .dmn-book__secondary .dmn-book__action {
    font-size:9px;letter-spacing:0;
  }
}

/* Keep Thai-baht prices legible on one line in the compact mobile row. */
@media(max-width:430px) {
  html:lang(th) .dmn-book .dmn-book__price-row:not(:has(table.variations:not([hidden]))) .dmn-book__price {
    font-size:clamp(13px,4.3vw,16px);
  }
}

/* The product image remains zoomable by gesture and keyboard. */
.dmn-book .dmn-book__stage .dmn-book__gallery-zoom-controls {display:none!important}

/* Images are selected through the gallery thumbnails. */
.dmn-book .dmn-book__stage .dmn-book__gallery-arrow {display:none!important}

/* Standalone trouser measurements share the book selector's established style. */
.dmn-book[data-book-garment="trousers"] .dmn-book__size-head,
.dmn-book[data-book-garment="trousers"] .dmn-book__size-row{grid-template-columns:1fr 1fr}
