:root {
    --surface: #ffffff;
    --surface-soft: #f7f7f4;
    --border: #e6e2db;
    --text: #1f1f1f;
    --muted: #6f6a63;
    --accent: #1f5eff;
    --accent-hover: #1749c8;
}

.catalog {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 0 32px;
}

.catalog__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.catalog__eyebrow {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.catalog__header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.catalog__subtitle {
    margin: 10px 0 0;
    max-width: 44rem;
    color: var(--muted);
}

.catalog__cart-link,
.product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.catalog__cart-link {
    padding: 0.9rem 1.2rem;
    background: var(--text);
    color: #fff;
    white-space: nowrap;
}

.catalog__cart-link:hover,
.product-card__button:hover {
    transform: translateY(-1px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(18, 18, 18, 0.06);
}

.product-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
    overflow: hidden;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: 0.95rem;
}

.product-card__body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.product-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.product-card__title a {
    color: var(--text);
    text-decoration: none;
}

.product-card__price {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.product-card__button {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--accent);
    color: #fff;
}

.product-card__button:hover {
    background: var(--accent-hover);
}

.catalog__empty {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 720px) {
    .catalog {
        padding-top: 4px;
    }

    .catalog__header {
        align-items: start;
        flex-direction: column;
    }

    .catalog__cart-link {
        width: 100%;
    }
}
