/* ==========================================================================
   Modal „Probaj u sobi“
   ========================================================================== */

.ifu-tryon {
	width: min(720px, 100vw); max-height: min(92vh, 940px); padding: 0; border: 0; border-radius: 28px;
	background: var(--ifu-ground); color: var(--ifu-ink); box-shadow: 0 40px 120px rgba(22, 21, 15, .35); overflow: auto;
}
.ifu-tryon[open] { animation: ifu-pop .4s var(--ifu-ease); display: flex; flex-direction: column; }
.ifu-tryon::backdrop { background: rgba(22, 21, 15, .55); backdrop-filter: blur(4px); }

/* Sve u modalu se pali i gasi atributom `hidden`, a dugmad imaju display iz
   svoje klase (.ifu-btn, .ifu-iconbtn su flex), koji pobeđuje podrazumevano
   `[hidden] { display: none }` pregledača. Bez ovoga se „Nazad“ videlo i kad
   nema kuda nazad, a „Okreni“ i „Dodaj sve u korpu“ i kad ne važe. */
.ifu-tryon [hidden] { display: none !important; }
@keyframes ifu-pop { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.ifu-tryon__head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 20px; background: var(--ifu-ground); border-bottom: 1px solid var(--ifu-line); }
.ifu-tryon__back { margin-left: -8px; }
.ifu-tryon__title { flex: 1; font-size: 22px; font-weight: 800; }

/* Traka koraka */
.ifu-t-steps { display: flex; gap: 6px; margin: 0; padding: 14px 16px 0; list-style: none; }
.ifu-t-steps__i { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ifu-muted-2); padding-bottom: 10px; border-bottom: 3px solid var(--ifu-line); transition: color .25s, border-color .25s; }
.ifu-t-steps__i span { width: 22px; height: 22px; flex-shrink: 0; border-radius: 999px; background: var(--ifu-sand); color: var(--ifu-muted); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ifu-t-steps__i.is-now { color: var(--ifu-ink); border-bottom-color: var(--ifu-accent); }
.ifu-t-steps__i.is-now span { background: var(--ifu-accent); color: #fff; }
.ifu-t-steps__i.is-done { color: var(--ifu-ink); border-bottom-color: var(--ifu-accent-soft); }
.ifu-t-steps__i.is-done span { background: var(--ifu-accent-soft); color: #fff; }

/* Izabrano — stoji kroz sve korake */
.ifu-tray { display: flex; align-items: center; gap: 10px; margin: 14px 16px 0; padding: 10px; border-radius: 18px; background: var(--ifu-paper); }
.ifu-tray[hidden] { display: none; }
.ifu-tray__list { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.ifu-tray__i { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 5px 30px 5px 5px; border-radius: 14px; background: var(--ifu-ground); }
.ifu-tray__i img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: var(--ifu-sand); }
.ifu-tray__i > span { font-size: 13px; font-weight: 700; white-space: nowrap; max-width: 13ch; overflow: hidden; text-overflow: ellipsis; }
.ifu-tray__x { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 20px; height: 20px; border: 0; border-radius: 999px; background: var(--ifu-sand); color: var(--ifu-muted); font-size: 15px; line-height: 1; cursor: pointer; }
.ifu-tray__x:hover { background: var(--ifu-ink); color: var(--ifu-paper); }

.ifu-tryon__screen { padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.ifu-tryon__screen[hidden] { display: none; }
.ifu-tryon__h { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.ifu-tryon__sub { font-size: 14px; color: var(--ifu-muted); }
.ifu-tryon__privacy { font-size: 12px; color: var(--ifu-muted-2); }
.ifu-tryon__tips { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ifu-muted); display: flex; flex-direction: column; gap: 6px; }
.ifu-tryon__gallery { align-self: center; cursor: pointer; }
.ifu-tryon__error { margin: 0 16px 16px; padding: 12px 16px; border-radius: 14px; background: #FBE9E4; color: #7A2A14; font-weight: 600; font-size: 14px; }
.ifu-tryon__error[hidden] { display: none; }
.ifu-tryon__note { padding: 12px 16px; border-radius: 14px; background: #E9ECFF; color: #1B2690; font-size: 14px; font-weight: 600; }
.ifu-tryon__note[hidden] { display: none; }

/* Ekran „Uslikaj sobu“ i kamera — vidi dno fajla. */

/* Katalog za izbor — više komada odjednom */
.ifu-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ifu-pick { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid transparent; border-radius: 20px; background: var(--ifu-paper); text-align: left; cursor: pointer; transition: border-color .2s, transform .2s var(--ifu-ease), box-shadow .2s; }
.ifu-pick:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 21, 15, .08); }
.ifu-pick.is-on { border-color: var(--ifu-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ifu-accent) 14%, transparent); }
.ifu-pick img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: var(--ifu-sand); }
.ifu-pick__t { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 4px; font-size: 13px; color: var(--ifu-muted-2); }
.ifu-pick__t strong { font-size: 14px; color: var(--ifu-ink); }
.ifu-pick__mark { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 999px; background: rgba(251, 249, 245, .94); color: var(--ifu-ink); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; box-shadow: 0 2px 8px rgba(22, 21, 15, .15); transition: background .2s, color .2s, transform .2s var(--ifu-ease); }
.ifu-pick.is-on .ifu-pick__mark { background: var(--ifu-accent); color: #fff; transform: scale(1.08); }
.ifu-pick:focus-visible { outline: 3px solid var(--ifu-accent); outline-offset: 2px; }

/* Dugme „Nastavi“ ostaje pri dnu dok se lista skroluje */
.ifu-tryon__bar { position: sticky; bottom: -24px; margin: 0 -16px -24px; padding: 14px 16px 18px; background: linear-gradient(to top, var(--ifu-ground) 70%, transparent); }
.ifu-tryon__bar .ifu-btn[disabled] { opacity: .45; pointer-events: none; }


/* Zameni nameštaj / Soba je prazna — prvi izbor na ekranu, ne kvačica ispod */
.ifu-t-seg { display: flex; padding: 4px; border-radius: 16px; background: var(--ifu-paper); }
.ifu-t-seg__b { flex: 1; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: var(--ifu-muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.ifu-t-seg__b:hover { color: var(--ifu-ink); }
.ifu-t-seg__b.is-on { background: var(--ifu-accent); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--ifu-accent) 30%, transparent); }
.ifu-t-seg__b:focus-visible { outline: 3px solid var(--ifu-accent); outline-offset: 2px; }

/* Fokusni zid — pokazuje se na fotografiji. Tri zone prate perspektivu sobe
   snimljene iz ugla: bočni zidovi se sužavaju ka sredini, zadnji je između. */
.ifu-walls { position: relative; line-height: 0; border-radius: 22px; overflow: hidden; background: var(--ifu-sand); }
.ifu-walls img { width: 100%; display: block; user-select: none; }
.ifu-wall { position: absolute; inset: 0; padding: 0; border: 0; background: rgba(42, 59, 214, .06); cursor: pointer; transition: background .15s; }
.ifu-wall:hover { background: rgba(42, 59, 214, .18); }
.ifu-wall.is-on { background: rgba(42, 59, 214, .28); }
.ifu-wall b { position: absolute; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: 13px; line-height: 1; font-weight: 700; color: var(--ifu-ink); background: rgba(251, 249, 245, .9); padding: 7px 11px; border-radius: 999px; box-shadow: 0 2px 10px rgba(22, 21, 15, .18); opacity: .75; transition: opacity .15s, background .15s, color .15s; }
.ifu-wall:hover b, .ifu-wall.is-on b { opacity: 1; }
.ifu-wall.is-on b { background: var(--ifu-accent); color: #fff; }
.ifu-wall:focus-visible { outline: 3px solid var(--ifu-accent); outline-offset: -3px; }

.ifu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ifu-chip { padding: 8px 14px; border: 1.5px solid var(--ifu-line); border-radius: 999px; background: var(--ifu-paper); color: var(--ifu-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.ifu-chip:hover { border-color: var(--ifu-ink); }
.ifu-chip.is-on { border-color: var(--ifu-accent); background: var(--ifu-accent); color: #fff; }

/* Soba, stil, šta je na zidu */
.ifu-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ifu-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ifu-muted); }
.ifu-field--wide { grid-column: 1 / -1; }
.ifu-field select, .ifu-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--ifu-line); border-radius: 14px; background: var(--ifu-paper); color: var(--ifu-ink); font: inherit; font-size: 15px; font-weight: 600; }
.ifu-field textarea { resize: vertical; min-height: 64px; font-weight: 500; }
.ifu-field select:focus, .ifu-field textarea:focus { outline: none; border-color: var(--ifu-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ifu-accent) 14%, transparent); }

/* Šta je u rezultatu */
.ifu-bought { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ifu-bought__i { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--ifu-paper); }
.ifu-bought__i img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: var(--ifu-sand); }
.ifu-bought__i > span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--ifu-muted-2); }
.ifu-bought__i strong { font-size: 14px; color: var(--ifu-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.ifu-tryon__scan { position: relative; border-radius: 24px; overflow: hidden; background: var(--ifu-sand); aspect-ratio: 4 / 3; }
.ifu-tryon__scan img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.95); }
.ifu-tryon__beam { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ifu-accent); box-shadow: 0 0 24px 6px color-mix(in srgb, var(--ifu-accent) 55%, transparent); animation: ifu-scan 1.6s ease-in-out infinite alternate; }
@keyframes ifu-scan { to { top: calc(100% - 3px); } }
.ifu-tryon__status { font-family: var(--ifu-display); font-size: 22px; font-weight: 800; }

.ifu-compare { position: relative; border-radius: 24px; overflow: hidden; background: var(--ifu-sand); touch-action: pan-y; }
.ifu-compare img { display: block; width: 100%; height: auto; }
.ifu-compare__after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ifu-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ifu-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .25); }
.ifu-compare__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 999px; background: #fff; color: var(--ifu-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: 2px; }
.ifu-compare__tag { position: absolute; top: 12px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(251, 249, 245, .92); font-size: 13px; font-weight: 700; display: flex; align-items: center; pointer-events: none; }
.ifu-compare__tag--l { left: 12px; }
.ifu-compare__tag--r { right: 12px; }
.ifu-compare__range:focus-visible + .ifu-compare__handle { box-shadow: 0 0 0 4px var(--ifu-accent); }

.ifu-tryon__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ifu-tryon__actions .ifu-btn { flex: 1 1 140px; }


/* CTA na strani proizvoda */
.ifu-tryon-cta {
	width: 100%; margin: 8px 0 20px; padding: 18px 22px; border: 0; border-radius: 22px; background: var(--ifu-accent); color: #fff;
	display: flex; align-items: center; gap: 16px; text-align: left; transition: transform .25s var(--ifu-ease), box-shadow .25s;
}
.ifu-tryon-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 36px color-mix(in srgb, var(--ifu-accent) 35%, transparent); }
.ifu-tryon-cta__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ifu-tryon-cta__text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ifu-tryon-cta__text strong { font-size: 19px; font-weight: 800; }
.ifu-tryon-cta__text small { font-size: 14px; color: #DCE0FF; }

/* Dugme na kartici u katalogu. Obrisano, ne puno: „Dodaj u korpu“ ispod njega
   ostaje glavna radnja kartice, a ovo je korak pre nje. */
.ifu-card-try {
	width: 100%; margin: 10px 0 8px; padding: 11px 14px; border: 1.5px solid var(--ifu-accent); border-radius: 999px;
	background: transparent; color: var(--ifu-accent); font: inherit; font-size: 14px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
	transition: background .2s, color .2s, transform .2s var(--ifu-ease), box-shadow .2s;
}
.ifu-card-try:hover { background: var(--ifu-accent); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--ifu-accent) 28%, transparent); }
.ifu-card-try:focus-visible { outline: 3px solid var(--ifu-accent); outline-offset: 3px; }
.ifu-card-try svg { flex-shrink: 0; }

@media (min-width: 640px) {
	.ifu-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.ifu-tryon { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
	.ifu-tryon__h { font-size: 28px; }
	.ifu-t-steps__i { font-size: 11px; gap: 5px; }
	.ifu-form { grid-template-columns: 1fr; }
	.ifu-wall b { font-size: 11px; padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.ifu-pick, .ifu-card-try, .ifu-pick__mark, .ifu-wall, .ifu-t-seg__b, .ifu-chip { transition: none; }
	.ifu-tryon[open] { animation: none; }
}

/* Proba iz korpe */
.ifu-cart-try { margin: 0 0 28px; }
.ifu-cart-try .ifu-tryon-cta { margin: 0; }
.ifu-tryon__pickhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ifu-tryon__pickhead .ifu-tryon__sub { margin: 0; }
.ifu-chip svg { vertical-align: -3px; }
.ifu-tryon__note--top { margin: 14px 16px 0; }
.ifu-tryon__note--admin { background: #FFF4DB; color: #6B4A00; } .ifu-tryon__note--admin a { color: inherit; font-weight: 800; }

/* Besplatne probe */
.ifu-quota { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ifu-muted); text-align: center; }
.ifu-quota a, .ifu-quota button { color: var(--ifu-accent); font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.ifu-limit { padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--ifu-accent) 9%, var(--ifu-paper)); display: flex; flex-direction: column; gap: 14px; }
.ifu-limit__msg { margin: 0; font-size: 15px; font-weight: 700; color: var(--ifu-ink); }
.ifu-limit__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ifu-limit__acts .ifu-btn { flex: 1 1 160px; }

/* ==========================================================================
   „Uslikaj sobu“: uputstvo kao u aplikaciji, dugmad kamere pri dnu
   ========================================================================== */

.ifu-shoot { gap: 18px; padding-top: 16px; }
.ifu-shoot__hero { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ifu-sand); box-shadow: inset 0 0 0 1px rgba(22, 21, 15, .06); }
.ifu-shoot__hero svg { display: block; width: 100%; height: 100%; }
.ifu-shoot__drophint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(251, 249, 245, .94); color: var(--ifu-accent); font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.ifu-shoot.is-over .ifu-shoot__hero { box-shadow: inset 0 0 0 3px var(--ifu-accent); }
.ifu-shoot.is-over .ifu-shoot__drophint { opacity: 1; }
.ifu-shoot__intro { display: flex; flex-direction: column; gap: 6px; }
.ifu-shoot__intro .ifu-tryon__h { font-size: 26px; }
.ifu-shoot__intro .ifu-tryon__sub { font-size: 15px; line-height: 1.5; margin: 0; }

.ifu-howto { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-radius: 20px; background: var(--ifu-paper); overflow: hidden; }
.ifu-howto__i { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.ifu-howto__i + .ifu-howto__i { border-top: 1px solid var(--ifu-line); }
.ifu-howto__ic { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--ifu-accent) 10%, var(--ifu-paper)); color: var(--ifu-accent); }
.ifu-howto__ic b { position: absolute; top: -5px; left: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ifu-accent); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--ifu-paper); }
.ifu-howto__t { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--ifu-muted-2); }
.ifu-howto__t strong { font-size: 15px; font-weight: 700; color: var(--ifu-ink); }

.ifu-examples__h { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ifu-muted-2); }
.ifu-examples__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ifu-examples__i { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ifu-muted-2); text-align: center; }
.ifu-examples__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ifu-sand); box-shadow: inset 0 0 0 2px #B3261E; }
.ifu-examples__img svg { display: block; width: 100%; height: 100%; }
.ifu-examples__img i { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: #B3261E; color: #fff; display: flex; align-items: center; justify-content: center; }
.ifu-examples__i.is-good { color: #1C7C4A; }
.ifu-examples__i.is-good .ifu-examples__img { box-shadow: inset 0 0 0 2px #1C7C4A; }
.ifu-examples__i.is-good .ifu-examples__img i { background: #1C7C4A; }

/* Dugmad kamere: uvek na dnu, pod palcem */
.ifu-shoot__bar { bottom: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ifu-ground) 82%, transparent); }
.ifu-shoot__bar .ifu-btn { gap: 10px; cursor: pointer; }
.ifu-shoot__bar .ifu-btn--outline { height: 50px; background: var(--ifu-paper); }
.ifu-shoot__bar .ifu-btn--lg { height: 56px; font-size: 16px; }
.ifu-shoot__cam { box-shadow: 0 10px 24px color-mix(in srgb, var(--ifu-accent) 32%, transparent); }
.ifu-shoot__err { margin: 0; padding: 12px 14px; border-radius: 14px; background: #FBE9E4; color: #7A2A14; font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Pregled fotografije */
.ifu-review { gap: 14px; padding-top: 16px; }
.ifu-review__img { border-radius: 22px; overflow: hidden; background: #0E0D09; }
.ifu-review__img img { display: block; width: 100%; max-height: 40vh; object-fit: contain; }
.ifu-review__checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ifu-review__c { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ifu-paper); font-size: 14px; line-height: 1.4; font-weight: 600; }
.ifu-review__c i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 800; color: #fff; background: #1C7C4A; }
.ifu-review__c.is-warn { background: #FFF4DB; color: #5A3E00; }
.ifu-review__c.is-warn i { background: #C98A00; }
.ifu-review__c.is-ask i { background: var(--ifu-accent); }

/* Kamera uživo (računar): preko celog ekrana, kao kamera telefona */
.ifu-cam { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #0E0D09; }
.ifu-cam[hidden] { display: none; }
.ifu-cam video { flex: 1; width: 100%; min-height: 0; object-fit: contain; background: #0E0D09; }
.ifu-cam__guide { position: absolute; inset: 0 0 96px; pointer-events: none;
	background:
		linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.26) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.26) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
		linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.26) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.26) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.ifu-cam__horizon { position: absolute; left: 30%; right: 30%; top: 50%; height: 2px; margin-top: -1px; background: #F2EEE7; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.ifu-cam__tip { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(14,13,9,.6); color: #F2EEE7; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ifu-cam__msg { position: absolute; top: 45%; left: 0; right: 0; margin: 0; text-align: center; color: #F2EEE7; font-weight: 700; }
.ifu-cam__msg[hidden] { display: none; }
.ifu-cam__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: calc(96px + env(safe-area-inset-bottom)); padding: 0 20px env(safe-area-inset-bottom); background: #0E0D09; }
.ifu-cam__side { justify-self: start; min-height: 44px; padding: 0 6px; border: 0; background: none; color: #F2EEE7; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ifu-cam__side--r { justify-self: end; width: 48px; height: 48px; border-radius: 50%; background: rgba(242,238,231,.14); display: flex; align-items: center; justify-content: center; }
.ifu-cam__shot { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #F2EEE7; background: #fff; cursor: pointer; box-shadow: 0 0 0 4px #0E0D09 inset; transition: transform .12s; }
.ifu-cam__shot:active { transform: scale(.92); }
.ifu-tryon.is-cam { overflow: hidden; }

@media (min-width: 601px) {
	.ifu-examples__i { font-size: 12.5px; }
}

/* ==========================================================================
   Studio probe (template-parts/tryon-modal.php): platno levo, panel desno.
   Svetao, tih izgled: belo i svetlosivo, tanke ivice, male oznake velikim
   slovima, izabrano = tamno. Na telefonu: platno gore, panel ispod, dugme
   „Napravi“ uvek na dnu.
   ========================================================================== */

.ifu-studio {
	--s-bg: #F6F6F7; --s-panel: #FFFFFF; --s-line: #E9E9EB; --s-ink: #1A1A1A; --s-muted: #6E6E73; --s-soft: #F1F1F3;
	--s-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ifu-tryon.ifu-studio { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--s-panel); color: var(--s-ink); box-shadow: none; overflow: hidden; font-family: var(--s-font); font-weight: 400; font-size: 14px; line-height: 1.5; }
.ifu-tryon.ifu-studio[open] { display: flex; flex-direction: column; animation: ifu-studio-in .28s cubic-bezier(.2, .85, .25, 1); }
.ifu-tryon.ifu-studio::backdrop { background: rgba(20, 20, 20, .4); }
@keyframes ifu-studio-in { from { opacity: 0; transform: scale(.985); } }
.ifu-studio h2, .ifu-studio h3, .ifu-studio button, .ifu-studio input, .ifu-studio select, .ifu-studio textarea { font-family: var(--s-font); }

/* Stanja platna: deo sa data-when vidi se samo u svojim stanjima. */
.ifu-studio[data-stage="empty"] [data-when]:not([data-when~="empty"]),
.ifu-studio[data-stage="review"] [data-when]:not([data-when~="review"]),
.ifu-studio[data-stage="room"] [data-when]:not([data-when~="room"]),
.ifu-studio[data-stage="loading"] [data-when]:not([data-when~="loading"]),
.ifu-studio[data-stage="result"] [data-when]:not([data-when~="result"]) { display: none !important; }

/* Gornja traka */
.ifu-studio__top { flex: none; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--s-line); background: var(--s-panel); position: relative; z-index: 4; }
.ifu-studio__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--s-line); border-radius: 50%; background: #fff; color: var(--s-ink); cursor: pointer; }
.ifu-studio__icon:hover { background: var(--s-soft); }
.ifu-studio__head { flex: 1; min-width: 0; text-align: center; }
.ifu-studio__title { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.ifu-studio__sub { margin: 2px 0 0; font-size: 12px; color: var(--s-muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ifu-studio__quota { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--s-line); }
.ifu-studio__quota button { color: var(--s-ink); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ifu-studio__pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--s-ink); border-radius: 999px; background: #fff; color: var(--s-ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.ifu-studio__pill:hover { background: var(--s-ink); color: #fff; }
.ifu-studio[data-stage="empty"] .ifu-studio__top::after, .ifu-studio[data-stage="review"] .ifu-studio__top::after, .ifu-studio[data-stage="loading"] .ifu-studio__top::after { content: ""; width: 40px; } /* Naslov ostaje na sredini. */

/* Telo: platno + panel */
.ifu-studio__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; }
.ifu-studio__stage { min-height: 0; overflow: auto; background: var(--s-bg); padding: 28px 40px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ifu-studio__stage.is-over { box-shadow: inset 0 0 0 3px var(--s-ink); }
.ifu-studio__canvas { position: relative; width: 100%; max-width: 1100px; display: flex; justify-content: center; }
.ifu-studio__under { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 14px; }

/* Platno — prazno */
.ifu-cv--empty { width: 100%; min-height: min(62vh, 620px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 40px; border: 1.5px dashed #D5D5D9; border-radius: 16px; background: #fff; }
.ifu-cv__art { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--s-soft); }
.ifu-cv__art svg { display: block; width: 100%; height: 100%; }
.ifu-cv__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ifu-cv__copy h3 { margin: 0; font-size: 30px; font-weight: 300; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; }
.ifu-cv__copy > p { margin: 0; font-size: 15px; color: var(--s-muted); max-width: 40ch; }
.ifu-cv__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ifu-cv__hint { margin: 0; font-size: 12px !important; color: var(--s-muted); }
.ifu-cv__link { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--s-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Platno — fotografija (pregled, soba, pravljenje, rezultat) */
.ifu-cv--review img, .ifu-studio .ifu-walls img, .ifu-studio .ifu-tryon__scan img, .ifu-studio .ifu-compare img { display: block; max-width: 100%; max-height: calc(100dvh - 300px); width: auto; height: auto; margin: 0 auto; border-radius: 14px; }
.ifu-cv--review, .ifu-cv--room, .ifu-cv--loading, .ifu-cv--result { position: relative; display: flex; justify-content: center; width: 100%; }
.ifu-studio .ifu-walls { display: inline-block; max-width: 100%; border-radius: 14px; background: none; line-height: 0; }
.ifu-studio .ifu-wall { background: rgba(26, 26, 26, .04); }
.ifu-studio .ifu-wall:hover { background: rgba(26, 26, 26, .16); }
.ifu-studio .ifu-wall.is-on { background: rgba(26, 26, 26, .28); }
.ifu-studio .ifu-wall b { font-family: var(--s-font); font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .92); color: var(--s-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.ifu-studio .ifu-wall.is-on b { background: var(--s-ink); color: #fff; }
.ifu-studio .ifu-tryon__scan { display: inline-block; position: relative; aspect-ratio: auto; background: none; border-radius: 14px; overflow: hidden; line-height: 0; }
.ifu-studio .ifu-tryon__scan img { filter: saturate(.6) brightness(.92); }
.ifu-studio .ifu-tryon__beam { background: #fff; box-shadow: 0 0 24px 6px rgba(255, 255, 255, .7); }
.ifu-cv__status { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); min-width: 260px; padding: 14px 20px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); text-align: center; }
.ifu-studio .ifu-tryon__status { margin: 0; font-family: var(--s-font); font-size: 15px; font-weight: 500; }
.ifu-cv__statussub { margin: 2px 0 0; font-size: 12px; color: var(--s-muted); }
.ifu-studio .ifu-compare { display: inline-block; max-width: 100%; border-radius: 14px; background: none; line-height: 0; }
.ifu-studio .ifu-compare__tag { font-family: var(--s-font); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* Ispod platna */
.ifu-review-bar, .ifu-resultbar { display: flex; flex-direction: column; gap: 12px; }
.ifu-review-bar__acts, .ifu-resultbar__acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ifu-studio .ifu-review__checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.ifu-studio .ifu-review__c { background: #fff; border: 1px solid var(--s-line); font-size: 13px; font-weight: 400; }
.ifu-studio .ifu-review__c.is-warn { border-color: #F1D99A; }
.ifu-wallbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ifu-wallbar__hint { margin: 0; font-size: 13px; color: var(--s-muted); }
.ifu-prompt { padding: 14px 16px 12px; border: 1px solid var(--s-line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.ifu-prompt textarea { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; outline: none; resize: none; background: none; color: var(--s-ink); font-size: 15px; font-weight: 400; line-height: 1.5; }
.ifu-prompt textarea::placeholder { color: #A1A1A6; }
.ifu-prompt__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ifu-prompt__chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--s-line); border-radius: 8px; background: #fff; color: var(--s-ink); font-size: 12px; font-weight: 500; letter-spacing: .02em; cursor: pointer; }
.ifu-prompt__chip:hover { background: var(--s-soft); }
.ifu-prompt__count { margin-left: auto; font-size: 12px; color: var(--s-muted); }
.ifu-studio .ifu-bought { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ifu-studio .ifu-bought__i { background: #fff; border: 1px solid var(--s-line); border-radius: 12px; }
.ifu-studio .ifu-bought__i .ifu-link { font-size: 12px; font-weight: 500; }

/* Panel */
.ifu-studio__panel { min-height: 0; display: flex; flex-direction: column; background: var(--s-panel); border-left: 1px solid var(--s-line); }
.ifu-studio__tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--s-line); background: var(--s-panel); }
.ifu-studio__tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border: 0; background: none; color: var(--s-muted); font-size: 14px; font-weight: 400; cursor: pointer; }
.ifu-studio__tab:hover { color: var(--s-ink); }
.ifu-studio__tab.is-on { color: var(--s-ink); font-weight: 500; }
.ifu-studio__tab.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--s-ink); }
.ifu-studio__tab b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--s-ink); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.ifu-studio__pane { flex: 1; min-height: 0; overflow: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.ifu-studio__label { margin: 22px 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); }
.ifu-studio__hint { margin: 8px 0 0; font-size: 12px; color: var(--s-muted); }
.ifu-studio__cta { flex: none; padding: 14px 24px 18px; border-top: 1px solid var(--s-line); background: var(--s-panel); }

/* Dugmad studija */
.ifu-sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--s-line, #E9E9EB); border-radius: 10px; background: #fff; color: var(--s-ink, #1A1A1A); font-family: var(--s-font); font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; }
.ifu-sbtn:hover { background: var(--s-soft, #F1F1F3); color: var(--s-ink, #1A1A1A); }
.ifu-sbtn--dark { background: var(--s-ink, #1A1A1A); border-color: var(--s-ink, #1A1A1A); color: #fff; }
.ifu-sbtn--dark:hover { background: #000; color: #fff; }
.ifu-sbtn--accent { background: var(--ifu-accent); border-color: var(--ifu-accent); color: #fff; }
.ifu-sbtn--accent:hover { background: color-mix(in srgb, var(--ifu-accent) 88%, #000); color: #fff; }
.ifu-sbtn--lg { height: 52px; font-size: 15px; }
.ifu-sbtn--block { display: flex; width: 100%; }
.ifu-sbtn[disabled] { opacity: .4; pointer-events: none; }
label.ifu-sbtn { position: relative; }

/* Segmenti (kao u MeltFlex-u: siva staza, izabrano tamno) */
.ifu-sseg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--s-soft); }
.ifu-sseg__b { flex: 1; padding: 9px 12px; border: 0; border-radius: 7px; background: none; color: var(--s-muted); font-size: 13px; font-weight: 400; cursor: pointer; white-space: nowrap; }
.ifu-sseg__b:hover { color: var(--s-ink); }
.ifu-sseg__b.is-on { background: var(--s-ink); color: #fff; font-weight: 500; }
.ifu-sseg--sm .ifu-sseg__b { padding: 7px 12px; font-size: 12px; }

/* Kartice sobe i stila */
.ifu-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ifu-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; color: var(--s-ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ifu-card:hover { border-color: #C9C9CE; }
.ifu-card__img { display: block; aspect-ratio: 16 / 11; background: var(--s-soft); }
.ifu-card__img svg { display: block; width: 100%; height: 100%; }
.ifu-card__t { padding: 7px 9px 8px; font-size: 12px; font-weight: 400; line-height: 1.25; }
.ifu-card.is-on { border-color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-ink); }
.ifu-card.is-on .ifu-card__t { font-weight: 500; }
.ifu-card.is-on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--s-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 0 2px #fff; }
.ifu-cards:not(.is-all) .ifu-card.is-more:not(.is-on) { display: none; }
.ifu-more { display: block; margin: 10px auto 0; padding: 4px 8px; border: 0; background: none; color: var(--s-muted); font-size: 12px; cursor: pointer; }
.ifu-more::after { content: " ⌄"; }
.ifu-more:hover { color: var(--s-ink); }

/* Palete */
.ifu-palettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ifu-palette { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 68px; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; color: var(--s-muted); font-size: 12px; cursor: pointer; }
.ifu-palette__dots { display: flex; gap: 4px; }
.ifu-palette__dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.ifu-palette__dots i.is-auto { width: 44px; border-radius: 7px; background: linear-gradient(90deg, #E9E6E1, #A58D72, #3B3B3D, #C7793A); }
.ifu-palette:hover { border-color: #C9C9CE; }
.ifu-palette.is-on { border-color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-ink); color: var(--s-ink); font-weight: 500; }

.ifu-sselect select, .ifu-sfield input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--s-line); border-radius: 10px; background: #fff; color: var(--s-ink); font-size: 14px; }
.ifu-sfield { position: relative; margin-bottom: 10px; }
.ifu-sfield svg { position: absolute; left: 14px; top: 14px; color: var(--s-muted); }
.ifu-sfield input { padding-left: 40px; }

/* Panel „Dodaj“ */
.ifu-studio .ifu-shoot__bar { position: static; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; background: none; }
.ifu-studio .ifu-howto { background: #fff; border: 1px solid var(--s-line); border-radius: 12px; }
.ifu-studio .ifu-howto__i { padding: 12px 14px; }
.ifu-studio .ifu-howto__i + .ifu-howto__i { border-color: var(--s-line); }
.ifu-studio .ifu-howto__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--s-soft); color: var(--s-ink); }
.ifu-studio .ifu-howto__ic b { background: var(--s-ink); box-shadow: 0 0 0 2px #fff; }
.ifu-studio .ifu-howto__t { font-size: 12.5px; color: var(--s-muted); }
.ifu-studio .ifu-howto__t strong { font-size: 14px; font-weight: 500; }
.ifu-studio .ifu-examples__i { font-size: 11px; font-weight: 400; }
.ifu-studio .ifu-examples__img { border-radius: 10px; }
.ifu-studio .ifu-tryon__privacy { margin-top: 16px; font-size: 11.5px; color: var(--s-muted); }

/* Panel „Proizvodi“ */
.ifu-studio .ifu-tray { margin: 0; padding: 0; background: none; display: block; }
.ifu-studio .ifu-tray__list { display: flex; flex-direction: column; gap: 6px; overflow: visible; }
.ifu-studio .ifu-tray__i { padding: 6px 36px 6px 6px; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; }
.ifu-studio .ifu-tray__i > span { max-width: none; font-size: 13px; font-weight: 500; }
.ifu-studio .ifu-tray__x { right: 10px; width: 22px; height: 22px; background: var(--s-soft); }
.ifu-studio [data-t-fromcart] { margin-bottom: 12px; }
.ifu-studio .ifu-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ifu-studio .ifu-pick { padding: 6px; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; }
.ifu-studio .ifu-pick:hover { transform: none; box-shadow: none; border-color: #C9C9CE; }
.ifu-studio .ifu-pick.is-on { border-color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-ink); }
.ifu-studio .ifu-pick img { border-radius: 8px; background: var(--s-soft); }
.ifu-studio .ifu-pick__t { font-size: 12px; }
.ifu-studio .ifu-pick__t strong { font-size: 13px; font-weight: 500; }
.ifu-studio .ifu-pick.is-on .ifu-pick__mark { background: var(--s-ink); }
.ifu-studio__next { margin-top: 14px; }

.ifu-studio .ifu-limit { margin-top: 18px; background: var(--s-soft); border-radius: 12px; }
.ifu-studio .ifu-tryon__note { margin: 0; border-radius: 0; text-align: center; font-size: 13px; }
.ifu-studio .ifu-tryon__error { position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translateX(-50%); max-width: min(92vw, 520px); margin: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }

/* Telefon i uži ekrani: platno gore, panel ispod, jedno skrolovanje */
@media (max-width: 900px) {
	.ifu-tryon.ifu-studio { font-size: 14px; }
	.ifu-studio__top { height: 56px; padding: 0 10px; padding-top: env(safe-area-inset-top); }
	.ifu-studio__pill span { display: none; }
	.ifu-studio__pill { width: 40px; padding: 0; justify-content: center; }
	.ifu-studio__body { display: block; overflow: auto; overscroll-behavior: contain; }
	.ifu-studio__stage { overflow: visible; padding: 12px 12px 16px; gap: 12px; }
	.ifu-cv--empty { grid-template-columns: 1fr; gap: 16px; min-height: 0; padding: 14px; }
	.ifu-cv__art { aspect-ratio: 16 / 9; }
	.ifu-cv__copy { align-items: center; text-align: center; }
	.ifu-cv__copy h3 { font-size: 22px; }
	.ifu-cv__copy > p { font-size: 14px; }
	.ifu-cv__acts { justify-content: center; width: 100%; }
	.ifu-cv__acts .ifu-sbtn { flex: 1 1 140px; }
	.ifu-cv--review img, .ifu-studio .ifu-walls img, .ifu-studio .ifu-tryon__scan img, .ifu-studio .ifu-compare img { max-height: 58vh; border-radius: 12px; }
	.ifu-wallbar { flex-direction: column; align-items: stretch; gap: 8px; }
	.ifu-studio__panel { border-left: 0; border-top: 1px solid var(--s-line); }
	.ifu-studio__tabs { position: sticky; top: 0; z-index: 3; }
	.ifu-studio__tab { height: 50px; font-size: 13px; }
	.ifu-studio__pane { overflow: visible; padding: 4px 16px 20px; }
	.ifu-studio__label { margin: 18px 0 8px; }
	.ifu-cards, .ifu-palettes { gap: 8px; }
	.ifu-card__t { font-size: 11.5px; padding: 6px 7px 7px; }
	.ifu-studio__cta { position: sticky; bottom: 0; z-index: 3; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px rgba(0, 0, 0, .05); }
	.ifu-studio .ifu-tryon__error { bottom: calc(84px + env(safe-area-inset-bottom)); }
	.ifu-studio .ifu-bought { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
	.ifu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
