/* ============================================================
   OBJ ROCK — Global layout & typography utilities
   ============================================================ */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container-wide { width: min(100% - 2.5rem, var(--container-wide)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }

.section { padding-block: clamp(3rem, 7vw, 6.5rem); position: relative; }
.section-sm { padding-block: clamp(2rem, 4vw, 4rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 5rem); }

.section-dark {
  background: var(--grad-dark);
  color: #EDEDF2;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-soft { background: var(--white); }
.section-tinted { background: var(--purple-tint); }
.section-grey { background: #EFEFF2; }

/* Eyebrow / label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.55;
  max-width: 56ch;
}
.section-dark .lead { color: rgba(255,255,255,.7); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

/* Section header */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: var(--fs-lead); }

/* Grid helpers */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
}

/* Flex helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.flex-wrap { flex-wrap: wrap; }

/* Display utilities */
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}

/* Aspect ratio */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-card { aspect-ratio: 4 / 5; }

/* Page wrapper */
.page { padding-top: 72px; min-height: 100vh; }
@media (max-width: 768px) { .page { padding-top: 64px; } }

/* Page hero (interior pages) */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3.5rem);
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { margin-bottom: .8rem; }
.page-hero p { color: var(--muted); font-size: var(--fs-lead); max-width: 60ch; margin-inline: auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb span { color: var(--border-strong); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  letter-spacing: .04em;
}
.badge-sale { background: rgba(212,58,47,.1); color: var(--danger); }
.badge-new { background: rgba(30,142,90,.1); color: var(--success); }
.badge-hot { background: rgba(112,36,216,.1); color: var(--purple); }
.badge-oos { background: rgba(122,122,122,.12); color: var(--muted); }
.badge-featured { background: rgba(224,168,0,.12); color: #8B6500; }

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--purple-tint);
  color: var(--purple);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid rgba(112,36,216,.12);
}
.pill.dark {
  background: rgba(255,255,255,.06);
  color: #E6DEFF;
  border-color: rgba(140,82,239,.25);
}
