/* Product cards and grids — from Docs/reference/index.html. Shared by home, shop, product and account pages. */
.products { padding-top: 5rem; padding-bottom: 5rem; scroll-margin-top: 7rem; }
.products-head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.products-head h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.025em; }
.products-head .note { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-foreground); }
.grid-products { display: grid; gap: 1.25rem; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 1.35rem; background: var(--card); }
.card-media { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--secondary); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.badge { position: absolute; right: .75rem; top: .75rem; padding: .25rem .75rem; border-radius: 9999px; background: var(--card); font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.card-body h3 { font-size: 1.125rem; font-weight: 600; }
.card-body .kind { font-size: .875rem; color: var(--muted-foreground); margin-top: .25rem; }
.variants { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant { height: 2rem; padding: 0 .75rem; white-space: nowrap; border: 1px solid var(--border); border-radius: .6rem; font-family: var(--font-mono); font-size: .75rem; color: var(--muted-foreground); transition: border-color .15s, background-color .15s, color .15s; }
.variant:hover { border-color: color-mix(in srgb, var(--foreground) 30%, transparent); }
.variant[aria-checked="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; }
.price { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-from { font-size: .75rem; font-weight: 500; color: var(--muted-foreground); }
.add-btn { display: inline-flex; height: 2.5rem; align-items: center; gap: .375rem; padding: 0 1rem; border-radius: 9999px; background: var(--primary); color: var(--primary-foreground); font-size: .875rem; font-weight: 600; transition: opacity .15s; }
.add-btn:hover { opacity: .9; }
.see-all { display: flex; justify-content: center; margin-top: 2.5rem; }
.see-all a { display: inline-flex; height: 2.75rem; align-items: center; padding: 0 1.5rem; border: 1px solid color-mix(in srgb, var(--foreground) 20%, transparent); border-radius: 9999px; font-size: .875rem; font-weight: 600; transition: background-color .15s; }
.see-all a:hover { background: var(--secondary); }
.card-body h3 a:hover { color: var(--primary); }
.variant:disabled { cursor: not-allowed; opacity: .45; text-decoration: line-through; }
.add-btn:disabled { cursor: not-allowed; opacity: .45; }

@media (min-width: 640px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .products-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .products-head h2 { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
}
