/* Dressing: shared by ORELYS on the PC and the phone app.
   Clothes are shown like product shots in a photo studio: soft neutral backdrop, garment centred,
   a light contact shadow beneath it. The app around stays in its theme; only the "studio" is light. */
.dr { --studio: #f3f0eb; --studio-2: #e7e2da; --studio-ink: #2a2622; --studio-mute: #8a8178; --studio-line: rgba(42,38,34,.08);
  display: flex; flex-direction: column; gap: 16px; }
.dr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dr-head h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; } .dr-head small { color: var(--ink-mute); }
.dr-add { cursor: pointer; }
.dr-today { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px;
  background: var(--panel, rgba(255,255,255,.04)); border: 1px solid var(--stroke, rgba(255,255,255,.09)); }
.dr-weather { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.dr-weather b { font-size: 22px; font-weight: 600; } .dr-weather small { color: var(--ink-soft); font-size: 12px; }
.dr-x { all: unset; cursor: pointer; opacity: .6; }
.dr-occ { flex: 1; }
.dr-occ button, .dr-filter button, .dr-form .chips-row button { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--stroke, rgba(255,255,255,.1)); background: transparent; color: inherit; font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s; }
.dr button.on { border-color: var(--ink, #fff); background: var(--ink, #fff); color: var(--bg, #0b0b0b); }

/* outfits: one studio card per look */
.dr-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.dr-look { border-radius: 20px; overflow: hidden; background: var(--studio); border: 1px solid var(--studio-line);
  animation: drIn .6s var(--d) both cubic-bezier(.2,.8,.2,1); box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .3s, box-shadow .3s; }
.dr-look:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.24); }
@keyframes drIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dr-mannequin { position: relative; height: 300px; margin: 0 14px; background: radial-gradient(ellipse 60% 55% at 50% 42%, #fbf9f6 0%, var(--studio) 70%); }
.dr-mannequin::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4px; height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(60,45,30,.22), transparent 70%); }
.dr-mannequin img { position: absolute; left: 50%; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 6px 10px rgba(60,45,30,.18)); transition: transform .3s; }
.dr-to { top: 5%; height: 38%; z-index: 3; } .dr-ro { top: 5%; height: 68%; z-index: 3; } .dr-bo { top: 40%; height: 40%; z-index: 2; }
.dr-sh { bottom: 5%; height: 15%; z-index: 4; } .dr-co { top: 3%; height: 44%; left: 26% !important; z-index: 1; } .dr-ac { top: 3%; height: 14%; left: 80% !important; z-index: 5; }
.dr-look:hover .dr-mannequin img { transform: translateX(-50%) scale(1.02); }
.dr-look-txt { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px; border-top: 1px solid var(--studio-line); background: #faf8f5; color: var(--studio-ink); }
.dr-look-txt b { font-weight: 600; font-size: 14px; }
.dr-look-txt small { color: var(--studio-mute); font-size: 11.5px; line-height: 1.45; }
.dr-look-txt i { display: block; height: 3px; border-radius: 3px; background: var(--studio-ink); opacity: .75; margin-top: 4px; }

/* wardrobe grid: each garment on its own little studio backdrop */
.dr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.dr-item { all: unset; position: relative; cursor: pointer; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; box-sizing: border-box;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, #fbf9f6 0%, var(--studio) 72%, var(--studio-2) 100%); border: 1px solid var(--studio-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 8px 30px; transition: transform .25s, box-shadow .25s; }
.dr-item::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 30px; height: 10px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(60,45,30,.2), transparent 70%); }
.dr-item img { position: relative; z-index: 1; max-width: 82%; max-height: 78%; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(60,45,30,.16)); }
.dr-item span { position: absolute; top: 9px; left: 9px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.2); }
.dr-item em { position: absolute; top: 5px; right: 9px; color: #c9a227; font-style: normal; font-size: 14px; }
.dr-item small { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 8px; font-size: 11px; color: var(--studio-ink); text-align: center;
  background: rgba(250,248,245,.92); border-top: 1px solid var(--studio-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-item:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.2); }
.dr-empty { grid-column: 1 / -1; text-align: center; padding: 20px; }

/* garment sheet */
.dr-sheet { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px; border-radius: 18px; background: var(--panel-hi, #161311); border: 1px solid var(--stroke-hi, rgba(255,255,255,.18)); }
.dr-sheet img { width: 100%; height: 210px; object-fit: contain; padding: 14px; box-sizing: border-box; border-radius: 14px;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, #fbf9f6 0%, var(--studio) 72%, var(--studio-2) 100%); }
.dr-form { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 600px) { .dr-sheet { grid-template-columns: 1fr; } .dr-looks { grid-template-columns: 1fr 1fr; gap: 10px; } .dr-mannequin { height: 220px; margin: 0 8px; } }
/* phone app: full-screen dressing */
.dr-screen { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; padding: max(14px, env(safe-area-inset-top)) 14px 40px; }
.dr-screen .dr-close { position: sticky; top: 0; float: right; z-index: 2; }
