.catalog-page {
    background: linear-gradient(145deg, #f8f3e7 0%, #efe3c6 55%, #dcc9a3 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.catalog-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 70px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    flex: 1;
}

.catalog-page footer {
    margin-top: 24px;
}

.catalog-sidebar {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(66, 49, 12, 0.12);
    padding: 20px;
    position: sticky;
    top: 110px;
    height: fit-content;
}

.catalog-sidebar h2 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #2d2417;
}

.catalog-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    color: #4d3f24;
    border: 1px solid rgba(88, 70, 24, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 9px;
    background: rgba(255, 255, 255, 0.74);
    transition: all 170ms ease;
}

.catalog-cat-link:hover {
    transform: translateX(3px);
    border-color: rgba(200, 154, 51, 0.55);
}

.catalog-cat-link.is-active {
    background: linear-gradient(140deg, #efd38f, #e8bf63);
    color: #2d230e;
    border-color: rgba(188, 136, 21, 0.6);
}

.catalog-cat-count {
    min-width: 28px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.8);
}

.catalog-empty-note {
    color: #77684d;
    font-size: 13px;
    line-height: 1.5;
}

.catalog-content {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(66, 49, 12, 0.12);
    padding: 22px;
}

.catalog-topbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.catalog-topbar h1 {
    margin: 0;
    font-size: 34px;
    color: #1f180d;
}

.catalog-topbar p {
    margin: 0;
    color: #6d5f44;
    font-size: 14px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.catalog-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(100, 76, 24, 0.14);
    background: rgba(255, 255, 255, 0.88);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(73, 54, 14, 0.18);
}

.catalog-card figure {
    margin: 0;
    aspect-ratio: 4 / 5;
    background: linear-gradient(145deg, #f4efe5, #efe8dc);
}

.catalog-card figure a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.catalog-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.catalog-card-body {
    padding: 12px;
}

.catalog-chip {
    display: inline-block;
    margin: 0 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    color: #6b531f;
    background: #f6e7bf;
}

.catalog-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #2f2514;
}

.catalog-desc {
    margin: 0;
    color: #635a48;
    font-size: 13px;
    line-height: 1.45;
    min-height: 40px;
}

.catalog-card-bottom {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.catalog-price {
    font-size: 18px;
    font-weight: 800;
    color: #5f481a;
}

.catalog-add-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
    color: #2b210f;
    background: linear-gradient(140deg, #efcf84, #e0b251);
    transition: transform 140ms ease, filter 140ms ease;
}

.catalog-add-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.catalog-card-empty {
    padding: 18px;
}

.catalog-card-empty h3 {
    margin-top: 0;
}

@media (max-width: 920px) {
    .catalog-layout {
        width: min(760px, calc(100% - 24px));
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .catalog-layout {
        width: min(100% - 24px, 420px);
        margin-top: 18px;
        margin-bottom: 48px;
    }

    .catalog-content,
    .catalog-sidebar {
        border-radius: 16px;
        padding: 16px;
    }

    .catalog-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .catalog-topbar h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .catalog-card {
        border-radius: 16px;
    }

    .catalog-card figure {
        aspect-ratio: auto;
    }

    .catalog-card img {
        height: auto;
        max-height: 430px;
    }

    .catalog-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-add-btn {
        width: 100%;
        min-height: 44px;
    }
}
