/* All selectors are confined to new verified Encore cards, model pages and zoom dialogs. */
.cm-encore-model{max-width:1920px;margin:0 auto;padding:18px 18px 45px}
.cm-encore-model .cm-model-intro{text-align:center;margin:0 auto 20px;max-width:1050px}
.cm-encore-model .cm-model-intro h1{font-size:clamp(25px,3vw,38px);line-height:1.25}
.cm-encore-model .cm-model-hero{margin:0 auto 30px;max-width:1600px;background:transparent}
.cm-encore-model .cm-model-hero img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.cm-encore-model .cm-model-products>h2{text-align:center;margin:28px 0}
.cm-encore-model .product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}

/* Encore heading, authentic square photograph, then description and purchase controls. */
.product-grid>.card.cm-encore-card,.card.cm-encore-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;overflow:hidden}
/* Eight pixels of existing card spacing; no padding or border is added to the photograph. */
.card.cm-encore-card>.cm-encore-media{grid-column:1!important;grid-row:2!important;display:block!important;width:calc(100% - 16px)!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1!important;margin:8px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;align-self:start;appearance:none;cursor:zoom-in;overflow:hidden}
.card.cm-encore-card>.cm-encore-media>img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:1!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.card.cm-encore-card>.card-body{grid-column:1!important;grid-row:3!important;min-width:0;padding:20px}
.cm-encore-card .card-title{display:block;font-size:21.6px;line-height:1.3;font-weight:500;margin:0 0 15px;overflow-wrap:anywhere}
.cm-encore-card .card-meta{font-size:12px;letter-spacing:.06em;margin-bottom:7px}
.cm-encore-card .cm-info-block{margin:14px 0}
.cm-encore-card .cm-info-block h4{font-size:16px;font-weight:600;line-height:1.4;margin:0 0 6px}
.cm-encore-card .cm-block-text{font-size:14px;line-height:1.48;margin-top:5px;overflow-wrap:anywhere}
.cm-encore-card .cm-encore-variant{display:block;font-size:14px;font-weight:600;margin:16px 0}
.cm-encore-card .cm-encore-variant select{display:block;width:100%;max-width:100%;margin-top:7px;padding:10px 8px;font:inherit;border:1px solid #b8b4ac;background:#fff;border-radius:5px}
.cm-encore-card .cm-price-wrap{margin-top:18px}
.cm-encore-card .cm-price-wrap small{font-size:12px;line-height:1.45}
.cm-encore-card .card-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.cm-encore-card .card-actions .qty{width:65px}
.cm-encore-card .card-actions .btn{white-space:normal;max-width:100%}
.cm-encore-card .cm-collection-reference{margin:16px 0 0;font-size:13px;line-height:1.45}
.cm-encore-card .cm-model-link{color:#715833;text-decoration:underline;font-weight:600}
.cm-encore-card .cm-encore-media:focus-visible{outline:2px solid currentColor;outline-offset:-3px}

.cm-encore-lightbox{box-sizing:border-box;max-width:min(94vw,1000px);max-height:94vh;margin:auto;padding:0;border:0;background:transparent;overflow:visible}
.cm-encore-lightbox::backdrop{background:rgba(0,0,0,.76)}
.cm-encore-lightbox>img{display:block;width:auto;height:auto;max-width:min(92vw,900px);max-height:86vh;margin:0;object-fit:contain}
.cm-encore-lightbox>button{position:absolute;right:8px;top:8px;z-index:1;border:1px solid #c7c7c7;border-radius:4px;background:#fff;color:#222;font:inherit;padding:8px 14px;cursor:pointer}

@media(max-width:700px){
  .cm-encore-model{padding-left:8px;padding-right:8px}
  .cm-encore-model .product-grid{grid-template-columns:1fr}
  .cm-encore-model .cm-model-intro h1{font-size:27px}
}

.card.cm-encore-card>.cm-encore-heading{grid-column:1!important;grid-row:1!important;padding:20px 20px 0;text-align:center;min-width:0}

/* CM_ENCORE_HORIZONTAL_LAYOUT_20261008_BEGIN */
/* Photo on the left and all product text on the right, confined to Encore cards. */
.product-grid>.card.cm-encore-card,
.card.cm-encore-card{
  grid-template-columns:minmax(0,44%) minmax(0,56%)!important;
  grid-template-rows:auto 1fr!important;
  align-items:start!important;
}
.card.cm-encore-card>.cm-encore-heading{
  grid-column:2!important;
  grid-row:1!important;
  padding:20px 20px 0;
  text-align:left;
}
.card.cm-encore-card>.cm-encore-media{
  grid-column:1!important;
  grid-row:1 / 3!important;
  align-self:start;
}
.card.cm-encore-card>.card-body{
  grid-column:2!important;
  grid-row:2!important;
  padding:0 20px 20px;
}
@media(max-width:600px){
  .product-grid>.card.cm-encore-card,
  .card.cm-encore-card{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
  }
  .card.cm-encore-card>.cm-encore-media{
    grid-column:1!important;grid-row:1!important;
  }
  .card.cm-encore-card>.cm-encore-heading{
    grid-column:1!important;grid-row:2!important;padding:14px 18px 0;
  }
  .card.cm-encore-card>.card-body{
    grid-column:1!important;grid-row:3!important;padding:0 18px 18px;
  }
}
/* CM_ENCORE_HORIZONTAL_LAYOUT_20261008_END */

/* CM_ENCORE_MODEL_NAVIGATION_20261008_BEGIN */
.cm-encore-model-navigation{margin:0 0 28px;min-width:0}
.cm-encore-model-navigation>h2{font-size:24px;line-height:1.3;text-align:center;margin:0 0 20px}
.cm-encore-model-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.cm-encore-model-tile{min-width:0;text-align:center;border:1px solid #d1c6b4;background:#fff}
.cm-encore-model-tile[hidden],.cm-encore-model-navigation[hidden]{display:none!important}
.cm-encore-model-tile h3{font-size:20px;line-height:1.35;margin:18px 12px}
.cm-encore-model-tile a{display:block}
.cm-encore-model-tile img{display:block;width:100%;height:auto;aspect-ratio:1024/600;object-fit:contain}
.cm-encore-model-tile p{font-size:14px;line-height:1.45;margin:16px 12px}
.cm-encore-model .cm-encore-model-seo{max-width:1100px;margin:34px auto 0;font-size:16px;line-height:1.6}
@media(max-width:600px){.cm-encore-model-tiles{grid-template-columns:1fr}.cm-encore-model-navigation>h2{font-size:22px}}
/* CM_ENCORE_MODEL_NAVIGATION_20261008_END */


/* CM_ENCORE_SOFA_CENTER_LAST_20261008_BEGIN */
@media(min-width:601px){
.cm-encore-model-tiles>.cm-encore-model-tile-last{grid-column:1 / -1;justify-self:center;width:calc((100% - 20px) / 2)}
}
/* CM_ENCORE_SOFA_CENTER_LAST_20261008_END */

/* CM_ENCORE_SOFA_UNIFORM_THUMBNAILS_20261008_BEGIN */
.cm-encore-model-tile h3{box-sizing:border-box;height:72px;margin:0;padding:9px 12px;display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1.45}
.cm-encore-model-tile a{line-height:0}
.cm-encore-model-tile img{width:100%;height:auto;aspect-ratio:2 / 1;object-fit:cover;object-position:center}
.cm-encore-model-tile[data-encore-model-tile="matisse"] img{object-position:center bottom}
.cm-encore-model-tile p{box-sizing:border-box;height:50px;margin:0;padding:8px 12px;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1.3}
/* CM_ENCORE_SOFA_UNIFORM_THUMBNAILS_20261008_END */

/* CM_ENCORE_SOFA_PRICE_FILTER_20261008_BEGIN */
#cm-encore-model-price-filter[hidden],.cm-encore-model-no-results[hidden]{display:none!important}
.cm-encore-model-price-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cm-encore-model-price-inputs input{width:100%;min-width:0}
/* CM_ENCORE_SOFA_PRICE_FILTER_20261008_END */


/* CM_ENCORE_COORDINATED_LINKS_20261009 */
.cm-encore-coordinated{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 16px}.cm-encore-scene-link,.cm-encore-group-link{border:1px solid #b7aa95;background:#fff;padding:9px 12px;font:inherit;color:inherit;text-decoration:none;cursor:pointer}.cm-encore-scene-link:hover,.cm-encore-group-link:hover{text-decoration:underline}.cm-encore-scene-lightbox img{max-width:min(96vw,1200px);max-height:84vh;object-fit:contain}

/* CM_ENCORE_PRODUCT_DIALOG_20261009 */
.cm-encore-product-dialog{width:min(1180px,96vw);max-width:1180px;max-height:92vh;padding:18px;border:0;border-radius:4px;overflow:auto}.cm-encore-product-dialog::backdrop{background:rgba(0,0,0,.58)}.cm-encore-dialog-close{position:sticky;top:0;z-index:5;float:right;margin:0 0 10px 10px;padding:9px 14px;border:1px solid #aaa;background:#fff;cursor:pointer}.cm-encore-dialog-card{clear:both}.cm-encore-dialog-card .cm-encore-card{width:100%;max-width:none;margin:0;grid-template-columns:minmax(320px,48%) minmax(0,1fr)}.cm-encore-dialog-card .cm-encore-media img{width:100%;height:auto;max-height:720px;object-fit:contain}.cm-encore-dialog-card .card-body{font-size:1.04rem}@media(max-width:760px){.cm-encore-product-dialog{padding:10px}.cm-encore-dialog-card .cm-encore-card{grid-template-columns:1fr}}

/* CM_PHOTO_FIRST_SECONDARY_LINKS_20261009 */
.cm-encore-secondary-groups{margin:12px 0 14px;padding-top:9px;border-top:1px solid #e4ded4;font-size:.92rem}.cm-encore-secondary-groups strong{display:block;margin-bottom:5px}.cm-encore-secondary-groups a{color:#715833;text-decoration:underline;font-weight:600}

/* CM_ENCORE_PHOTO_LINKS_20261010 — only non-sofa Encore photo stacks */
.card.cm-encore-card>.cm-encore-photo-stack{grid-column:1!important;grid-row:1/3!important;min-width:0;align-self:start}.cm-encore-photo-stack>.cm-encore-media{width:100%;display:block}.cm-encore-photo-links{display:grid;gap:10px;padding:12px 18px 20px}.cm-encore-photo-links button,.cm-encore-photo-links a{font:inherit;font-size:14px;color:#715833;text-decoration:underline;background:none;border:0;padding:4px 0;text-align:left;cursor:pointer}.cm-encore-scene-choice{display:grid;gap:3px}.cm-encore-photo-gallery{width:min(1200px,96vw);max-width:96vw;max-height:94vh;overflow:auto;border:0;padding:18px}.cm-encore-photo-gallery::backdrop{background:rgba(0,0,0,.65)}.cm-encore-photo-gallery>button{position:sticky;top:0;z-index:2;padding:10px 18px;background:white;border:1px solid #999;cursor:pointer}.cm-encore-photo-gallery img{display:block;max-width:100%;max-height:85vh;width:auto;height:auto;object-fit:contain;margin:18px auto}@media(max-width:600px){.card.cm-encore-card>.cm-encore-photo-stack{grid-column:1!important;grid-row:1!important}}

/* CM_ENCORE_LINK_REVIEW_20261010 -- composition navigation only */
.cm-encore-coordinated{display:grid;gap:14px;margin:18px 0 12px;width:100%}
.cm-encore-combination-choice{display:grid;gap:9px;width:100%;min-width:0}
.cm-encore-combination-choice>strong{font-size:14px}
.cm-encore-combination-choice>.cm-encore-scene-link,.cm-encore-combination-choice>.cm-encore-group-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;width:100%;padding:12px 16px;border:1px solid #a99273;border-radius:4px;background:#faf8f4;color:#493d2e;font-family:inherit;line-height:1.4;font-size:16px;font-weight:600;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.cm-encore-combination-choice>.cm-encore-group-link{background:#eee7dd}
.cm-encore-combination-choice>button:hover,.cm-encore-combination-choice>a:hover{background:#e6ddcf;text-decoration:underline}
.cm-encore-combination-choice>button:focus-visible,.cm-encore-combination-choice>a:focus-visible{outline:2px solid #493d2e;outline-offset:3px}
.cm-encore-photo-links{padding:8px 14px 12px}
.cm-encore-photo-links>button{font-size:13px;line-height:1.5}
.cm-encore-full-photo{display:block;max-width:100%;text-align:center;color:#493d2e;margin:16px 0;cursor:zoom-in}
.cm-encore-full-photo img{width:auto;height:auto;max-width:100%;max-height:80vh;object-fit:contain;margin:0 auto 8px}
.cm-encore-full-photo span{font-size:13px;text-decoration:underline}
