/**
 * Стили товаров
 *
 * Главная / архив товаров / архив меток товаров
 *
 * @package Magic_Jewelry
 */


/* =========================================================
   ОБЩИЕ СТИЛИ
   ========================================================= */

.products-section,
.products-archive-section {
    width: 100%;
}


/* =========================================================
   АРХИВ ТОВАРОВ
   ========================================================= */

.products-archive-section {
    padding: 92px 0 105px;
}


.products-container,
.products-archive-inner {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 0 20px;

    box-sizing: border-box;
}


/* =========================================================
   ШАПКА ТОВАРОВ НА ГЛАВНОЙ
   ========================================================= */

.products-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 42px;
}


.products-heading {
    max-width: 620px;
}


.products-kicker {
    display: block;

    margin-bottom: 10px;

    color: #cca444;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.products-title-row {
    display: flex;

    align-items: center;

    gap: 30px;
}


.products-title {
    margin: 0;

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
}


.products-intro {
    max-width: 560px;

    margin: 14px 0 0;

    color: #5c4b57;

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   ССЫЛКА «СМОТРЕТЬ ВСЕ»
   ========================================================= */

.products-all-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #5e1d53;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.04em;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.products-all-link:hover {
    color: #cca444;
}


.products-all-link-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 1px solid #cca444;
    border-radius: 50%;

    color: #cca444;

    font-size: 16px;
    line-height: 1;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.products-all-link:hover .products-all-link-arrow {
    background-color: #cca444;

    color: #ffffff;

    transform: translate(3px, -3px);
}


/* =========================================================
   ФИЛЬТРЫ ТОВАРОВ НА ГЛАВНОЙ
   ========================================================= */

.products-tags {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 8px;

    max-width: 520px;

    flex-shrink: 0;
}


.products-tag {
    appearance: none;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 7px 16px;

    border: 1px solid rgba(92, 26, 79, 0.18);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.58);

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.products-tag:hover {
    border-color: #cca444;

    background: rgba(255, 255, 255, 0.72);

    color: #5c1a4f;

    transform: translateY(-1px);
}


.products-tag.is-active {
    border-color: #cca444;

    background: #5c1a4f;

    color: #ffffff;
}


/* =========================================================
   ЗАГОЛОВОК АРХИВА ТОВАРОВ
   ========================================================= */

.products-archive-header {
    margin-bottom: 30px;
}


.products-archive-title {
    margin: 0 0 20px;

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
}


.products-archive-intro {
    max-width: 800px;

    margin: 0;

    color: #5c4b57;

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   МЕТКИ В АРХИВЕ ТОВАРОВ
   ========================================================= */

.products-archive-tags {
    display: flex;

    flex-wrap: wrap;
    align-items: center;

    gap: 8px;
}


.products-archive-tags .products-tag {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 7px 16px;

    border: 1px solid rgba(92, 26, 79, 0.18);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.58);

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;

    line-height: 1.2;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.products-archive-tags .products-tag:hover {
    border-color: #cca444;

    background: rgba(255, 255, 255, 0.72);

    color: #5c1a4f;

    transform: translateY(-1px);
}


.products-archive-tags .products-tag.is-active {
    border-color: #cca444;

    background: #5c1a4f;

    color: #ffffff;
}


/* =========================================================
   СЕТКА ТОВАРОВ
   ========================================================= */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 30px;

    width: 100%;
}


.products-archive-grid {
    margin-top: 35px;
}


/* =========================================================
   ЭЛЕМЕНТ ТОВАРА
   ========================================================= */

.product-item {
    min-width: 0;
}


/* =========================================================
   ПУСТОЙ РЕЗУЛЬТАТ
   ========================================================= */

.products-empty {
    padding: 40px 0;

    color: #666666;
}


.products-empty p {
    margin: 0;
}


/* =========================================================
   ПАГИНАЦИЯ
   ========================================================= */

.products-archive .navigation.pagination {
    margin-top: 45px;
}


.products-archive .nav-links {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}


.products-archive .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    border: 1px solid #5e1d53;
    border-radius: 4px;

    color: #5e1d53;

    text-decoration: none;

    box-sizing: border-box;
}


.products-archive .page-numbers:hover {
    background: #5e1d53;

    color: #ffffff;
}


.products-archive .page-numbers.current {
    background: #5e1d53;

    color: #ffffff;
}


.products-archive .page-numbers.dots {
    border-color: transparent;
}


.products-archive .page-numbers.dots:hover {
    background: transparent;

    color: #5e1d53;
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1000px) {

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 24px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .products-archive-section {
        padding: 70px 0 82px;
    }


    .products-header {
        display: block;
    }


    .products-title-row {
        gap: 20px;
    }


    .products-tags {
        justify-content: flex-start;

        margin-top: 25px;

        max-width: none;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .products-container,
    .products-archive-inner {
        padding: 0 15px;
    }


    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }


    .products-tags,
    .products-archive-tags {
        gap: 8px;
    }


    .products-tag,
    .products-archive-tags .products-tag {
        min-height: 36px;

        padding: 7px 14px;

        font-size: 13px;
    }


    .products-title-row {
        gap: 15px;
    }


    .products-all-link span:first-child {
        display: none;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .products-archive-section {
        padding: 52px 0 64px;
    }


    .products-title {
        font-size: 30px;
    }


    .products-archive-title {
        font-size: 30px;
    }


    .products-intro,
    .products-archive-intro {
        font-size: 14px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 450px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

}