/* Vitabu Hub — soft mist literary shop */
:root {
  --radius: 1.15rem;
  --background: #f3f7fb;
  --foreground: #0f1c2e;
  --card: #ffffff;
  --card-foreground: #0f1c2e;
  --primary: #0e7490;
  --primary-foreground: #ecfeff;
  --secondary: #e2eef6;
  --secondary-foreground: #16324a;
  --muted: #e8f0f6;
  --muted-foreground: #5b6f82;
  --accent: #cffafe;
  --accent-foreground: #164e63;
  --destructive: #e11d48;
  --border: #d5e3ee;
  --input: #dbe7f0;
  --ring: #0e7490;
  --ink: #0b1726;
  --mist: #f8fbfe;
  --shadow-soft: 0 14px 36px -20px rgba(15, 28, 46, 0.28);
  --shadow-card: 0 1px 0 rgba(14, 116, 144, 0.06), 0 16px 40px -24px rgba(15, 28, 46, 0.22);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Karla", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; border-color: var(--border); }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.store-shell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(14, 116, 144, 0.12), transparent 60%),
    linear-gradient(180deg, #f8fbfe 0%, var(--background) 40%, #eaf2f8 100%);
}
.store-shell > * { position: relative; z-index: 1; }

.font-display { font-family: var(--font-display); }

.bg-background { background: var(--background); }
.bg-card { background: var(--card); }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-secondary\/30 { background: color-mix(in srgb, var(--secondary) 30%, transparent); }
.bg-secondary\/40 { background: color-mix(in srgb, var(--secondary) 40%, transparent); }
.bg-secondary\/50 { background: color-mix(in srgb, var(--secondary) 50%, transparent); }
.bg-secondary\/60 { background: color-mix(in srgb, var(--secondary) 60%, transparent); }
.bg-muted { background: var(--muted); }
.bg-foreground { background: var(--foreground); }
.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.border-border { border-color: var(--border); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-card { box-shadow: var(--shadow-card); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes soft-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.animate-fade-in-up { animation: fade-up 0.5s cubic-bezier(.22,1,.36,1) both; }
.animate-fade-in { animation: fade-in 0.35s ease-out both; }
.animate-soft-pulse { animation: soft-pulse 2.4s ease-in-out infinite; }
.animate-slide-in { animation: fade-up 0.5s cubic-bezier(.22,1,.36,1) both; }

.input {
  height: 3rem;
  width: 100%;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--mist);
  color: var(--foreground);
  padding: 0 1.15rem;
  font-size: 0.925rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: #8a9aab; }
.input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.14);
}
.textarea { min-height: 6rem; padding-top: .85rem; padding-bottom: .85rem; resize: vertical; border-radius: 1rem; }
.label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-family: var(--font-body);
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(14, 116, 144, 0.55);
  text-decoration: none;
  transition: transform .15s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

.flash {
  border-radius: 1rem;
  padding: .85rem 1.1rem;
  font-size: .875rem;
  margin-bottom: 1rem;
}
.flash-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.flash-error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.field-error { color: #e11d48; font-size: .75rem; margin-top: .25rem; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 2.4rem;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.chip:hover { background: #d5e8f3; }
.chip-active {
  background: var(--ink);
  color: #f8fbfe;
  box-shadow: var(--shadow-soft);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
}

.hub-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.hub-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 22px 48px -26px rgba(14, 116, 144, 0.35);
}
.hub-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--muted);
}
.hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hub-card:hover .hub-card__media img { transform: scale(1.05); }
.hub-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.hub-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.hub-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.hub-card__price {
  margin-top: auto;
  padding-top: 0.65rem;
  font-weight: 700;
  color: var(--ink);
}

.product-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, border-color .2s;
}
.product-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.step-rail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.step-rail .step-on { color: var(--primary); }
.step-rail .dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 9999px;
  background: var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--mist) 86%, transparent);
  backdrop-filter: blur(16px);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #0e7490, #155e75);
  color: #ecfeff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: #0f1c2e;
  color: #b7c7d6;
}
.site-footer a { color: #67e8f9; }

.product-card,
.product-mosaic,
.product-row { /* legacy hooks unused */ }
