/* ==========================================================================
   VELIQ — “Shop this look” popup (any look, any category).
   Photo panel + pieces grouped by store, each with its own store link.
   ========================================================================== */
.slm[hidden] { display: none; }
.slm { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.slm-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 12, .55); backdrop-filter: blur(2px); }
.slm-dialog { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 48px); border-radius: 16px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: hidden; display: flex; animation: slm-in .22s ease-out; }
@keyframes slm-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.slm-close { position: absolute; z-index: 5; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: grid; place-items: center; color: var(--ink); }
.slm-close svg { width: 18px; height: 18px; }
.slm-body { flex: 1; min-width: 0; display: flex; }
.slm-loading { margin: auto; padding: 80px 20px; font-size: 15px; color: #6f6b66; }
body.slm-open { overflow: hidden; }

.slm-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 470fr) minmax(0, 710fr); }
.slm-photo { position: relative; min-height: 640px; max-height: calc(100vh - 48px); overflow: hidden; background: #3b2d20; color: #fff; }
.slm-photo-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slm-photo::before, .slm-photo::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; pointer-events: none; }
.slm-photo::before { top: 0; height: 45%; background: linear-gradient(180deg, rgba(30, 20, 10, .6), rgba(30, 20, 10, 0)); }
.slm-photo::after { bottom: 0; height: 50%; background: linear-gradient(0deg, rgba(30, 20, 10, .78), rgba(30, 20, 10, 0)); }
.slm-photo-top { position: absolute; z-index: 2; top: 26px; left: 26px; right: 26px; }
.slm-photo-top h2 { font-family: var(--sans); font-size: 26px; line-height: 34px; font-weight: 700; color: #fff; }
.slm-photo-top p { margin-top: 8px; font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, .92); }
.slm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.slm-tags li { height: 26px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 13px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); font-size: 12px; }
.slm-photo-bottom { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }
.slm-photo-bottom > b { display: block; font-size: 15px; font-weight: 700; }
.slm-feats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.slm-feats li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 6px; text-align: center; font-size: 11.5px; line-height: 15px; }
.slm-feats li + li { border-left: 1px solid rgba(255, 255, 255, .3); }
.slm-feats span { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.slm-feats svg { width: 19px; height: 19px; }
.slm-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.slm-thumbs button { height: 62px; border-radius: 6px; overflow: hidden; border: 1.5px solid transparent; background: #fff; }
.slm-thumbs button.is-active { border-color: #e6c9a4; }
.slm-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.slm-main { min-width: 0; max-height: calc(100vh - 48px); overflow-y: auto; padding: 26px 28px 28px; scrollbar-width: thin; }
.slm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-right: 48px; }
.slm-head h3 { font-family: var(--sans); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.slm-head p { margin-top: 4px; font-size: 14px; color: #6f6b66; }
.slm-total { flex: none; padding: 10px 16px; border-radius: 10px; background: #fbf6ef; border: 1px solid #f1e4d2; text-align: end; }
.slm-total small { display: block; font-size: 12px; color: #6f6b66; }
.slm-total b { display: block; margin-top: 2px; font-size: 21px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.slm-trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; padding: 12px 0; border-top: 1px solid #f0ebe5; border-bottom: 1px solid #f0ebe5; }
.slm-trust li { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12px; line-height: 16px; color: #3a3834; }
.slm-trust li + li { border-left: 1px solid #f0ebe5; }
.slm-trust svg { width: 22px; height: 22px; flex: none; color: #a8743f; }
.slm-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: #f8f4ee; font-size: 13px; color: #55524d; }
.slm-note svg { width: 17px; height: 17px; flex: none; color: #a8743f; }
.slm-empty { margin-top: 24px; font-size: 14.5px; color: #6f6b66; }
.slm-store { margin-top: 14px; border: 1px solid #f0ebe5; border-radius: 12px; overflow: hidden; }
.slm-store summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fcfaf7; cursor: pointer; list-style: none; }
.slm-store summary::-webkit-details-marker { display: none; }
.slm-store summary b { font-size: 15px; font-weight: 700; color: var(--ink); }
.slm-store summary span { font-size: 13px; color: #77736e; }
.slm-store summary > svg { width: 16px; height: 16px; margin-left: auto; transition: transform .2s; }
.slm-store[open] summary > svg { transform: rotate(180deg); }
.slm-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid #f3eee8; }
.slm-item-img { display: block; height: 100px; border-radius: 8px; overflow: hidden; background: #f7f3ee; }
.slm-item-img img { width: 100%; height: 100%; object-fit: cover; }
.slm-item-info { display: grid; gap: 4px; min-width: 0; }
.slm-item-info b { font-size: 15px; font-weight: 600; color: var(--ink); }
.slm-item-info small { font-size: 12.5px; color: #77736e; }
.slm-item-info strong { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.slm-item-info em { font-style: normal; font-size: 12.5px; color: #6f6b66; white-space: pre; }
.slm-buy { height: 42px; padding: 0 16px; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.slm-buy svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .slm { padding: 0; place-items: end stretch; }
  .slm-dialog { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .slm-grid { grid-template-columns: minmax(0, 1fr); overflow-y: auto; max-height: 94vh; }
  .slm-photo { min-height: 360px; max-height: none; }
  .slm-feats { display: none; }
  .slm-photo-bottom > b { display: none; }
  .slm-main { max-height: none; overflow: visible; padding: 20px 16px 24px; }
  .slm-head { flex-direction: column; padding-right: 0; }
  .slm-total { text-align: start; }
  .slm-trust { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .slm-trust li:nth-child(3) { border-left: 0; }
  .slm-item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .slm-item-img { height: 84px; }
  .slm-item-info em { white-space: normal; }
  .slm-buy { grid-column: 1 / -1; width: 100%; }
}
