.page {
    background: #f4f7fb;
}

.page-content {
    color: #172033;
}

.catalog-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    margin-bottom: 18px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(23, 32, 51, .06);
}

.catalog-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.catalog-hero h1 {
    margin: 0;
    color: #111827;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.12;
}

.catalog-hero p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #596579;
    font-size: 16px;
    line-height: 1.6;
}

.catalog-stat {
    min-width: 150px;
    padding: 18px;
    border-left: 4px solid #f59e0b;
    background: #fff8eb;
    border-radius: 8px;
}

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

.catalog-stat strong {
    color: #111827;
    font-size: 32px;
    line-height: 1;
}

.catalog-stat span {
    margin-top: 6px;
    color: #7c5b18;
    font-size: 13px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 14px 18px;
    border: 1px solid #e5eaf2;
    border-radius: 8px;
    background: #ffffff;
}

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

.catalog-toolbar strong {
    color: #172033;
}

.catalog-toolbar span {
    margin-top: 3px;
    color: #687587;
}

.catalog-link,
.catalog-action {
    color: #0b63ce;
    font-weight: 700;
}

.catalog-link:hover,
.catalog-action:hover {
    color: #084a9b;
    text-decoration: none;
}

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

.catalog-card {
    overflow: hidden;
    border: 1px solid #dde6f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(23, 32, 51, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog-card:hover {
    border-color: #b9cbe0;
    box-shadow: 0 14px 34px rgba(23, 32, 51, .1);
    transform: translateY(-2px);
}

.catalog-image-link {
    display: block;
    background: #eef3f8;
}

.catalog-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 16px;
}

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

.catalog-card h2 {
    min-height: 48px;
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.catalog-card p {
    min-height: 44px;
    margin: 10px 0 16px;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.catalog-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.catalog-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px;
    border: 1px dashed #b8c3d1;
    border-radius: 8px;
    background: #ffffff;
    color: #596579;
}

.catalog-empty strong {
    color: #172033;
}

.catalog-pagination {
    margin: 28px 0 6px;
    text-align: center;
}

.catalog-floating-action {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(11, 99, 206, .28);
}

@media (max-width: 767px) {
    .page-content {
        padding: 18px !important;
    }

    .catalog-hero,
    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-hero {
        padding: 24px;
    }

    .catalog-hero h1 {
        font-size: 28px;
    }

    .catalog-stat {
        width: 100%;
    }
}

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

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

@media (max-width: 575px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

.product-detail-panel {
    min-height: 680px;
    padding: 22px 30px 30px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(23, 32, 51, .05);
}

.product-detail-header {
    padding-bottom: 34px;
    border-bottom: 1px solid #dfe5ec;
}

.product-detail-header h1 {
    margin: 0;
    color: #3d4b5c;
    font-size: 18px;
    font-weight: 500;
}

.product-detail-stage {
    display: flex;
    justify-content: center;
    padding: 52px 0 44px;
}

.product-detail-image-button {
    position: relative;
    width: min(460px, 100%);
    padding: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(23, 32, 51, .08);
    cursor: zoom-in;
}

.product-detail-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
    background: #f3f6fa;
    object-fit: contain;
}

.product-detail-zoom {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(33, 41, 54, .88);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.product-detail-meta {
    max-width: 520px;
    margin: 0 0 24px 56px;
}

.product-detail-meta dl {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 7px 18px;
    margin: 0;
}

.product-detail-meta dt {
    color: #687587;
    font-weight: 700;
    text-align: right;
}

.product-detail-meta dd {
    margin: 0;
    color: #728095;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 20px;
}

.product-detail-actions .btn {
    min-width: 76px;
}

.product-detail-empty {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 38px 0;
}

.product-detail-empty p {
    width: 100%;
    margin: 0 0 10px;
    color: #687587;
}

.product-image-modal {
    text-align: center;
}

.product-image-modal:before {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    content: "";
}

.product-image-modal .modal-dialog {
    display: inline-block;
    width: min(920px, calc(100% - 32px));
    margin: 0;
    text-align: left;
    vertical-align: middle;
}

.product-image-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.product-image-modal .modal-body {
    padding: 24px;
}

.product-image-modal h2 {
    margin: 0 42px 18px 0;
    color: #172033;
    font-size: 20px;
    font-weight: 700;
}

.product-image-modal-img {
    display: block;
    width: 100%;
    max-height: 72vh;
    border-radius: 5px;
    background: #f3f6fa;
    object-fit: contain;
}

.product-image-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #172033;
    font-size: 25px;
    line-height: 1;
}

.product-image-modal-close:hover,
.product-image-modal-close:focus {
    background: #dfe7f1;
}

@media (max-width: 767px) {
    .product-detail-panel {
        padding: 18px;
    }

    .product-detail-stage {
        padding: 28px 0;
    }

    .product-detail-meta {
        margin-left: 0;
    }

    .product-detail-meta dl {
        grid-template-columns: 1fr;
    }

    .product-detail-meta dt {
        text-align: left;
    }
}
