/* ============================================================
   CATALOG PAGE — Страницы каталога и категории товаров
   ============================================================ */

/* ============================================================
   CATALOG HERO
   ============================================================ */

.catalog-hero {
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.catalog-hero__wrap {
    display: flex;
    min-height: 300px;
}

.catalog-hero__content-col {
    display: flex;
    align-items: center;
    padding: 48px 0 56px;
}

.catalog-hero__content-col .container {
    width: 100%;
}

.catalog-hero__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 630px;
    position: relative;
    z-index: 2;
}

/* Title & desc */



/* Search form */

.catalog-hero__search {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--primary-dark);
    border-radius: 12px;
    background: var(--white);
    transition: border-color 0.2s;
    max-width: 630px;
    height: 44px;
    overflow: hidden;
}

.catalog-hero__search:focus-within {
    border-color: var(--primary);
}

.category-hero .catalog-hero__content {
    max-width: 530px;
}

.catalog-hero__search-icon {
    color: var(--graphite-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 44px;
    width: 44px;
    justify-content: center;
    border-right: 1px solid var(--primary-dark);
}

.catalog-hero__search-input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
    color: var(--graphite-dark);
    min-width: 0;
    height: 100%;
    padding:  20px;
    background: #E4F1EA;
}

.catalog-hero__search-input::placeholder {
    color: var(--text-muted);
}

/* Right image column */

.catalog-hero__image-col {
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.catalog-hero__image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1280px) {
    .catalog-hero__image-col::after {
        display: block;
        position: absolute;
        content: '';
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #ffffffbb;
    }
}

/* ============================================================
   CATEGORY PRODUCTS GRID
   ============================================================ */

.cat-products {
    background: var(--white);
    padding: 64px 0;
}

.cat-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Product card */

.cat-product-card {
    background: #F3FAF6;
border: 1px solid #DCE6DF;
box-shadow: 0px 2px 2px 0px #69C7BD1A;

    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
    padding: 20px;
}

.cat-product-card:hover {
    border-color: var(--mint);
}

/* Image */

.cat-product-card__image {
    display: block;
    height: 200px;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--graphite-pale);
    flex-shrink: 0;
}

.cat-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cat-product-card:hover .cat-product-card__image img {
    transform: scale(1.04);
}

/* Body */

.cat-product-card__body {
    
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-product-card__title {
    margin: 0;
}

.cat-product-card__title a {
    color: var(--graphite-dark);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s;
}

.cat-product-card:hover .cat-product-card__title a {
    color: var(--primary);
}

.cat-product-card__desc {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta badges */

.cat-product-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.cat-product-card__meta-item {
    display: inline-block;
    line-height: 1.4;
}

/* Actions */

.cat-product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.cat-product-card__actions .btn {
    justify-content: center;
    width: 100%;
    text-align: center;
}

.cat-product-card__avail {
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    text-align: left;
    transition: color 0.2s;
    font-size: inherit;
    font-family: inherit;
}

.cat-product-card__avail:hover {
    color: var(--primary-hover);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
    .cat-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-hero__content-col {
        padding-top: 120px;
    }

    .catalog-hero__title {
        font-weight: 700;
        font-size: 30px;
    }
}

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

    .catalog-hero__content-col {
        padding: 100px 0 40px;
    }

    .catalog-hero__content {
        max-width: 100%;
    }

    

    .cat-products {
        padding: 40px 0;
    }

    
}

@media (max-width: 560px) {
    .cat-products__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

.search-results {
    background: var(--white);
    padding: 56px 0 80px;
}

.search-results__heading {
    color: var(--graphite-dark);
    margin: 0 0 8px;
    line-height: 1.2;
}

.search-results__count {
    color: var(--text-secondary);
    margin: 0 0 32px;
}

.search-results__empty {
    color: var(--graphite-medium);
    margin: 0 0 24px;
}

.search-results .btn {
    display: inline-flex;
    width: auto;
}
