:root{
  --bg0:#FFFDFA;
  --bg1:#F4F7FF;
  --card:#FFFFFF;
  --card2:#FFFFFF;
  --ink:#111827;
  --muted:#4B5563;
  --muted2:#667085;
  --line:#E6E8F2;
  --brand:#7B5CFF;      /* lavender */
  --brand2:#2BC2EA;     /* sky */
  --accent:#FF6AAE;     /* soft rose */
  --cream:#FFF6E8;
  --ok:#16A34A;
  --warn:#D97706;
  --bad:#DC2626;
  --ring: rgba(109,85,255,.28);
  --shadow: 0 24px 70px rgba(17,24,39,.10);
  --shadow2: 0 12px 30px rgba(17,24,39,.10);
  --radius: 18px;
  --radius2: 26px;
  --max: 1160px;
  --tap: 56px;
}

html[data-theme="dark"]{
  --bg0:#0B1220;
  --bg1:#070B14;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.10);
  --ink:#E5E7EB;
  --muted:#9CA3AF;
  --muted2:#6B7280;
  --line: rgba(255,255,255,.14);
  --ring: rgba(34,197,216,.26);
  --shadow: 0 24px 90px rgba(0,0,0,.45);
  --shadow2: 0 12px 40px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }

/* Always respect the hidden attribute (fixes mobile overlays) */
[hidden]{ display:none !important; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background:
    radial-gradient(760px 520px at 18% -8%, rgba(123,92,255,.18), transparent 60%),
    radial-gradient(820px 520px at 96% 4%, rgba(43,194,234,.16), transparent 60%),
    radial-gradient(760px 520px at 30% 112%, rgba(255,106,174,.10), transparent 58%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  line-height:1.45;
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paw pattern */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.035;
  background-image: url("../img/paws.svg");
  background-size: 520px 520px;
  background-repeat: repeat;
}
html[data-theme="dark"] body::before{ opacity:.06; }
@media (max-width: 720px){ body::before{ opacity:.02; background-size: 420px 420px; } }

body.is-bigtype{ font-size: 18px; }

a{ color: inherit; text-decoration: none; }

:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 12px;
}


.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.skip{
  position:absolute;
  left:-999px;
  top: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 999;
}
.skip:focus{ left: 10px; }

.container{ width:min(var(--max), calc(100% - 28px)); margin:0 auto; }
.stack{ display:flex; flex-direction:column; gap: 14px; }

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251,251,254,.84);
  background: color-mix(in srgb, var(--bg0) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
html[data-theme="dark"] .topbar{ background: rgba(11,18,32,.62); }

.navwrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}

.brand{ display:flex; align-items:center; gap: 10px; min-width: 210px; }
.brand img{ height: 42px; width:auto; }

.navlinks{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; justify-content:flex-end; }

.pill{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.btn{
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  color: var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 800;
  cursor:pointer;
  user-select:none;
  box-shadow: 0 8px 20px rgba(17,24,39,.06);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(17,24,39,.10); }
.btn:disabled{ opacity:.65; cursor:not-allowed; transform:none; }

.btn.primary{
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 18px 42px rgba(109,85,255,.20);
}
.btn.primary:hover{ box-shadow: 0 22px 56px rgba(109,85,255,.26); }

.btn.ghost{ background: transparent; box-shadow:none; }

.btn.small{ min-height: 44px; padding: 0 14px; font-size: 14px; }

.iconbtn{
  height: 44px; width: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* Hero */
.hero{
  padding: 22px 0 10px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px){ .heroGrid{ grid-template-columns: 1fr; } }

.card{
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}

.card.glow::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: var(--radius2);
  background: radial-gradient(600px 240px at 20% 0%, rgba(109,85,255,.22), transparent 55%),
              radial-gradient(520px 240px at 80% 10%, rgba(34,197,216,.18), transparent 55%),
              radial-gradient(520px 240px at 40% 110%, rgba(255,92,151,.10), transparent 55%);
  z-index:-1;
  filter: blur(14px);
}

.kicker{
  display:inline-flex; align-items:center; gap: 10px;
  font-weight: 900;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  color: var(--muted);
  font-size: 13px;
}
.kicker .dot{
  width: 9px; height: 9px; border-radius: 99px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

h1{
  margin: 12px 0 10px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -.02em;
}

.lead{ margin:0; color: var(--muted); font-size: 16px; }

.heroActions{ margin-top: 16px; display:flex; gap: 10px; flex-wrap: wrap; }

.heroArt{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 0 0;
}
.heroArt img{ width: min(420px, 100%); height:auto; }

@media (prefers-reduced-motion: no-preference){
  .heroArt img{ animation: floaty 7.5s ease-in-out infinite; transform-origin: 50% 70%; }
}
@keyframes floaty{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
  100%{ transform: translateY(0); }
}


.trustRow{ margin-top: 14px; display:flex; flex-wrap: wrap; gap: 10px; }

/* Sections */
.section{ padding: 14px 0; }
.section h2{ margin: 0 0 12px; font-size: 24px; letter-spacing: -.01em; }
.section h3{ margin: 12px 0 8px; font-size: 18px; }
.muted{ color: var(--muted); }

.hr{ height:1px; background: color-mix(in srgb, var(--line) 80%, transparent); margin: 14px 0; }

/* Listings */
.listHead{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.filters{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

/* Search + sort bar */
.filtersBar{
  display:flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.filtersBar .grow{ flex: 1 1 320px; }
.filtersBar .sortField{ width: 190px; }
.filterBtn{
  display:none; /* shown on mobile */
  white-space: nowrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* Active filter chips */
.chipRow{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}
.chip button{
  border:none;
  background: transparent;
  cursor:pointer;
  font-weight: 900;
  color: inherit;
  padding: 0;
}

/* Drawer (desktop = inline; mobile = slide-in) */
.drawerOverlay{
  display:none;
}
.filtersDrawer{
  position: static;
  display:block;
}
.drawerPanel{
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.drawerHeader{ display:none; }
.drawerBody{ display:flex; flex-direction:column; gap: 10px; }
.drawerGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.drawerActions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 860px){
  .filterBtn{ display:inline-flex; }
  .filtersBar .sortField{ width: 160px; }
  .drawerGrid{ grid-template-columns: 1fr 1fr; }

  .drawerOverlay{
    display:block;
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.55);
    backdrop-filter: blur(10px);
    z-index: 70;
  }

  .filtersDrawer{
    position: fixed;
    inset: 0;
    display:flex;
    justify-content: flex-end;
    z-index: 71;
    pointer-events: none;
  }
  .filtersDrawer.open{ pointer-events: auto; }

  .drawerPanel{
    width: min(440px, 92vw);
    height: 100%;
    border-left: 1px solid var(--line);
    background: var(--card);
    background: color-mix(in srgb, var(--card) 92%, transparent);
    box-shadow: 0 24px 90px rgba(0,0,0,.22);
    padding: 14px;
    border-radius: 22px 0 0 22px;
    transform: translateX(105%);
    transition: transform .18s ease;
    pointer-events: auto;
  }
  .filtersDrawer.open .drawerPanel{ transform: translateX(0); }

  .drawerHeader{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
  }
  .drawerHeader b{ font-size: 16px; }

  .drawerActions{
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    border-top: 1px solid var(--line);
  }
}

.field{ display:flex; flex-direction:column; gap: 6px; }
label{ font-size: 13px; color: var(--muted2); font-weight: 800; }

input, select, textarea{
  min-height: var(--tap);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--ink);
  padding: 12px 12px;
  font-size: 16px;
}

textarea{ min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder{ color: color-mix(in srgb, var(--muted2) 65%, transparent); }

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 980px){ .cards{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .cards{ grid-template-columns: 1fr; } }

.listCard{
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: var(--shadow2);
  transition: transform .14s ease, box-shadow .14s ease;
}
.listCard:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px rgba(17,24,39,.12); }

.thumb{
  aspect-ratio: 4/3;
  position:relative;
  overflow:hidden;
  background: color-mix(in srgb, var(--line) 25%, transparent);
}
.thumb img{ width:100%; height:100%; object-fit: cover; display:block; }

.tag{
  position:absolute;
  left: 12px; top: 12px;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 90%, transparent);
}
.tag.featured{
  border: none;
  color: white;
  background: linear-gradient(135deg, #16A34A, #22C55E);
}

.body{ padding: 14px; }
.title{ font-weight: 900; font-size: 18px; margin: 0 0 6px; }
.meta{ display:flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.meta span{ background: color-mix(in srgb, var(--card) 92%, transparent); border:1px solid var(--line); padding: 7px 9px; border-radius: 999px; }

.priceRow{ margin-top: 10px; display:flex; justify-content:space-between; align-items:center; gap: 10px; }
.priceRow b{ font-size: 16px; }

/* Notes & callouts */
.note{
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  padding: 14px;
  border-radius: var(--radius2);
  color: var(--muted);
}
.note b{ color: var(--ink); }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 940px){ .grid3{ grid-template-columns: 1fr; } }

/* Submission layout */
.submitGrid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items:start;
}
@media (max-width: 980px){ .submitGrid{ grid-template-columns: 1fr; } }

.formCard{
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border-radius: var(--radius2);
  padding: 14px;
}
.formCard legend{
  font-weight: 900;
  padding: 0 8px;
  color: var(--ink);
}

.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 860px){ .formGrid{ grid-template-columns: 1fr; } }

.checkbox{
  display:flex; gap: 10px; align-items:flex-start;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  padding: 12px;
  border-radius: 16px;
}
.checkbox input{ min-height:auto; height: 20px; width: 20px; margin-top: 4px; }

.summary{
  position: sticky;
  top: 78px;
}

.summary .row{ display:flex; justify-content:space-between; gap: 10px; align-items:baseline; }
.summary .row b{ font-size: 16px; }
.summary .total{ font-size: 22px; font-weight: 1000; }

.summaryList{ display:flex; flex-direction:column; gap: 8px; }
.summaryItem{ display:flex; justify-content:space-between; gap: 10px; color: var(--muted); }
.summaryItem strong{ color: var(--ink); }

.photoPreview{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 720px){ .photoPreview{ grid-template-columns: repeat(3, 1fr); } }
.photoPreview img{
  width:100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--line) 25%, transparent);
}

.checkoutBar{
  position: fixed;
  left: 14px; right: 14px; bottom: 12px;
  max-width: var(--max);
  margin: 0 auto;
  z-index: 55;
  border-radius: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 18px 70px rgba(17,24,39,.14);
  display:none;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

@media (max-width: 980px){ body.show-checkoutbar .checkoutBar{ display:flex; } }

/* Modal */
.modal{
  position: fixed; inset: 0;
  background: rgba(17,24,39,.55);
  backdrop-filter: blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 16px;
  z-index: 80;
}
.modal.show{ display:flex; }
.sheet{
  width: min(980px, 100%);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 24px 120px rgba(17,24,39,.24);
}

.sheetHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.sheetHeader .left{ display:flex; flex-direction:column; gap: 2px; }
.sheetHeader .left b{ font-size: 16px; }
.sheetHeader .left span{ color: var(--muted); font-size: 13px; }

.sheetContent{ padding: 14px; display:grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
@media (max-width: 900px){ .sheetContent{ grid-template-columns: 1fr; } }

.gallery{
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow:hidden;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
}
.gallery img{ width:100%; height:auto; display:block; aspect-ratio: 4/3; object-fit: cover; }
.thumbs{ display:flex; gap: 8px; padding: 10px; overflow-x:auto; border-top: 1px solid var(--line); }
.thumbs button{ border:none; background: transparent; padding:0; cursor:pointer; border-radius: 14px; overflow:hidden; min-width: 84px; }
.thumbs img{ width: 84px; height: 64px; object-fit: cover; }

.kv{ display:grid; gap: 10px; }
.kv .line{ display:flex; justify-content:space-between; gap: 10px; padding: 10px 12px; border-radius: 16px; border:1px solid var(--line); background: var(--card); background: color-mix(in srgb, var(--card) 94%, transparent); }

.kv .line span{ color: var(--muted2); font-weight: 900; }
.kv .line b{ font-weight: 1000; }

/* Toast */
.toast{
  position: fixed;
  left: 14px; right: 14px; bottom: 14px;
  max-width: var(--max);
  margin: 0 auto;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(12px);
  display:none;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  box-shadow: 0 18px 80px rgba(17,24,39,.12);
  z-index: 90;
}
.toast.show{ display:flex; }
.toast p{ margin:0; color: var(--ink); font-weight: 900; }
.toast small{ display:block; color: var(--muted); font-weight: 700; margin-top: 2px; }

.footer{
  padding: 26px 0 40px;
  color: var(--muted2);
  font-size: 13px;
}
.footer a{ color: var(--ink); text-decoration: underline; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}

/* -------------------------------------------------------------------------
   Compatibility helpers (admin + legacy pages)
   ------------------------------------------------------------------------- */
.panel{
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}

.nav{
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(251,251,254,.84);
  background: color-mix(in srgb, var(--bg0) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap: 12px; padding: 10px 0; }
.nav-actions{ display:flex; gap: 10px; flex-wrap: wrap; align-items:center; }

.hero-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  padding: 7px 10px;
  font-size: 12px;
}

.feature-list{ margin: 10px 0; padding-left: 18px; color: var(--muted); }
.feature-list li{ margin: 8px 0; }

.listings-head{ display:flex; align-items:end; justify-content:space-between; gap: 12px; flex-wrap: wrap; }
.listings-head .filters{ display:flex; gap: 8px; flex-wrap: wrap; justify-content:flex-end; }

/* Older markup helper */
.lead{ color: var(--muted); font-size: 16px; }


/* =========================
   v3.0 polish + mobile love
   ========================= */

.resultsMeta{ margin-top: 8px; font-weight: 900; font-size: 13px; color: var(--muted); }
.resultsMeta b{ color: var(--ink); }

.cards.loading{ opacity: .88; }
.skeletonCard{
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: var(--shadow2);
}
.skelThumb{
  aspect-ratio: 4/3;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--line) 25%, transparent),
    color-mix(in srgb, var(--line) 45%, transparent),
    color-mix(in srgb, var(--line) 25%, transparent)
  );
  background-size: 220% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}
.skelBody{ padding: 14px; display:flex; flex-direction:column; gap: 10px; }
.skelLine{
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--line) 25%, transparent),
    color-mix(in srgb, var(--line) 45%, transparent),
    color-mix(in srgb, var(--line) 25%, transparent)
  );
  background-size: 220% 100%;
  animation: shimmer 1.25s ease-in-out infinite;
}
.skelLine.w60{ width:60%; }
.skelLine.w40{ width:40%; }
@keyframes shimmer{
  0%{ background-position: 0% 0; }
  100%{ background-position: 200% 0; }
}

/* Slightly more “premium” cards */
.listCard{
  position: relative;
}
.listCard::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: var(--radius2);
  background: radial-gradient(220px 140px at 12% 0%, rgba(109,85,255,.18), transparent 60%),
              radial-gradient(220px 140px at 92% 0%, rgba(34,197,216,.16), transparent 60%),
              radial-gradient(220px 140px at 50% 120%, rgba(255,92,151,.10), transparent 60%);
  pointer-events:none;
  opacity: .0;
  transition: opacity .14s ease;
}
.listCard:hover::before{ opacity: .95; }

/* Mobile dock */
.mobileDock{
  position: fixed;
  left: 14px; right: 14px; bottom: 12px;
  max-width: var(--max);
  margin: 0 auto;
  z-index: 48;
  border-radius: 22px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 18px 70px rgba(17,24,39,.12);
  display:none;
  gap: 10px;
  justify-content: space-between;
}
.mobileDock .dockItem{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 16px;
  padding: 10px 10px;
  font-weight: 1000;
  border: 1px solid transparent;
}
.mobileDock .dockItem span{ font-size: 13px; }
.mobileDock .dockItem:active{ transform: translateY(1px); }

@media (max-width: 980px){
  body:not(.show-checkoutbar) .mobileDock{ display:flex; }
  main{ padding-bottom: 96px; }
  body.show-checkoutbar main{ padding-bottom: 128px; }
}

/* Modal becomes a comfy bottom sheet on phones */
@media (max-width: 720px){
  .modal{ align-items:flex-end; padding: 0; }
  .sheet{
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }
  .sheetContent{ padding: 12px; }
  .gallery img{ aspect-ratio: 1/1; }
}

/* Motion respect */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .btn, .listCard, .drawerPanel, .skelThumb, .skelLine{ transition:none !important; animation:none !important; }
}

/* =========================
   v4.0 BIG mobile fixes + layout upgrades
   ========================= */

/* Topbar layout: desktop vs mobile */
.desktopNav{ display:flex; }
.mobileNav{ display:none; align-items:center; gap: 10px; }

@media (max-width: 860px){
  .desktopNav{ display:none; }
  .mobileNav{ display:flex; }
  .brand{ min-width: auto; }
  .brand img{ height: 38px; }
  .navwrap{ padding: 10px 0; }
  .topbar{ box-shadow: 0 10px 40px rgba(17,24,39,.10); }
}

/* Mobile menu (bottom sheet) */
.menuOverlay{
  display:block;
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.50);
  backdrop-filter: blur(10px);
  z-index: 76;
}
.mobileMenu{
  position: fixed;
  inset: 0;
  z-index: 77;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  pointer-events:none;
}
.mobileMenu.open{ pointer-events:auto; }
.menuPanel{
  width: min(560px, 100%);
  max-height: 92vh;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--line);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 28px 120px rgba(0,0,0,.25);
  transform: translateY(110%);
  transition: transform .18s ease;
  padding: 12px;
}
.mobileMenu.open .menuPanel{ transform: translateY(0); }
.menuHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--line);
}
.menuBody{
  padding: 12px 4px 10px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.menuLink{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  font-weight: 1000;
}
.menuLink small{ color: var(--muted); font-weight: 800; }
.menuRow{ display:flex; gap: 10px; flex-wrap: wrap; }
.menuRow .btn{ flex: 1 1 140px; }

@media (min-width: 861px){
  .menuOverlay, .mobileMenu{ display:none !important; }
}

/* Mobile filter/search bar cleanup */
@media (max-width: 520px){
  .filtersBar{ align-items: stretch; }
  .filtersBar .grow{ flex: 1 1 100%; }
  .filtersBar .sortField{ width: 100%; }
  .filterBtn{ width: 100%; justify-content: space-between; }
}

/* Mobile listing cards: make them readable (image left, info right) */
@media (max-width: 520px){
  .cards{ gap: 10px; }
  .listCard{
    display:grid;
    grid-template-columns: 132px 1fr;
    align-items: stretch;
  }
  .thumb{ aspect-ratio: 1/1; }
  .thumb img{ height: 100%; }
  .body{ padding: 12px; }
  .title{ font-size: 16px; }
  .meta{ gap: 6px; }
  .meta span{ padding: 6px 8px; font-size: 12px; }
  .priceRow{ margin-top: 8px; }
  .priceRow .btn.small{ display:none; }
}

/* Make hero + content breathe on tiny screens */
@media (max-width: 520px){
  .hero{ padding: 16px 0 8px; }
  h1{ font-size: clamp(28px, 8vw, 44px); line-height: 1.08; }
  .lead{ font-size: 16px; }
  .card{ padding: 14px; }
  .kicker{ font-size: 12px; }
}

/* Better tap targets in drawers on mobile */
@media (max-width: 860px){
  .drawerPanel{ border-radius: 22px 0 0 22px; }
  .drawerActions .btn{ flex: 1 1 140px; }
}

/* Ensure overlays never appear unless opened */
.drawerOverlay[hidden], .menuOverlay[hidden]{ display:none !important; }


/* =========================
   v5.0: Ragdoll Luxe refresh (big mobile + visual upgrades)
   ========================= */

:root{
  /* A slightly richer, higher-contrast palette */
  --bg0:#FFFDFC;
  --bg1:#F6F7FF;
  --ink:#0F172A;
  --muted:#475569;
  --muted2:#64748B;
  --line:#E6E9F4;

  --brand:#6C5CE7;      /* luxe violet */
  --brand2:#00C2FF;     /* bright sky */
  --accent:#FF78B6;     /* kitten pink */

  --ring: rgba(108,92,231,.28);
  --shadow: 0 28px 88px rgba(15,23,42,.12);
  --shadow2: 0 16px 44px rgba(15,23,42,.12);
  --radius: 20px;
  --radius2: 30px;
  --tap: 54px;
}

html[data-theme="dark"]{
  --bg0:#070A12;
  --bg1:#0A1020;
  --ink:#E5E7EB;
  --muted:#A3AAB8;
  --muted2:#7B8496;
  --line: rgba(255,255,255,.14);
  --ring: rgba(0,194,255,.26);
  --shadow: 0 34px 120px rgba(0,0,0,.55);
  --shadow2: 0 18px 60px rgba(0,0,0,.42);
}

body{
  background:
    radial-gradient(820px 560px at 12% -8%, rgba(108,92,231,.20), transparent 62%),
    radial-gradient(820px 560px at 98% 0%, rgba(0,194,255,.16), transparent 62%),
    radial-gradient(760px 520px at 42% 120%, rgba(255,120,182,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* cleaner paw pattern on phones */
@media (max-width: 720px){
  body::before{ opacity:.02; background-size: 420px 420px; }
}

.container{ width:min(var(--max), calc(100% - 24px)); }

.topbar{
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(231,233,244,.75);
}
html[data-theme="dark"] .topbar{ background: rgba(7,10,18,.72); }

.card{
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.btn{
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
}
.btn:hover{ box-shadow: 0 16px 40px rgba(15,23,42,.14); }
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* Make small screens feel less "busy" */
@media (max-width: 520px){
  :root{ --tap: 50px; }
  .pill{ font-size: 12px; }
  .lead{ font-size: 15px; }
  .heroActions{ gap: 8px; }
  .trustRow{ gap: 8px; }
  .note{ padding: 12px; }
}

/* Listings: more thumb-friendly + less chip clutter on tiny screens */
@media (max-width: 520px){
  .meta span:nth-child(n+4){ display:none; }
  .tag{ left: 10px; top: 10px; padding: 7px 9px; }
}

/* Sticky filter bar (mobile) for easier browsing */
@media (max-width: 860px){
  .filtersBar{
    position: sticky;
    top: 66px;
    z-index: 6;
    padding: 10px;
    margin: -6px -6px 0;
    border-radius: 18px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    box-shadow: 0 12px 40px rgba(15,23,42,.10);
  }
  html[data-theme="dark"] .filtersBar{ background: rgba(255,255,255,.06); }
}

/* Submission wizard (stepper) */
form.wizard fieldset.formCard{ display:none; }
form.wizard fieldset.formCard.is-active{ display:block; }

.wizardHeader{
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-radius: 22px;
  padding: 12px 12px 10px;
  margin-bottom: 12px;
  box-shadow: 0 14px 44px rgba(15,23,42,.10);
}
.wizardTop{ display:flex; flex-direction:column; gap: 10px; }
.wizardKicker{ font-weight: 900; color: var(--muted); font-size: 13px; }
.wizardKicker b{ color: var(--ink); }

.wizardPills{
  display:flex;
  gap: 8px;
  overflow:auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.wizardPills::-webkit-scrollbar{ display:none; }

.wizPill{
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 1000;
  font-size: 13px;
  cursor:pointer;
  white-space: nowrap;
}
.wizPill.is-active{
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.wizPill:disabled{ opacity:.5; cursor:not-allowed; }

.wizardProgress{
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
  overflow:hidden;
  margin-top: 10px;
}
.wizardProgress span{
  display:block;
  height:100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  transition: width .16s ease;
}

.wizardNav{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.wizardNav .btn{ flex: 1 1 0; }

@media (max-width: 980px){
  .wizardNav{
    position: sticky;
    bottom: 12px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 92%, transparent);
    box-shadow: 0 18px 70px rgba(15,23,42,.14);
    z-index: 7;
  }
}

/* Avoid "stacking" fixed UI elements during wizard use */
.has-wizard .mobileDock{ display:none !important; }

/* Better bottom padding when wizard nav is sticky */
@media (max-width: 980px){
  .has-wizard main{ padding-bottom: 136px; }
  body.has-wizard.show-checkoutbar main{ padding-bottom: 160px; }
}

@media (max-width: 980px){
  .wizardHeader{ position: sticky; top: 66px; z-index: 8; }
}


/* Share Kit */
.shareKit{
  border:1px solid var(--bd);
  border-radius:18px;
  padding:14px;
  background: linear-gradient(180deg, rgba(125,95,255,.10), rgba(125,95,255,.04));
}
.shareGrid{
  display:grid;
  gap:12px;
}
@media (min-width: 860px){
  .shareGrid{ grid-template-columns: 1fr 1fr; }
}
.shareCard{
  border:1px solid var(--bd);
  border-radius:16px;
  padding:12px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.shareHead{
  font-weight:900;
  letter-spacing:.2px;
  margin-bottom:8px;
}
.shareText{
  width:100%;
  border:1px solid var(--bd);
  border-radius:12px;
  padding:10px 10px;
  font: inherit;
  background: var(--panel);
  color: var(--fg);
  line-height:1.35;
  resize: vertical;
}
.shareRow{
  margin-top:10px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
