/* «آتلیه‌ی طراحی ناخن» — the nail studio */
.studio { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 72px)); padding-bottom: var(--sec); background: var(--ivory); }
.studio__head { display: grid; gap: 28px; margin-bottom: clamp(28px, 4vw, 56px); }
.studio__titles { display: grid; gap: 14px; justify-items: start; }
.studio__lead { max-width: 34em; font-size: 15px; line-height: 2.05; }
.studio__stats { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(22px, 3.4vw, 52px); }
.studio__stats li { display: grid; gap: 2px; }
.studio__stats b { font-family: var(--f-display); font-weight: 100; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; color: var(--bordeaux); }
.studio__stats span { font-size: 13px; color: var(--cocoa); }
@media (min-width: 900px) { .studio__head { grid-template-columns: 1fr auto; align-items: end; } }

.studio__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .studio__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); } }

/* the stage */
.stage { position: sticky; top: calc(var(--header-h) - 1px); z-index: 3; background: var(--ivory); padding-bottom: 10px; container-type: inline-size; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
@media (min-width: 900px) { .stage { top: calc(var(--header-h) + 24px); padding: 0; } }
.stage__frame { position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 18%, #FBF1EC 0%, var(--blush) 55%, #E9CFC4 100%); border-radius: 50cqw 50cqw 4px 4px; }
.stage__frame::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(183,130,107,.55); border-radius: inherit; pointer-events: none; z-index: 1; }
.stage__view { display: flex; justify-content: center; align-items: end; height: clamp(250px, 38svh, 640px); padding-top: 18px; }
.stage__view svg { height: 100%; width: auto; max-width: 100%; overflow: visible; filter: drop-shadow(0 18px 22px rgba(46,34,32,.12)); }
.stage__view .nset { height: 62%; align-self: center; }
@media (min-width: 900px) { .stage__view { height: min(62vh, 620px); padding-top: 48px; } }
.stage__info { position: absolute; inset: auto 0 0; z-index: 2; padding: 64px 24px 16px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 14px;
  background: linear-gradient(0deg, rgba(250,246,241,.94) 30%, rgba(250,246,241,0)); }
.stage__code { grid-column: 2; grid-row: 1; font-family: var(--f-latin); font-size: 12px; letter-spacing: .18em; color: var(--rosegold); direction: ltr; }
.stage__name { grid-column: 1; font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; margin: 0; }
.stage__en { grid-column: 1; font-size: clamp(16px, 1.5vw, 21px); justify-self: start; }
.stage__spec { grid-column: 1; margin: 4px 0 0; font-size: 13px; color: var(--cocoa); }
.stage__shades { grid-column: 2; grid-row: 2 / 5; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: end; align-self: end; }
.stage__shades li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--espresso); }
.stage__shades i { width: 14px; height: 20px; border-radius: 50% 50% 42% 42% / 60% 60% 40% 40%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(46,34,32,.18); }
.stage__shades i.m { background: linear-gradient(135deg, #fff -20%, var(--sw) 40%, #fff 60%, var(--sw) 85%); }
@media (max-width: 899px) { .stage__info { padding: 44px 18px 12px; } .stage__en, .stage__spec { display: none; } .stage__view { height: clamp(240px, 36svh, 520px); } }

.stage__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; padding: 8px 16px; min-height: 38px; border-radius: 999px; color: var(--cocoa); cursor: pointer; transition: background .4s, color .4s; }
.seg button.is-on { background: var(--espresso); color: var(--ivory); }
.seg--wide { display: flex; width: 100%; } .seg--wide button { flex: 1; }
.tgl { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--cocoa); cursor: pointer; min-height: 38px; }
.tgl input { position: absolute; opacity: 0; pointer-events: none; }
.tgl span { width: 36px; height: 20px; border-radius: 99px; background: var(--nude); position: relative; transition: background .4s; }
.tgl span::after { content: ''; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); transition: transform .5s var(--ease); }
.tgl input:checked + span { background: var(--bordeaux); }
.tgl input:checked + span::after { transform: translateX(-16px); }
.tgl input:focus-visible + span { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.skins { display: flex; gap: 8px; }
.skins button { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 0 0 1px rgba(46,34,32,.12); transition: box-shadow .3s; }
.skins button.is-on { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--bordeaux); }

/* the panel */
.panel { min-width: 0; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 22px; position: sticky; z-index: 2; background: var(--ivory); }
.tabs button { border: 0; background: none; font: inherit; padding: 12px 4px 10px; display: grid; gap: 2px; justify-items: center; color: var(--cocoa); cursor: pointer; position: relative; min-height: var(--tap); }
.tabs button b { font-weight: 400; font-size: 15px; }
.tabs button .caps { font-size: 8.5px; letter-spacing: .2em; }
.tabs button::after { content: ''; position: absolute; inset: auto 18% -1px; height: 2px; background: var(--bordeaux); transform: scaleX(0); transition: transform .6s var(--ease); }
.tabs button.is-on { color: var(--espresso); } .tabs button.is-on::after { transform: none; }
.tabp { display: none; } .tabp.is-on { display: block; animation: tabIn .6s var(--ease); }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } }

.panel .chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.panel .chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .panel .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.chip { flex: none; border: 1px solid var(--line); background: none; border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 13px; color: var(--espresso); cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; min-height: 38px; transition: background .4s, color .4s, border-color .4s; }
.chip small { font-size: 11px; color: var(--rosegold); }
.chip.is-on { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--ivory); } .chip.is-on small { color: var(--champagne); }

.dzgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .dzgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .dzgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.dz { position: relative; border: 0; background: var(--paper); font: inherit; padding: 12px 6px 10px; display: grid; gap: 8px; justify-items: center; cursor: pointer; border-radius: 2px; transition: background .4s, box-shadow .4s; }
.dz[hidden] { display: none; }
.dz__nail { width: 54%; height: auto; aspect-ratio: 40 / 90; overflow: visible; transition: transform .7s var(--ease); }
.dz__name { font-size: 11.5px; line-height: 1.5; text-align: center; color: var(--espresso); min-height: 3em; }
.dz__hot { position: absolute; top: 6px; inset-inline-start: 6px; font-size: 9.5px; color: var(--bordeaux); }
.dz.is-on { background: var(--blush); box-shadow: inset 0 0 0 1px var(--rosegold); }
@media (hover: hover) { .dz:hover { background: var(--blush); } .dz:hover .dz__nail { transform: translateY(-4px) rotate(-3deg); } }

.colnow { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 14px; min-height: 30px; }
.colnow i { width: 18px; height: 26px; border-radius: 50% 50% 42% 42% / 60% 60% 40% 40%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(46,34,32,.2); }
.colnow b { font-weight: 500; } .colnow span { margin-inline-start: auto; font-family: var(--f-latin); font-size: 12px; color: var(--cocoa); direction: ltr; }
.fam { padding: 14px 0 6px; border-top: 1px solid var(--line); }
.fam:first-of-type { border-top: 0; }
.fam__t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-weight: 400; font-size: 14px; }
.fam__t .caps { font-size: 9px; color: var(--rosegold); }
.fam__sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 10px 8px; }
.sw { width: 100%; aspect-ratio: 34 / 46; border: 0; cursor: pointer; background: var(--sw); border-radius: 50% 50% 42% 42% / 60% 60% 40% 40%;
  box-shadow: inset 0 0 0 1px rgba(46,34,32,.14), inset 4px 6px 6px -4px rgba(255,255,255,.65); transition: transform .5s var(--ease), box-shadow .3s; }
.sw--metal { background: linear-gradient(140deg, #fff -10%, var(--sw) 35%, #fff 55%, var(--sw) 80%, #000 160%); }
.sw.is-on { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--bordeaux); transform: translateY(-3px); }
@media (hover: hover) { .sw:hover { transform: translateY(-3px); } }
.custom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--cocoa); }
.custom input { width: 54px; height: 34px; border: 1px solid var(--line); background: none; padding: 2px; cursor: pointer; }

.ptitle { margin: 0 0 12px; font-weight: 400; font-size: 14px; color: var(--cocoa); display: flex; gap: 8px; align-items: baseline; }
.ptitle small { color: var(--rosegold); }
.cards { display: grid; gap: 6px; margin-bottom: 26px; }
.cards--6 { grid-template-columns: repeat(3, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 560px) { .cards--6 { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 559px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { border: 0; background: var(--paper); font: inherit; padding: 14px 4px 10px; display: grid; gap: 4px; justify-items: center; cursor: pointer; border-radius: 2px; transition: background .4s, box-shadow .4s; }
.card b { font-weight: 400; font-size: 13px; } .card .caps { font-size: 8px; color: var(--rosegold); letter-spacing: .16em; }
.card__nail { width: 40%; height: auto; aspect-ratio: 40 / 112; overflow: visible; }
.card__nail--len { aspect-ratio: auto; height: 96px; width: auto; }
.card.is-on { background: var(--blush); box-shadow: inset 0 0 0 1px var(--rosegold); }

.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.acts .btn { justify-content: center; font-size: 14px; min-height: 52px; }
.acts__book { grid-column: 1 / -1; }
@media (min-width: 900px) { .acts { grid-template-columns: 1fr 1fr 1fr; } }

.ideas { margin-top: 30px; }
.ideas__row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.idea { position: relative; flex: none; width: 150px; }
.idea__open { width: 100%; border: 0; background: var(--paper); padding: 14px 10px 10px; display: grid; gap: 6px; justify-items: center; font: inherit; cursor: pointer; }
.idea__set { width: 100%; height: 64px; }
.idea__open b { font-weight: 400; font-size: 12.5px; text-align: center; }
.idea__open span { font-family: var(--f-latin); font-size: 10px; letter-spacing: .14em; color: var(--rosegold); }
.idea__x { position: absolute; top: 2px; inset-inline-end: 2px; width: 30px; height: 30px; border: 0; background: none; font-size: 18px; color: var(--cocoa); cursor: pointer; }

/* nails page: the studio invitation */
.stinv { position: relative; overflow: hidden; background: var(--oxblood); color: var(--paper); }
.stinv__in { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .stinv__in { grid-template-columns: 1fr 1.1fr; } }
.stinv__set { display: flex; justify-content: center; align-items: end; gap: 2%; height: clamp(200px, 30vw, 380px); }
.stinv__set svg { height: 100%; width: auto; overflow: visible; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); transform-origin: 50% 100%; }
.stinv__set svg:nth-child(1) { height: 74%; transform: rotate(-10deg); } .stinv__set svg:nth-child(2) { height: 88%; transform: rotate(-4deg); }
.stinv__set svg:nth-child(4) { height: 88%; transform: rotate(4deg); } .stinv__set svg:nth-child(5) { height: 74%; transform: rotate(10deg); }
.stinv__body { display: grid; gap: 18px; justify-items: start; }
.stinv__body .muted { color: rgba(244,238,230,.74); max-width: 32em; line-height: 2.05; }
.stinv__list { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--champagne); }
.stinv__list b { font-family: var(--f-display); font-weight: 200; font-size: 36px; color: var(--gold); margin-inline-end: 6px; }

/* mobile: a compact sticky stage so the choices stay in view below it */
@media (max-width: 899px) {
  .stage__view { height: clamp(200px, 29svh, 400px); padding-top: 10px; }
  .stage__tools { flex-wrap: nowrap; gap: 10px; margin-top: 8px; }
  .stage__tools .seg button { padding: 6px 12px; min-height: 34px; font-size: 12.5px; }
  .tgl { font-size: 12.5px; gap: 7px; } .tgl__d { display: none; }
  .skins { gap: 5px; } .skins button { width: 22px; height: 22px; }
  .stage__info { padding: 36px 16px 10px; } .stage__name { font-size: 20px; } .stage__shades li { font-size: 11.5px; }
}
.tgl__l { font-weight: 400; } .tgl__l i { font-style: normal; }
.seg__x { font-style: normal; }
@media (max-width: 899px) {
  .seg__x { display: none; }
  /* info as two quiet lines: name + code, then the shades side by side */
  .stage__info { grid-template-columns: 1fr auto; padding: 30px 18px 10px; gap: 4px 12px; background: linear-gradient(0deg, rgba(250,246,241,.96) 45%, rgba(250,246,241,0)); }
  .stage__name { grid-column: 1; grid-row: 1; font-size: 19px; line-height: 1.3; }
  .stage__code { grid-column: 2; grid-row: 1; align-self: center; font-size: 10.5px; }
  .stage__shades { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-items: start; }
  .stage__shades li { font-size: 11.5px; gap: 6px; }
  .stage__shades i { width: 11px; height: 16px; }
}
/* the sticky stage covers the full width, so rows scrolling beneath never peek out at the gutters */
.stage::before { content: ""; position: absolute; inset: -1px calc(-1 * var(--gutter)) 0; background: var(--ivory); z-index: -1; pointer-events: none; }
