/* ============================================================
   hz-catalog.css — catalog pages of the site engine (category, brand,
   product, 404). 22 Aban 1405.
   Only what these pages add on top of hz-tokens / hz-components /
   Home_Page.css. Logical properties only (RTL), tokens only.
   ============================================================ */

.hz-page { padding-block-end: var(--hz-8); }
/* the h1 sits right above the first section: no second large gap */
.hz-page > .hz-section:first-of-type { padding-block-start: var(--hz-4); }

/* ── breadcrumb ─────────────────────────────────────────────── */
.hz-crumbs { padding-block: var(--hz-4) var(--hz-2); }
.hz-crumbs ol {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--hz-2);
    margin: 0; padding: 0; list-style: none;
    font-size: var(--hz-text-sm); color: var(--hz-muted);
}
.hz-crumbs li { display: inline-flex; align-items: center; gap: var(--hz-2); }
.hz-crumbs li + li::before { content: "/"; color: var(--hz-line-strong); }
.hz-crumbs a { color: inherit; text-decoration: none; }
.hz-crumbs a:hover { color: var(--hz-primary); }
.hz-crumbs [aria-current] { color: var(--hz-ink); }

.hz-page__title {
    font-size: var(--hz-text-2xl); font-weight: var(--hz-weight-black);
    margin: 0 0 var(--hz-4);
}
.hz-page__intro { max-width: 37em; color: var(--hz-muted); line-height: 1.75; margin-block-end: var(--hz-6); }

/* ── product grid (cards come from Home_Page.css .hz-pcard) ─── */
.hz-pgrid {
    display: grid; gap: var(--hz-4);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
}
@media (max-width: 639px) {
    .hz-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hz-3); }
}

/* ── empty state: one sentence and a way back ──────────────── */
.hz-empty {
    display: grid; justify-items: center; gap: var(--hz-4);
    padding: var(--hz-10) var(--hz-4);
    border: 1px dashed var(--hz-line); border-radius: var(--hz-radius-lg);
    text-align: center; color: var(--hz-muted);
}
.hz-empty p { margin: 0; font-size: var(--hz-text-base); }

/* ── about: reading measure ─────────────────────────────────── */
.hz-prose { max-width: 48rem; }
.hz-prose__body { line-height: 1.75; max-width: 37em; margin-block-end: var(--hz-6); }

/* ── contact: info beside the form, form alone when no info ─── */
.hz-contact { display: grid; gap: var(--hz-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 768px) {
    .hz-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
    .hz-contact--formonly { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
}
.hz-contact__title { font-size: var(--hz-text-lg); font-weight: var(--hz-weight-black); margin: 0; }
.hz-contact__form .hz-card__body { gap: var(--hz-4); }

/* ── search page ────────────────────────────────────────────── */
.hz-search--page { max-width: 40rem; margin-block-end: var(--hz-6); }
.hz-search__count { margin-block-end: var(--hz-4); }

/* ── product page ───────────────────────────────────────────── */
.hz-prod {
    display: grid; gap: var(--hz-6);
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
    .hz-prod { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
    /* no photos: the facts take the row instead of leaving half of it empty */
    .hz-prod--noimg { grid-template-columns: minmax(0, 1fr); max-width: 48rem; }
}
.hz-prod__media {
    display: grid; gap: var(--hz-3);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hz-prod__media img {
    width: 100%; aspect-ratio: 1; object-fit: contain;
    background: var(--hz-surface-soft);
    border: 1px solid var(--hz-line); border-radius: var(--hz-radius);
}
.hz-prod__media img:first-child { grid-column: 1 / -1; border-radius: var(--hz-radius-lg); }
.hz-prod__info { display: grid; gap: var(--hz-4); align-content: start; }
.hz-prod__price { font-size: var(--hz-text-2xl); font-weight: var(--hz-weight-black); }
.hz-prod__price small { font-size: var(--hz-text-sm); font-weight: var(--hz-weight-normal); color: var(--hz-muted); }
.hz-prod__facts { display: grid; gap: var(--hz-2); margin: 0; }
.hz-prod__facts div { display: flex; gap: var(--hz-2); font-size: var(--hz-text-sm); }
.hz-prod__facts dt { color: var(--hz-muted); min-width: 6em; }
.hz-prod__facts dd { margin: 0; }
.hz-prod__desc { line-height: 1.75; max-width: 37em; }
.hz-prod__cta { display: flex; flex-wrap: wrap; gap: var(--hz-3); }
