/* faxo.com/shop (root/shop/index), on faxo.css's colors and catalog.css's grid, light and dark. */
.fx-shop-section { margin: 8px 0 28px; }

/* Shop the Post: the post's photo with the items tagged on it */
.fx-shop-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fx-shop-post { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start;
  background: var(--fill); border-radius: 16px; padding: 10px; }
.fx-shop-post-img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fill-pressed); }
.fx-shop-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-shop-post-body { display: grid; gap: 8px; min-width: 0; }
.fx-shop-post-title { color: var(--label); text-decoration: none; font-size: 15px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-shop-tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-shop-tags a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--label);
  background: var(--bg); border-radius: 10px; padding: 6px; }
.fx-shop-tags a:hover { background: var(--fill-pressed); }
.fx-shop-tag-img { flex: 0 0 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--fill); }
.fx-shop-tag-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-shop-tag-text { display: grid; min-width: 0; font-size: 14px; line-height: 1.25; }
.fx-shop-tag-text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-shop-tag-text span { font-weight: 700; }

/* products with a checkout: the card and its Buy button */
.fx-shop-product { display: grid; gap: 8px; align-content: start; }
.fx-shop-buy { height: 36px; font-size: 15px; }
.fx-shop-note { color: var(--secondary); font-size: 13px; margin: 12px 0 0; }

/* selling on Faxo */
.fx-shop-sell { background: var(--fill); border-radius: 18px; padding: 20px; margin: 8px 0 24px; }
.fx-shop-sell h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: var(--label); }
.fx-shop-sell p { color: var(--secondary); font-size: 16px; line-height: 1.45; margin: 0 0 14px; max-width: 640px; }
.fx-shop-sell .fx-btn { width: auto; display: inline-flex; padding: 0 22px; }

@media (min-width: 760px) {
  .fx-shop-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-shop-post { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (min-width: 1100px) { .fx-shop-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
