/* Phòng thử phối đồ celeb.vn v1.0.0 */
#ptpd{--pt-bg:#F5F1EB;--pt-paper:#fff;--pt-stage:#ECE6DD;--pt-ink:#2B2622;--pt-muted:#6F665E;--pt-line:#DDD5CA;--pt-accent:#FDD00D;--pt-sale:#B3261E;--pt-bot:62px;
  font-family:Manrope,system-ui,-apple-system,sans-serif;color:var(--pt-ink);background:var(--pt-bg);font-size:15px;line-height:1.5;padding-bottom:84px}
#ptpd *{box-sizing:border-box}
#ptpd button{font-family:inherit;text-transform:none;letter-spacing:0;min-height:0;margin:0}
#ptpd .pt-wrap{max-width:1180px;margin:0 auto;padding:12px 16px 24px;display:grid;grid-template-columns:1fr;gap:16px}
#ptpd .pt-stagecol{position:relative}
#ptpd .pt-stage{position:relative;background:var(--pt-stage);border-radius:14px;aspect-ratio:4/5;max-height:58vh;width:100%;margin:0 auto;overflow:hidden}
#ptpd .pt-brand{position:absolute;left:14px;top:10px;font-family:"Cormorant Garamond",Georgia,serif;font-size:18px;letter-spacing:.08em;opacity:.5}
#ptpd .pt-stage img{position:absolute;left:50%;transform:translateX(-50%);object-fit:contain;transition:opacity .22s ease;max-width:none}
#ptpd .pt-top{top:4%;height:47%;width:84%;z-index:2;object-position:center bottom}
#ptpd .pt-bot{top:44%;height:53%;width:70%;z-index:1;object-position:center top}
#ptpd .pt-stage img.pt-fade{opacity:0}
#ptpd .pt-load{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--pt-muted);font-size:14px;text-align:center;padding:16px}
#ptpd .pt-head h1{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:clamp(28px,4.5vw,42px);line-height:1.1;margin:0}
#ptpd .pt-head p{margin:6px 0 0;color:var(--pt-muted);max-width:60ch}
#ptpd h2{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--pt-muted);margin:0 0 8px;font-weight:600}
#ptpd .pt-panel{display:flex;flex-direction:column;gap:14px;min-width:0}
#ptpd .pt-lookrow{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
#ptpd .pt-look{flex:0 0 auto;width:84px;background:none;border:0;padding:0;cursor:pointer;display:flex;flex-direction:column;gap:4px;color:inherit;font-size:12px;text-align:center}
#ptpd .pt-look span{line-height:1.3;display:block}
#ptpd .pt-card>*,#ptpd .pt-col span,#ptpd .pt-sum span,#ptpd .pt-row b{line-height:1.3}
#ptpd .pt-look img{width:84px;height:112px;object-fit:cover;object-position:top;border-radius:10px;background:var(--pt-stage)}
#ptpd .pt-seg{display:grid;grid-template-columns:1fr 1fr;background:var(--pt-paper);border:1px solid var(--pt-line);border-radius:999px;padding:4px}
#ptpd .pt-seg button{border:0;background:none;border-radius:999px;padding:9px 0;font-weight:600;font-size:15px;color:var(--pt-muted);cursor:pointer}
#ptpd .pt-seg button[aria-selected="true"]{background:var(--pt-ink);color:var(--pt-bg)}
#ptpd .pt-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
#ptpd .pt-chip{flex:0 0 auto;border:1px solid var(--pt-line);background:var(--pt-paper);color:var(--pt-ink);border-radius:999px;padding:6px 14px;font-size:13.5px;cursor:pointer}
#ptpd .pt-chip[aria-pressed="true"]{border-color:var(--pt-ink);box-shadow:inset 0 0 0 1px var(--pt-ink);font-weight:600}
#ptpd .pt-rail{display:grid;grid-auto-flow:column;grid-auto-columns:128px;gap:10px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory;scrollbar-width:thin}
#ptpd .pt-card{scroll-snap-align:start;background:var(--pt-paper);border:1.5px solid var(--pt-line);border-radius:10px;padding:8px;cursor:pointer;text-align:left;color:inherit;display:flex;flex-direction:column;gap:4px}
#ptpd .pt-card[aria-pressed="true"]{border-color:var(--pt-ink);box-shadow:inset 0 0 0 1px var(--pt-ink)}
#ptpd .pt-ph{display:block;background:var(--pt-stage);border-radius:6px;aspect-ratio:1;padding:8px;overflow:hidden}
#ptpd .pt-ph img{width:100%;height:100%;object-fit:contain;display:block}
#ptpd .pt-card b{font-size:12.5px;font-weight:600;line-height:1.3}
#ptpd .pt-ncol{font-size:11.5px;color:var(--pt-muted)}
#ptpd .pt-price{display:flex;flex-wrap:wrap;column-gap:5px;align-items:baseline;font-size:13px;font-variant-numeric:tabular-nums}
#ptpd .pt-price s{color:var(--pt-muted);font-size:12px}
#ptpd .pt-sale{color:var(--pt-sale);font-weight:700}
#ptpd .pt-picked{background:var(--pt-paper);border:1px solid var(--pt-line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}
#ptpd .pt-pk-name{display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap}
#ptpd .pt-pk-name a{color:var(--pt-ink);font-weight:600;font-size:14px;text-decoration:none;min-width:0}
#ptpd .pt-pk-name a:hover{text-decoration:underline}
#ptpd .pt-cols{display:flex;gap:8px;flex-wrap:wrap}
#ptpd .pt-col{width:62px;border:1px solid var(--pt-line);border-radius:8px;background:var(--pt-paper);padding:0 0 4px;cursor:pointer;display:flex;flex-direction:column;gap:3px;font-size:11px;line-height:1.2;color:var(--pt-ink);overflow:hidden}
#ptpd .pt-col img{width:100%;height:58px;object-fit:contain;background:var(--pt-stage);padding:4px}
#ptpd .pt-col[aria-pressed="true"]{border-color:var(--pt-ink);box-shadow:inset 0 0 0 1px var(--pt-ink);font-weight:600}
#ptpd .pt-onecol{font-size:13px;color:var(--pt-muted)}
#ptpd .pt-mini{position:fixed;right:12px;bottom:calc(var(--pt-bot) + 78px);z-index:9991;width:78px;height:112px;background:var(--pt-stage);border:1px solid var(--pt-line);border-radius:12px;box-shadow:0 6px 20px rgba(43,38,34,.18);padding:6px;cursor:pointer;display:flex;flex-direction:column;align-items:center}
#ptpd .pt-mini[hidden]{display:none}
#ptpd .pt-mini img{object-fit:contain;width:100%}
#ptpd .pt-mini .pt-mt{height:46%;object-position:center bottom}
#ptpd .pt-mini .pt-mb{height:54%;object-position:center top;width:80%}
#ptpd .pt-bar{position:fixed;left:0;right:0;bottom:var(--pt-bot);background:var(--pt-paper);border-top:1px solid var(--pt-line);z-index:9990}
#ptpd .pt-bar-in{max-width:1180px;margin:0 auto;padding:8px 16px;display:flex;gap:12px;align-items:center;justify-content:space-between}
#ptpd .pt-sum{min-width:0;font-size:12px;color:var(--pt-muted);line-height:1.35}
#ptpd .pt-sum span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ptpd .pt-sum strong{display:block;color:var(--pt-ink);font-size:17px;font-variant-numeric:tabular-nums}
#ptpd .pt-cta,#ptpd .pt-add{flex:0 0 auto;background:var(--pt-accent);color:#2B2622;border:0;border-radius:999px;padding:12px 18px;font-weight:700;font-size:14px;cursor:pointer}
#ptpd .pt-sheet{position:fixed;inset:0;z-index:10001}
#ptpd .pt-sheet[hidden]{display:none}
#ptpd .pt-sheet-bg{position:absolute;inset:0;background:rgba(20,16,12,.45)}
#ptpd .pt-sheet-card{position:absolute;left:0;right:0;bottom:0;max-height:88vh;overflow:auto;background:var(--pt-paper);border-radius:16px 16px 0 0;padding:18px 16px calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}
#ptpd .pt-x{position:absolute;right:10px;top:8px;border:0;background:none;font-size:26px;line-height:1;cursor:pointer;color:var(--pt-muted);padding:6px}
#ptpd .pt-row{display:grid;grid-template-columns:76px 1fr;gap:12px;align-items:start}
#ptpd .pt-row img{width:76px;height:76px;object-fit:contain;background:var(--pt-stage);border-radius:8px;padding:4px}
#ptpd .pt-row b{font-size:14px;display:block}
#ptpd .pt-sizes{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:13px;color:var(--pt-muted)}
#ptpd .pt-size{min-width:46px;border:1px solid var(--pt-line);background:var(--pt-paper);border-radius:8px;padding:8px 10px;font-weight:600;cursor:pointer;color:var(--pt-ink)}
#ptpd .pt-size[aria-pressed="true"]{background:var(--pt-ink);color:var(--pt-bg);border-color:var(--pt-ink)}
#ptpd .pt-size:disabled{opacity:.35;text-decoration:line-through;cursor:not-allowed}
#ptpd .pt-oos{width:100%;font-size:12.5px;color:var(--pt-sale)}
#ptpd .pt-msg{margin:0;font-size:13px;color:var(--pt-muted);min-height:1em}
#ptpd .pt-msg a{color:var(--pt-ink);font-weight:700}
#ptpd .pt-add{width:100%;padding:14px}
#ptpd .pt-add:disabled{opacity:.7}
#ptpd button:focus-visible,#ptpd a:focus-visible{outline:2px solid var(--pt-ink);outline-offset:2px}
html.pt-lock,html.pt-lock body{overflow:hidden}
@media (min-width:900px){
  #ptpd{--pt-bot:0px}
  #ptpd .pt-wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"stage head" "stage panel";grid-template-rows:auto 1fr;column-gap:32px;row-gap:16px;padding-top:24px}
  #ptpd .pt-head{grid-area:head}#ptpd .pt-stagecol{grid-area:stage}#ptpd .pt-panel{grid-area:panel}
  #ptpd .pt-stage{position:sticky;top:130px;max-height:calc(100vh - 220px)}
  #ptpd .pt-rail{grid-auto-flow:row;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));grid-auto-columns:auto;overflow:visible;scroll-snap-type:none}
  #ptpd .pt-sheet-card{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(520px,92vw);border-radius:16px}
}
@media (max-width:899px){
  #ptpd .pt-wrap{padding-top:8px;gap:10px}
  #ptpd .pt-head h1{font-size:24px}
  #ptpd .pt-head p{display:none}
  #ptpd .pt-stage{aspect-ratio:1/1;max-height:46svh}
  #ptpd .pt-looks{order:5}
}
@media (prefers-reduced-motion:reduce){#ptpd .pt-stage img{transition:none}}
