/* SHILA Beauty - contact lens try-on */
.sh-try { --lens: #A0723A; --ink: #2B211D; --br: #8C6440; --brd: #6E4C2E; --nude: #EAD7CC; --cream: #FAF6F1; --line: #EADFD7; --muted: #6F635C; padding-bottom: 2rem; }
.sh-try-hero { text-align: center; padding: 1.6rem 1rem 1.4rem; }
.sh-try-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--br); background: var(--cream); border: 1px solid var(--line); padding: .35rem .85rem; border-radius: 999px; }
.sh-try-hero h1 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); margin: .8rem 0 .5rem; color: var(--ink); }
.sh-try-hero p { color: var(--muted); max-width: 36rem; margin: 0 auto; }

.sh-try-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }

/* stage */
.sh-try-stage { position: relative; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #4A3528 0%, var(--ink) 70%); min-height: 420px; display: flex; flex-direction: column; box-shadow: 0 30px 60px -35px rgba(43, 33, 29, .65); }
.sh-try-intro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; padding: 2.2rem 1.2rem 1.4rem; text-align: center; }
.sh-try-start { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.sh-try-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; color: #D8CBBE; font-size: .85rem; }
.sh-try-steps li { display: flex; align-items: center; gap: .4rem; }
.sh-try-steps b { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--nude); font-size: .78rem; }

/* sample eye (shows the chosen color before the camera) */
.sh-try-eye { width: min(260px, 70%); aspect-ratio: 2.1 / 1; position: relative; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.sh-try-eye-white { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #fff 0%, #F3E9E2 60%, #E2CFC3 100%); border-radius: 50%; box-shadow: inset 0 -10px 18px rgba(110, 76, 46, .25), inset 0 8px 14px rgba(0, 0, 0, .25); overflow: hidden; animation: sh-try-blink 6s infinite; }
.sh-try-eye-iris { position: absolute; top: 50%; left: 50%; height: 92%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0 3deg, rgba(0, 0, 0, .12) 3deg 7deg), radial-gradient(circle, #111 0 26%, var(--lens) 30%, color-mix(in srgb, var(--lens) 70%, #fff) 52%, var(--lens) 72%, #2A1E17 92%); transition: background .35s; animation: sh-try-look 9s ease-in-out infinite; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); }
.sh-try-eye-iris span { position: absolute; top: 24%; left: 28%; width: 18%; height: 18%; border-radius: 50%; background: rgba(255, 255, 255, .85); filter: blur(.5px); }
@keyframes sh-try-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.08); } }
@keyframes sh-try-look { 0%, 100% { margin-left: 0; } 30% { margin-left: -12%; } 60% { margin-left: 10%; } }
@media (prefers-reduced-motion: reduce) { .sh-try-eye-white, .sh-try-eye-iris { animation: none; } }

.sh-try-view { position: relative; flex: 1; display: flex; flex-direction: column; }
.sh-try-canvas { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: #1E1713; }
.sh-try-canvas.is-mirror { transform: scaleX(-1); }
.sh-try-status { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); background: rgba(30, 23, 19, .78); color: #fff; padding: .45rem .95rem; border-radius: 999px; font-size: .85rem; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(6px); }
.sh-try-status:empty, .sh-try-status[hidden] { display: none; }
.sh-try-tools { position: absolute; bottom: .9rem; left: .9rem; right: .9rem; display: flex; align-items: center; gap: .5rem; padding: .45rem; border-radius: 999px; background: rgba(30, 23, 19, .62); backdrop-filter: blur(10px); }
.sh-try-tool { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 600 .62rem/1 inherit; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: background .2s, transform .2s; }
.sh-try-tool i { font-size: 1rem; }
.sh-try-tool:hover, .sh-try-tool.on { background: var(--nude); color: var(--ink); }
.sh-try-tool:active { transform: scale(.94); }
.sh-try-range { flex: 1; display: flex; align-items: center; gap: .5rem; color: var(--nude); padding: 0 .4rem; margin: 0; }
.sh-try-range input { flex: 1; accent-color: var(--nude); min-width: 0; }
.sh-try-privacy { margin: 0; padding: .75rem 1rem; text-align: center; font-size: .82rem; color: #E9DDD3; background: rgba(0, 0, 0, .22); }
.sh-try-privacy i { color: #8FD3A6; }

/* buttons */
.sh-try-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; padding: 0 1.4rem; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.sh-try-btn:active { transform: scale(.97); }
.sh-try-btn-main { background: var(--br); color: #fff !important; box-shadow: 0 12px 24px -14px rgba(140, 100, 64, .9); }
.sh-try-btn-main:hover { background: var(--brd); }
.sh-try-btn-ghost { background: rgba(255, 255, 255, .08); color: var(--nude) !important; border-color: rgba(234, 215, 204, .35); }
.sh-try-btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.sh-try-pick .sh-try-btn-ghost, .sh-try-consent .sh-try-btn-ghost { background: #fff; color: var(--brd) !important; border-color: var(--line); }

/* colors */
.sh-try-side { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.sh-try-brands { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
.sh-try-brands::-webkit-scrollbar { display: none; }
.sh-try-brand { flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.sh-try-brand small { color: var(--muted); font-weight: 500; }
.sh-try-brand.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sh-try-brand.on small { color: var(--nude); }
.sh-try-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; max-height: 430px; overflow-y: auto; padding: .2rem; scrollbar-width: thin; }
.sh-try-loading { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 1.5rem 0; margin: 0; }
.sh-try-chip { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .75rem .4rem .6rem; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.sh-try-chip:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(110, 76, 46, .6); }
.sh-try-chip.on { border-color: var(--br); box-shadow: 0 0 0 3px rgba(140, 100, 64, .16); }
.sh-try-chip.is-out { opacity: .55; }
.sh-try-chip.is-out .sh-try-sw { filter: grayscale(.7); }
.sh-try-chip-t { font-weight: 700; font-size: .78rem; color: var(--ink); line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-try-chip-b { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sh-try-sw { --c: #A0723A; display: inline-block; width: 46px; height: 46px; border-radius: 50%; flex: none; background: repeating-conic-gradient(rgba(255, 255, 255, .18) 0 4deg, rgba(0, 0, 0, .12) 4deg 9deg), radial-gradient(circle, #15100D 0 24%, var(--c) 28%, color-mix(in srgb, var(--c) 65%, #fff) 50%, var(--c) 72%, #2A1E17 95%); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .5); }

.sh-try-pick { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #fff, var(--cream)); padding: 1rem; animation: sh-try-in .3s ease; }
@keyframes sh-try-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sh-try-pick-in { display: flex; align-items: center; gap: .9rem; }
.sh-try-pick-in img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.sh-try-pick-d { display: flex; flex-direction: column; min-width: 0; }
.sh-try-pick-d small { color: var(--muted); }
.sh-try-pick-d strong { color: var(--ink); font-size: 1.05rem; }
.sh-try-price b { color: var(--br); font-size: 1.05rem; }
.sh-try-price s { color: var(--muted); font-size: .85rem; margin-inline-start: .3rem; }
.sh-try-pick-a { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.sh-try-pick-a .sh-try-btn { flex: 1 1 10rem; min-height: 2.9rem; }
.sh-try-out { flex: 1 1 10rem; display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; border-radius: 999px; background: #EFE8E2; color: #6F635C; font-weight: 700; }
.sh-try-note { margin: .7rem 0 0; font-size: .78rem; color: var(--muted); }

/* consent */
.sh-try-consent { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem; background: rgba(30, 23, 19, .6); backdrop-filter: blur(4px); }
.sh-try-consent[hidden] { display: none; }
.sh-try-consent-box { width: min(440px, 100%); background: #fff; border-radius: 26px; padding: 1.6rem 1.4rem 1.3rem; text-align: center; animation: sh-try-in .25s ease; }
.sh-try-consent-ic { width: 3.6rem; height: 3.6rem; margin: 0 auto .7rem; border-radius: 50%; display: grid; place-items: center; background: #E7F6EC; color: #1F8A4C; font-size: 1.5rem; }
.sh-try-consent h2 { font-size: 1.3rem; margin: 0 0 .8rem; color: var(--ink); }
.sh-try-consent ul { text-align: start; margin: 0 0 1.2rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.sh-try-consent li { position: relative; padding-inline-start: 1.6rem; color: #3E332E; font-size: .93rem; line-height: 1.6; }
.sh-try-consent li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: #1F8A4C; font-weight: 800; }
.sh-try-consent-act { display: grid; gap: .5rem; }

.sh-try-toast { position: fixed; z-index: 2100; left: 50%; bottom: 5.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 16px; font-size: .9rem; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); max-width: calc(100% - 2rem); }
.sh-try-toast a { color: var(--nude) !important; font-weight: 700; text-decoration: underline; }
.sh-try-toast[hidden] { display: none; }

@media (max-width: 991.98px) {
	.sh-try-main { grid-template-columns: 1fr; }
	.sh-try-colors { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 88px; overflow-x: auto; overflow-y: hidden; max-height: none; padding-bottom: .4rem; scroll-snap-type: x proximity; }
	.sh-try-chip { scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
	#sh-tryon-page { padding-left: 12px; padding-right: 12px; }
	.sh-try-hero { padding: .8rem .4rem 1rem; }
	.sh-try-stage { border-radius: 22px; min-height: 360px; }
	.sh-try-start .sh-try-btn { flex: 1 1 100%; }
	.sh-try-tool { width: 2.8rem; height: 2.8rem; }
}

/* ---------- tabs: lenses / makeup / hair ---------- */
.sh-try { --lip: #C9677A; --hair: #7A5236; }
.sh-try-tabs { display: inline-flex; gap: .3rem; margin-top: 1.1rem; padding: .3rem; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sh-try-tabs::-webkit-scrollbar { display: none; }
.sh-try-tab { flex: none; display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: .95rem; padding: .6rem 1.15rem; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.sh-try-tab i { color: var(--br); transition: color .25s; }
.sh-try-tab.on { background: var(--ink); color: #fff; box-shadow: 0 10px 22px -14px rgba(43, 33, 29, .8); }
.sh-try-tab.on i { color: var(--nude); }
.sh-try-tab[hidden] { display: none; }
.sh-try-ai { font-size: .62rem; font-weight: 800; letter-spacing: .04em; padding: .1rem .35rem; border-radius: 6px; background: linear-gradient(135deg, #C9A27E, #8C6440); color: #fff; }

/* intro samples per tab */
.sh-try-sample { display: none; }
.sh-try[data-tab-now="lenses"] .sh-try-sample[data-for="lenses"], .sh-try[data-tab-now="makeup"] .sh-try-sample[data-for="makeup"], .sh-try[data-tab-now="hair"] .sh-try-sample[data-for="hair"] { display: block; }
.sh-try-lips { width: min(240px, 66%); filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .45)); animation: sh-try-pout 5s ease-in-out infinite; }
.sh-try-lips svg { display: block; width: 100%; height: auto; }
.sh-try-lips .sh-lu, .sh-try-lips .sh-ll { fill: var(--lip); transition: fill .35s; }
.sh-try-lips .sh-ll { filter: brightness(1.08); }
.sh-try-lips .sh-lg { fill: rgba(255, 255, 255, .45); }
@keyframes sh-try-pout { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.sh-try-hairs { width: min(240px, 66%); aspect-ratio: 1.6; position: relative; }
.sh-try-hairs span { position: absolute; top: 4%; bottom: 4%; width: 22%; border-radius: 60% 60% 45% 45% / 30% 30% 70% 70%; background: linear-gradient(180deg, color-mix(in srgb, var(--hair) 70%, #fff) 0%, var(--hair) 45%, color-mix(in srgb, var(--hair) 70%, #000) 100%); box-shadow: inset 4px 0 6px rgba(255, 255, 255, .18), inset -4px 0 8px rgba(0, 0, 0, .3), 0 14px 24px -14px rgba(0, 0, 0, .6); transition: background .35s; transform-origin: 50% 0; animation: sh-try-sway 4s ease-in-out infinite; }
.sh-try-hairs span:nth-child(1) { left: 2%; animation-delay: -.4s; } .sh-try-hairs span:nth-child(2) { left: 21%; animation-delay: -1s; top: 0; } .sh-try-hairs span:nth-child(3) { left: 40%; animation-delay: -1.6s; top: -2%; } .sh-try-hairs span:nth-child(4) { left: 59%; animation-delay: -2.2s; top: 0; } .sh-try-hairs span:nth-child(5) { left: 78%; animation-delay: -2.8s; }
@keyframes sh-try-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@media (prefers-reduced-motion: reduce) { .sh-try-lips, .sh-try-hairs span { animation: none; } }

/* swatches for makeup and hair */
.sh-try-sw-mk { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55) 0 8%, rgba(255, 255, 255, 0) 30%), var(--c); }
.sh-try-sw-mk.is-gloss { background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .9) 0 10%, rgba(255, 255, 255, 0) 36%), linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 75%, #000)); }
.sh-try-sw-mk.is-shimmer { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .8) 0 4%, transparent 7%), radial-gradient(circle at 65% 60%, rgba(255, 255, 255, .7) 0 3%, transparent 6%), radial-gradient(circle at 45% 75%, rgba(255, 255, 255, .6) 0 3%, transparent 6%), var(--c); }
.sh-try-sw-hr { border-radius: 50% 50% 46% 46%; background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .16) 0 2px, rgba(0, 0, 0, .12) 2px 5px), linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 50%, color-mix(in srgb, var(--c) 70%, #000)); }

/* the makeup look being built */
.sh-try-look { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .7rem .8rem; border-radius: 18px; background: var(--cream); border: 1px dashed #D9C3B1; animation: sh-try-in .3s ease; }
.sh-try-look[hidden] { display: none; }
.sh-try-look-t { font-weight: 800; color: var(--ink); font-size: .85rem; margin-inline-end: .2rem; }
.sh-try-lookchip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .25rem .65rem .25rem .3rem; font-size: .78rem; color: var(--ink); cursor: pointer; max-width: 100%; }
.sh-try-lookchip .sh-try-sw { width: 22px; height: 22px; box-shadow: none; }
.sh-try-lookchip span:not(.sh-try-sw) { max-width: 9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.sh-try-lookchip i { color: var(--muted); font-size: .75rem; }
.sh-try-lookchip:hover { border-color: var(--br); }
.sh-try-pick-n { display: block; font-size: .78rem; color: var(--muted); line-height: 1.4; margin: .1rem 0 .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) {
	.sh-try-tabs { display: flex; width: 100%; }
	.sh-try-tab { flex: 1 1 0; justify-content: center; padding: .55rem .5rem; font-size: .9rem; }
}

/* ===== 2.8.1: clear, tidy layout on every screen =====
   Desktop: picture on one side (fits the screen, stays in view), colours on the other.
   Phones: once the camera or photo starts, a full-screen studio — picture on top, colours in a sheet below. */
@media (min-width: 992px) {
	.sh-try-main { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); }
	.sh-try-stage[data-state="view"] { height: min(calc(100vh - 150px), 780px); min-height: 460px; }
	.sh-try-stage[data-state="view"] .sh-try-view { min-height: 0; }
	.sh-try-stage[data-state="view"] .sh-try-canvas { flex: 1; min-height: 0; height: 100%; max-height: none; }
	.sh-try:has(.sh-try-stage[data-state="view"]) .sh-try-side { height: min(calc(100vh - 150px), 780px); min-height: 460px; }
	.sh-try:has(.sh-try-stage[data-state="view"]) .sh-try-colors { max-height: none; flex: 1 1 auto; min-height: 140px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
	.sh-try-stage[data-state="view"] .sh-try-canvas { max-height: 62vh; }
}
.sh-try-canvas { margin: 0 auto; }

/* Phone studio */
html.sh-try-lock, html.sh-try-lock body { overflow: hidden !important; height: 100%; }
body.sh-try-studio .sh-whatsapp, body.sh-try-studio .sh-tabbar, body.sh-try-studio #back-top, body.sh-try-studio .sh-top, body.sh-try-studio .sh-progress { display: none !important; }
body.sh-try-studio .sh-try-main { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; gap: 0; background: #17110E; padding-top: env(safe-area-inset-top); }
body.sh-try-studio .sh-try-stage { flex: 1 1 auto; min-height: 0; border-radius: 0; box-shadow: none; }
body.sh-try-studio .sh-try-view { flex: 1; min-height: 0; }
body.sh-try-studio .sh-try-canvas { flex: 1; min-height: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; background: #17110E; }
body.sh-try-studio .sh-try-tools { bottom: 2.4rem; left: .6rem; right: .6rem; }
body.sh-try-studio .sh-try-privacy { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: .35rem .6rem; font-size: .7rem; background: rgba(23, 17, 14, .85); text-align: center; }
body.sh-try-studio .sh-try-side { flex: 0 0 auto; max-height: 46dvh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 22px 22px 0 0; padding: .7rem .8rem calc(.8rem + env(safe-area-inset-bottom)); gap: .55rem; margin-top: -14px; position: relative; z-index: 2; box-shadow: 0 -12px 30px -16px rgba(0, 0, 0, .5); }
body.sh-try-studio .sh-try-side::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: #E3D8CE; margin: 0 auto .2rem; }
body.sh-try-studio .sh-try-side .sh-try-tabs { margin: 0; padding: 3px; }
body.sh-try-studio .sh-try-side .sh-try-tab { padding: .45rem .5rem; font-size: .85rem; }
body.sh-try-studio .sh-try-colors { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82px; overflow-x: auto; overflow-y: hidden; max-height: none; padding-bottom: .3rem; scroll-snap-type: x proximity; }
body.sh-try-studio .sh-try-chip { scroll-snap-align: start; }
body.sh-try-studio .sh-try-brands { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body.sh-try-studio .sh-try-pick { padding: .7rem; }
body.sh-try-studio .sh-try-pick img, body.sh-try-studio .sh-try-pick .sh-try-sw { width: 52px; height: 52px; }
body.sh-try-studio .sh-try-hero { display: none; }
@media (max-height: 640px) { body.sh-try-studio .sh-try-side { max-height: 52dvh; } }
@media (orientation: landscape) and (max-width: 991.98px) and (max-height: 500px) {
	body.sh-try-studio .sh-try-main { flex-direction: row; }
	body.sh-try-studio .sh-try-side { max-height: none; width: 42%; border-radius: 0; margin: 0; }
}

/* studio sheet: everything fits the phone width, colours first, a compact product line */
body.sh-try-studio .sh-try-side { width: 100%; min-width: 0; box-sizing: border-box; }
body.sh-try-studio .sh-try-side > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
body.sh-try-studio .sh-try-tabs { display: flex; width: 100%; order: 0; }
body.sh-try-studio .sh-try-tab { flex: 1 1 0; justify-content: center; min-width: 0; white-space: nowrap; }
body.sh-try-studio .sh-try-look { order: 1; }
body.sh-try-studio .sh-try-brands { order: 2; }
body.sh-try-studio .sh-try-colors { order: 3; width: 100%; }
body.sh-try-studio .sh-try-pick { order: 4; padding: .55rem .7rem; border-radius: 16px; }
body.sh-try-studio .sh-try-pick-in { gap: .6rem; }
body.sh-try-studio .sh-try-pick-in img, body.sh-try-studio .sh-try-pick-in .sh-try-sw { width: 44px !important; height: 44px !important; border-radius: 12px; }
body.sh-try-studio .sh-try-pick-n, body.sh-try-studio .sh-try-pick-note, body.sh-try-studio .sh-try-pick > p { display: none; }
body.sh-try-studio .sh-try-pick-d strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.sh-try-studio .sh-try-pick-a { margin-top: .5rem; flex-wrap: nowrap; }
body.sh-try-studio .sh-try-pick-a .sh-try-btn { flex: 1 1 0; min-height: 2.5rem; font-size: .88rem; padding: 0 .6rem; }
body.sh-try-studio .sh-try-chip { padding: .45rem .3rem; }
.sh-try-hero { position: static !important; top: auto !important; }
body.sh-try-studio .sh-try-side > * { flex-shrink: 0; }
body.sh-try-studio .sh-try-brands .sh-try-brand { flex: none; white-space: nowrap; }
body:has(.sh-try-stage[data-state="view"]) .sh-whatsapp { display: none !important; }
body.sh-try-studio .sh-try-look { padding: .35rem .55rem; border-radius: 14px; font-size: .82rem; }
body.sh-try-studio .sh-try-tabs .sh-try-tab { padding-block: .35rem; }
body.sh-try-studio .sh-try-brand { padding: .35rem .75rem; font-size: .82rem; }
@media (max-height: 700px) { body.sh-try-studio .sh-try-side { max-height: 56dvh; } body.sh-try-studio .sh-try-tools { bottom: 1.9rem; } }

/* ===== 2.9.1: one AI engine, progress, before/after slider, capture ===== */
.sh-try-canvas-wrap { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sh-try-canvas-wrap .sh-try-canvas { flex: 1 1 auto; }
@media (min-width: 992px) { .sh-try-stage[data-state="view"] .sh-try-canvas-wrap { min-height: 0; } .sh-try-stage[data-state="view"] .sh-try-canvas-wrap .sh-try-canvas { height: 100%; } }
body.sh-try-studio .sh-try-canvas-wrap { flex: 1; min-height: 0; }
body.sh-try-studio .sh-try-canvas-wrap .sh-try-canvas { height: 100%; }
.sh-try-video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: 0; top: 0; }

.sh-try-split { position: absolute; z-index: 3; touch-action: none; cursor: ew-resize; --split: 50%; }
.sh-try-tools { z-index: 5; }
.sh-try-split-line::before { content: ''; position: absolute; top: 0; bottom: 0; left: -14px; right: -14px; }
.sh-try-split-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 14px rgba(0, 0, 0, .35); }
.sh-try-split-knob { position: absolute; top: 50%; left: var(--split); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: var(--brd, #6E4C2E); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); font-size: 1.05rem; }
.sh-try-split-knob:focus-visible { outline: 3px solid #C9A27E; outline-offset: 2px; }
.sh-try-split-a, .sh-try-split-b { position: absolute; top: 10px; padding: .25rem .6rem; border-radius: 999px; background: rgba(23, 17, 14, .7); color: #fff; font-size: .75rem; font-weight: 700; pointer-events: none; }
.sh-try-split-a { left: 10px; } .sh-try-split-b { right: 10px; }

.sh-try-load { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(23, 17, 14, .55); backdrop-filter: blur(3px); }
.sh-try-load-in { width: min(320px, 82%); text-align: center; color: #fff; display: grid; gap: .55rem; justify-items: center; padding: 1.2rem; border-radius: 22px; background: rgba(23, 17, 14, .72); }
.sh-try-load-t { font-size: 1rem; }
.sh-try-load-bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.sh-try-load-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #C9A27E, #F1D7BE); transition: width .2s; }
.sh-try-load-n { color: #E6D6C7; font-size: .8rem; direction: ltr; }
.sh-try-load-ring { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #F1D7BE; animation: sh-try-spin .9s linear infinite; }
@keyframes sh-try-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sh-try-load-ring { animation: none; } }
.sh-try-retry { margin-inline-start: .4rem; border: 0; border-radius: 999px; padding: .3rem .8rem; background: #fff; color: var(--brd, #6E4C2E); font-weight: 800; cursor: pointer; }
.sh-try-tool.on { background: #fff; color: var(--brd, #6E4C2E); }
.sh-try-tool[hidden] { display: none !important; }
/* Bigger touch targets on phones */
@media (max-width: 767.98px) {
	.sh-try-tool { min-width: 48px; min-height: 48px; }
	.sh-try-range input { height: 32px; }
	.sh-try-chip { min-height: 96px; }
}

/* 2.9.1 tool bar fits a 360px phone: one-line labels, tighter spacing */
.sh-try-tool span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .6rem; line-height: 1.1; }
@media (max-width: 480px) {
	.sh-try-tools { gap: .3rem; padding: .35rem; left: .5rem; right: .5rem; }
	.sh-try-tool { width: 48px; height: 48px; }
	.sh-try-range { padding: 0 .15rem; gap: .25rem; min-width: 0; flex: 1 1 0; }
	body.sh-try-studio .sh-try-tools { left: .5rem; right: .5rem; }
	.sh-try-range i { display: none; }
}
.sh-try-req { display: flex; align-items: center; gap: .6rem; justify-content: center; padding: .7rem 1rem; border-radius: 16px; border: 1px dashed #D9C3B1; color: var(--brd, #6E4C2E) !important; font-weight: 800; font-size: .9rem; background: #FFFCF9; }
.sh-try-req span { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#B3202E, #E06A7A, #C98B7B, #8A5A34, #3F6FB5, #58A05A, #8C6BB1, #B3202E); }
body.sh-try-studio .sh-try-req { order: 5; padding: .5rem; font-size: .82rem; }
.sh-try-why{display:block;margin-top:6px;font-size:11px;opacity:.6;word-break:break-all;font-family:ui-monospace,monospace}
