/*
Theme Name: Eastern Medicine Theme
Author: Your Name
Description: Кастомная тема для магазина восточной медицины
Version: 3.1
Text Domain: eastern-med
*/
@import url("https://fonts.googleapis.com/css2?family=Advent+Pro:wght@100;200;300;400;500;600;700&display=swap");
:root {
    --accent-orange: #ff5c33; /* Приблизительный цвет из макета */
    --text-white: #ffffff;
    --text-black: black;
    --bg-dark: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    font-family: Arial, "Inter", sans-serif;
    color: var(--text-white);
    background-color: #f8f8f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 60px 20px;
}
.header-main {
    height: 800px;
    /*display: flex;*/
    /*align-items: center;*/
    /*padding: 60px 20px;*/
    /*width: 100%;*/
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("./assets/images/background.jpg") no-repeat center center;
    background-size: cover;
}
.header {
    position: relative;
    /*min-height: 70vh;*/
    width: 100%;
    margin-bottom: 3rem;
}
.i {
    width: 87%;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 25px;
    padding-top: 30px;
}
.search__bar {
    display: flex;
    flex-direction: row;
    /*margin-left: 10%;*/
    width: 100%;
    max-width: 910px;
    height: 100%;
    /*gap: 1.5rem;*/
    gap: 1.2rem;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    @media (max-width: 860px) {
        display: none;
    }
}
.logo a {
    display: flex;
    align-items: center;
}
.logo img {
    height: 85px;
    width: auto;
    display: block;
}

.search-box {
    display: flex;
    flex: 1 1 auto;
    max-width: 600px;
    /*min-width: 200px;*/
    background-color: #f9f9f7;
    border: 2px solid #f46036;
    border-radius: 10px;
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background-color: #f46036;
    color: white;
    border: none;
    border-radius: 0;
    padding: 0 30px;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

@media (max-width: 632px) {
    .search-button {
        padding: 0 20px;
    }
    .search-input {
        padding: 12px 9px;
    }
}
.search-button:hover {
    background-color: #d6693d;
}
.catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    text-decoration: none;

    min-width: 260px;

    /*gap: 24px;*/
    background-color: #ff5d32;
    color: white;
    width: 30%;
    height: 3rem;
    border: 2px solid #ff5d32;
    border-radius: 10px;
    overflow: hidden;
    /*padding: 0 30px;*/
    font-size: 16px;
    font-weight: 400;

    cursor: pointer;
    transition: background-color 0.2s;
}
.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    text-decoration: none;
    background-color: #ff5d32;
    color: white;
    height: 3rem;
    width: auto;
    flex-shrink: 0;
    border: 2px solid #ff5d32;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
}
.login-button:hover {
    background-color: #d6693d;
}
.icon-btn {
    all: unset;
}

.cart-icon-btn {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background-color: #f46036;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

.catalogue-button:hover {
    background-color: #d6693d;
}

.user-actions {
    display: flex;
    justify-content: space-between;
    /*width: 30%;*/
    /*width: 2.3rem;
    height: 2.3rem;*/
    gap: 1.8rem;
    @media (max-width: 860px) {
        gap: 1rem;
    }
    flex-direction: row;
}
.nav a:hover {
    opacity: 1;
}
ul {
    list-style-type: none;
}
.nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 910px;
    /*width: 100%;*/
    height: 100%;
    justify-content: space-between;
    /*justify-content: center;*/
    align-items: center;
    /*gap: auto;*/
}
.nav a {
    color: var(--text-black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.nav.second a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.description {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-top: 3rem;
}
.content {
    display: flex;
    max-width: 960px;
    width: 100%;
    flex-direction: column;
    gap: 2rem;
}
.description h1 {
    font-family: "Advent Pro", sans-serif;
    font-weight: 700;
    font-size: 48px;
    max-width: 960px;
}
.description p {
    font-size: 20px;
    font-weight: 300;
    max-width: 38rem;
    text-wrap: wrap;
}
/*.description h1 {
    font-family: "Advent Pro", sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    font-stretch: extra-expanded;
}*/

.stats {
    display: flex;
    flex-direction: space-between;
    margin-top: 2rem;
    width: 100%;
    /*max-width: 800px;*/
    /*width: 60%;*/
    gap: 96px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-family: "Advent Pro", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    color: #ffffff;
}

.stat-label {
    font-size: 16px;
    line-height: 1.4;
    color: #e5e5e5;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .stats {
        gap: 80px;
    }

    .stat-value {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .stats {
        gap: 28px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }
}
/* =========================
   MOBILE HEADER
========================= */

@media (max-width: 768px) {
    .i {
        width: 100%;
        padding: 15px;
        gap: 15px;
        margin-bottom: 15px;
    }

    /* Первая строка */
    .search__bar {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    /* Лого */
    .logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .logo img {
        height: 44px;
    }

    /* Login/actions прижаты к правому краю, не переносятся */
    .login-button,
    .user-actions {
        margin-left: auto;
        flex-shrink: 0;
    }

    /* Иконки справа */
    .user-actions {
        gap: 14px;
    }

    .user-actions img {
        width: 22px;
        height: 22px;
    }

    /* Поиск переносится на новую строку */
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .search-button {
        font-size: 14px;
        padding: 0 18px;
    }

    /* Навигация превращается в скрытое меню */
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        display: none;
        padding-top: 15px;
    }

    .nav.active {
        display: flex;
    }

    .nav li {
        width: 100%;
    }

    .nav a {
        font-size: 16px;
        display: block;
        width: 100%;
    }

    /* Кнопка бургер */
    .mobile-menu-toggle {
        display: flex;
        width: 28px;
        height: 22px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        height: 3px;
        width: 100%;
        background: #000;
        border-radius: 2px;
    }
}

/* Скрываем бургер на десктопе */
.mobile-menu-toggle {
    display: none;
}
.content-categories {
    /*max-width: 960px;*/
    /*margin: 0 auto;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 87%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 25px;
    padding-top: 30px;
}
.categories__cont {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
}

.categories {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*max-width: 65%;*/
    /*max-width: 960px;*/
    /*position: relative;*/
    /*min-width: 65%;*/
    /*display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;*/
    /*margin: 0 auto;*/
    margin-top: 3rem;
    /*not sure change it late*/
    /* make it adaptive*/
    /*@media (max-width: 1100px) {
        max-width: 900px;
    }
    @media (max-width: 900px) {
        max-width: 700px;
    }
    @media (max-width: 768px) {
        max-width: 580px;
    }*/
}
.category__container {
    /*width: 87%;*/
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: space-between;*/
    gap: 1.4rem;
    margin-bottom: 25px;
    padding-top: 30px;
}

.cont h2 {
    font-family: "Advent Pro", sans-serif;
    color: black;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cont span {
    color: #ff5e33;
    font-size: 18px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
}
.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
    width: 100%;
}

.card .bg-image {
    position: absolute; /* Отрываем картинку от текста */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка помещается целиком */
    z-index: 0; /* Отправляем картинку на задний план */
}

.card-label {
    position: relative;
    z-index: 1; /* Поднимаем текст над картинкой */
    /* Здесь можно добавить стили для текста: цвет, фон и т.д. */
}
/*
.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
    width: 100%;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}*/

/* Стили плейсхолдеров */
.gray-placeholder {
    background-color: #e0ddd7;
    background-image: linear-gradient(
        45deg,
        #e0ddd7 25%,
        #d6d3cc 25%,
        #d6d3cc 50%,
        #e0ddd7 50%,
        #e0ddd7 75%,
        #d6d3cc 75%,
        #d6d3cc 100%
    );
    background-size: 40px 40px;
}

.accent-orange {
    background-color: #ff5e33;
    color: white;
    justify-content: space-between;
}

.card-label {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    /* Тень для читаемости на светлых фото */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.accent-orange .card-label {
    text-shadow: none;
    max-width: 60px;
}

.arrow {
    font-size: 20px;
}

/* Позиционирование в сетке */

/* Акупрессура (левый высокий блок) */
.card:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
    height: 100%;
}

/* Оборудование */
.card:nth-child(2) {
    grid-column: span 5;
}

/* Акупунктура */
.card:nth-child(3) {
    grid-column: span 3;
}

/* Банки */
.card:nth-child(4) {
    grid-column: span 3;
}

/* Полный каталог */
.card:nth-child(5) {
    grid-column: span 2;
}

/* Магниты */
.card:nth-child(6) {
    grid-column: span 3;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
    }
    .card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .card:nth-child(1) {
        grid-column: span 2 !important;
    }
    /*not sure change it late*/
    /* make it adaptive*/

    /*.categories {
        max-width: 580px;
    }*/
}

.offers {
    max-width: 960px;
    margin: 0 auto;
    margin-top: 5rem;
    margin-bottom: 1rem;
}

.content-footer h2 {
    font-family: "Advent Pro", sans-serif;
    color: black;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.header span {
    color: var(--orange);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.image-placeholder {
    background-color: #ffffff;
    border-radius: 12px;
    position: relative;
    /*height: 271px;*/
}
.image-container {
    height: 271px;
    width: 100%;
}
.image-container img {
    width: 100%;
    height: 271px;
    object-fit: cover;
}

/* Имитация серого блока внутри плейсхолдера, если нужно */
/*.image-placeholder::after {
    content: "";
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border-radius: 8px;
}*/

.favorite-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    color: #333;
}

.product-info {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    color: black;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 12px 0;
    height: 40px; /* Фиксируем высоту заголовка для ровной сетки */
    overflow: hidden;
}

.price-row {
    color: black;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
}

.old-price {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: line-through;
    text-decoration-color: #f46036;
}

.add-to-cart {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #d97d5a;
    border-radius: 8px;
    text-decoration: none;
    color: #d97d5a;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}
.add-to-cart span {
    font-family: Arial, "Inter", sans-serif;
}
.add-to-cart:hover {
    background-color: var(--accent-orange);
    color: white;
}
.add-to-cart img {
    transition: opacity 0.25s ease, width 0.25s ease, margin 0.25s ease;
    flex-shrink: 0;
    overflow: hidden;
}
.add-to-cart.added {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
    cursor: default;
}
.add-to-cart.added img {
    opacity: 0;
    width: 0;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Wishlist button ────────────────────────────────────────────────────────
   Base styles for the heart button on catalog product cards.
   The single-product page overrides position/size via .pm-heart-icon.
   JS adds .in-wishlist or .loading; initial state is set in PHP.
   ─────────────────────────────────────────────────────────────────────────── */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.wishlist-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}
.wishlist-btn path {
    stroke: #aaa;
    fill: none;
    stroke-width: 2.5;
    transition: stroke 0.2s, fill 0.2s;
}
.wishlist-btn:hover path,
.wishlist-btn:focus-visible path {
    stroke: #f46036;
}
.wishlist-btn.in-wishlist path {
    stroke: #f46036;
    fill: #f46036;
}
.wishlist-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Site Footer ──────────────────────────────────────────────────────────── */
.site-footer {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 36px 20px;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.site-footer__inner {
    max-width: 910px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
}

.site-footer__nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.2s;
}

.site-footer__nav a:hover {
    color: #ff5c33;
}

.site-footer__copy {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0;
}

@media (max-width: 600px) {
    .site-footer__nav {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
}

/* ── Static Pages (page.php / page-contacts.php) ─────────────────────────── */
.page-wrap {
    width: 87%;
    max-width: 910px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page-content-inner {
    max-width: 760px;
}

.page-title {
    font-family: "Advent Pro", sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 32px;
    line-height: 1.15;
}

.page-body h2 {
    font-family: "Advent Pro", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1e1e1e;
    margin-top: 36px;
    margin-bottom: 12px;
}

.page-body p {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 16px;
}

.page-body ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.page-body ul li {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 6px;
    list-style-type: disc;
}

.page-body a {
    color: #f46036;
    text-decoration: none;
}

.page-body a:hover {
    text-decoration: underline;
}

/* Contacts page grid */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.contact-item {
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 12px;
    padding: 24px;
}

.contact-item__label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.contact-item__value {
    font-size: 17px;
    font-weight: 500;
    color: #1e1e1e;
    margin: 0;
}

.contact-item__value a {
    color: #1e1e1e;
    text-decoration: none;
}

.contact-item__value a:hover {
    color: #f46036;
}

@media (max-width: 768px) {
    .page-wrap {
        width: 100%;
        padding: 24px 16px 48px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

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

/* ── Info cards (Доставка и оплата) ──────────────────────────────────────── */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 28px;
}

.info-card {
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 12px;
    padding: 20px;
}

.info-card__title {
    font-family: "Advent Pro", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 8px;
}

.info-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.page-note {
    background: #fff8f5;
    border-left: 3px solid #f46036;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    font-size: 15px;
    color: #333;
    margin-bottom: 28px;
}

/* Two-column variant for delivery methods */
.info-cards--two {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .info-cards,
    .info-cards--two {
        grid-template-columns: 1fr;
    }
}

/* ── Featured payment method (single card, full-width) ───────────────────── */
.payment-featured {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 20px 0 28px;
}

.payment-featured__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fff4f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-featured__icon svg {
    width: 26px;
    height: 26px;
    stroke: #f46036;
}

.payment-featured__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-featured__title {
    font-family: "Advent Pro", sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0;
}

.payment-featured__text {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

.payment-featured__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.payment-featured__badges span {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid #e8e8e4;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    background: #f8f8f6;
}

@media (max-width: 600px) {
    .payment-featured {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
}

/* ── Steps list (Возврат и обмен) ────────────────────────────────────────── */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 28px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-item__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f46036;
    color: #fff;
    font-family: "Advent Pro", sans-serif;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.step-item__body {
    flex: 1;
}

.step-item__title {
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 4px;
}

.step-item__body p {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero header (homepage) ─────────────────────────────────── */

/* White burger lines on dark hero background */
.header-main .mobile-menu-toggle span {
    background: #fff;
}

/* Hero nav links stay white on dark background */
.header-main .nav.active {
    background: transparent;
}

@media (max-width: 768px) {
    /* Hero height: replace fixed 800px with responsive min-height */
    .header-main {
        height: auto;
        min-height: 580px;
    }

    /* Hero h1 scaling */
    .description h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    /* Hero paragraph */
    .description p {
        font-size: 16px;
        max-width: 100%;
    }

    /* Catalog button: remove forced min-width that overflows on mobile */
    .catalog-button {
        min-width: unset;
        width: auto;
        max-width: 100%;
    }

    /* Tighten hero content spacing */
    .content {
        gap: 1.5rem;
    }

    .description {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .header-main {
        min-height: 500px;
    }

    .description h1 {
        font-size: 26px;
    }

    .description p {
        font-size: 15px;
    }

    /* Full-width CTA button on phones */
    .catalog-button {
        width: 100%;
    }

    .content {
        gap: 1.2rem;
    }

    .description {
        margin-top: 1.5rem;
    }
}

/* ── Stats: prevent overflow on narrowest phones ─────────────── */
@media (max-width: 360px) {
    .stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-label {
        white-space: normal;
        max-width: 90px;
        font-size: 11px;
    }
}
