/* Layout v2 (2026-11-16): shirts above the fold, lighter cards. Loaded only on index + shop. */

/* ── Compact homepage hero: logo beside text instead of stacked ── */
@media (min-width: 601px) {
  .hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 2.5rem;
    align-items: center;
    text-align: left;
    padding: 2rem max(2.5rem, calc((100% - 1100px) / 2)) 2.25rem;
  }
  .hero > * { grid-column: 2; }
  .hero > .hero-logo {
    grid-column: 1;
    grid-row: 1 / span 7;
    width: 210px;
    height: 210px;
    margin: 0;
  }
  .hero .hero-eyebrow { margin: 0 0 0.6rem; letter-spacing: 4px; }
  .hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
  .hero .tagline { margin: 0.5rem 0 0.6rem; max-width: none; }
  .hero .subtitle { margin: 0 0 0.6rem; max-width: 600px; }
  .hero .hero-ebay-note { margin: 0 0 1rem; }
  .hero > .btn { justify-self: start; }
}
@media (min-width: 601px) and (max-width: 860px) {
  .hero > .hero-logo { width: 150px; height: 150px; }
  .hero { column-gap: 1.5rem; }
}

/* ── Lighter product cards (wider screens; phones already compact) ── */
@media (min-width: 601px) {
  .card .share-row,
  .card .band-btn { display: none; }
  .card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.7rem;
  }
  .card-body { padding-bottom: 1.2rem; }
}

/* Whole card body clicks through to the shirt page */
.card-title-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-bottom .add-btn,
.card .sold-alert-btn { position: relative; z-index: 2; }

/* ── Shop page: compact intro so the grid starts near the top ── */
.shop-intro { max-width: 760px; margin-bottom: 1rem; }
.shop-more { margin-top: 3rem; }

/* ── Grails: horizontal photo rail ── */
.grails-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0 0 0.9rem;
  scrollbar-width: thin;
}
.grails-rail li { flex: 0 0 190px; scroll-snap-align: start; }
.grails-rail a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s;
}
.grails-rail a:hover { border-color: var(--accent); }
.grails-rail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1a140c;
}
.grails-rail .title {
  display: block;
  padding: 0.6rem 0.7rem 0.2rem;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
  color: var(--cream);
}
.grails-rail .meta {
  display: block;
  padding: 0 0.7rem 0.7rem;
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  color: var(--accent);
}
@media (max-width: 600px) { .grails-rail li { flex-basis: 150px; } }

/* ── Filters: size/condition/era/year/price live behind the Filters button at every width ── */
.filter-toolbar { display: flex; }
.filter-row:not(.filter-panel-open) { display: none; }
.filter-row.filter-panel-open { display: flex; }
@media (max-width: 768px) {
  /* homepage uses its slide-up drawer here instead */
  body:has(.mobile-filter-fab) .filter-toolbar { display: none; }
}

/* ── Phones: genre tabs as one swipeable row instead of three wrapped rows ── */
@media (max-width: 600px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    touch-action: auto;
    justify-content: flex-start;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters .filter-btn { flex: 0 0 auto; }
}

/* ── Shop editorial lists: numbers inside the column ── */
.shop-more ol, .shop-more ul:not([class]) { padding-left: 1.4rem; }

/* hero-logo-nomask: the badge has a transparent background now; the old radial fade would clip its ring */
.hero-logo { -webkit-mask-image: none; mask-image: none; border-radius: 0; object-fit: contain; }
