/* =========================================================================
   Squishee.shop — "Neon Squish" design system (mobile-first)
   ========================================================================= */

:root {
  --bg: #07060d;
  --bg-2: #0f0c1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f4f1ff;
  --muted: #a79fc7;

  --magenta: #ff2d95;
  --purple: #b026ff;
  --cyan: #00eaff;
  --lime: #b6ff3d;

  --grad: linear-gradient(120deg, #ff2d95 0%, #b026ff 50%, #00eaff 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,45,149,.18), rgba(0,234,255,.18));

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-neon: 0 0 0 1px rgba(255,255,255,.06), 0 10px 40px rgba(176,38,255,.28);
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(60vw 60vw at 12% -8%, rgba(255,45,149,.20), transparent 60%),
    radial-gradient(55vw 55vw at 100% 8%, rgba(0,234,255,.16), transparent 55%),
    radial-gradient(70vw 70vw at 50% 120%, rgba(176,38,255,.20), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 92px; /* room for sticky bar */
}

h1, h2, h3, .head { font-family: var(--font-head); font-weight: 800; letter-spacing: .2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Top bar ----------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px;
  background: linear-gradient(to bottom, rgba(7,6,13,.85), rgba(7,6,13,.35));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(255,45,149,.5)); }
.brand .name { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.brand .name span { color: var(--cyan); }

.cart-btn {
  position: relative; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 999px; padding: 9px 16px; font-weight: 800;
  display: flex; align-items: center; gap: 8px; transition: transform .15s, box-shadow .2s;
}
.cart-btn:active { transform: scale(.94); }
.cart-btn .count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 900;
  display: grid; place-items: center; box-shadow: 0 0 12px rgba(255,45,149,.7);
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; padding: 34px 0 8px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  font-size: 12px; color: var(--cyan); background: var(--surface);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(38px, 12vw, 76px); line-height: .98; margin: 16px 0 10px;
}
.hero p { color: var(--muted); font-size: clamp(15px, 4.2vw, 19px); max-width: 560px; margin: 0 auto; }
.hero .cta {
  margin-top: 22px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

.blobs { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.blob {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  filter: blur(20px); opacity: .5; animation: float 9s ease-in-out infinite;
}
.blob.b1 { background: var(--magenta); top: 4%; left: -60px; }
.blob.b2 { background: var(--cyan); top: 30%; right: -70px; animation-delay: -3s; }
.blob.b3 { background: var(--purple); bottom: -40px; left: 30%; animation-delay: -6s; }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.08); }
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  border: none; border-radius: 999px; padding: 14px 24px; font-weight: 900; font-size: 16px;
  color: #fff; background: var(--grad); background-size: 180% 180%;
  box-shadow: var(--shadow-neon); transition: transform .15s, box-shadow .25s, background-position .4s;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 46px rgba(0,234,255,.4); }
.btn:active { transform: scale(.95); }
.btn.ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none;
}
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Section headers --------------------------------------------------- */
.section { padding: 26px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 14px; }
.section-head h2 { font-size: clamp(22px, 6vw, 30px); margin: 0; }
.section-head .hint { color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---- Carousel ---------------------------------------------------------- */
.carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 18px 18px; margin: 0 -18px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { scroll-snap-align: start; flex: 0 0 78%; max-width: 300px; }

/* ---- Shop controls (search + category chips) --------------------------- */
.shopctrls { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 8px; }
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 14px; font-size: 15px; opacity: .8; pointer-events: none; }
.search input {
  width: 100%; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 13px 16px 13px 40px; font: inherit; font-weight: 700;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(176,38,255,.22); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 13px; white-space: nowrap;
  transition: transform .12s, border-color .2s, background .2s;
}
.chip b { opacity: .55; font-weight: 800; }
.chip:active { transform: scale(.93); }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 14px rgba(255,45,149,.45); }
.chip.on b { opacity: .85; color: #fff; }
.emptymsg { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 30px 10px; }

/* ---- Product grid ------------------------------------------------------ */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 6px 0 20px;
}

/* ---- Product card ------------------------------------------------------ */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-neon); border-color: rgba(255,255,255,.2); }
.card .thumb {
  aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--grad-soft);
}
.card .thumb.ph { display: grid; place-items: center; font-size: 46px; }
.card .body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { align-self: flex-start; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: var(--cyan); background: rgba(0,234,255,.08); border: 1px solid rgba(0,234,255,.25); padding: 3px 8px; border-radius: 999px; }
.card .title { font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.15; }
.card .desc { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.card .price { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--lime); }
.card .add {
  border: none; border-radius: 999px; width: 40px; height: 40px; font-size: 22px; font-weight: 900;
  color: #fff; background: var(--grad); box-shadow: 0 0 16px rgba(255,45,149,.5);
  display: grid; place-items: center; transition: transform .12s;
}
.card .add:active { transform: scale(.85); }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(7,6,13,.6); border: 1px solid var(--border); color: var(--cyan);
  backdrop-filter: blur(6px);
}
.card .cond {
  position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 10px; font-weight: 900;
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px);
  background: rgba(7,6,13,.6); border: 1px solid var(--border);
}
.card .cond.new { color: var(--lime); }
.card .cond.used { color: #ffd166; }
.card .add.contact { background: var(--surface); border: 1px solid var(--border); font-size: 17px; box-shadow: none; }
.card .unavail { font-size: 12px; font-weight: 900; color: var(--muted); padding: 8px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.pd-slide .pd-imgph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 90px; background: var(--grad-soft); }
.stockline { min-height: 18px; }

/* Stock / condition tags */
.tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px; }
.tag.low { color: #ffd166; background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.35); }
.tag.sold { color: #ff7aa8; background: rgba(255,45,149,.12); border: 1px solid rgba(255,45,149,.4); }
.tag.new { color: var(--lime); background: rgba(182,255,61,.1); border: 1px solid rgba(182,255,61,.3); }
.tag.used { color: #ffd166; background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.3); }
.tag.cat { color: var(--cyan); background: rgba(0,234,255,.08); border: 1px solid rgba(0,234,255,.25); }

/* ---- Product detail sheet --------------------------------------------- */
.sheet {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 70;
  max-height: 86vh; max-width: 540px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px; overflow: hidden auto;
  transform: translateY(120%) scale(.97);
  transition: transform .36s cubic-bezier(.2,.9,.3,1.06);
  box-shadow: 0 24px 70px rgba(0,0,0,.66), 0 0 0 1px rgba(255,255,255,.05), 0 30px 100px rgba(176,38,255,.3);
}
.sheet.show { transform: translateY(0) scale(1); }
.sheet-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 12px 12px 10px; background: var(--bg-2); }
.sheet-grab { width: 46px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.26); }
.sheet-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 17px; }
.pd-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-gallery::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1/1; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pd-slide.ph { display: grid; place-items: center; font-size: 90px; background: var(--grad-soft); }
.pd-dots { display: flex; justify-content: center; gap: 7px; padding: 12px 0 2px; }
.pd-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background .2s, transform .2s; }
.pd-dots .dot.on { background: var(--cyan); transform: scale(1.3); }
.pd-body { padding: 10px 20px 26px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pd-body h2 { font-size: 26px; margin: 4px 0 8px; }
.pd-meta { display: flex; align-items: baseline; gap: 12px; }
.pd-price { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--lime); }
.pd-stock { color: var(--muted); font-weight: 700; font-size: 13px; }
.pd-desc { color: var(--muted); line-height: 1.6; margin: 12px 0 18px; white-space: pre-wrap; }
.pd-qty { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pd-qty .qbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 22px; font-weight: 900; }
.pd-qty .qbtn:active { transform: scale(.9); }
.pd-qty #pdQty { font-family: var(--font-head); font-weight: 800; font-size: 20px; min-width: 26px; text-align: center; }

/* Honeypot (spam trap) — visually hidden but present for bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---- Generic modal (contact) ------------------------------------------ */
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.96);
  width: min(460px, 92vw); max-height: 88vh; overflow-y: auto; z-index: 80;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal header h3 { margin: 0; font-size: 19px; }
.modal .x { background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
.modal-body { padding: 16px 18px 20px; }
.modal-body .cintro { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.modal-body label { display: block; font-weight: 800; font-size: 13px; margin: 12px 0 6px; }
.modal-body input, .modal-body textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-weight: 700;
}
.modal-body textarea { min-height: 90px; resize: vertical; }
.modal-body input:focus, .modal-body textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(176,38,255,.22); }
.modal-body .btn { margin-top: 16px; }
.cok { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(182,255,61,.12); color: var(--lime); border: 1px solid rgba(182,255,61,.35); font-weight: 800; font-size: 14px; }
.cerr { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,45,149,.14); color: #ff9ecb; border: 1px solid rgba(255,45,149,.4); font-weight: 800; font-size: 14px; }

/* ---- Feature strip ----------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px 0 4px; }
.feature { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 8px; }
.feature .ico { font-size: 24px; }
.feature .t { font-family: var(--font-head); font-weight: 800; font-size: 13px; margin-top: 4px; }
.feature .s { color: var(--muted); font-size: 11px; }

/* ---- Sticky bottom bar ------------------------------------------------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  transform: translateY(120%); transition: transform .3s cubic-bezier(.2,.9,.3,1.2);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(7,6,13,.96), rgba(7,6,13,.7));
  backdrop-filter: blur(14px); border-top: 1px solid var(--border);
}
.stickybar.show { transform: translateY(0); }
.stickybar .inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.stickybar .sum { flex: 1; }
.stickybar .sum .l { font-size: 12px; color: var(--muted); font-weight: 700; }
.stickybar .sum .p { font-family: var(--font-head); font-weight: 800; font-size: 20px; }

/* ---- Cart drawer ------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; background: rgba(3,2,8,.74); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 90vw); z-index: 70;
  background: var(--bg-2); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.9,.3,1.1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--border); }
.drawer header h3 { margin: 0; font-size: 20px; }
.drawer .x { background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
.drawer .items { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.drawer .empty { color: var(--muted); text-align: center; padding: 40px 10px; }
.citem { display: flex; gap: 12px; align-items: center; }
.citem img, .citem .ph { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: var(--grad-soft); display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; }
.citem .info { flex: 1; min-width: 0; }
.citem .info .n { font-family: var(--font-head); font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem .info .pr { color: var(--lime); font-weight: 800; font-size: 13px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 900; font-size: 16px; }
.qty span { min-width: 18px; text-align: center; font-weight: 800; }
.drawer footer { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.drawer .totrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.drawer .totrow .t { color: var(--muted); font-weight: 700; }
.drawer .totrow .v { font-family: var(--font-head); font-weight: 800; font-size: 24px; }
.drawer .note { color: var(--muted); font-size: 11px; text-align: center; margin-top: 10px; }

/* ---- Toast ------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 30px);
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow-neon);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Footer ------------------------------------------------------------ */
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px 0 20px; }
.foot a { color: var(--cyan); font-weight: 800; }
.footlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 14px; }
.footlinks a { color: var(--muted); }
.footlinks a:hover { color: var(--cyan); }

.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---- Larger screens ---------------------------------------------------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .carousel .card { flex-basis: 300px; }
  .features { gap: 16px; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
