/* ==========================================================================
   Robaku Design System
   Clean, flat, monochrome marketplace. Minimal borders, confident typography.
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,400&display=swap');

/* --- Variables --- */
:root {
  /* Surface */
  --bg: #fafafa;
  --bg-warm: #f5f5f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-inset: #f0f0f0;

  /* Flat shadows (no neumorphism) */
  --shadow-out: none;
  --shadow-out-sm: none;
  --shadow-in: none;
  --shadow-hover: none;
  --shadow-card: none;

  /* Borders replace shadows */
  --card-border: 1px solid #e5e5e5;
  --card-border-hover: 1px solid #d4d4d4;

  /* Accent -- teal, used sparingly */
  --accent: #0d9488;
  --accent-light: #f0fdfa;
  --accent-dark: #0a7a70;
  --accent-glow: rgba(13,148,136,0.08);

  /* Text -- monochrome hierarchy */
  --text: #111111;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --text-inverse: #ffffff;

  /* Misc */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-pill: 100px;
  --border: 1px solid #e5e5e5;
  --transition: 0.15s ease;
  --max-w: 1200px;

  /* Typography scale */
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-display: 'DM Sans', -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
}

/* --- Card --- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--card-border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: #d4d4d4;
}

.card--flat {
  border: var(--card-border);
}
.card--flat:hover {
  border-color: #d4d4d4;
}

.card--inset {
  background: var(--bg);
  border: var(--card-border);
}

.card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-inset);
}

.card__body { padding: 20px; }
.card__body--compact { padding: 16px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--text-inverse);
}

.btn--secondary {
  background: var(--text);
  color: var(--text-inverse);
}
.btn--secondary:hover {
  background: #333333;
  color: var(--text-inverse);
}
.btn--secondary.active {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover { color: var(--accent); }

.btn--lg { padding: 16px 36px; font-size: var(--text-base); }
.btn--sm { padding: 8px 18px; font-size: var(--text-xs); }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,250,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e5e5;
  padding: 0 24px;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--accent); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  border: var(--card-border);
  transition: all var(--transition);
}
.nav__cart:hover { border-color: var(--text); color: var(--text); }

.nav__cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.nav__cart-count.visible { display: flex; }

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: absolute;
  left: 6px;
  transition: all 0.3s;
}
.nav__toggle span:nth-child(1) { top: 10px; }
.nav__toggle span:nth-child(2) { top: 16px; }
.nav__toggle span:nth-child(3) { top: 22px; }

.nav__toggle.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #e5e5e5;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { font-size: var(--text-lg); }
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  margin-bottom: 20px;
  font-weight: 700;
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Platform Selector --- */
.platforms { text-align: center; }
.platforms__grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #e5e5e5;
  cursor: pointer;
  transition: all var(--transition);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text);
}
.platform-chip:hover { border-color: #d4d4d4; }
.platform-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.platform-chip__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* --- Categories --- */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--card-border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.category-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.category-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.category-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
}
.category-card__count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .categories__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Product Cards --- */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--card-border);
  overflow: hidden;
  transition: border-color var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: #d4d4d4;
  color: var(--text);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-inset);
  overflow: hidden;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image { transform: scale(1.04); }

.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--physical { background: #dbeafe; color: #1e40af; }
.badge--digital { background: #fae8ff; color: #86198f; }
.badge--featured { background: #fef3c7; color: #92400e; }
.badge--new { background: var(--accent-light); color: var(--accent-dark); }

.product-card__info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__category {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-card__seller {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 12px;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-card__price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.product-card__rating .star { color: #f59e0b; }
.product-card__platforms {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.product-card__platform-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-inset);
  color: var(--text-secondary);
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--card-border);
  counter-increment: step;
  position: relative;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: var(--text-sm); color: var(--text-secondary); }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* --- Stats --- */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 6px;
}

/* --- Signup Form --- */
.signup-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: var(--card-border);
  padding: 56px 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.signup-section h2 { margin-bottom: 12px; }
.signup-section p { color: var(--text-secondary); margin-bottom: 28px; }

.form-row {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.form-row input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e5e5;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.form-row input:focus {
  border-color: var(--accent);
}
.form-row input::placeholder { color: var(--text-muted); }

@media (max-width: 640px) {
  .signup-section { padding: 36px 24px; }
  .form-row { flex-direction: column; }
}

/* --- Filter Sidebar --- */
.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .browse-layout { grid-template-columns: 1fr; }
}

.filters {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--card-border);
  padding: 24px;
}
.filters h3 { font-size: var(--text-lg); margin-bottom: 20px; }

.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition);
}
.filter-option:hover { color: var(--accent); }
.filter-option input[type="checkbox"] { display: none; }
.filter-option__check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-option input:checked + .filter-option__check {
  background: var(--accent);
  border-color: var(--accent);
}
.filter-option input:checked + .filter-option__check::after {
  content: '\2713';
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.filter-option input:checked ~ .filter-option__label { color: var(--accent); font-weight: 600; }

/* Price range slider */
.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.price-range input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--surface-inset);
  border-radius: 2px;
  outline: none;
}
.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13,148,136,0.3);
}

/* --- Sort bar --- */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.sort-bar__count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.sort-bar__options {
  display: flex;
  gap: 8px;
}
.sort-bar select {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e5e5;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  cursor: pointer;
  outline: none;
}

/* --- Product Detail --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
}

.product-gallery {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: var(--card-border);
  overflow: hidden;
}
.product-gallery__main {
  aspect-ratio: 1;
  background: var(--surface-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: var(--text-muted);
}
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
}
.product-gallery__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.product-gallery__thumb.active,
.product-gallery__thumb:hover { border-color: var(--accent); }

.product-info h1 {
  font-size: var(--text-3xl);
  margin-bottom: 8px;
}
.product-info__seller {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
}
.product-info__price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.product-info__desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: var(--card-border);
}
.product-meta__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.product-meta__label { color: var(--text-muted); }
.product-meta__value { font-weight: 600; }

.product-actions {
  display: flex;
  gap: 12px;
}

/* --- Reviews --- */
.reviews { margin-top: 48px; }
.review {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--card-border);
  margin-bottom: 16px;
}
.review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review__author { font-weight: 600; font-size: var(--text-sm); }
.review__date { font-size: var(--text-xs); color: var(--text-muted); }
.review__stars { color: #f59e0b; margin-bottom: 8px; font-size: var(--text-sm); }
.review__text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* --- Seller Page --- */
.seller-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid #e5e5e5;
}
.seller-hero h1 { margin-bottom: 16px; }
.seller-hero p { color: var(--text-secondary); max-width: 540px; margin: 0 auto; font-size: var(--text-lg); }

.commission-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.commission-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--card-border);
  padding: 32px;
  text-align: center;
}
.commission-card__rate {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.commission-card__type {
  font-weight: 600;
  margin-bottom: 4px;
}
.commission-card__detail {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .commission-cards { grid-template-columns: 1fr; }
}

/* --- Seller Form --- */
.seller-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: var(--card-border);
  padding: 40px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e5e5;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 100px; }

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 1px solid #e5e5e5;
  margin-top: 80px;
  padding: 48px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 12px;
}
.footer__brand span { color: var(--accent); }
.footer__about {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: var(--text-sm); color: var(--text-secondary); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--surface-inset);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* --- Search --- */
.search-bar {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 16px 24px 16px 48px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e5e5;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* --- Toast / notifications --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--text);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-inverse);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
.toast.visible { transform: translateY(0); opacity: 1; }

/* --- Misc --- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--text-secondary); max-width: 480px; margin: 0 auto; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Page-specific overrides --- */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
}
.page-header h1 { font-size: var(--text-3xl); margin-bottom: 10px; }
.page-header p { color: var(--text-secondary); }

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin: 36px 0 16px; font-size: var(--text-2xl); }
.prose h3 { margin: 28px 0 12px; font-size: var(--text-xl); }
.prose p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.7; }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; color: var(--text-secondary); }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile filter toggle --- */
.filter-toggle {
  display: none;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .filter-toggle { display: block; }
  .filters { display: none; position: relative; top: auto; }
  .filters.open { display: block; }
}

/* --- Cart Drawer --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid #e5e5e5;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface-inset);
}
.cart-drawer__header h3 { font-size: var(--text-lg); }
.cart-drawer__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-inset);
}
.cart-item__image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cart-item__details { flex: 1; }
.cart-item__name { font-weight: 600; font-size: var(--text-sm); }
.cart-item__price { font-size: var(--text-sm); color: var(--text-secondary); }
.cart-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-xs);
  padding: 4px;
}
.cart-item__remove:hover { color: #ef4444; }

.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--surface-inset);
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 16px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* Empty cart */
.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}
.cart-empty__icon { font-size: 48px; margin-bottom: 12px; }
.cart-empty p { font-size: var(--text-sm); }
