
:root {
  --color-candy-pink: #ffb3c6;
  --color-mint: #b5ead7;
  --color-lavender: #c7b8ea;
  --color-peach: #ffdac1;
  --color-sky: #aed9e0;
  --color-lemon: #fff1a8;
  --color-hot-pink: #ff2d78;
  --color-electric-blue: #0066ff;
  --color-neon-green: #39ff14;
  --color-deep-purple: #3d0066;
  --color-off-white: #faf9f6;
  --color-almost-black: #0d0d0d;
  --color-warm-gray: #6f6770;
  --bg-gradient: linear-gradient(135deg, #ffb3c6 0%, #c7b8ea 35%, #aed9e0 65%, #b5ead7 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  color: var(--color-almost-black);
  background: var(--bg-gradient);
  background-size: 180% 180%;
  animation: meshShift 18s ease-in-out infinite;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
input, textarea, select, button { font: inherit; }
.crt-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none; z-index: 9999;
}
.site-header, main, .site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0 0;
}
.logo, h1, h2 { font-family: 'Bungee', cursive; }
.logo { font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; }
.logo span { color: var(--color-hot-pink); }
.site-nav { display: flex; gap: .85rem 1rem; font-weight: 700; flex-wrap: wrap; }
.site-nav a { position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 0; height: 2px; background: currentColor; transform: translateX(-50%); transition: width .22s ease; }
.site-nav a:hover::after { width: 100%; }
.hero, .section-block { padding: 4rem 0 1rem; }
.eyebrow {
  display: inline-flex; padding: .45rem .8rem; border-radius: 999px; background: rgba(255,255,255,0.65);
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
}
h1 { margin: 1rem 0; max-width: 16ch; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; text-wrap: balance; }
.hero h1 { max-width: 11ch; font-size: clamp(2.35rem, 5.8vw, 4rem); line-height: .98; }
h2 { margin: .4rem 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; text-wrap: balance; }
.hero-copy { max-width: 62ch; font-size: 1.08rem; line-height: 1.7; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta, .secondary-cta {
  display: inline-block; margin-top: 1rem; padding: .95rem 1.35rem; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer;
}
.cta {
  background: var(--color-almost-black); color: var(--color-off-white);
  box-shadow: inset 0 -100% 0 0 var(--color-hot-pink); transition: box-shadow .25s ease, transform .25s ease;
}
.cta:hover { box-shadow: inset 0 0 0 0 var(--color-hot-pink); transform: translateY(-2px); }
.secondary-cta { background: rgba(255,255,255,.7); }
.section-head { margin-bottom: 1rem; }
.product-grid, .category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem;
}
.product-card, .category-tile, .filter-card, .detail-copy, .detail-media, .site-footer, .form-shell, .account-card, .admin-row {
  border: 2px solid rgba(13,13,13,.12); border-radius: 28px; background: rgba(250,249,246,.82); backdrop-filter: blur(10px);
}
.product-card { overflow: hidden; transform: translateY(18px); opacity: 0; transition: transform .45s ease, opacity .45s ease; transition-delay: var(--delay, 0ms); }
.product-card.is-visible { transform: translateY(0); opacity: 1; }
.product-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.product-card__body { padding: 1rem; }
.product-card__body h3 { margin: .5rem 0; font-size: 1.1rem; }
.product-card__body p { margin: 0; line-height: 1.55; color: var(--color-warm-gray); }
.product-meta, .mono-price { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; font-family: 'IBM Plex Mono', monospace; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 999px;
  background: var(--badge-color, var(--color-peach)); font-size: .76rem; font-weight: 700; text-transform: uppercase;
}
.category-tile { padding: 1.2rem; background: linear-gradient(180deg, var(--tile-color, var(--color-peach)), rgba(255,255,255,.88)); }
.category-tile p { line-height: 1.65; }
.catalog-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1rem; padding: 2rem 0 3rem; }
.filter-card { padding: 1.2rem; height: fit-content; position: sticky; top: 1rem; }
.filter-list { margin: 1rem 0 0; padding-left: 1rem; line-height: 1.9; }
.stack-form--catalog { margin-top: 1rem; }
.catalog-state { margin: .35rem 0 0; font-weight: 700; }
.empty-state {
  padding: 1.2rem;
  border: 2px dashed rgba(13,13,13,.18);
  border-radius: 28px;
  background: rgba(250,249,246,.72);
}
.filter-reset { font-weight: 700; text-decoration: underline; }
.cta--small { padding: .8rem 1rem; }
.detail-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; padding: 2rem 0 1rem; }
.detail-media, .detail-copy { padding: 1rem; }
.detail-media img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; }
.category-hero { background: linear-gradient(180deg, var(--tile-color, var(--color-peach)), rgba(255,255,255,.85)); border-radius: 30px; padding-inline: 1.5rem; }
.form-shell, .account-card { max-width: 720px; padding: 1.4rem; margin: 2rem auto 1rem; }
.stack-form { display: grid; gap: .9rem; }
.stack-form label { display: grid; gap: .45rem; font-weight: 700; }
.stack-form input, .stack-form textarea, .stack-form select {
  width: 100%; border: 2px solid rgba(13,13,13,.14); border-radius: 18px; padding: .85rem 1rem; background: rgba(255,255,255,.75);
}
.form-error { color: #8b0032; font-weight: 700; }
.admin-layout { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 1rem; padding: 2rem 0 3rem; align-items: start; }
.admin-layout > * { min-width: 0; }
.admin-layout .form-shell { max-width: none; width: 100%; margin: 0; }
.admin-layout .section-block { padding-top: 0; min-width: 0; }
.admin-list { display: grid; gap: .8rem; }
.admin-list--forms { align-content: start; }
.admin-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.1rem; }
.admin-row--edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  border: 2px solid rgba(13,13,13,.12);
  border-radius: 28px;
  background: rgba(250,249,246,.82);
  backdrop-filter: blur(10px);
}
.stack-form--compact { width: 100%; min-width: 0; }
.stack-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.admin-row__actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.cta--ghost {
  background: transparent;
  color: var(--color-almost-black);
  border: 2px solid rgba(13,13,13,.15);
  box-shadow: none;
}
.danger-button {
  border: 0;
  border-radius: 999px;
  padding: .85rem 1rem;
  background: #8b0032;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.admin-row p { margin: .3rem 0 0; color: var(--color-warm-gray); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem; margin-bottom: 2rem; }
.glitch.is-glitching { animation: vhs-glitch .55s steps(2, end); }
@keyframes meshShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes vhs-glitch {
  0% { clip-path: inset(0 0 98% 0); transform: translateX(-4px); }
  10% { clip-path: inset(30% 0 50% 0); transform: translateX(4px); }
  20% { clip-path: inset(60% 0 20% 0); transform: translateX(-2px); }
  30% { clip-path: inset(80% 0 5% 0); transform: translateX(2px); }
  40% { clip-path: inset(40% 0 40% 0); transform: translateX(-4px); }
  100% { clip-path: inset(0 0 0 0); transform: translateX(0); }
}
@media (max-width: 900px) {
  .catalog-page, .detail-layout, .site-footer, .admin-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .site-nav { width: 100%; gap: .65rem 1rem; }
  .hero, .section-block { padding-top: 2rem; }
  h1 { max-width: 100%; font-size: clamp(1.8rem, 7vw, 2.3rem); line-height: 1.08; }
  .hero h1 { max-width: 100%; font-size: clamp(1.95rem, 7.6vw, 2.45rem); line-height: 1.02; }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.08; }
  .hero-copy { font-size: 1rem; line-height: 1.6; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .cta, .hero-actions .secondary-cta { width: 100%; text-align: center; }
  .site-footer { gap: .75rem; }
  .site-footer nav { display: flex; flex-wrap: wrap; gap: .75rem; }
  .product-meta, .mono-price { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .stack-form__grid { grid-template-columns: 1fr; }
  .admin-row__actions { flex-direction: column; align-items: stretch; }
  .admin-row--edit { flex-direction: column; }
}
