/* Product cards, grids and loading states, shared by every page. */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0.7rem; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; aspect-ratio: 1; border-radius: var(--radius); background: radial-gradient(circle at 50% 38%, #fff 0%, var(--soft) 72%); overflow: hidden; transition: box-shadow 0.4s var(--ease); }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 4%; filter: drop-shadow(0 14px 14px rgb(60 42 24 / 0.16)); transition: scale 0.6s var(--ease), translate 0.6s var(--ease); }
.card:hover .card__media { box-shadow: 0 22px 36px -28px rgb(60 42 24 / 0.5); }
.card:hover .card__media img { scale: 1.06; translate: 0 -4px; }
.card__body { flex: 1; display: grid; align-content: start; gap: 0.2rem; padding: 0.85rem 0.15rem 0.75rem; }
.card__brand { font-size: 0.65rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.card__name { font: 400 0.92rem/1.45 var(--sans); }
.card__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.price { font-weight: 500; font-size: 1rem; }
.price s { color: var(--muted); font-weight: 300; margin-left: 0.45rem; }
.price--soon { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

.card__action { display: flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%; min-height: 44px; padding-inline: 0.5rem; border: 1px solid var(--line); border-radius: 99px; font-size: 0.78rem; font-weight: 500; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s; }
button.card__action:hover, a.card__action:hover { background: var(--text); border-color: var(--text); color: var(--white); }
.card__action svg { width: 17px; height: 17px; flex: none; }
.card__action:disabled { color: var(--muted); cursor: default; }

.skeleton { border-radius: var(--radius); aspect-ratio: 1; background: linear-gradient(100deg, var(--soft) 30%, #fdfcfb 50%, var(--soft) 70%) 0 0 / 220% 100%; animation: loading 1.4s linear infinite; }
@keyframes loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.notice { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; }

/* Delivery and payment promises. */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.perks li { display: grid; justify-items: center; align-content: start; gap: 0.35rem; padding: 2rem 1rem; background: var(--white); text-align: center; }
.perks svg { width: 28px; height: 28px; color: var(--gold); }
.perks b { font: 400 1.25rem var(--serif); }
.perks span { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 800px) { .perks { grid-template-columns: 1fr 1fr; } }
