/* =========================================================================
   Warsha — inner pages: store, details, request form, auth, dashboards
   ========================================================================= */

/* ---------------------------------------------------------------- page heads */
.page-head { padding: 34px 0 10px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.page-head.compact { padding: 18px 0 14px; background: none; border: 0; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-top: 12px; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 8px; max-width: 70ch; padding-bottom: 20px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.crumbs .ms { font-size: 1.1rem; opacity: .6; }
.crumbs.light { color: rgba(255,255,255,.8); }
.crumbs.light a:hover { color: #fff; }
.muted { color: var(--muted); }
.fine { margin-top: 12px; display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; color: var(--muted-2); }
.fine .ms { font-size: 1.1em; margin-top: 2px; }

/* ---------------------------------------------------------------- form controls */
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field > label, .label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.field label small, .label small { color: var(--muted-2); font-weight: 600; }
.req { color: var(--danger); font-style: normal; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; min-width: 0;
}
html[lang="ur"] .input, html[lang="ur"] .select { padding-block: 9px; }
.textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.input:hover, .select:hover, .textarea:hover { border-color: #cfc8b8; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14,124,102,.14); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid, .input-validation-error { border-color: var(--danger); background: var(--danger-50); }
.field-error, .field-validation-error { color: var(--danger); font-size: .85rem; font-weight: 600; }
.field-error:empty { display: none; }
.hint { color: var(--muted-2); font-size: .82rem; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline: 14px 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6770' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat;
  background-position: right 14px center;
}
html[dir="rtl"] .select { background-position: left 14px center; padding-inline: 40px 14px; }
.select:disabled { background-color: var(--bg); cursor: not-allowed; opacity: .7; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.phone-wrap { display: flex; align-items: stretch; }
.phone-cc { display: grid; place-items: center; padding: 0 14px; background: var(--bg); border: 1.5px solid var(--line); border-inline-end: 0; border-radius: 12px 0 0 12px; font-weight: 700; color: var(--muted); }
.phone-wrap .input { border-radius: 0 12px 12px 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.seg.seg-sm label > span { padding: 8px 12px; font-size: .88rem; }
.seg-sm { background: var(--bg); }
.alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 14px; }
.alert-error { background: var(--danger-50); color: #991b1b; border: 1px solid #fecaca; }
.alert-ok { background: var(--ok-50); color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warn { background: var(--warn-50); color: #92400e; border: 1px solid #fde68a; }
.alert .ms { vertical-align: -5px; margin-inline-end: 8px; }

.match { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; margin-bottom: 16px; animation: fadeDown .4s var(--ease); }
.match.none { background: var(--warn-50); color: #92400e; }

/* ---------------------------------------------------------------- filter bar + results */
.store-page { padding-block: 24px 40px; }
.filterbar { display: grid; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-sm); }
.fb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fb-row .select { flex: 1; min-width: 150px; width: auto; }
.fb-more { display: grid; gap: 12px; }
.fb-more .seg { background: var(--bg); align-self: start; max-width: 100%; }
.grow { flex: 1; min-width: 200px; }
.filterbar .sfield { background: var(--bg); }
.filterbar .sfield input { padding-block: 12px; }
.fb-toggle { display: none; }
/* "also show workshops that serve this area" toggle */
.check-pill { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill > span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font-weight: 700; font-size: .92rem; white-space: nowrap; transition: all .2s; }
.check-pill > span .ms { font-size: 1.2rem; color: var(--muted-2); }
.check-pill:hover > span { border-color: var(--brand); }
.check-pill input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.check-pill input:checked + span .ms { color: var(--brand); }
.check-pill input:focus-visible + span { outline: 3px solid rgba(15,159,127,.3); outline-offset: 2px; }
/* result that only matched because the workshop serves the area */
.serves { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 2px 10px; border-radius: 999px; background: var(--accent-50); color: #8a5a00; font-weight: 700; font-size: .78rem; }
.serves .ms { font-size: 1rem; color: #b7791f; }
.pcard-meta .serves .ms { color: #b7791f; }
.results-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 26px 0 18px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 14px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: .88rem; transition: background .2s; }
html[dir="rtl"] .chip-x { padding: 5px 14px 5px 8px; }
.chip-x:hover { background: #cdeee4; }
.chip-x .ms { font-size: 1.1rem; }
.reset-link { color: var(--danger); font-weight: 700; font-size: .9rem; }
.reset-link:hover { text-decoration: underline; }
.loadmore-wrap { display: flex; justify-content: center; margin-top: 36px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; font-weight: 700; }
.pgrid-sm { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.empty.small { padding: 28px; }

/* ---------------------------------------------------------------- product / workshop detail */
.pd { padding-block: 8px 60px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .95fr); gap: 32px; align-items: start; }
.pd-main { display: grid; gap: 28px; min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: var(--sh); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; animation: fadeDown .5s var(--ease); }
.gallery-main .pill { position: absolute; top: 16px; inset-inline-start: 16px; background: rgba(255,255,255,.95); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.gallery-main .ph-ico { font-size: 150px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs button { width: 86px; aspect-ratio: 1; padding: 0; border: 2.5px solid transparent; border-radius: 16px; overflow: hidden; background: var(--line); cursor: pointer; transition: all .25s var(--ease); opacity: .75; }
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.thumbs button.active { border-color: var(--brand); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-head { display: grid; gap: 12px; }
.pd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-cat { background: var(--brand-50); color: var(--brand-700); }
a.pill:hover { filter: brightness(.95); }
.pd-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.pd-loc { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-weight: 600; }
.pd-loc span { display: inline-flex; align-items: center; gap: 6px; }
.price-box { display: inline-flex; align-items: baseline; gap: 8px; width: fit-content; padding: 12px 22px; border-radius: 18px; background: var(--accent-50); border: 1px solid #fde4a8; }
.price-box b { font-size: 2rem; font-weight: 800; font-family: 'Plus Jakarta Sans', var(--font); letter-spacing: -.02em; }
.price-box b.ask { font-size: 1.3rem; color: var(--accent-600); }
.price-box small, .price-box span { color: var(--muted); font-weight: 700; }
.price-box .ms { color: var(--accent-600); align-self: center; }
.pd-cta { display: none; width: fit-content; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.spec { display: grid; gap: 2px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.spec small { color: var(--muted); font-weight: 600; }
.spec b { font-weight: 800; }
.block h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.block h2 small { color: var(--muted-2); font-weight: 700; }
.prose { white-space: pre-line; color: var(--ink-2); font-size: 1.04rem; line-height: 1.9; }
.related { margin-top: 28px; }
.wbox { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.wbox-avatar, .wshop-avatar { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: 1.7rem; font-weight: 800; flex-shrink: 0; }
.wbox-avatar img, .wshop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wbox-info { flex: 1; min-width: 200px; }
.wbox-info h3 { font-size: 1.1rem; font-weight: 800; }
.wbox-info a:hover h3 { color: var(--brand); }
.wbox-info .muted { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; }
.wbox-info .sep { margin-inline: 4px; }
.wbox-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-side { position: sticky; top: 92px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--sh); padding: 24px; position: relative; overflow: hidden; }
.qcard::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand-2), var(--accent)); }
.qcard-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.qcard-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.qcard-head h2 { font-size: 1.2rem; font-weight: 800; }
.qcard-head p { color: var(--muted); font-size: .9rem; }
.qf-success { display: grid; justify-items: center; gap: 10px; padding: 28px 8px; text-align: center; animation: pop .6s var(--ease); }
.qf-success h3 { font-size: 1.4rem; font-weight: 800; }
.qf-success p { color: var(--muted); max-width: 36ch; }
.check-anim { width: 92px; height: 92px; }
.check-anim circle { stroke: var(--ok); stroke-width: 3; stroke-dasharray: 150; stroke-dashoffset: 150; animation: draw .8s .1s ease-out forwards; }
.check-anim path { stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mobile-cta { display: none; }

.wshop-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 22px 0 40px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.wshop-pat { position: absolute; inset: 0; z-index: -1; }
.c-carpentry.wshop-hero .wshop-pat { background: repeating-linear-gradient(97deg, rgba(0,0,0,.08) 0 2px, transparent 2px 11px); }
.c-blacksmith.wshop-hero .wshop-pat { background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 5px), radial-gradient(500px 240px at 80% 0%, rgba(251,146,60,.4), transparent 70%); }
.c-aluminum.wshop-hero .wshop-pat { background: linear-gradient(115deg, rgba(255,255,255,.3) 0, transparent 35%, rgba(255,255,255,.2) 62%, transparent 80%); }
.wshop-id { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }
.wshop-avatar { width: 96px; height: 96px; border-radius: 28px; background: #fff; color: var(--brand-700); font-size: 2.6rem; border: 5px solid rgba(255,255,255,.4); box-shadow: var(--sh-lg); }
.wshop-hero h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.4; }
.wshop-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; color: rgba(255,255,255,.9); font-weight: 600; }
.wshop-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wshop-crafts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-light { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; transition: all .2s; }
a.tag:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.tag .ms { color: var(--brand); }
a.tag:hover .ms { color: #fff; }
.tag.plain { background: var(--bg); }

/* ---------------------------------------------------------------- general request page */
.req-page { padding: 34px 0 70px; background: radial-gradient(700px 360px at 0% 0%, rgba(20,176,143,.12), transparent 70%), radial-gradient(600px 300px at 100% 20%, rgba(245,158,11,.12), transparent 70%); }
.req-grid { display: grid; grid-template-columns: 1fr minmax(380px, .9fr); gap: 48px; align-items: start; }
.req-intro h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; margin: 14px 0 10px; line-height: 1.3; }
.req-steps { display: grid; gap: 14px; margin: 14px 0 22px; padding: 0; list-style: none; }
.req-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.req-steps li > .ms { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--brand-50); color: var(--brand); font-size: 26px; flex-shrink: 0; }
.req-steps li div { display: grid; }
.req-steps small { color: var(--muted); font-size: .92rem; }
.req-note { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.req-card { position: sticky; top: 92px; }

/* ---------------------------------------------------------------- auth */
.auth-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: calc(100vh - 72px); }
.auth-side { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 64px 48px; background: linear-gradient(160deg, #071a22, #0a3a40 55%, #0e5c53); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-side::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; background: #14b08f; opacity: .35; filter: blur(80px); top: -140px; inset-inline-start: -120px; animation: drift 16s ease-in-out infinite; }
.auth-side::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; border-radius: 50%; background: #f59e0b; opacity: .22; filter: blur(80px); bottom: -140px; inset-inline-end: -100px; animation: drift 14s ease-in-out infinite reverse; }
.auth-side h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 800; line-height: 1.3; }
.auth-side > p { color: rgba(255,255,255,.8); max-width: 44ch; font-size: 1.05rem; }
.perks { display: grid; gap: 14px; margin-top: 6px; }
.perks li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); font-weight: 600; transition: transform .3s var(--ease), background .3s; }
.perks li:hover { transform: translateX(calc(6px * var(--dir))); background: rgba(255,255,255,.14); }
.perks .ms { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #2b1a00; font-size: 24px; flex-shrink: 0; }
.perks small { display: block; color: rgba(255,255,255,.7); font-weight: 500; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: min(100%, 560px); }
.auth-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin-bottom: 22px; }
.auth-card.wide { width: min(100%, 680px); }
.auth-foot { margin-top: 18px; text-align: center; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 800; }
.auth-foot a:hover { text-decoration: underline; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 48px; }
.pw-wrap button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.pw-wrap button:hover { background: var(--bg); color: var(--ink); }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.checkline input { width: 18px; height: 18px; accent-color: var(--brand); }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.link { color: var(--brand); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* wizard */
.wz-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 18px 0 12px; }
.wz-progress i { display: block; height: 100%; width: 33%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--accent)); transition: width .5s var(--ease); }
.wz-dots { display: flex; justify-content: space-between; margin-bottom: 24px; }
.wz-dots span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted-2); font-size: .9rem; transition: color .3s; }
.wz-dots span b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: .8rem; transition: all .3s; }
.wz-dots span.active { color: var(--ink); }
.wz-dots span.active b { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(14,124,102,.18); }
.wz-dots span.done b { background: var(--ok); color: #fff; }
.wz-step { animation: fadeDown .45s var(--ease); }
.wz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wz-actions .btn { min-width: 130px; }
.craft-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.craft-pick label { cursor: pointer; }
.craft-pick input { position: absolute; opacity: 0; pointer-events: none; }
.craft-pick label > span { display: grid; justify-items: center; gap: 4px; padding: 16px 8px; border: 2px solid var(--line); border-radius: 18px; background: #fff; font-weight: 800; text-align: center; transition: all .25s var(--ease); }
.craft-pick .ms { font-size: 30px; color: var(--c1); transition: transform .3s var(--ease); }
.craft-pick label:hover > span { transform: translateY(-3px); border-color: var(--c1); }
.craft-pick input:checked + span { border-color: var(--c2); background: var(--cs); color: var(--c2); box-shadow: 0 10px 22px -12px var(--c2); }
.craft-pick input:checked + span .ms { transform: scale(1.15) rotate(-6deg); color: var(--c2); }
.craft-pick input:focus-visible + span { outline: 3px solid rgba(245,158,11,.55); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px; overflow: auto; padding: 4px; }
.chips-pick label { cursor: pointer; }
.chips-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chips-pick label > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .88rem; transition: all .2s; }
.chips-pick label > span .ms { color: var(--muted-2); font-size: 1.1rem; }
.chips-pick label:hover > span { border-color: var(--brand); }
.chips-pick input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips-pick input:checked + span .ms { color: #fff; }
.chips-pick input:focus-visible + span { outline: 3px solid rgba(245,158,11,.55); }

/* ---------------------------------------------------------------- uploader */
.uploader { display: grid; place-items: center; gap: 6px; padding: 26px; border: 2px dashed #cfc8b8; border-radius: 20px; background: var(--bg); text-align: center; cursor: pointer; transition: all .25s; position: relative; }
.uploader:hover, .uploader.drag { border-color: var(--brand); background: var(--brand-50); }
.uploader input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.uploader .ms { font-size: 38px; color: var(--brand); }
.uploader small { color: var(--muted); }
.upl-previews, .img-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upl-item, .img-item { position: relative; width: 104px; height: 104px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); animation: pop .4s var(--ease); }
.upl-item img, .img-item img { width: 100%; height: 100%; object-fit: cover; }
.upl-rm { position: absolute; top: 5px; inset-inline-end: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(11,27,36,.75); color: #fff; cursor: pointer; display: grid; place-items: center; }
.upl-rm .ms { font-size: 16px; }
.img-item label { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px; background: rgba(11,27,36,.72); color: #fff; font-size: .78rem; font-weight: 700; cursor: pointer; }
.img-item input:checked ~ img { opacity: .25; }
.img-item input { accent-color: var(--danger); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .pd-grid, .req-grid { grid-template-columns: 1fr; }
  .pd-side, .req-card { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 24px; }
}
@media (max-width: 760px) {
  .fb-toggle { display: inline-flex; }
  .fb-more { display: none; }
  .filterbar.open .fb-more { display: grid; animation: fadeDown .35s var(--ease); }
  .fb-row .select { min-width: 0; flex: 1 1 100%; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .craft-pick { grid-template-columns: 1fr; }
  .craft-pick span { grid-template-columns: auto 1fr; justify-items: start; align-items: center; padding: 12px 16px; }
  .pd-cta { display: inline-flex; }
  .mobile-cta { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(11,27,36,.1); transition: transform .3s var(--ease); }
  .mobile-cta.hide { transform: translateY(110%); }
  .site-footer { padding-bottom: 70px; }
  .wshop-id { gap: 14px; }
  .wshop-avatar { width: 76px; height: 76px; font-size: 2rem; }
}

/* =========================================================================
   Legal page (terms + privacy) and usage guide
   ========================================================================= */
.legal-page, .guide-page { padding-block: 28px 64px; }
.legal-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 32px; }
.legal-card { display: grid; gap: 6px; align-content: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-sm); }
.legal-card > .ms { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-50); color: var(--brand); font-size: 26px; }
.legal-card b { font-size: 1.05rem; margin-top: 4px; }
.legal-card p { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.legal-card.warn { border-color: #f5d9a0; background: linear-gradient(135deg, #fffaf0, #fff); }
.legal-card.warn > .ms { background: var(--accent); color: #2b1a00; }

.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.legal-toc { position: sticky; top: 92px; display: grid; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-sm); max-height: calc(100vh - 120px); overflow: auto; }
.legal-toc > b { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); font-size: .9rem; font-weight: 600; transition: background .2s, color .2s; }
.legal-toc a:hover { background: var(--bg); color: var(--brand-700); }
.legal-toc .toc-main { margin-top: 10px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: .95rem; }
.legal-toc ol { list-style: none; display: grid; gap: 1px; padding-inline-start: 6px; }

.legal-body { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--sh-sm); }
.legal-part + .legal-part { margin-top: 56px; padding-top: 44px; border-top: 2px dashed var(--line); }
.legal-part h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.legal-part .updated { color: var(--muted-2); font-weight: 600; margin: 4px 0 18px; }
.legal-part h3 { margin: 30px 0 10px; font-size: 1.2rem; font-weight: 800; color: var(--ink); scroll-margin-top: 96px; }
.legal-part p, .legal-part li { line-height: 1.95; color: var(--ink-2); }
.legal-part p { margin: 10px 0; }
.legal-part ul { list-style: disc; display: grid; gap: 8px; margin: 10px 0; padding-inline-start: 22px; }
.legal-part a { color: var(--brand-700); font-weight: 700; }
.legal-part a:hover { text-decoration: underline; }
.legal-part section[id], #terms, #privacy { scroll-margin-top: 96px; }

.callout { display: flex; gap: 14px; margin: 14px 0; padding: 18px 20px; border-radius: 18px; border: 1.5px solid; line-height: 1.9; }
.callout > .ms { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0 0 8px; }
.callout ul { margin: 8px 0 0; }
.callout.warn { background: #fffaf0; border-color: #f5c451; color: #5c3b00; }
.callout.warn > .ms { color: var(--accent-600); }
.callout.warn p, .callout.warn li { color: #5c3b00; }
.callout.disclaimer { background: var(--danger-50); border-color: #f1b4b4; color: #7a1d1d; }
.callout.disclaimer > .ms { color: var(--danger); }
.callout.disclaimer p, .callout.disclaimer li { color: #5f1a1a; }

.legal-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
.legal-table th { text-align: start; padding: 12px 14px; background: var(--bg); color: var(--muted); font-size: .8rem; font-weight: 800; }
.legal-table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.8; color: var(--ink-2); }
.legal-table td:first-child { width: 17%; color: var(--ink); }
.legal-foot { margin-top: 28px; text-align: center; color: var(--muted); }

/* guide */
.guide-tabs { margin-bottom: 28px; }
.guide-panel[hidden] { display: none; }
.guide-panel + .guide-panel { margin-top: 48px; }
.guide-steps { display: grid; gap: 28px; counter-reset: gs; }
.guide-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--sh-sm); }
.guide-step:nth-child(even) .gs-shot { order: -1; }
.guide-step.no-shot { grid-template-columns: 1fr; }
.gs-text { display: grid; gap: 10px; align-content: center; }
.gs-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--brand-2), var(--brand-700)); color: #fff; font-weight: 800; font-size: 1.2rem; font-family: 'Plus Jakarta Sans', var(--font); box-shadow: 0 10px 20px -10px rgba(14,124,102,.7); }
.gs-text h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; line-height: 1.4; }
.gs-text h2 .ms { color: var(--brand); font-size: 1.6rem; }
.gs-text p { color: var(--ink-2); line-height: 1.95; font-size: 1.02rem; }
.gs-shot { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: 0 18px 40px -20px rgba(11,27,36,.35); }
.gs-shot img { width: 100%; height: auto; display: block; }
.tips { margin-top: 28px; padding: 22px 24px; border-radius: 22px; background: linear-gradient(135deg, var(--accent-50), #fff); border: 1.5px solid #fde4a8; }
.tips h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.tips h3 .ms { color: var(--accent-600); }
.tips ul { list-style: disc; display: grid; gap: 8px; padding-inline-start: 22px; color: var(--ink-2); line-height: 1.85; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
  .guide-step { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .guide-step:nth-child(even) .gs-shot { order: 0; }
}

/* consent checkbox (workshop registration) */
.consent { margin-top: 18px; padding: 14px 16px; border: 1.5px solid #f5d9a0; border-radius: 16px; background: #fffaf0; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.8; color: var(--ink-2); font-weight: 600; }
.consent-row input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--brand); flex-shrink: 0; }
.consent-row a { color: var(--brand-700); font-weight: 800; text-decoration: underline; }
.footer-bottom .footer-links { order: 2; }

/* Urdu (Nastaliq) needs much more line height than other scripts */
html[lang="ur"] .legal-part p, html[lang="ur"] .legal-part li, html[lang="ur"] .legal-table td, html[lang="ur"] .callout,
html[lang="ur"] .legal-card p, html[lang="ur"] .gs-text p, html[lang="ur"] .tips li { line-height: 2.5; }
html[lang="ur"] .legal-part h3 { line-height: 2.1; }
html[lang="ur"] .legal-card b { line-height: 2; }
