/* Bag + checkout sheet: bottom sheet on phones, side panel on desktop. Three steps: Bag → Details → Payment. */
.sheet { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(30, 10, 40, .42); opacity: 0; transition: opacity .5s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; height: calc(100% - env(safe-area-inset-top, 0px) - 18px); background: var(--mist); border-radius: 28px 28px 0 0;
  display: grid; grid-template-rows: auto auto 1fr auto; transform: translateY(104%); transition: transform .65s var(--ease); overflow: hidden; color: var(--ink); }
.sheet.open { pointer-events: auto; }
.sheet.open .sheet__scrim { opacity: 1; }
.sheet.open .sheet__panel { transform: none; box-shadow: 0 -30px 80px rgba(42, 19, 54, .25); }
@media (min-width: 761px) { .sheet__panel { left: auto; top: 0; width: 470px; height: 100%; border-radius: 28px 0 0 28px; transform: translateX(104%); } }

.sh-top { padding: 10px 20px 0; display: grid; gap: 14px; }
.sh-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; }
@media (min-width: 761px) { .sh-grab { visibility: hidden; } }
.sh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-row h2 { font-weight: 300; font-size: 1.7rem; line-height: 1.1; }
.sh-row h2 b { font-weight: 600; color: var(--plum); }
.sh-x { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps span { display: grid; gap: 6px; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--ink) 35%, transparent); transition: color .4s; }
.steps span::before { content: ""; height: 3px; border-radius: 2px; background: var(--line); transition: background .4s; }
.steps span.on { color: var(--plum); }
.steps span.on::before { background: var(--plum); }

.sh-body { overflow: auto; padding: 18px 20px 24px; display: grid; align-content: start; gap: 16px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sh-foot { padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 16px); background: #fff; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sh-foot .btn { width: 100%; height: 56px; }
.sh-foot .back { background: none; border: 0; font-size: .82rem; color: var(--muted); text-decoration: underline; justify-self: center; padding: 4px; }

/* product line card */
.lc { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #fff 0%, #F3ECF8 100%); border: 1px solid var(--line); }
.lc::before { content: ""; position: absolute; z-index: -1; left: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, #E3D2EF, transparent 70%); }
.lc__img { height: 126px; display: grid; place-items: center; }
.lc__img img { height: 120px; width: auto; rotate: -8deg; filter: drop-shadow(0 14px 12px rgba(50, 15, 70, .25)); }
.lc__img.s50 img { height: 96px; }
.lc__info { display: grid; gap: 8px; align-content: center; min-width: 0; }
.lc__info h3 { font-weight: 600; font-size: 1rem; line-height: 1.25; }
.lc__info small { color: var(--muted); font-size: .75rem; }
.lc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lc__price { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.q { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.q button { width: 34px; height: 100%; border: 0; background: none; font-size: 1.05rem; }
.q span { min-width: 20px; text-align: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.lc__rm { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: .72rem; color: var(--muted); text-decoration: underline; }

.freebar { padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; font-size: .82rem; }
.freebar b { color: var(--plum); }
.freebar__track { height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; }
.freebar__track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--plum), #B07CC9); transition: width .6s var(--ease); }
.upsell { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--plum) 40%, transparent); background: rgba(255, 255, 255, .6); }
.upsell img { height: 52px; width: auto; justify-self: center; }
.upsell b { display: block; font-size: .88rem; }
.upsell small { color: var(--muted); font-size: .74rem; }
.upsell button { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--plum); color: #fff; font-size: .8rem; font-weight: 500; }
.sum { display: grid; gap: 8px; font-size: .88rem; padding: 4px 4px 0; }
.sum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum .tot { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; padding-top: 10px; border-top: 1px solid var(--line); }
.empty { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 40px 10px; }
.empty img { height: 170px; width: auto; rotate: -10deg; filter: drop-shadow(0 20px 20px rgba(50, 15, 70, .2)); }
.empty h3 { font-weight: 600; font-size: 1.2rem; }
.empty p { color: var(--muted); font-size: .85rem; }

/* floating-label fields (16px to stop iOS zoom) */
.fields { display: grid; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { position: relative; display: block; }
.f input, .f textarea, .f select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 16px 8px; outline: none; transition: border-color .3s, box-shadow .3s; -webkit-appearance: none; appearance: none; }
.f textarea { resize: none; min-height: 92px; }
.f select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.f span { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--muted); pointer-events: none; transition: top .25s var(--ease), font-size .25s var(--ease), color .25s; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--plum); box-shadow: 0 0 0 3px color-mix(in srgb, var(--plum) 14%, transparent); }
.f input:focus + span, .f input:not(:placeholder-shown) + span, .f textarea:focus + span, .f textarea:not(:placeholder-shown) + span, .f select + span { top: 7px; font-size: 11px; letter-spacing: .06em; color: var(--plum); }
.f.pre input { padding-left: 52px; }
.f.pre::before { content: "+91"; position: absolute; left: 16px; bottom: 9px; font-size: 16px; color: var(--muted); opacity: 0; transition: opacity .3s; }
.f.pre:focus-within::before, .f.pre:has(input:not(:placeholder-shown))::before { opacity: 1; }
.f.pre input:placeholder-shown:not(:focus) { padding-left: 16px; }
.f.pre span { left: 17px; }
.f.bad input, .f.bad textarea, .f.bad select { border-color: var(--saffron); }
.f em { display: none; font-style: normal; font-size: .72rem; color: var(--saffron); padding: 4px 6px 0; }
.f.bad em { display: block; }
.secure { display: flex; gap: 10px; align-items: center; font-size: .76rem; color: var(--muted); }
.secure svg { width: 18px; height: 18px; flex: none; stroke: var(--plum); fill: none; stroke-width: 1.6; }

/* payment */
.pays { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.pay { position: relative; cursor: pointer; }
.pay input { position: absolute; opacity: 0; }
.pay > span { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.pay i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); font-style: normal; font-weight: 700; font-size: .72rem; color: var(--plum); letter-spacing: .02em; }
.pay b { display: block; font-size: .92rem; }
.pay small { color: var(--muted); font-size: .74rem; }
.pay u { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); text-decoration: none; transition: border .3s; }
.pay input:checked + span { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum); }
.pay input:checked + span u { border: 6px solid var(--plum); }
.pay input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.shipto { padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: .82rem; display: grid; gap: 4px; }
.shipto b { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }
.shipto button { justify-self: start; border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: .78rem; }
.mini { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 18px; background: linear-gradient(135deg, #fff, #F3ECF8); border: 1px solid var(--line); font-size: .84rem; }
.mini img { height: 62px; width: auto; justify-self: center; }
.mini b { font-family: var(--f-display); font-weight: 600; }

.done { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 26px 6px; }
.done__art { position: relative; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #fff, #E4D4F0); display: grid; place-items: center; }
.done__art img.t { height: 150px; width: auto; rotate: -10deg; filter: drop-shadow(0 18px 16px rgba(50, 15, 70, .25)); }
.done__art img.f { position: absolute; width: 90px; left: -14px; bottom: -6px; }
.done h3 { font-weight: 300; font-size: 1.8rem; line-height: 1.1; }
.done h3 b { font-weight: 600; color: var(--plum); }
.done p { color: var(--muted); font-size: .85rem; max-width: 34ch; }
.note { font-size: .76rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
