/* ===== Chromatic Geometrics — Conservative Token System ===== */
:root {
  --primary: #0d9488;       /* teal */
  --primary-strong: #0f766e;
  --secondary: #f472b6;     /* pink */
  --neutral: #64748b;       /* slate */
  --ink: #0f172a;
  --surface: #ffffff;
  --bg: #f8fafc;
  --signal: #ef4444;        /* urgency / ending soon */
  --ring: rgba(13, 148, 136, 0.35);
}

* { box-sizing: border-box; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ===== Custom utilities (plain CSS so they always resolve) ===== */
.bg-primary      { background-color: var(--primary); }
.bg-primary-strong { background-color: var(--primary-strong); }
.text-primary    { color: var(--primary); }
.text-secondary  { color: var(--secondary); }
.text-neutral    { color: var(--neutral); }
.ring-primary:focus,
.input-field:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-color: transparent;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  transition: background-color .2s ease, transform .2s ease;
}
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: background-color .2s ease;
}
.btn-secondary:hover { background: #f1f5f9; }

/* Inputs */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.input-field:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-color: transparent;
}

/* Card */
.card {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 1rem;
  border: 1px solid #eef2f7;
}

/* Category chip — geometric, color-coded */
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--neutral);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  border-left: 3px solid var(--primary);
  transition: background-color .2s ease, color .2s ease;
}
.category-tag:hover { background: var(--primary); color: #fff; }
.category-tag a { color: inherit; }

/* ===== Hero geometric fields (conservative: low-opacity, behind content) ===== */
.hero-geo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}
.hero-geo::before,
.hero-geo::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  z-index: 0;
  filter: blur(2px);
}
.hero-geo::before {
  width: 320px; height: 320px;
  top: -90px; right: -60px;
  background: rgba(244, 114, 182, 0.14); /* pink field */
}
.hero-geo::after {
  width: 260px; height: 260px;
  bottom: -80px; left: -50px;
  background: rgba(13, 148, 136, 0.12);  /* teal field */
}
.hero-geo > .max-w-7xl { position: relative; z-index: 1; }

/* Geometric corner mark on hero title */
.geo-mark {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 0.6rem;
  background: var(--primary);
  transform: rotate(45deg);
  vertical-align: middle;
}
.geo-mark.pink { background: var(--secondary); margin-left: 0.4rem; margin-right: 0; }

/* ===== Item card — sharper, geometric price badge ===== */
.item-card {
  background: var(--surface);
  border: 1px solid #eef2f7;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}
.item-card img { width: 100%; height: 12rem; object-fit: cover; display: block; }

.item-card .price-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  padding-left: 0.7rem;
  border-left: 4px solid var(--primary);
}

/* Category colour tag inside card */
.item-card .cat-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--secondary);
  margin-right: 0.4rem;
}

/* Ending-soon pulse */
.ending-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--signal);
}
.ending-soon .dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: var(--signal);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

/* Footer refinement */
footer a { transition: color .2s ease; }
