/* =========================================================
   VAMORI — CATALOG
   ========================================================= */


/* ---------------------------------------------------------
   Основная страница
   --------------------------------------------------------- */

.catalog-page {

    width: min(1400px, calc(100% - 80px));

    margin: 0 auto;

    padding: 120px 0 100px;

    color: #4b3a32;

}


/* ---------------------------------------------------------
   Заголовок
   --------------------------------------------------------- */

.catalog-intro {

    max-width: 760px;

    margin-bottom: 55px;

}


.catalog-overline {

    display: block;

    margin-bottom: 18px;

    font-size: 13px;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #a98c7d;

}


.catalog-intro h1 {

    margin: 0 0 20px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(48px, 6vw, 78px);

    font-weight: 400;

    letter-spacing: -2px;

    color: #392a23;

}


.catalog-intro p {

    margin: 0;

    max-width: 650px;

    font-size: 17px;

    line-height: 1.8;

    color: #806c60;

}


/* ---------------------------------------------------------
   Фильтры
   --------------------------------------------------------- */

.catalog-filters {

    margin-bottom: 55px;

    padding: 32px;

    background: #f7efea;

    border: 1px solid #eadbd2;

}


.filter-title {

    margin-bottom: 25px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 24px;

    color: #4b382f;

}


.filter-form {

    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        auto;

    gap: 16px;

    align-items: end;

}


.filter-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.filter-group label {

    font-size: 11px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: #927a6d;

}


.filter-group select {

    width: 100%;

    height: 50px;

    padding: 0 16px;

    border: 1px solid #ddcbc0;

    border-radius: 0;

    background: #fffaf7;

    color: #57443a;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;

}


.filter-group select:hover {

    border-color: #c8a99a;

}


.filter-group select:focus {

    border-color: #a98270;

    background: white;

}


.filter-button {

    height: 50px;

    padding: 0 30px;

    border: none;

    background: #806052;

    color: white;

    font-family: inherit;

    font-size: 13px;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.filter-button:hover {

    background: #654a3d;

    transform: translateY(-1px);

}


.reset-filters {

    display: inline-block;

    margin-top: 18px;

    color: #9b7665;

    font-size: 13px;

    text-decoration: none;

    border-bottom: 1px solid #cdb3a5;

}


.reset-filters:hover {

    color: #654a3d;

}


/* ---------------------------------------------------------
   Панель над товарами
   --------------------------------------------------------- */

.catalog-toolbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom: 1px solid #eaded7;

}


.products-count {

    font-family: Georgia, "Times New Roman", serif;

    font-size: 25px;

    color: #4b382f;

}


.products-label {

    margin-left: 6px;

    font-size: 14px;

    color: #9a8579;

}


/* ---------------------------------------------------------
   Сетка товаров
   --------------------------------------------------------- */

.products-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;

}


/* ---------------------------------------------------------
   Карточка товара
   --------------------------------------------------------- */

.product-card {

    background: #fff;

    border: 1px solid #eee2dc;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


.product-card:hover {

    transform: translateY(-6px);

    border-color: #e1cec3;

    box-shadow:
        0 18px 45px rgba(75, 53, 42, 0.10);

}


/* ---------------------------------------------------------
   Фото товара
   --------------------------------------------------------- */

.product-image {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1.08;

    overflow: hidden;

    background: #f5eee9;

}


.product-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    transition:
        transform 0.5s ease;

}


.product-card:hover .product-image img {

    transform: scale(1.03);

}

/* ---------------------------------------------------------
   Заглушка если фотографии нет
   --------------------------------------------------------- */

.product-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #f5e9e2,
            #ead9cf
        );

    color: #a98a79;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 25px;

    letter-spacing: 7px;

}


/* ---------------------------------------------------------
   Информация товара
   --------------------------------------------------------- */

.product-info {

    padding: 23px 22px 22px;

}


.product-category {

    margin-bottom: 10px;

    font-size: 10px;

    letter-spacing: 1.7px;

    text-transform: uppercase;

    color: #b18f7d;

}


.product-name {

    margin: 0 0 10px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 23px;

    font-weight: 400;

    line-height: 1.25;

    color: #3e2d25;

}


.product-description {

    min-height: 48px;

    margin: 0 0 20px;

    font-size: 13px;

    line-height: 1.6;

    color: #8b776c;

}


/* ---------------------------------------------------------
   Цена + кнопка
   --------------------------------------------------------- */

.product-bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 12px;

    padding-top: 17px;

    border-top: 1px solid #eee4df;

}


.product-price {

    font-family: Georgia, "Times New Roman", serif;

    font-size: 20px;

    color: #49352c;

    white-space: nowrap;

}


.product-button {

    padding: 9px 13px;

    border: 1px solid #d7c2b6;

    color: #72584b;

    font-size: 11px;

    letter-spacing: 0.7px;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

}


.product-button:hover {

    background: #806052;

    border-color: #806052;

    color: white;

}


/* ---------------------------------------------------------
   Если товаров нет
   --------------------------------------------------------- */

.catalog-empty {

    grid-column: 1 / -1;

    padding: 100px 20px;

    text-align: center;

    background: #f8f1ed;

}


.empty-icon {

    margin-bottom: 20px;

    font-size: 40px;

    color: #b99582;

}


.catalog-empty h2 {

    margin: 0 0 12px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 32px;

    font-weight: 400;

    color: #49362d;

}


.catalog-empty p {

    margin-bottom: 25px;

    color: #8d796e;

}


.catalog-empty a {

    color: #75594b;

    text-decoration: none;

    border-bottom: 1px solid #c8ad9f;

}


/* ---------------------------------------------------------
   Пагинация
   --------------------------------------------------------- */

.catalog-pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 14px;

    margin-top: 65px;

}


.pagination-arrow {

    width: 44px;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #d8c5bb;

    color: #70574b;

    text-decoration: none;

    font-size: 18px;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.pagination-arrow:hover {

    background: #806052;

    color: white;

}


.pagination-current {

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;

    color: #4a362d;

}


.pagination-total {

    color: #a18b7f;

    font-size: 13px;

}


/* ---------------------------------------------------------
   Адаптивность
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .products-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

    .filter-form {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .filter-button {

        width: 100%;

    }

}


@media (max-width: 760px) {

    .catalog-page {

        width: min(100% - 30px, 600px);

        padding: 80px 0 70px;

    }


    .catalog-intro {

        margin-bottom: 40px;

    }


    .catalog-intro h1 {

        font-size: 52px;

    }


    .catalog-filters {

        padding: 22px;

    }


    .filter-form {

        grid-template-columns: 1fr;

    }


    .products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;

    }


    .product-info {

        padding: 17px 15px;

    }


    .product-name {

        font-size: 19px;

    }


    .product-description {

        font-size: 12px;

    }


    .product-bottom {

        align-items: flex-start;

        flex-direction: column;

    }


    .product-button {

        width: 100%;

        text-align: center;

        box-sizing: border-box;

    }

}


@media (max-width: 480px) {

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-image {
        aspect-ratio: 1 / 1;
    }

    .product-info {
        padding: 12px 10px;
    }

    .product-name {
        font-size: 17px;
    }

    .product-description {
        font-size: 11px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-bottom {
        gap: 8px;
    }

    .product-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 8px 6px;
        font-size: 10px;
    }

}
