/*
 * Мобильная шапка (Figma: thegoldenlily.ru, node 22896:6605).
 * Breakdance header (post 29): верхняя полоса с контактами + строка «логотип / профиль / корзина / бургер».
 * Действует там же, где включается мобильное меню Breakdance (≤ 767px).
 * Иконки контактов и профиля/корзины подменяются на макетные через mask-image
 * (на десктопе остаются прежние).
 */
@media (max-width: 767px) {
    /* ---------- Верхняя полоса: контакты ---------- */
    body.breakdance .bde-section-29-100 {
        padding: 10px 20px 9px;
        border-bottom: 1px solid #e1e1e1;
        background-color: #fff;
    }

    body.breakdance .bde-section-29-100 > .section-container {
        padding: 0;
        gap: 0;
        justify-content: flex-start;
    }

    body.breakdance .bde-icon-list-29-105,
    body.breakdance .bde-icon-list-29-105 ul {
        width: 100%;
    }

    body.breakdance .bde-icon-list-29-105 ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        column-gap: 16px;
        row-gap: 4px;
    }

    /* Порядок в DOM: часы, e-mail, адрес, WhatsApp, телефон.
       По макету: 1-я строка — адрес, WhatsApp, телефон; 2-я — часы, e-mail. */
    body.breakdance .bde-icon-list-29-105 li:nth-child(3) { order: 1; }
    body.breakdance .bde-icon-list-29-105 li:nth-child(4) { order: 2; }
    body.breakdance .bde-icon-list-29-105 li:nth-child(5) { order: 3; }
    body.breakdance .bde-icon-list-29-105 li:nth-child(1) { order: 4; }
    body.breakdance .bde-icon-list-29-105 li:nth-child(2) { order: 5; }

    body.breakdance .bde-icon-list-29-105 ul li .bde-icon-list__item-wrapper {
        gap: 6px;
        align-items: center;
    }

    body.breakdance .bde-icon-list-29-105 li:nth-child(3) .bde-icon-list__item-wrapper,
    body.breakdance .bde-icon-list-29-105 li:nth-child(4) .bde-icon-list__item-wrapper {
        gap: 4px;
    }

    body.breakdance .bde-icon-list-29-105 li .bde-icon-list__text {
        margin: 0;
        padding: 0;
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 400;
        line-height: 26px;
        letter-spacing: 0;
        color: #38373a;
        white-space: nowrap;
    }

    /* Телефоны — без верхнего регистра */
    body.breakdance .bde-icon-list-29-105 li:nth-child(4) .bde-icon-list__text,
    body.breakdance .bde-icon-list-29-105 li:nth-child(5) .bde-icon-list__text {
        text-transform: none;
    }

    /* Иконки контактов из макета */
    body.breakdance .bde-icon-list-29-105 .bde-icon-list__icon {
        position: relative;
        flex: none;
        width: 12px;
        height: 12px;
        font-size: 12px;
    }

    body.breakdance .bde-icon-list-29-105 li:nth-child(4) .bde-icon-list__icon {
        width: 16px;
        height: 16px;
    }

    body.breakdance .bde-icon-list-29-105 .bde-icon-list__icon > svg {
        display: none;
    }

    body.breakdance .bde-icon-list-29-105 .bde-icon-list__icon::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: #292d32;
        -webkit-mask: var(--hm-icon) center / contain no-repeat;
        mask: var(--hm-icon) center / contain no-repeat;
    }

    body.breakdance .bde-icon-list-29-105 li:nth-child(1) .bde-icon-list__icon { --hm-icon: url('../img/icons/header-clock.svg'); }
    body.breakdance .bde-icon-list-29-105 li:nth-child(2) .bde-icon-list__icon { --hm-icon: url('../img/icons/header-sms.svg'); }
    body.breakdance .bde-icon-list-29-105 li:nth-child(3) .bde-icon-list__icon { --hm-icon: url('../img/icons/header-location.svg'); }
    body.breakdance .bde-icon-list-29-105 li:nth-child(4) .bde-icon-list__icon { --hm-icon: url('../img/icons/header-whatsapp.svg'); }
    body.breakdance .bde-icon-list-29-105 li:nth-child(5) .bde-icon-list__icon { --hm-icon: url('../img/icons/header-call.svg'); }

    /* ---------- Основная строка: логотип слева, справа профиль / корзина / бургер ---------- */
    body.breakdance .bde-header-builder-29-106 .bde-header-builder__container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        height: 68px;
        padding: 0 20px;
    }

    body.breakdance .bde-div-29-130 {
        order: 1;
        flex: 0 1 195px;
        width: auto;
        min-width: 0;
        margin-right: 8px;
        justify-content: flex-start;
    }

    body.breakdance .bde-image-29-107,
    body.breakdance .bde-image-29-107 img {
        display: block;
        width: 195px;
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    body.breakdance .bde-div-29-129 {
        order: 2;
        flex: none;
        margin-left: auto;
        gap: 12px;
        align-items: center;
    }

    body.breakdance .bde-div-29-122 {
        order: 3;
        flex: none;
        margin-left: 14px;
    }

    /* Профиль и корзина: иконки 20×20 из макета */
    body.breakdance .bde-icon-29-126,
    body.breakdance .bde-icon-29-126 a {
        width: 20px;
        height: 20px;
    }

    body.breakdance .bde-icon-29-126 a svg {
        display: none;
    }

    body.breakdance .bde-icon-29-126 a {
        position: relative;
    }

    body.breakdance .bde-icon-29-126 a::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: #292d32;
        -webkit-mask: url('../img/icons/header-profile.svg') center / contain no-repeat;
        mask: url('../img/icons/header-profile.svg') center / contain no-repeat;
    }

    body.breakdance .bde-mini-cart-29-123 .bde-mini-cart-toggle__icon {
        background-color: #292d32;
        -webkit-mask: url('../img/icons/header-bag.svg') center / contain no-repeat;
        mask: url('../img/icons/header-bag.svg') center / contain no-repeat;
    }

    /* В корзине — только количество, без суммы */
    body.breakdance .bde-mini-cart-29-123 .bde-mini-cart-toggle__subtotal {
        display: none;
    }
}
