/* Sample 5 · THE FITTING ROOM · homepage */
body.fit-page[data-page] { background: #fbf4ee; }
.fr { position: relative; overflow: hidden; color: #f7ece6; padding: 40px 0 56px;
  background: radial-gradient(70% 60% at 50% 40%, #3a2340, #1d1320 70%), #1d1320; }
.fr::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 70px); pointer-events: none; }
.fr-curtain { position: absolute; top: 0; bottom: 0; width: clamp(14px, calc((100vw - 1240px) / 2 - 6px), 140px); z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, #5b1f3a 0 14px, #7a2b4f 14px 22px, #4a1830 22px 34px); box-shadow: 0 0 40px rgba(0,0,0,.5); }
.fr-curtain.l { left: 0; border-right: 4px solid #fdc41b; } .fr-curtain.r { right: 0; border-left: 4px solid #fdc41b; }

.fr-in { position: relative; z-index: 2; display: grid; gap: 26px; align-items: center; }
@media (min-width: 1100px) { .fr-in { grid-template-columns: minmax(250px, 1fr) minmax(360px, 440px) minmax(280px, 330px); gap: 34px; } }
@media (min-width: 900px) and (max-width: 1099px) { .fr-in { grid-template-columns: 1fr 1fr; } .fr-copy { grid-column: 1 / -1; } }
.fr-door { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(253,196,27,.5); border-radius: 6px; padding: 6px 10px; color: rgba(255,255,255,.75); }
.fr-door b { color: #fdc41b; } .fr-door i { color: #ff8fb1; font-style: normal; }
.fr-copy h1 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 8.5vw, 6rem); line-height: .9; margin: 16px 0 14px; letter-spacing: 0; color: #fff; }
.fr-copy h1 span { color: #fdc41b; display: block; }
.fr-copy p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 420px; }
.fr-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.fr-shuffle { height: 54px; padding: 0 22px; border-radius: 999px; border: 0; background: #fdc41b; color: #111; font-weight: 800; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(253,196,27,.3); transition: transform .2s var(--spring); }
.fr-shuffle:hover { transform: translateY(-2px) rotate(-1deg); }
.fr-shuffle span { font-size: 1.3rem; }
.fr-tip { font-size: .85rem; color: rgba(255,255,255,.6); }

/* Mirror */
.fr-mirror-wrap { display: grid; place-items: center; }
.fr-mirror { position: relative; width: min(100%, 420px); aspect-ratio: 3 / 4.3; border-radius: 999px 999px 26px 26px / 210px 210px 26px 26px; padding: 14px; background: linear-gradient(135deg, #fdc41b, #b88a00 40%, #ffe27a 60%, #c79300); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1); }
@media (max-width: 480px) { .fr-mirror { border-radius: 999px 999px 22px 22px / 170px 170px 22px 22px; } }
.fr-bulbs { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fr-bulbs i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff6d6; box-shadow: 0 0 8px #ffe9a0, 0 0 22px rgba(255,214,110,.75); }
.spin .fr-bulbs i { animation: bulbs .5s infinite alternate; animation-delay: var(--d, 0s); }
@keyframes bulbs { to { background: #fdc41b; box-shadow: 0 0 4px #fdc41b; } }
.fr-glass { position: relative; height: 100%; border-radius: inherit; overflow: hidden; background: radial-gradient(80% 60% at 50% 35%, #f7eee6, #e4d4ca 70%, #cdb8ad); box-shadow: inset 0 0 40px rgba(0,0,0,.25); }
.fr-glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.4) 0 10%, transparent 10% 22%, rgba(255,255,255,.18) 22% 26%, transparent 26%); z-index: 2; }
.fr-floor { position: absolute; left: 18%; right: 18%; bottom: 4%; height: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,30,40,.35), transparent); }
.fr-sticker { position: absolute; right: 10%; top: 17%; transform: rotate(10deg); font-family: "Caveat", "Fraunces", cursive; font-style: italic; font-size: .9rem; color: #c43a6a; z-index: 3; }
.fr-stack { position: absolute; inset: 9% 8% 6%; display: flex; flex-direction: column; }
.fr-row { position: relative; flex: var(--w) 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.fr-row.r-extra { position: absolute; right: -4%; bottom: 22%; width: 30%; height: 20%; flex: none; z-index: 1; }
.fr-piece { height: 100%; width: 100%; border: 0; background: none; padding: 2px 0; display: grid; place-items: center; cursor: pointer; }
.fr-piece img { max-height: 100%; max-width: 82%; width: auto; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(60,30,40,.3)); transition: transform .3s var(--spring); }
.fr-piece img.solid { height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 3px solid #fff; }
.r-top .fr-piece img { max-width: 92%; }
.r-cap .fr-piece img { max-width: 50%; }
.r-shoes .fr-piece img { max-width: 52%; }
.fr-piece:hover img { transform: scale(1.04); }
.fr-piece img.in-r { animation: inR .38s var(--spring); }
.fr-piece img.in-l { animation: inL .38s var(--spring); }
@keyframes inR { from { transform: translateX(40%) rotate(6deg); opacity: 0; } }
@keyframes inL { from { transform: translateX(-40%) rotate(-6deg); opacity: 0; } }
.fr-row.spinning .fr-piece img { filter: blur(2px) drop-shadow(0 12px 12px rgba(60,30,40,.3)); transform: translateY(-3px); }
.fr-row.landed .fr-piece img { animation: landed .45s var(--spring); }
@keyframes landed { 0% { transform: translateY(-14px); } 60% { transform: translateY(3px); } }
.fr-row.off .fr-piece img { opacity: .22; filter: grayscale(1); }
.fr-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(29,19,32,.78); color: #fff; font-size: 1.3rem; line-height: 1; z-index: 3; display: grid; place-items: center; opacity: .0; transition: opacity .2s; }
.fr-arr.l { left: -6px; } .fr-arr.r { right: -6px; }
.fr-lock { position: absolute; right: 10%; top: 2px; z-index: 3; border: 0; background: rgba(255,255,255,.85); border-radius: 999px; width: 30px; height: 30px; font-size: .85rem; opacity: 0; transition: opacity .2s; }
.fr-row.locked .fr-lock { opacity: 1; background: #fdc41b; }
.fr-lbl { position: absolute; left: 0; top: 2px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: rgba(60,30,40,.55); opacity: 0; transition: opacity .2s; z-index: 3; }
.fr-row:hover .fr-arr, .fr-row.act .fr-arr, .fr-row:hover .fr-lock, .fr-row.act .fr-lock, .fr-row:hover .fr-lbl, .fr-row.act .fr-lbl { opacity: 1; }
@media (hover: none) { .fr-arr, .fr-lock, .fr-lbl { opacity: 1; } .fr-arr { width: 30px; height: 30px; background: rgba(29,19,32,.6); } }
.r-extra .fr-arr { width: 26px; height: 26px; font-size: 1rem; }
.r-extra .fr-arr.l { left: -14px; } .r-extra .fr-arr.r { right: -2px; }
.r-extra .fr-lock { right: 0; top: -14px; width: 26px; height: 26px; }
.r-extra .fr-lbl { top: -14px; left: 0; }

/* Ticket */
.fr-ticket { background: #fffaf3; color: #1d1320; border-radius: 18px; padding: 18px; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.4);
  -webkit-mask: radial-gradient(circle 10px at 0 64px, #0000 98%, #000) 0 0, radial-gradient(circle 10px at 100% 64px, #0000 98%, #000) 0 0; -webkit-mask-composite: source-in; mask-composite: intersect; }
.t-head { display: flex; justify-content: space-between; font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .02em; padding-bottom: 14px; border-bottom: 2px dashed #e4d4ca; margin-bottom: 8px; }
.t-head span:last-child { color: #c43a6a; }
.t-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.t-lines li { display: grid; grid-template-columns: 22px 46px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0e4dc; }
.t-lines li.off { opacity: .45; }
.t-lines img { width: 46px; height: 46px; object-fit: contain; background: #f4e7e0; border-radius: 10px; padding: 4px; }
.t-txt { min-width: 0; display: grid; line-height: 1.2; }
.t-txt small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #a08a92; font-weight: 800; }
.t-txt b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-txt em { font-style: normal; font-size: .8rem; color: #6b5a60; }
.t-lines select { height: 36px; border-radius: 10px; border: 1.5px solid #e4d4ca; background: #fff; padding: 0 6px; font-weight: 700; font-size: .85rem; max-width: 78px; }
.t-lines select.need { border-color: #c4372b; animation: qsShake .4s; }
.t-one { font-size: .75rem; color: #8a7a80; font-weight: 700; }
.t-on input { position: absolute; opacity: 0; }
.t-on span { display: block; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #1d1320; cursor: pointer; }
.t-on input:checked + span { background: #1d1320 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fdc41b' stroke-width='3'/%3E%3C/svg%3E") center / 14px no-repeat; }
.t-on input:focus-visible + span { outline: 3px solid #fdc41b; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; }
.t-total span { color: #6b5a60; font-weight: 700; }
.t-total b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 2rem; }
.t-err { color: #c4372b; font-weight: 700; font-size: .85rem; min-height: 1.2em; margin: 0 0 8px; }
.t-add { width: 100%; height: 54px; border: 0; border-radius: 999px; background: #1d1320; color: #fdc41b; font-weight: 800; font-size: 1rem; transition: transform .15s; }
.t-add:active { transform: scale(.97); }
.t-add.done { background: #1f9d55; color: #fff; }
.t-add:disabled { opacity: .4; }
.t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.t-row button, .t-row a { height: 44px; border-radius: 999px; border: 1.5px solid #1d1320; background: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: .85rem; color: #1d1320; }
.t-row svg { width: 18px; height: 18px; }
.t-row a svg { fill: #1f9d55; }
.t-note { text-align: center; font-size: .75rem; color: #8a7a80; margin: 12px 0 0; }

/* Ready-made looks */
.fr-presets { display: grid; gap: 14px; }
@media (min-width: 760px) { .fr-presets { grid-template-columns: repeat(3, 1fr); } }
.fr-preset { border: 0; text-align: left; background: #1d1320; color: #fff; border-radius: 22px; padding: 18px; display: grid; gap: 4px; cursor: pointer; transition: transform .3s var(--spring); }
.fr-preset:hover { transform: translateY(-4px) rotate(-.5deg); }
.pr-imgs { position: relative; height: 210px; margin-bottom: 10px; border-radius: 16px; background: radial-gradient(80% 70% at 50% 40%, #f7eee6, #dcc8bd); }
.pr-imgs img { position: absolute; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0,0,0,.25)); }
.pr-imgs .pi-top { left: 22%; top: 12%; width: 50%; height: 58%; }
.pr-imgs .pi-bottom { left: 50%; top: 30%; width: 26%; height: 64%; }
.pr-imgs .pi-cap { left: 6%; top: 8%; width: 24%; height: 22%; }
.pr-imgs .pi-shoes { left: 8%; bottom: 6%; width: 32%; height: 26%; }
.pr-imgs .pi-extra { right: 4%; bottom: 8%; width: 26%; height: 34%; }
.fr-preset b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .01em; }
.fr-preset small { color: rgba(255,255,255,.65); }
.fr-preset em { font-style: normal; color: #fdc41b; font-weight: 800; margin-top: 4px; }
.fr-abroad { background: #1d1320; color: #fff; }
.fr-abroad .btn-ghost { color: #fff; }
