/* Punarjanma Nepal: the shop and the product page. */
@property --tint { syntax: '<color>'; inherits: true; initial-value: #CFCAC0; }

/* ───── the top of the shop: title on the left, the short line beside it */
.shop-top { padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 44px); }
.shop-top-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24em); gap: 16px clamp(24px, 5vw, 80px); align-items: end; max-width: calc(1180px + 2 * var(--gut)); }
.shop-title { margin: .15em 0 0; font-size: clamp(40px, 5vw, 80px); line-height: .92; color: var(--text); max-width: 9.5em; }
.shop-sub { margin: 0; color: var(--text-2); font-size: clamp(16px, 1.2vw, 19px); padding-bottom: .4em; }
@media (max-width: 760px) { .shop-top-in { grid-template-columns: minmax(0, 1fr); } .shop-sub { padding-bottom: 0; } }

/* ───── the range: every product on one screen, small cards with live colour swatches */
.range { padding: 0 0 clamp(56px, 8vw, 110px); }
.range-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(14px, 1.8vw, 26px); max-width: 1180px; margin: 0 auto; }
.look { display: grid; gap: 12px; align-content: start; }
.look-media { display: block; text-decoration: none; }
.look-name { margin: 0; font-size: clamp(22px, 1.7vw, 28px); line-height: 1; }
.look-name a { text-decoration: none; color: var(--text); }
.look-name a::after { content: ""; position: absolute; inset: 0; }
.look { position: relative; }
.look .sw-row { position: relative; z-index: 1; gap: 4px; }
.look .sw { width: 30px; height: 30px; }
.look .sw i { inset: 4px; }
.look-short { margin: 0; color: var(--text-2); font-size: .92em; }
.look-colour, .pd-colour-h { margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; font-size: .92em; }
.look-colour { justify-content: space-between; margin: -4px 0 4px; font-size: .88em; }
.look-colour span, .pd-colour-h span { color: var(--text-2); }
.look-colour b, .pd-colour-h b { font-weight: 600; color: var(--text); }

/* ───── the stage: a photo that changes colour with a wave from the chosen swatch */
.stage { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; clip-path: inset(0 round 14px); background: color-mix(in srgb, var(--tint) 18%, #F1EEE7); transition: --tint .8s ease; isolation: isolate; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.look:hover .stage-img { transform: scale(1.04); }
.stage-wave { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage-next { z-index: 2; }
.stage-art { position: absolute; inset: 14% 18%; width: 64%; height: 72%; }
.stage-art path { fill: var(--ink); opacity: .16; }

/* swatches */
.sw-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { position: relative; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.sw i { position: absolute; inset: 5px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.sw::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--text); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.3,1.4); }
.sw[aria-checked=true]::after { opacity: 1; transform: none; }
.sw:hover i { transform: scale(1.1); }
.sw:active i { transform: scale(.9); }
.sw:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ───── product page: the backdrop takes a soft tint of the chosen colour */
.pd { background: color-mix(in srgb, var(--tint) 9%, var(--paper)); transition: --tint .9s ease; padding: clamp(20px, 3vw, 44px) 0 clamp(36px, 5vw, 72px); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.pd-stage { aspect-ratio: 4 / 3; border-radius: 22px; clip-path: inset(0 round 22px); }
.pd-media { filter: drop-shadow(0 26px 26px color-mix(in srgb, var(--tint) 28%, transparent)); }
.pd-more-shots { display: flex; gap: 8px; margin-top: 10px; }
.pd-more-shots:empty { display: none; }
.pd-more-shots button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.pd-more-shots button.on { border-color: var(--text); }
.pd-more-shots img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .crumbs { margin-bottom: 14px; }
.pd-name { margin: 0 0 .2em; font-size: clamp(48px, 5.6vw, 92px); line-height: .9; color: var(--text); }
.pd-short { margin: 0 0 1.6em; font-size: clamp(18px, 1.35vw, 21px); color: var(--text-2); max-width: 26em; }
.pd-colour { margin: 0 0 1.8em; }
.pd-colour .sw { width: 46px; height: 46px; }
.pd-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* more from the range: small, close together */
.pd-rel { padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.pd-rel-h { font-size: clamp(26px, 2.4vw, 36px); margin: 0 0 16px; color: var(--text); }
.pd-rel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; max-width: 1000px; }
.rel { display: grid; gap: 8px; text-decoration: none; color: var(--text); }
.rel-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #ECE8E0; }
.rel-img img, .rel-img svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.rel-img svg path { fill: var(--ink); opacity: .15; }
.rel:hover .rel-img img { transform: scale(1.05); }
.rel-name { font: 800 clamp(18px, 1.4vw, 22px)/1 var(--display); }

@media (max-width: 860px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-rel-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) { .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .look .sw { width: 28px; height: 28px; } .look-colour span { display: none; } }
@media (prefers-reduced-motion: reduce) { .stage, .pd { transition: none; } }

/* ───── product page fits one screen: the photo sizes itself to the height left under the header */
.pd { --hh: 70px; --pad: clamp(16px, 3vh, 36px); min-height: calc(100vh - var(--hh)); min-height: calc(100svh - var(--hh)); display: flex; align-items: center; padding: var(--pad) 0; }
.pd > .wrap { width: 100%; }
.pd-media { --shots: 0px; width: min(100%, calc((100svh - var(--hh) - 2 * var(--pad) - var(--shots)) * 4 / 3)); justify-self: center; }
.pd-media:has(.pd-more-shots:not(:empty)) { --shots: 74px; }
.pd-name { font-size: clamp(40px, min(5.4vw, 9.5vh), 92px); }
.pd-short { margin-bottom: 1.2em; }
.pd-colour { margin-bottom: 1.4em; }
@media (max-width: 860px) {
  .pd { --hh: 62px; min-height: 0; display: block; }
  .pd-media { width: min(100%, calc((60svh - var(--shots)) * 4 / 3)); }
  .pd-name { font-size: clamp(40px, 11vw, 60px); }
}

/* ───── quote: one screen, a short intro beside a compact form */
.qt { --hh: 70px; min-height: calc(100svh - var(--hh)); display: flex; align-items: center; padding: clamp(18px, 3.4vh, 44px) 0; }
.qt > .wrap { width: 100%; }
.qt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 88px); align-items: center; max-width: 1180px; }
.qt-h { margin: .15em 0 .3em; font-size: clamp(38px, min(4.4vw, 8vh), 68px); line-height: .95; color: var(--text); }
.qt-lead { margin: 0 0 clamp(18px, 3vh, 30px); color: var(--text-2); font-size: clamp(16px, 1.2vw, 19px); max-width: 26em; }
.qt-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px; border-radius: 16px; background: var(--white); text-decoration: none; color: var(--text); max-width: 420px; box-shadow: 0 0 0 1px var(--line-n); transition: box-shadow .2s; }
.qt-item:hover { box-shadow: 0 0 0 1px var(--line-n), 0 10px 24px -14px rgba(14,51,38,.4); }
.qt-thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #ECE8E0; }
.qt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qt-item b { display: block; font: 800 22px/1.05 var(--display); }
.qt-item small { display: block; margin-top: 4px; color: var(--text-2); font-size: .86em; line-height: 1.35; }
.qt-steps { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; gap: 10px; }
.qt-steps li { counter-increment: q; display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.qt-steps li::before { content: counter(q); flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--t-green); color: var(--ink); font: 800 14px/1 var(--display); }
.qt-alt { margin: clamp(16px, 2.6vh, 26px) 0 0; font-size: .94em; color: var(--text-2); }
.qt-form { gap: 12px; padding: clamp(18px, 2.4vw, 30px); box-shadow: 0 0 0 1px var(--line-n), 0 24px 48px -30px rgba(14,51,38,.35); }
.qt-form .row2 { gap: 12px; }
.qt-form .field label { font-size: .86em; }
.qt-form .field input:not([type=checkbox]), .qt-form .field select, .qt-form .field textarea { padding: 9px 12px; }
.qt-form .field textarea { min-height: 76px; }
.qt-send { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: 2px; }
.qt-send .check { font-size: .94em; }
@media (max-width: 860px) {
  .qt { --hh: 62px; min-height: 0; display: block; }
  .qt-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .qt-h { font-size: clamp(36px, 10vw, 50px); }
}
@media (max-width: 480px) { .qt-form .row2 { grid-template-columns: 1fr 1fr; } .qt-send .btn { width: 100%; justify-content: center; } }

/* ───── search: a quiet field under the intro, filters as you type */
.shop-side { display: grid; gap: 16px; }
.shop-find { position: relative; display: flex; align-items: center; height: 48px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(20,64,47,.16); transition: border-color .15s, box-shadow .15s; }
.shop-find:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20,64,47,.1); }
.shop-find > svg { position: absolute; left: 16px; width: 19px; height: 19px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.shop-find input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 44px 0 44px; font: inherit; font-size: 16px; color: var(--text); outline: none; border-radius: 999px; }
.shop-find input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.shop-find input::placeholder { color: color-mix(in srgb, var(--text-2) 80%, transparent); }
.shop-find-x { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.shop-find-x:hover { background: rgba(20,64,47,.07); color: var(--text); }
.shop-find-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.shop-find-x[hidden] { display: none; }
.look[hidden] { display: none; }
.shop-none { margin: clamp(8px, 2vw, 24px) 0 0; font-size: 1.05em; color: var(--text-2); }
