﻿.catalog-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.catalog-page .site-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(140%) blur(4px);
    border-bottom: 1px solid #e9eef5;
}

.catalog-main {
    flex: 1;
    padding: 16px 0 54px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.catalog-hero {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
}

.catalog-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.catalog-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 16, 46, 0.76), rgba(5, 16, 46, 0.62)),
        radial-gradient(circle at 10% 20%, rgba(88, 178, 45, 0.18), transparent 34%);
}

.catalog-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 30px 16px 64px;
}

.catalog-hero__icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 1px solid #58b22d !important;
    background: rgba(7, 31, 12, 0.58) !important;
    display: grid;
    place-items: center;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 6px rgba(88, 178, 45, 0.12);
}

.catalog-hero__icon svg {
    width: 36px;
    height: 36px;
    color: #58b22d !important;
}

.catalog-hero__title {
    margin: 0;
    font-size: clamp(1.4rem, 3.4vw, 2.3rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.catalog-hero__subtitle {
    margin: 0;
    font-size: clamp(0.92rem, 1.3vw, 1rem);
    color: rgba(238, 247, 255, 0.95);
}

.catalog-hero__crumb {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(5, 16, 46, 0.75);
    position: relative;
    top: -4px;
    font-weight: 600;
}

.catalog-hero__crumb a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.catalog-hero__crumb a:hover {
    color: #d8f3cb;
    border-bottom-color: #d8f3cb;
}

.catalog-hero__curve {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -72px;
    width: 130%;
    height: 120px;
    border-radius: 50%;
    background: #f8fafc;
}

.catalog-head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.catalog-head h1 {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: #0f172a;
}

.catalog-head p {
    margin: 0;
    color: #475569;
    max-width: 58ch;
    font-size: 0.93rem;
}

.product-search {
    margin: 10px 0 12px;
    position: relative;
    width: min(420px, 100%);
}

.product-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #64748b;
    pointer-events: none;
}

.product-search input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #d0d9e5;
    padding: 0 12px 0 34px;
    background: #fff;
    color: #0f172a;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-search input:focus {
    border-color: #58b22d;
    box-shadow: 0 0 0 3px rgba(88, 178, 45, 0.15);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 8px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    overflow: hidden;
}

.product-card[hidden] {
    display: none !important;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(88, 178, 45, 0.11), transparent 42%);
    opacity: 0;
    transition: opacity 0.24s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 178, 45, 0.34);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
}

.product-card:hover::before {
    opacity: 1;
}

.product-logo {
    width: 100%;
    height: 156px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.product-logo img {
    max-width: 96%;
    max-height: 136px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.3;
}

.product-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.42;
    min-height: 46px;
}

.product-quote-btn {
    width: fit-content;
    font-size: 0.82rem;
    padding: 7px 10px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.product-quote-btn svg,
.product-quote-btn img {
    width: 18px;
    height: 18px;
}

.catalog-page .site-footer {
    margin-top: 0 !important;
    flex-shrink: 0;
}

.catalog-empty {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.catalog-empty[hidden] {
    display: none !important;
}

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

@media (max-width: 640px) {
    .catalog-hero {
        min-height: 180px;
    }

    .catalog-hero__curve {
        bottom: -78px;
    }

    .catalog-main {
        padding-top: 4px;
    }

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

    .product-logo {
        height: 120px;
    }

    .product-logo img {
        max-height: 100px;
    }
}
