/*
Theme Name: Reboot Child
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

/* Значок корзины */
.header-cart-icon {
    font-size: 32px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}
.header-cart-icon:hover {
    transform: scale(1.15);
}

/*********************************************************
/* НАВИГАЦИЯ ТОВАРОВ
/*********************************************************/
/* Навигация товаров WooCommerce внизу по центру */
body.woocommerce-page nav.woocommerce-pagination,
body.woocommerce nav.woocommerce-pagination {
    width: 100% !important;
    clear: both !important;
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 35px auto 20px !important;
    padding: 0 !important;
}

/* Список кнопок */
body.woocommerce-page nav.woocommerce-pagination ul,
body.woocommerce nav.woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border: 0 !important;
    list-style: none !important;
}

/* Элементы списка */
body.woocommerce-page nav.woocommerce-pagination ul li,
body.woocommerce nav.woocommerce-pagination ul li {
    float: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

/* Убираем точки */
body.woocommerce-page nav.woocommerce-pagination ul li::before,
body.woocommerce-page nav.woocommerce-pagination ul li::after,
body.woocommerce nav.woocommerce-pagination ul li::before,
body.woocommerce nav.woocommerce-pagination ul li::after {
    content: none !important;
    display: none !important;
}

/* Кнопки пагинации */
body.woocommerce-page nav.woocommerce-pagination ul li a,
body.woocommerce-page nav.woocommerce-pagination ul li span,
body.woocommerce nav.woocommerce-pagination ul li a,
body.woocommerce nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid #ff7a1a !important;
    border-radius: 8px !important;
    background: #fff7ed !important;
    color: #222 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Активная страница и наведение */
body.woocommerce-page nav.woocommerce-pagination ul li span.current,
body.woocommerce-page nav.woocommerce-pagination ul li a:hover,
body.woocommerce nav.woocommerce-pagination ul li span.current,
body.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #ff7a1a !important;
    color: #fff !important;
    border-color: #ff7a1a !important;
}



/*********************************************************
/* ГЛАВНАЯ СТРАНИЦА + ДРУГИЕ
/*********************************************************/
/*********************************************************
   ГЛАВНАЯ СТРАНИЦА + /HOBBY/ + /SELL/ + СОТРУДНИЧЕСТВО
*********************************************************/

:root {
    --mh-white: #ffffff;
    --mh-text: #2d2d2d;
    --mh-muted: #666666;

    --mh-accent: #f48a2b;
    --mh-accent-dark: #d87413;

    --mh-border: #e7ddd2;
    --mh-soft: #fff8f0;

    --mh-radius: 20px;

    --mh-shadow: 0 8px 24px rgba(0,0,0,.05);

    --mh-transition: .2s ease;

    --mh-gradient:
        linear-gradient(
            135deg,
            #fceedc 0%,
            #f7f4ef 100%
        );

    /* Единая ширина всех блоков сайта */
    --mh-width: 1200px;
}


/* ======================================================
   ОБЩАЯ ГЕОМЕТРИЯ
====================================================== */

* {
    box-sizing: border-box;
}

/*
Все секции используют одну ширину.
Именно этот класс задаёт общие левую и правую границы.
*/
.mh-container {
    width: 100%;
    max-width: var(--mh-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.mh-section {
    width: 100%;
    padding: 36px 0;
}

/*
ВАЖНО:
фоновые блоки теперь не создают собственную
отличающуюся ширину.
*/
.mh-hero,
.mh-author-section {
    width: 100%;
    max-width: var(--mh-width);
    margin-left: auto;
    margin-right: auto;

    border-radius: 24px;
}

.mh-box-border {
    border: 1px solid var(--mh-border);
}

.mh-card {
    background: var(--mh-white);
    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
    transition: var(--mh-transition);
}

.mh-card:hover {
    transform: translateY(-3px);
}

.mh-center {
    text-align: center;
}

.mh-section-button {
    margin-top: 30px;
}


/* ======================================================
   ЗАГОЛОВКИ
====================================================== */

/*
Сам блок остаётся шириной 1200 px.
Ограничиваем только длину текста заголовка.
*/
.mh-title-wrap {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.mh-title-wrap h1 {
    margin: 0 0 14px;
    font-size: 44px;
    line-height: 1.15;
    color: var(--mh-text);
}

.mh-title-wrap h2 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.2;
    color: var(--mh-text);
}

.mh-title-wrap p {
    margin: 0;
    color: var(--mh-muted);
    font-size: 17px;
    line-height: 1.7;
}


/* ======================================================
   BADGE
====================================================== */

.mh-badge {
    display: inline-block;
    width: max-content;
    max-width: 100%;

    margin-bottom: 14px;
    padding: 7px 15px;

    background: var(--mh-soft);
    border: 1px solid var(--mh-border);
    border-radius: 999px;

    color: #c86f15;

    font-size: 14px;
    font-weight: 700;
}


/* ======================================================
   КНОПКИ
====================================================== */

.mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 26px;

    border-radius: 12px;

    text-decoration: none;
    font-weight: 700;

    transition: var(--mh-transition);
}

.mh-btn-primary {
    background: var(--mh-accent);
    color: #fff !important;
}

.mh-btn-primary:hover {
    background: var(--mh-accent-dark);
    transform: translateY(-2px);
}

.mh-btn-light {
    background: #fff;
    border: 1px solid var(--mh-border);
    color: var(--mh-text) !important;
}

.mh-btn-light:hover {
    background: #fafafa;
    transform: translateY(-2px);
}

.mh-btn-big {
    padding: 16px 32px;
    font-size: 17px;
}

.mh-center-buttons,
.mh-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mh-hero-buttons {
    margin-top: 25px;
}


/* ======================================================
   1. HERO
====================================================== */

.mh-hero {
    padding: 58px 0;
    background: var(--mh-gradient);
}

.mh-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(300px, .75fr);

    gap: 44px;
    align-items: center;
}

.mh-hero-content {
    min-width: 0;
}

.mh-hero-content h1 {
    max-width: 760px;

    margin: 0 0 20px;

    font-size: 48px;
    line-height: 1.1;

    color: var(--mh-text);
}

.mh-hero-text {
    max-width: 720px;

    margin: 0;

    color: var(--mh-muted);

    font-size: 19px;
    line-height: 1.7;
}

.mh-hero-list,
.mh-tools-list,
.mh-check-list {
    display: grid;
    gap: 9px;

    margin: 22px 0;
    padding: 0;

    list-style: none;
}

.mh-hero-cards {
    display: grid;
    gap: 14px;
}

.mh-mini-card {
    display: block;

    padding: 22px 24px;

    background: #fff;
    border-radius: 18px;
    box-shadow: var(--mh-shadow);

    color: inherit;
    text-decoration: none;

    transition: var(--mh-transition);
}

.mh-mini-card:hover {
    transform: translateY(-3px);
}

.mh-mini-title {
    display: block;

    margin-bottom: 5px;

    color: var(--mh-text);

    font-size: 20px;
    font-weight: 700;
}

.mh-mini-text {
    display: block;

    color: var(--mh-muted);

    line-height: 1.5;
}


/* ======================================================
   2. ЦИТАТЫ
====================================================== */

.mh-quotes-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 20px;

    /*
    Раньше здесь было max-width:1050px.
    Именно из-за этого блок был уже остальных.
    */
    width: 100%;
    max-width: none;

    margin: 0;
}

.mh-quote-card {
    display: flex;
    align-items: center;

    min-height: 135px;

    padding: 25px;

    background: #fff;
    border-radius: var(--mh-radius);
}

.mh-quote-card p {
    margin: 0;

    color: var(--mh-text);

    font-size: 18px;
    line-height: 1.6;
}


/* ======================================================
   3. ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ
====================================================== */
/* ======================================================
   3. ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ
====================================================== */

.mh-popular-box {
    width: 100%;

    padding: 42px 35px;

    background: var(--mh-gradient);

    border-radius: 24px;
}


/* Сетка карточек */

.mh-home-category-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}


/* Карточка */

.mh-home-category {
    display: flex;

    min-width: 0;

    flex-direction: column;

    padding: 10px;

    background: #fff;

    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);

    box-shadow: var(--mh-shadow);

    color: var(--mh-text);
    text-decoration: none;

    transition:
        transform var(--mh-transition),
        box-shadow var(--mh-transition);
}


/*  ОДНО ИЗОБРАЖЕНИЕ-КОЛЛАЖ */

.mh-home-category-image {
    width: 100%;
    overflow: hidden;

    background: #f6f3ef;

    border-bottom: 1px solid var(--mh-border);
}


.mh-home-category-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 1;

    object-fit: contain;

    transition: transform .3s ease;
}


.mh-home-category:hover
.mh-home-category-image img {
    transform: scale(1.035);
}


/*  ТЕКСТ КАРТОЧКИ */

.mh-home-category-body {
    display: flex;

    flex: 1;
    flex-direction: column;

    padding: 20px 22px 21px;
}


.mh-home-category-title {
    color: var(--mh-text);

    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}


.mh-home-category-text {
    flex: 1;

    max-width: none;

    margin-top: 8px;

    color: var(--mh-muted);

    font-size: 14px;
    line-height: 1.55;
}


.mh-home-category-more {
    margin-top: 16px;
    color: var(--mh-accent-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    transition: var(--mh-transition);
}


.mh-home-category:hover
.mh-home-category-more {
    color: var(--mh-accent);
}


/* Ссылки внутри карточки */
.mh-home-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
}
.mh-home-category-links a {
    color: var(--mh-accent-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: var(--mh-transition);
}
.mh-home-category-links a:hover {
    color: var(--mh-accent);
    text-decoration: underline;
}



/* ======================================================
   4. ИНСТРУМЕНТЫ
====================================================== */

.mh-tools-box {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        310px;

    gap: 30px;

    width: 100%;

    align-items: stretch;
}

.mh-tools-content {
    padding: 35px;

    background: #fff;

    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
}

.mh-tools-content h2 {
    margin: 0 0 14px;

    font-size: 32px;
}

.mh-tools-content p {
    color: var(--mh-muted);
    line-height: 1.7;
}

.mh-tools-side {
    display: grid;
    gap: 16px;
}

.mh-tools-card {
    padding: 25px;

    background: #fff;

    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
}

.mh-tools-number {
    margin-bottom: 5px;

    color: var(--mh-accent);

    font-size: 40px;
    font-weight: 700;
}

.mh-tools-text {
    color: var(--mh-muted);
    line-height: 1.5;
}


/* ======================================================
   5. ПОЛЕЗНО / УДОБНО
====================================================== */

.mh-trust-grid {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 20px;

    width: 100%;
}

.mh-trust-card {
    display: flex;

    min-width: 0;
    min-height: 190px;

    padding: 26px 22px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.mh-trust-icon {
    display: flex;

    width: 48px;
    height: 48px;

    margin-bottom: 14px;

    align-items: center;
    justify-content: center;

    background: var(--mh-soft);

    border: 1px solid var(--mh-border);
    border-radius: 50%;

    color: var(--mh-accent-dark);

    font-size: 23px;
    font-weight: 700;
}

.mh-trust-card h3 {
    margin: 0 0 9px;

    font-size: 20px;
}

.mh-trust-card p {
    margin: 0;

    color: var(--mh-muted);

    line-height: 1.6;
}


/* ======================================================
   6. ДЛЯ АВТОРОВ И ПРОДАВЦОВ
====================================================== */

.mh-author-section {
    padding: 46px 0;

    background: var(--mh-gradient);
}

.mh-author-box {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        350px;

    gap: 35px;

    width: 100%;

    align-items: center;
}

.mh-author-content h2 {
    margin: 0 0 14px;

    font-size: 34px;
}

.mh-author-content p {
    color: var(--mh-muted);
    line-height: 1.7;
}

.mh-author-quote {
    padding: 32px;

    background: #fff;

    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
}

.mh-quote-big {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.55;
}


/* ======================================================
   7. ФИНАЛЬНЫЙ CTA
====================================================== */

.mh-final-box {
    width: 100%;

    padding: 42px 30px;

    background: var(--mh-gradient);

    border-radius: 24px;

    text-align: center;
}

.mh-final-box h2 {
    margin: 0 0 12px;

    font-size: 34px;
}

.mh-final-box p {
    max-width: 700px;

    margin: 0 auto 24px;

    color: var(--mh-muted);

    font-size: 17px;
    line-height: 1.7;
}


/* ======================================================
   8. НОВЫЕ СТАТЬИ
====================================================== */

/*
Query сейчас находится вне .mh-container,
поэтому задаём ему ту же ширину отдельно.
*/
.mh-home-posts {
    width: calc(100% - 40px);
    max-width: calc(var(--mh-width) - 40px);

    margin-left: auto !important;
    margin-right: auto !important;
}

.mh-home-posts .wp-block-post-template {
    gap: 20px;
}

.mh-home-posts .wp-block-post {
    overflow: hidden;

    background: #fff;

    border: 1px solid var(--mh-border);
    border-radius: 16px;

    box-shadow: var(--mh-shadow);

    transition: var(--mh-transition);
}

.mh-home-posts .wp-block-post:hover {
    transform: translateY(-3px);
}

.mh-home-posts .wp-block-post-title {
    padding: 14px 16px 18px;

    text-align: center;
}

.mh-home-posts .wp-block-post-title a {
    color: var(--mh-text);
    text-decoration: none;
}


/* ======================================================
   10. О САЙТЕ
====================================================== */

.mh-about-short {
    width: 100%;

    margin: 0;

    padding: 36px;

    background: #fff;

    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
}

.mh-about-short h2 {
    margin: 0 0 20px;

    text-align: center;

    font-size: 30px;
}

.mh-about-short p {
    color: var(--mh-muted);
    line-height: 1.75;
}

.mh-about-quote {
    margin-top: 24px;

    padding: 20px 24px;

    background: var(--mh-soft);

    border-left: 4px solid var(--mh-accent);
    border-radius: 12px;

    color: var(--mh-text);

    font-size: 18px;
    font-style: italic;
    line-height: 1.65;
}


/* ======================================================
   /HOBBY/
====================================================== */

.mh-showcase-section {
    margin-bottom: 42px;
}

.mh-showcase-head {
    display: flex;

    margin-bottom: 16px;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.mh-showcase-head h2 {
    margin: 0;

    font-size: 26px;
}

.mh-showcase-more {
    color: var(--mh-accent-dark);

    font-weight: 700;
    text-decoration: none;
}

.mh-showcase-products {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 18px;
}


/* ======================================================
   /SELL/ + СОТРУДНИЧЕСТВО
====================================================== */

.mh-choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 24px;
}

.mh-choice-card {
    padding: 32px;

    background: #fff;

    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
}

.mh-choice-icon {
    margin-bottom: 6px;
    font-size: 38px;
    text-align: center;
}

.mh-choice-card h2 {
    margin: 0 0 12px;

    font-size: 27px;
}

.mh-choice-card p {
    color: var(--mh-muted);
    line-height: 1.7;
}

.mh-info-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 20px;
}

.mh-info-card {
    padding: 25px;
}

.mh-info-icon {
    margin-bottom: 10px;

    font-size: 32px;
}

.mh-info-card h3 {
    margin: 0 0 10px;

    font-size: 19px;
}

.mh-info-card p {
    margin: 0;

    color: var(--mh-muted);
    line-height: 1.6;
}

.mh-steps-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 20px;
}

.mh-step-card {
    padding: 28px 24px;

    text-align: center;
}

.mh-step-number {
    display: flex;

    width: 52px;
    height: 52px;

    margin: 0 auto 16px;

    align-items: center;
    justify-content: center;

    background: var(--mh-accent);

    border-radius: 50%;

    color: #fff;

    font-size: 21px;
    font-weight: 700;
}

.mh-feature-box {
    padding: 35px;

    background: var(--mh-gradient);

    border-radius: var(--mh-radius);
}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 900px) {

    .mh-hero-grid,
    .mh-tools-box,
    .mh-author-box {
        grid-template-columns: 1fr;
    }

    /*
    Популярные направления:
    на планшете 2 колонки
    */
    .mh-home-category-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .mh-trust-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .mh-showcase-products {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .mh-info-grid,
    .mh-steps-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 650px) {

    .mh-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mh-section {
        padding: 25px 0;
    }

    .mh-hero,
    .mh-author-section {
        width: calc(100% - 20px);
    }

    .mh-hero {
        padding: 40px 0;
    }

    .mh-author-section {
        padding: 35px 0;
    }

    .mh-hero-content h1 {
        font-size: 34px;
    }

    .mh-title-wrap h1 {
        font-size: 34px;
    }

    .mh-title-wrap h2,
    .mh-author-content h2,
    .mh-final-box h2 {
        font-size: 27px;
    }

    .mh-quotes-grid,
    .mh-home-category-grid,
    .mh-choice-grid,
    .mh-info-grid,
    .mh-steps-grid,
    .mh-trust-grid {
        grid-template-columns: 1fr;
    }

    .mh-showcase-products {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .mh-hero-buttons,
    .mh-center-buttons {
        flex-direction: column;
    }

    .mh-hero-buttons .mh-btn,
    .mh-center-buttons .mh-btn {
        width: 100%;
    }

    .mh-tools-content,
    .mh-choice-card,
    .mh-feature-box {
        padding: 24px 20px;
    }

    .mh-popular-box,
    .mh-about-short,
    .mh-final-box {
        padding: 28px 20px;
    }

    .mh-showcase-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .mh-home-posts {
        width: calc(100% - 30px);
    }

    .mh-about-short h2 {
        font-size: 26px;
    }
}