/* CrïcArts — brand tokens from دليل الهوية البصرية (Brand Book 2026)
   Motion tokens from morphing-micro-interactions skill */
:root {
  --pink: #F08898; --pink2: #F8A8C8;
  --sky: #A8D8F0; --sky2: #5BAED6;
  --gold: #F8D048; --gold2: #D0B848;
  --ivory: #FFFDF9; --obsidian: #111827;
  --ink: #2b2430; --muted: #7a6f80;
  --card: #ffffff; --line: #f3e4e8;
  --ok: #16a34a; --bad: #e11d48;
  --shadow: 0 18px 40px -18px rgba(240, 136, 152, .35);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 140ms; --t-base: 280ms; --t-morph: 480ms; --t-slow: 900ms;
  --font-head: 'Noto Kufi Arabic', system-ui, sans-serif;
  --font-body: 'Noto Sans Arabic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--sky2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 249, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.hdr__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hdr__logo img { height: 46px; width: auto; }
.hdr__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--obsidian); }
.hdr__name small { display: block; font-size: .68rem; color: var(--muted); font-weight: 400; letter-spacing: .14em; }
.hdr__nav { display: flex; gap: 4px; margin-inline-start: 10px; }
.hdr__nav a {
  text-decoration: none; font-size: .92rem; color: var(--muted); padding: 8px 12px; border-radius: 999px;
  transition: color var(--t-fast) var(--ease-standard), background var(--t-fast) var(--ease-standard);
}
.hdr__nav a:hover { color: var(--obsidian); background: #fdeef2; }
.hdr__spacer { flex: 1; }

/* cart button in header */
.cartbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--obsidian); color: #fff; font-weight: 600; font-size: .92rem;
  transition: transform 120ms ease-out, box-shadow 200ms ease;
  box-shadow: 0 10px 24px -12px rgba(17, 24, 39, .55);
}
.cartbtn:hover { transform: translateY(-1px); }
.cartbtn:active { transform: scale(.96); }
.cartbtn svg { width: 19px; height: 19px; }
.cartbtn__n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gold); color: var(--obsidian); font-size: .78rem; font-weight: 800;
  display: grid; place-items: center;
  transition: transform 250ms var(--ease-spring);
}
.cartbtn__n.bump { animation: bump 380ms var(--ease-spring); }
@keyframes bump { 35% { transform: scale(1.45); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 54px 0 30px; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hero__blob--p { width: 480px; height: 480px; background: var(--pink2); top: -160px; inset-inline-start: -120px; }
.hero__blob--s { width: 420px; height: 420px; background: var(--sky); bottom: -180px; inset-inline-end: -100px; }
.hero__blob--g { width: 260px; height: 260px; background: var(--gold); top: 30%; inset-inline-start: 42%; opacity: .28; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.hero__logo {
  position: relative; justify-self: center;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 34px rgba(240, 136, 152, .35));
}
.hero__logo img { width: min(420px, 80vw); }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--pink2); color: var(--pink);
  font-size: .82rem; font-weight: 700; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; color: var(--obsidian); margin: 16px 0 10px; }
.hero h1 .hl { color: var(--pink); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ''; position: absolute; right: 0; left: 0; bottom: 4px; height: 12px; z-index: -1;
  background: linear-gradient(90deg, var(--gold), var(--pink2)); border-radius: 6px; opacity: .55;
}
.hero__p { color: var(--muted); font-size: 1.06rem; max-width: 46ch; margin: 0 0 22px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.cta {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 0;
  transition: transform 120ms ease-out, box-shadow 220ms ease, background 220ms ease;
}
.cta:active { transform: scale(.96); }
.cta--gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--obsidian); box-shadow: 0 14px 28px -12px rgba(208, 184, 72, .8); }
.cta--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(208, 184, 72, .95); }
.cta--ghost { background: #fff; color: var(--obsidian); border: 1.5px solid var(--line); }
.cta--ghost:hover { border-color: var(--pink2); background: #fdeef2; }
.cta svg { width: 19px; height: 19px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .83rem; color: var(--muted);
}
.chip b { color: var(--obsidian); }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- sections ---------- */
.sec { padding: 44px 0; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec__title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; color: var(--obsidian); }
.sec__title small { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); font-family: var(--font-body); margin-top: 4px; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: all var(--t-fast) var(--ease-standard);
}
.pill:hover { border-color: var(--pink2); color: var(--pink); transform: translateY(-1px); }
.pill[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: var(--shadow); }
.search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 8px 16px; min-width: 220px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search:focus-within { border-color: var(--sky2); box-shadow: 0 0 0 4px rgba(168, 216, 240, .35); }
.search input { border: 0; outline: 0; background: none; width: 100%; color: var(--ink); }
.search svg { width: 17px; height: 17px; stroke: var(--muted); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-base) var(--ease-out-expo), box-shadow var(--t-base) ease;
  opacity: 0; transform: translateY(18px);
}
.card.shown { opacity: 1; transform: none; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__img { position: relative; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; background: #faf3f0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out-expo); }
.card:hover .card__img img { transform: scale(1.06); }
.card__cat {
  position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 253, 249, .9); backdrop-filter: blur(6px); font-size: .74rem; font-weight: 700; color: var(--pink);
}
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-size: 1.02rem; font-weight: 700; color: var(--obsidian); font-family: var(--font-head); }
.card__desc { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { display: flex; flex-direction: column; }
.price small { font-size: .68rem; color: var(--muted); }
.price b {
  font-family: var(--font-head); font-size: 1.02rem; color: var(--obsidian);
  background: linear-gradient(135deg, var(--gold), #fbe27a); padding: 2px 12px; border-radius: 999px; width: max-content;
}

/* add-to-cart morph button (morphing-micro-interactions skill) */
.mi-add {
  position: relative; display: grid; place-items: center;
  width: 118px; min-width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px;
  background: var(--obsidian); color: #fff; overflow: hidden; font-weight: 700; font-size: .86rem;
  box-shadow: 0 10px 22px -10px rgba(17, 24, 39, .6);
  transition: width var(--t-morph) var(--ease-in-out), background-color 300ms ease, transform 120ms ease-out;
}
.mi-add:active { transform: scale(.94); }
.mi-add > * { grid-area: 1 / 1; }
.mi-add__label { display: flex; align-items: center; gap: 7px; white-space: nowrap; transition: opacity 160ms ease, transform 300ms var(--ease-in-out); }
.mi-add svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mi-add__spin { opacity: 0; animation: none; }
.mi-add__check { opacity: 0; }
.mi-add__check path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.mi-add[data-state="adding"], .mi-add[data-state="added"] { width: 46px; }
.mi-add[data-state="adding"] .mi-add__label, .mi-add[data-state="added"] .mi-add__label { opacity: 0; transform: scale(.6); }
.mi-add[data-state="adding"] .mi-add__spin { opacity: 1; animation: rot 800ms linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.mi-add[data-state="added"] { background: var(--ok); }
.mi-add[data-state="added"] .mi-add__check { opacity: 1; animation: pop 400ms var(--ease-spring); }
.mi-add[data-state="added"] .mi-add__check path { transition: stroke-dashoffset 380ms ease-out 120ms; stroke-dashoffset: 0; }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  transition: transform var(--t-base) var(--ease-out-expo), box-shadow var(--t-base) ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; }
.value__ic svg { width: 23px; height: 23px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1rem; margin-bottom: 6px; color: var(--obsidian); }
.value p { margin: 0; font-size: .87rem; color: var(--muted); }

/* ---------- workshop strip ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 70vw); gap: 14px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--pink2); border-radius: 8px; }
.strip figure { margin: 0; border-radius: 18px; overflow: hidden; scroll-snap-align: start; position: relative; border: 1px solid var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 500ms var(--ease-out-expo); }
.strip figure:hover img { transform: scale(1.05); }
.strip figcaption {
  position: absolute; bottom: 0; right: 0; left: 0; padding: 26px 14px 10px; font-size: .8rem; color: #fff;
  background: linear-gradient(0deg, rgba(17, 24, 39, .72), transparent);
}

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity var(--t-base) ease; z-index: 60; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(430px, 94vw); z-index: 70;
  background: var(--ivory); box-shadow: -18px 0 50px -20px rgba(17, 24, 39, .4);
  transform: translateX(-105%); transition: transform 420ms var(--ease-out-expo);
  display: flex; flex-direction: column;
}
[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.on { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.15rem; color: var(--obsidian); }
.drawer__items { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.citem { display: grid; grid-template-columns: 66px 1fr auto; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; align-items: center; }
.citem img { width: 66px; height: 66px; object-fit: cover; border-radius: 12px; }
.citem__name { font-weight: 700; font-size: .9rem; color: var(--obsidian); }
.citem__custom { font-size: .74rem; color: var(--muted); }
.citem__price { font-size: .83rem; color: var(--pink); font-weight: 700; }
.citem__side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 26px; height: 26px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 800; color: var(--pink); line-height: 1; transition: all var(--t-fast);
}
.qty button:hover { border-color: var(--pink); background: #fdeef2; }
.qty button:active { transform: scale(.9); }
.qty b { min-width: 18px; text-align: center; font-size: .92rem; }

/* delete morph (skill) */
.mi-del {
  position: relative; display: grid; place-items: center;
  width: 30px; height: 30px; border: 0; border-radius: 999px; background: #fdeef2; color: var(--bad);
  transition: transform 120ms ease-out, background 200ms ease;
}
.mi-del svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mi-del:hover { background: #fbd5dd; transform: scale(1.08); }
.mi-del:active { transform: scale(.9); }
.mi-del .lid { transform-origin: 6px 5px; transition: transform 250ms var(--ease-spring); }
.mi-del:hover .lid { transform: rotate(-24deg) translateY(-1.5px); }

.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--obsidian); }
.total b { font-family: var(--font-head); font-size: 1.2rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; display: grid; gap: 10px; justify-items: center; }
.empty svg { width: 54px; height: 54px; stroke: var(--pink2); }

/* send-order morph button (skill: send) */
.mi-send {
  display: grid; place-items: center; width: 100%; min-width: 52px; height: 52px; padding: 0; border: 0; border-radius: 999px;
  color: var(--obsidian); background: linear-gradient(135deg, var(--gold), var(--gold2)); overflow: hidden; font-weight: 800; font-size: 1rem;
  box-shadow: 0 12px 26px -10px rgba(208, 184, 72, .8);
  transition: width var(--t-morph) var(--ease-in-out), background 300ms ease, transform 120ms ease-out;
}
.mi-send:active { transform: scale(.97); }
.mi-send > * { grid-area: 1 / 1; }
.mi-send__label { display: flex; gap: 9px; align-items: center; white-space: nowrap; transition: opacity 160ms ease, transform 300ms var(--ease-in-out); }
.mi-send svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mi-send__plane { opacity: 0; }
.mi-send__check { opacity: 0; }
.mi-send__check path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.mi-send[data-state="sending"], .mi-send[data-state="sent"] { width: 52px; justify-self: center; }
.mi-send[data-state="sending"] .mi-send__label, .mi-send[data-state="sent"] .mi-send__label { opacity: 0; transform: scale(.6); }
.mi-send[data-state="sending"] .mi-send__plane { opacity: 1; animation: fly 900ms var(--ease-in-out) infinite; }
@keyframes fly { 0% { transform: translate(-24px, 10px) scale(.7); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translate(24px, -10px) scale(.7); opacity: 0; } }
.mi-send[data-state="sent"] { background: var(--ok); color: #fff; }
.mi-send[data-state="sent"] .mi-send__check { opacity: 1; animation: pop 400ms var(--ease-spring); }
.mi-send[data-state="sent"] .mi-send__check path { transition: stroke-dashoffset 380ms ease-out 120ms; stroke-dashoffset: 0; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; opacity: 0; pointer-events: none; transition: opacity var(--t-base) ease; }
.modal.on { opacity: 1; pointer-events: auto; }
.modal__box {
  background: var(--ivory); border-radius: 24px; width: min(880px, 96vw); max-height: 90vh; overflow-y: auto;
  transform: translateY(18px) scale(.98); transition: transform 340ms var(--ease-out-expo);
  box-shadow: 0 30px 80px -30px rgba(17, 24, 39, .5);
}
.modal.on .modal__box { transform: none; }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv__img { aspect-ratio: 1; }
.qv__img img { width: 100%; height: 100%; object-fit: cover; }
.qv__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.qv__cat { color: var(--pink); font-size: .8rem; font-weight: 700; }
.qv__name { font-size: 1.4rem; color: var(--obsidian); }
.qv__desc { color: var(--muted); font-size: .95rem; margin: 0; }
.qv__price { font-family: var(--font-head); font-size: 1.3rem; color: var(--obsidian); background: linear-gradient(135deg, var(--gold), #fbe27a); padding: 4px 18px; border-radius: 999px; width: max-content; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--obsidian); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; background: #fff; color: var(--ink); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sky2); box-shadow: 0 0 0 4px rgba(168, 216, 240, .35); }
.field textarea { resize: vertical; min-height: 74px; }
.field .hint { font-size: .74rem; color: var(--muted); }

.x {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 38px; height: 38px; border-radius: 999px; border: 0;
  background: rgba(255, 253, 249, .9); color: var(--obsidian); font-size: 1.1rem; font-weight: 700;
  transition: transform 150ms var(--ease-spring), background 150ms;
}
.x:hover { transform: rotate(90deg); background: #fdeef2; }

/* checkout */
.co { width: min(560px, 96vw); }
.co__body { padding: 26px; display: grid; gap: 14px; }
.co__title { font-size: 1.25rem; color: var(--obsidian); }
.co__sum { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: .88rem; display: grid; gap: 6px; }
.co__sum .r { display: flex; justify-content: space-between; color: var(--muted); }
.co__sum .r:last-child { color: var(--obsidian); font-weight: 800; border-top: 1px dashed var(--line); padding-top: 6px; }

/* toast */
.toast {
  position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translate(50%, 80px); z-index: 90;
  background: var(--obsidian); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  opacity: 0; transition: transform 400ms var(--ease-spring), opacity 300ms ease; pointer-events: none;
  box-shadow: 0 16px 40px -14px rgba(17, 24, 39, .6);
}
.toast.on { transform: translate(50%, 0); opacity: 1; }

/* ---------- footer ---------- */
.ftr { background: var(--obsidian); color: #e8e2ec; margin-top: 50px; }
.ftr__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding: 44px 0 30px; }
.ftr__logo { width: 190px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4)); }
.ftr p { color: #b9b0c2; font-size: .9rem; margin: 10px 0 0; }
.ftr h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.ftr ul a { color: #b9b0c2; text-decoration: none; transition: color var(--t-fast); }
.ftr ul a:hover { color: var(--gold); }
.ftr__bar { border-top: 1px solid #262037; padding: 16px 0; font-size: .8rem; color: #8d8496; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 560ms ease, transform 640ms var(--ease-out-expo); }
.rv.in { opacity: 1; transform: none; }

/* ---------- admin ---------- */
.admin-body { background: linear-gradient(160deg, #fff5f8, var(--ivory) 40%, #f2f9fe); min-height: 100vh; }
.adm { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.adm__side { background: var(--obsidian); color: #cfc6d8; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.adm__brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.adm__brand img { height: 40px; }
.adm__brand b { color: #fff; font-family: var(--font-head); font-size: .95rem; }
.adm__tab {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 13px; border: 0; background: none;
  color: #cfc6d8; font-size: .92rem; font-weight: 600; text-align: start; transition: all var(--t-fast);
}
.adm__tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm__tab:hover { background: #1d2333; color: #fff; }
.adm__tab[aria-selected="true"] { background: linear-gradient(135deg, var(--pink), #e06070); color: #fff; box-shadow: 0 10px 22px -10px rgba(240, 136, 152, .7); }
.adm__side .foot { margin-top: auto; display: grid; gap: 4px; }
.adm__main { padding: 26px clamp(16px, 3.5vw, 40px); }
.adm__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.adm__top h1 { font-size: 1.4rem; color: var(--obsidian); }
.adm__top p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.adm__actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: .88rem;
  border: 1.5px solid var(--line); background: #fff; color: var(--obsidian); text-decoration: none;
  transition: all var(--t-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: scale(.96); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); border: 0; }
.btn--dark { background: var(--obsidian); color: #fff; border: 0; }
.btn--danger { color: var(--bad); border-color: #f5c2cd; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--pink); }
.stat--g::before { background: var(--gold2); } .stat--s::before { background: var(--sky2); } .stat--o::before { background: var(--obsidian); }
.stat small { color: var(--muted); font-size: .8rem; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--obsidian); margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.panel h2 { font-size: 1.05rem; color: var(--obsidian); margin-bottom: 14px; }
.ptable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ptable th { text-align: start; color: var(--muted); font-weight: 600; font-size: .78rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 10px; border-bottom: 1px solid #faf1f4; vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.ptable .pricecell { font-weight: 700; color: var(--obsidian); white-space: nowrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #fdeef2; color: var(--pink); }
.tag--sky { background: #e8f4fc; color: var(--sky2); }
.tag--gold { background: #fdf3d0; color: #a3851c; }
.tag--ok { background: #dcf5e5; color: var(--ok); }
.row-actions { display: flex; gap: 6px; }
.iconbtn { width: 34px; height: 34px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; transition: all var(--t-fast); }
.iconbtn svg { width: 16px; height: 16px; fill: none; stroke: var(--obsidian); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { border-color: var(--sky2); background: #eef7fd; transform: translateY(-1px); }
.iconbtn--danger:hover { border-color: var(--bad); background: #fdeef2; }
.iconbtn--danger:hover svg { stroke: var(--bad); }
.order { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.order__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order__who { font-weight: 700; color: var(--obsidian); }
.order__meta { font-size: .78rem; color: var(--muted); }
.order__items { font-size: .86rem; color: var(--muted); display: grid; gap: 3px; }
.order__items b { color: var(--ink); }
.order__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order__total { font-family: var(--font-head); font-weight: 700; color: var(--obsidian); }
.imgpick { display: flex; gap: 12px; align-items: center; }
.imgpick__pv { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; border: 1.5px dashed var(--line); background: #faf3f0; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formgrid .full { grid-column: 1 / -1; }
.gate-hint { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 14px; }
.gate-hint code { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--pink); font-weight: 700; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .hdr__name { display: none; }
  .hdr__in { gap: 10px; }
  #customOrderTop { padding: 8px 12px !important; font-size: .8rem !important; }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; text-align: center; }
  .hero__p { margin-inline: auto; }
  .hero__ctas, .hero__chips { justify-content: center; }
  .qv { grid-template-columns: 1fr; }
  .adm { grid-template-columns: 1fr; }
  .adm__side { flex-direction: row; overflow-x: auto; padding: 10px; align-items: center; }
  .adm__brand { padding: 0 10px 0 0; }
  .adm__side .foot { margin: 0; display: flex; }
  .ftr__in { grid-template-columns: 1fr; }
  .formgrid { grid-template-columns: 1fr; }
  .hdr__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .hero__logo { animation: none; }
}

/* ================= V2 — alive, sell-driving ================= */
/* ticker */
.ticker { background: var(--obsidian); color: #f4edf5; overflow: hidden; padding: 7px 0; font-size: .8rem; }
.ticker__track { display: flex; gap: 26px; width: max-content; animation: tick 28s linear infinite; align-items: center; }
.ticker__track i { color: var(--gold); font-style: normal; }
@keyframes tick { to { transform: translateX(50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* hero v2 */
.hero { padding: 40px 0 54px; }
.hero__art { position: relative; height: 480px; }
.hero__polaroid {
  position: absolute; width: 190px; border-radius: 18px; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 24px 50px -18px rgba(17, 24, 39, .35);
  transition: transform 500ms var(--ease-spring);
}
.hero__polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; height: 100%; }
.hero__polaroid--1 { top: 6px; inset-inline-start: 6%; transform: rotate(7deg); animation: floaty2 7s ease-in-out infinite; }
.hero__polaroid--2 { bottom: 16px; inset-inline-start: 20%; transform: rotate(-6deg); animation: floaty2 8s ease-in-out 1s infinite; }
.hero__polaroid--3 { top: 34%; inset-inline-end: 0; transform: rotate(4deg); animation: floaty2 6.5s ease-in-out .5s infinite; }
@keyframes floaty2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.hero__art .hero__logo {
  position: absolute; top: 50%; inset-inline-start: 50%; translate: 50% -50%; z-index: 2;
  width: min(330px, 68vw);
}
.hero__art .hero__logo img { width: 100%; animation: floaty 6s ease-in-out infinite; }
.hero__art:hover .hero__polaroid--1 { transform: rotate(11deg) scale(1.04); }
.hero__art:hover .hero__polaroid--2 { transform: rotate(-10deg) scale(1.04); }
.hero__art:hover .hero__polaroid--3 { transform: rotate(8deg) scale(1.04); }
.spark { position: absolute; color: var(--gold2); font-size: 1.5rem; animation: twinkle 2.6s ease-in-out infinite; }
.spark--1 { top: 12%; inset-inline-end: 18%; }
.spark--2 { bottom: 22%; inset-inline-start: 4%; animation-delay: .8s; color: var(--pink); }
.spark--3 { top: 55%; inset-inline-end: 32%; animation-delay: 1.6s; color: var(--sky2); }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }

.shimmer {
  background: linear-gradient(90deg, var(--pink) 20%, var(--gold2) 40%, var(--sky2) 60%, var(--pink) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero h1 .shimmer { white-space: nowrap; }
.hero h1 .hl::after { content: none; }

.cta--pulse { position: relative; }
.cta--pulse::after {
  content: ''; position: absolute; inset: -3px; border-radius: 999px; z-index: -1;
  border: 2px solid var(--gold2); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.14); } }

/* proof row */
.proof { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.proof__item { display: grid; }
.proof__item b { font-family: var(--font-head); font-size: 1.35rem; color: var(--obsidian); font-variant-numeric: tabular-nums; }
.proof__item b::after { content: '+'; color: var(--pink); }
.proof__item:last-child b::after { content: ''; }
.proof__item span { font-size: .78rem; color: var(--muted); }
.proof__sep { width: 1px; height: 34px; background: var(--line); }

/* marquee divider */
.marquee { background: linear-gradient(90deg, var(--pink2), var(--gold), var(--sky)); padding: 12px 0; overflow: hidden; transform: rotate(-1.2deg) scale(1.02); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: tick 20s linear infinite; align-items: center; }
.marquee__track span { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--obsidian); white-space: nowrap; }
.marquee__track b { color: #fff; }

/* category cards */
.catrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.catcard {
  position: relative; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--obsidian);
  background: var(--c2); border: 1px solid var(--line); padding: 12px; display: grid; gap: 2px;
  transition: transform var(--t-base) var(--ease-out-expo), box-shadow var(--t-base) ease;
}
.catcard img { border-radius: 15px; aspect-ratio: 1.35; object-fit: cover; width: 100%; margin-bottom: 8px; transition: transform 500ms var(--ease-out-expo); }
.catcard span { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.catcard small { color: var(--muted); font-size: .78rem; }
.catcard::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px;
  background: var(--c1); opacity: 0; transition: opacity var(--t-base);
}
.catcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.catcard:hover img { transform: scale(1.05); }
.catcard:hover::before { opacity: 1; }
.catcard:active { transform: scale(.97); }

/* product card v2: sell harder */
.card__gift {
  position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(17, 24, 39, .78); color: #fff; font-size: .72rem; font-weight: 700;
  opacity: 0; transform: translateY(8px); transition: all var(--t-base) var(--ease-out-expo);
}
.card:hover .card__gift { opacity: 1; transform: none; }
.card { border-radius: 24px; }
.card__name { font-size: 1.08rem; }

/* spotlight */
.spot {
  display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, #fdeef2, #fdf3d0 55%, #e8f4fc); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.spot__img { position: relative; min-height: 340px; }
.spot__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot__tag {
  position: absolute; top: 16px; inset-inline-start: 16px; padding: 6px 16px; border-radius: 999px;
  background: var(--obsidian); color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}
.spot__body { padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.spot__body p { margin: 0; color: #6d6172; }
.spot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: var(--obsidian); font-weight: 600; }
.spot__row { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: st; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px 20px; transition: transform var(--t-base) var(--ease-out-expo), box-shadow var(--t-base) ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px;
  box-shadow: 0 10px 20px -8px rgba(17, 24, 39, .35);
  transition: transform 300ms var(--ease-spring);
}
.step:hover .step__n { transform: rotate(-8deg) scale(1.1); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--obsidian); }
.step p { margin: 0; font-size: .88rem; color: var(--muted); }

/* final CTA */
.fin {
  position: relative; overflow: hidden; border-radius: 30px; text-align: center; color: #fff;
  background: radial-gradient(120% 160% at 80% 0%, #e06070 0%, var(--pink) 34%, var(--obsidian) 100%);
  padding: clamp(34px, 6vw, 60px) 22px;
}
.fin__logo { width: min(240px, 60vw); margin: 0 auto 10px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .45)); }
.fin h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 8px; }
.fin p { max-width: 56ch; margin: 0 auto 22px; color: #f6eaf0; }
.fin::before, .fin::after {
  content: '✦'; position: absolute; font-size: 2rem; color: rgba(255, 255, 255, .5);
  animation: twinkle 3s ease-in-out infinite;
}
.fin::before { top: 18%; inset-inline-start: 8%; }
.fin::after { bottom: 16%; inset-inline-end: 9%; animation-delay: 1.4s; }

/* floating whatsapp */
.wafab {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 55;
  width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center;
  background: #22c55e; color: #fff; box-shadow: 0 14px 30px -8px rgba(34, 197, 94, .7);
  transition: transform 200ms var(--ease-spring);
}
.wafab svg { width: 30px; height: 30px; }
.wafab::after {
  content: ''; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid #22c55e;
  animation: pulse 2.2s ease-out infinite;
}
.wafab:hover { transform: scale(1.1) rotate(6deg); }

/* add sparkle burst host */
.burst { position: fixed; pointer-events: none; z-index: 95; }
.burst i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  animation: burst 650ms var(--ease-out-expo) forwards;
}
@keyframes burst { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }

@media (max-width: 900px) {
  .hero__art { height: 380px; order: 2; }
  .hero__polaroid { width: 130px; border-width: 5px; }
  .spot { grid-template-columns: 1fr; }
  .spot__img { min-height: 240px; position: relative; }
  .proof { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .marquee__track, .cta--pulse::after, .wafab::after, .spark, .shimmer, .hero__polaroid, .hero__art .hero__logo img { animation: none !important; }
  .shimmer { color: var(--pink); background: none; -webkit-text-fill-color: var(--pink); }
}

/* ================= Design Studio ================= */
.studio-sec { padding-top: 26px; }
.studio { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.stage { position: sticky; top: 90px; }
.stage canvas {
  width: 100%; aspect-ratio: 1; border-radius: 26px; display: block;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  touch-action: none; cursor: grab; background: #fff;
}
.stage canvas:active { cursor: grabbing; }
.stage__hint { text-align: center; color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
#stage3d {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(120% 90% at 50% 12%, #ffffff 0%, #FFF6EC 55%, #FBEEF0 100%);
}
#stage3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; cursor: grab; }
#stage3d canvas:active { cursor: grabbing; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 20px; display: grid; gap: 18px; box-shadow: 0 10px 30px -18px rgba(17, 24, 39, .18); }
.panel__group h3 { font-family: var(--font-head); font-size: .98rem; color: var(--obsidian); margin: 0 0 10px; }
.mini { font-size: .76rem; color: var(--muted); margin: 6px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 9px 14px;
  display: grid; gap: 1px; cursor: pointer; font-family: inherit; text-align: start;
  transition: all var(--t-fast) ease;
}
.chip b { font-family: var(--font-head); font-size: .92rem; color: var(--obsidian); }
.chip small { font-size: .7rem; color: var(--muted); }
.chip.on { border-color: var(--pink); background: #fdeef2; box-shadow: 0 6px 16px -8px rgba(240, 136, 152, .6); }
.chip:active { transform: scale(.96); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(17, 24, 39, .14);
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast);
}
.sw.on { transform: scale(1.14); box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--pink); }
.sw--ring { border: 2px solid rgba(17, 24, 39, .25); }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
  flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 14px;
  padding: 9px; font-family: inherit; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer;
  transition: all var(--t-fast) ease;
}
.tab.on { background: var(--obsidian); color: #fff; border-color: var(--obsidian); }

.upload {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  border: 2px dashed #d9c9d4; border-radius: 16px; padding: 16px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: .88rem; background: #fffdfe;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.upload:hover { border-color: var(--pink); background: #fdeef2; }
.upload svg { width: 22px; height: 22px; }

.txtin {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px;
  font-family: inherit; font-size: .95rem; margin-bottom: 10px; color: var(--obsidian);
}
.txtin:focus { outline: 2px solid var(--pink); border-color: transparent; }

.sliders { display: grid; gap: 10px; }
.sliders label { display: grid; grid-template-columns: 92px 1fr 46px; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; color: var(--obsidian); }
.sliders b { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .78rem; text-align: end; }
.sliders input[type="range"] { accent-color: var(--pink); height: 22px; }

.mini-btn {
  margin-top: 10px; border: none; background: none; color: var(--pink);
  font-family: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; padding: 4px 0;
}
.mini-btn:hover { text-decoration: underline; }

.panel__actions { display: grid; gap: 10px; }

.note {
  background: #fdf3d0; border: 1px solid #f0df9a; border-radius: 20px; padding: 16px 20px;
  font-size: .9rem; color: #6b5d1f; line-height: 1.9;
}
.note b { display: block; font-family: var(--font-head); margin-bottom: 4px; color: #54490f; }

.hdr__nav a[aria-current="page"] { color: var(--pink); font-weight: 800; }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .stage { position: static; }
}


/* inline SVG icons replacing emoji */
.ic { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.14em; margin-inline-end: .18em; }
.ticker .ic { color: var(--gold); }
.hero__badge .ic { vertical-align: -0.18em; }
.fin h2 .ic { vertical-align: -0.1em; }
.tab .ic { vertical-align: -0.16em; }
.citem__custom .ic { width: .85em; height: .85em; }

/* text layers in design studio */
.txtlayer { border: 2px solid var(--line, #eee); border-radius: 14px; padding: 10px; margin-bottom: 10px; display: grid; gap: 8px; cursor: pointer; background: #fff; position: relative; }
.txtlayer.on { border-color: var(--pink, #F08898); box-shadow: 0 4px 14px rgba(240,136,152,.18); }
.fontsel { width: 100%; padding: 8px 10px; border: 1.5px solid #e8e2e2; border-radius: 10px; font-size: 15px; background: #fffdf9; }
.txtdel { position: absolute; top: 6px; left: 6px; border: 0; background: #f6eeee; color: #a33; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 13px; line-height: 1; }

/* ---------- studio v2: clean 2D stage, product cutout on seamless backdrop ---------- */
.ptabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 20px; }
.ptab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: .9rem; color: var(--ink); cursor: pointer; transition: all var(--t-fast); }
.ptab svg { width: 19px; height: 19px; }
.ptab:hover { border-color: var(--pink); }
.ptab.on { background: var(--obsidian); color: #fff; border-color: var(--obsidian); }
.ptab:active { transform: scale(.96); }
.studio2__main { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: start; }
.stage2 { position: sticky; top: 90px; }
.stage2 canvas { width: 100%; aspect-ratio: 1; height: auto; display: block; border-radius: 26px;
  box-shadow: 0 24px 60px -30px rgba(43, 36, 48, .35); }
.swatches--bg .sw { width: 40px; height: 40px; }
@media (max-width: 980px) {
  .studio2__main { grid-template-columns: 1fr; }
  .stage2 { position: static; order: -1; }
}

/* ================= mobile pass v24 — mobile-first fixes ================= */
.cta--pink { background: linear-gradient(135deg, #f472a0, #e75480); color: #fff; box-shadow: 0 14px 28px -12px rgba(231, 84, 128, .65); }
.cta--pink:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(231, 84, 128, .85); }
.qv__design { justify-content: center; margin-top: 2px; padding: 12px 20px; font-size: .92rem; }

/* burger + mobile menu */
.hdr__burger { display: none; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--obsidian); cursor: pointer; align-items: center; justify-content: center; padding: 0; transition: background 150ms; }
.hdr__burger svg { width: 20px; height: 20px; }
.hdr__burger:active { background: #fdeef2; }
.mnav { display: none; }
@media (max-width: 900px) {
  .hdr__burger { display: inline-flex; }
  .mnav.on { display: grid; gap: 8px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 16px; }
  .mnav a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #faf6f3; color: var(--obsidian); font-weight: 700; text-decoration: none; font-size: .95rem; }
  .mnav a svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .mnav a:active { background: #fdeef2; }
  .mnav a.mnav__studio { background: linear-gradient(135deg, #f472a0, #e75480); color: #fff; box-shadow: 0 10px 22px -10px rgba(231, 84, 128, .7); }
}

/* product card: design chip */
.card__design {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .95); color: #e75480; border: 1.5px solid #f6c5d6;
  padding: 7px 13px; border-radius: 999px; font-size: .78rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(17, 24, 39, .4); transition: transform 150ms var(--ease-spring), background 150ms;
}
.card__design svg { width: 14px; height: 14px; }
.card__design:hover { background: #fdeef2; transform: translateY(-2px); }

/* toast: top corner near the cart, never mid-screen */
.toast { top: 76px; bottom: auto; inset-inline-start: auto; inset-inline-end: 14px; transform: translateY(-100px); }
.toast.on { transform: translateY(0); }

/* modal: real backdrop + above header & WA fab */
.modal { z-index: 200; background: rgba(17, 24, 39, .5); backdrop-filter: blur(3px); }
.x { z-index: 5; box-shadow: 0 4px 14px rgba(17, 24, 39, .2); }

@media (max-width: 640px) {
  /* header: one clean aligned row */
  .hdr__in { gap: 8px; padding: 8px 0; }
  .hdr__logo { min-width: 0; flex: 0 1 auto; }
  .hdr__logo img { height: 34px; max-width: 118px; object-fit: contain; object-position: right center; }
  .hdr__spacer { flex: 1 1 auto; min-width: 2px; }
  #customOrderTop { padding: 8px 12px !important; font-size: .78rem !important; white-space: nowrap; gap: 6px; flex: 0 0 auto; }
  #customOrderTop svg { width: 15px; height: 15px; flex: 0 0 auto; }
  .cartbtn { padding: 8px 13px; font-size: .8rem; gap: 6px; flex: 0 0 auto; }
  .cartbtn svg { width: 17px; height: 17px; }

  /* hero ctas stack full width */
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .cta { justify-content: center; }

  /* modal as bottom sheet */
  .modal { padding: 0; place-items: end center; }
  .modal__box { width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .qv__img { aspect-ratio: 16 / 9; }
  .qv__body { padding: 16px 18px 20px; gap: 10px; }
  .qv__name { font-size: 1.2rem; }
  .co { width: 100%; }

  /* WA fab smaller & tucked */
  .wafab { width: 50px; height: 50px; bottom: 14px; inset-inline-start: 14px; }
  .wafab svg { width: 26px; height: 26px; }

  /* toast stays clear of the sheet when one is open */
  .toast { top: 70px; inset-inline-end: 12px; max-width: min(320px, 86vw); font-size: .84rem; padding: 10px 18px; }
}

/* v24b — modal anchoring + tiny screens */
.modal__box { position: relative; }
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(1.6rem, 8.6vw, 1.9rem); }
  .hero h1 .shimmer { white-space: normal; }
  .hero__badge { font-size: .72rem; }
  #customOrderTop { font-size: .72rem !important; padding: 7px 10px !important; }
  .cartbtn { padding: 8px 10px; }
  .cartbtn span.cartbtn__t { display: none; }
  .hdr__logo img { height: 30px; max-width: 96px; }
}
@media (max-width: 640px) and (max-height: 700px) {
  .hero { padding: 24px 0 36px; }
  .modal__box { max-height: 96dvh; }
}

/* v24c — kill horizontal overflow anywhere */
html, body { overflow-x: clip; }
.studio2__main > *, .panel, .stage2, .studio2 { min-width: 0; }
.sliders input[type="range"] { width: 100%; min-width: 0; }
.sliders .srow, .srow { min-width: 0; }

/* v24d — on phones the FAB covered price chips or the add button at any position.
   Hidden on <=640: WhatsApp stays reachable via hero CTA, banner and checkout. */
@media (max-width: 640px) {
  .wafab { display: none; }
  main { padding-bottom: 30px; }
}

/* v25 — social icons */
.hdr__soc { display: flex; gap: 8px; }
.hdr__soc a { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); color: var(--obsidian); transition: all var(--t-fast); }
.hdr__soc a svg { width: 16px; height: 16px; }
.hdr__soc a:hover { border-color: var(--pink2); background: #fdeef2; color: var(--pink); transform: translateY(-1px); }
@media (max-width: 900px) { .hdr__soc { display: none; } }

.mnav__soc { display: flex; gap: 10px; padding: 4px 2px 2px; }
.mnav__soc a { flex: 1; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 14px; background: #faf6f3; color: var(--obsidian); }
.mnav__soc a svg { width: 20px; height: 20px; }
.mnav__soc a:active { background: #fdeef2; color: var(--pink); }

.ftr__soc { display: flex; gap: 10px; margin-bottom: 14px; }
.ftr__soc a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: all var(--t-fast); }
.ftr__soc a svg { width: 19px; height: 19px; }
.ftr__soc a:hover { background: var(--pink); transform: translateY(-2px); }

.soc--banner { display: flex; gap: 10px; }
.soc--banner a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--obsidian); font-weight: 700; font-size: .9rem; text-decoration: none; transition: all var(--t-fast); }
.soc--banner a svg { width: 18px; height: 18px; }
.soc--banner a:hover { border-color: var(--pink2); background: #fdeef2; transform: translateY(-2px); }
@media (max-width: 640px) { .soc--banner { width: 100%; } .soc--banner a { flex: 1; justify-content: center; } }
