/* sites/shop/assets/shop.css — rytm.shop storefront. Reads design-system tokens
   (/design-system/index.css must be linked first). */

.shop-page {
  margin: 0;
  background: var(--ds-bg);
  color: var(--ds-c-ink);
  font-family: var(--ds-ff-body);
  font-size: var(--ds-fs-md);
  line-height: var(--ds-lh-normal);
}
.shop-page a { color: inherit; }

.shop-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.shop-header { border-bottom: 1px solid var(--ds-c-hairline); }
.shop-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1120px; margin: 0 auto;
}
.shop-header__logo img { height: 36px; display: block; }
.shop-header__nav { display: flex; gap: 24px; font-family: var(--ds-ff-ui); font-size: var(--ds-fs-sm); }
.shop-header__nav a { text-decoration: none; }
.shop-header__nav a:hover { text-decoration: underline; }

/* Hero */
.shop-hero { padding: 96px 0 72px; text-align: center; }
.shop-hero h1 {
  font-family: var(--ds-ff-display); font-size: var(--ds-fs-4xl);
  font-weight: var(--ds-fw-medium); line-height: var(--ds-lh-snug);
  margin: 0 auto 20px; max-width: 18ch;
}
.shop-hero p { max-width: 52ch; margin: 0 auto 36px; font-size: var(--ds-fs-lg); }
.shop-hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Section scaffolding */
.shop-section { padding: 64px 0; }
.shop-section--alt { background: var(--ds-bg-paper); }
.shop-section h2 {
  font-family: var(--ds-ff-display); font-size: var(--ds-fs-2xl);
  font-weight: var(--ds-fw-medium); margin: 0 0 32px; text-align: center;
}

/* Cards (sessions on home, products on catalog) */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.shop-card {
  background: var(--ds-c-paper); border: 1px solid var(--ds-c-hairline);
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.shop-card__kicker {
  font-family: var(--ds-ff-ui); font-size: var(--ds-fs-xs);
  text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7;
}
.shop-card__title { font-family: var(--ds-ff-display); font-size: var(--ds-fs-xl); margin: 0; }
.shop-card__desc { margin: 0; font-size: var(--ds-fs-sm); flex: 1; }
.shop-card__price { font-family: var(--ds-ff-ui); font-weight: var(--ds-fw-bold); font-size: var(--ds-fs-lg); }
.shop-card__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px;
  background: var(--ds-c-hairline); display: block;
}
.shop-card__stock { font-family: var(--ds-ff-ui); font-size: var(--ds-fs-xs); }
.shop-card__stock--out { color: #a33; }

/* Out-of-stock buy buttons: the widget also tags these with .rytm-oos */
[data-rytm-sku][aria-disabled='true'], .rytm-oos { opacity: 0.5; cursor: not-allowed; }

/* Founder quote */
.shop-founder { text-align: center; max-width: 620px; margin: 0 auto; }
.shop-founder blockquote {
  font-family: var(--ds-ff-display); font-size: var(--ds-fs-xl);
  line-height: var(--ds-lh-snug); margin: 0 0 16px;
}
.shop-founder figcaption { font-family: var(--ds-ff-ui); font-size: var(--ds-fs-sm); opacity: 0.7; }

/* Footer */
.shop-footer { border-top: 1px solid var(--ds-c-hairline); padding: 48px 0; margin-top: 64px; }
.shop-footer__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
  font-size: var(--ds-fs-sm);
}
.shop-footer__about { max-width: 44ch; margin: 0; }
.shop-footer__links { display: flex; flex-direction: column; gap: 8px; font-family: var(--ds-ff-ui); }
.shop-footer__legal { width: 100%; margin: 24px 0 0; font-size: var(--ds-fs-xs); opacity: 0.6; }

/* Simple pages (thank-you, 404) */
.shop-simple { padding: 120px 0; text-align: center; }
.shop-simple h1 { font-family: var(--ds-ff-display); font-size: var(--ds-fs-2xl); margin: 0 0 16px; }

@media (max-width: 640px) {
  .shop-hero { padding: 64px 0 48px; }
  .shop-hero h1 { font-size: var(--ds-fs-2xl); }
}
