body.cgaf-product-catalog {
    background: #f7f8fa;
}

body.cgaf-product-catalog #header,
body.cgaf-product-catalog .site-header,
body.cgaf-product-catalog .site-footer,
body.cgaf-product-catalog .wp-site-blocks > header,
body.cgaf-product-catalog .wp-site-blocks > footer {
    display: none !important;
}

.cgaf-catalog-store-header,
.cgaf-catalog-store-footer {
    max-width: none !important;
    width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
}

.cgaf-catalog-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 24px 64px;
    color: #151922;
}

.cgaf-catalog-page a {
    color: inherit;
    text-decoration: none;
}

.cgaf-catalog-breadcrumb {
    margin-bottom: 24px;
    color: #647083;
    font-size: 0.94rem;
}

.cgaf-catalog-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px;
    padding: 32px 34px;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    background: #fff;
}

.cgaf-catalog-heading p {
    margin: 0 0 8px;
    color: #149eaa;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cgaf-catalog-heading h1 {
    margin: 0;
    color: #111722;
    font-size: 2.35rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.cgaf-catalog-description {
    max-width: 760px;
    margin-top: 12px;
    color: #5e6978;
    line-height: 1.6;
}

.cgaf-catalog-description p {
    margin: 0;
}

.cgaf-catalog-summary {
    min-width: 150px;
    padding-left: 28px;
    border-left: 1px solid #e5e9ee;
    text-align: right;
}

.cgaf-catalog-summary strong,
.cgaf-catalog-summary span {
    display: block;
}

.cgaf-catalog-summary strong {
    font-size: 2rem;
}

.cgaf-catalog-summary span {
    color: #697584;
    font-size: 0.9rem;
}

.cgaf-catalog-categories {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.cgaf-catalog-categories::-webkit-scrollbar {
    display: none;
}

.cgaf-catalog-categories a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    background: #fff;
    color: #4e5968;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.cgaf-catalog-categories a:hover,
.cgaf-catalog-categories a.is-active {
    border-color: #149eaa;
    background: #149eaa;
    color: #fff;
}

.cgaf-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 14px 0;
    border-bottom: 1px solid #e1e6ec;
}

.cgaf-catalog-toolbar > p {
    margin: 0;
    color: #596575;
    font-weight: 700;
}

.cgaf-catalog-toolbar .woocommerce-ordering {
    margin: 0;
}

.cgaf-catalog-toolbar select {
    min-width: 210px;
    min-height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid #d4dce5;
    border-radius: 6px;
    background-color: #fff;
    color: #273241;
    font: inherit;
}

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

.cgaf-catalog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.cgaf-catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.11);
}

.cgaf-catalog-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef4f6;
}

.cgaf-catalog-image,
.cgaf-catalog-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.cgaf-catalog-image {
    object-fit: cover;
    transition: transform 180ms ease;
}

.cgaf-catalog-card:hover .cgaf-catalog-image {
    transform: scale(1.025);
}

.cgaf-catalog-placeholder {
    place-content: center;
    color: #8b98a6;
    font-size: 48px;
    text-align: center;
}

.cgaf-catalog-point-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 5px;
    background: #eb5c4e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(97, 27, 22, 0.24);
}

.cgaf-catalog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 17px;
}

.cgaf-catalog-category {
    display: inline-block;
    margin-bottom: 9px;
    color: #149eaa !important;
    font-size: 0.82rem;
    font-weight: 800;
}

.cgaf-catalog-card h2 {
    min-height: 3.05em;
    margin: 0;
    color: #111722;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
}

.cgaf-catalog-version {
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    color: #6a7583;
    font-size: 0.82rem;
}

.cgaf-catalog-version .dashicons,
.cgaf-catalog-actions .dashicons {
    width: 17px;
    height: 17px;
    font-size: 17px;
}

.cgaf-catalog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf0f3;
}

.cgaf-catalog-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 8px;
    border: 1px solid #dfe5eb;
    border-radius: 5px;
    color: #4d5968;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
}

.cgaf-catalog-actions a:last-child {
    border-color: #169dab;
    background: #169dab;
    color: #fff;
}

.cgaf-catalog-pagination {
    margin-top: 38px;
}

.cgaf-catalog-pagination .woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 7px;
    border: 0;
}

.cgaf-catalog-pagination .woocommerce-pagination ul.page-numbers li {
    border: 0;
}

.cgaf-catalog-pagination .page-numbers a,
.cgaf-catalog-pagination .page-numbers span {
    min-width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe5eb;
    border-radius: 5px;
    background: #fff;
}

.cgaf-catalog-pagination .page-numbers .current {
    border-color: #149eaa;
    background: #149eaa;
    color: #fff;
}

.cgaf-catalog-empty {
    padding: 70px 24px;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.cgaf-catalog-empty .dashicons {
    width: 48px;
    height: 48px;
    color: #149eaa;
    font-size: 48px;
}

.cgaf-catalog-empty h2 {
    margin: 16px 0 8px;
}

.cgaf-catalog-empty p {
    margin: 0 0 20px;
    color: #667281;
}

.cgaf-catalog-empty a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 18px;
    border-radius: 6px;
    background: #34493b;
    color: #fff;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .cgaf-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .cgaf-catalog-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .cgaf-catalog-heading {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .cgaf-catalog-summary {
        padding-top: 18px;
        padding-left: 0;
        border-top: 1px solid #e5e9ee;
        border-left: 0;
        text-align: left;
    }

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

@media (max-width: 520px) {
    .cgaf-catalog-heading h1 {
        font-size: 1.8rem;
    }

    .cgaf-catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .cgaf-catalog-toolbar select {
        width: 100%;
    }

    .cgaf-catalog-grid {
        grid-template-columns: 1fr;
    }

    .cgaf-catalog-card h2 {
        min-height: 0;
    }
}
