/* ═══════════════════════════════════════════
   LUMO — Mobile Overrides (≤ 768px)
   ═══════════════════════════════════════════ */

/* ── Fix min-width from style.css ── */
@media (max-width: 768px) {
    .main-page {
        min-width: 0 !important;
    }

    .main-page .desktop-content {
        align-items: stretch !important;
    }

    /* Product page — force single column on mobile */
    .product-layout,
    .product-skeleton-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .product-skeleton-body {
        grid-template-columns: unset !important;
    }

    .product-gallery,
    .product-skeleton-gallery {
        position: static !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* ════════════════════════════════════════
       HERO — баннеры в один ряд
    ════════════════════════════════════════ */
    .main-page .hero-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px 20px !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .main-page .carousel-huge {
        width: auto !important;
        height: 160px !important;
    }

    .main-page .carousel-medium {
        flex: 1 1 40% !important;
        width: auto !important;
        height: 160px !important;
    }

    .main-page .baner-hover {
        border-radius: 10px !important;
    }

    .main-page .baner {
        width: 100% !important;
        left: 0 !important;
        border-radius: 10px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* ── Banner 1: reposition & resize SUPER SALE text ── */
    .main-page .ribbon,
    .main-page .ribbon-2 {
        display: none !important;
    }

    .main-page .baner-s-content {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        gap: 6px !important;
        align-items: center !important;
    }

    .main-page .SUPER-SALE {
        font-size: 9px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .main-page .price {
        padding: 3px 8px !important;
        border-radius: 6px !important;
    }

    .main-page .text-wrapper-9 {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }

    /* ── Banner 2: "Новинка дня" ── */
    .main-page .txt {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 8px !important;
        width: 100% !important;
    }

    .main-page .baner-s-content-2 {
        gap: 4px !important;
        align-items: center !important;
    }

    .main-page .text-wrapper-11 {
        font-size: 11px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .main-page .p {
        display: none !important;
    }

    /* ── "Акция" text in section ribbon ── */
    .main-page .rectangle-2 {
        height: 32px !important;
    }

    .main-page .text-wrapper-14 {
        font-size: 10px !important;
    }

    .main-page .tab-2 {
        padding: 2px 6px !important;
    }

    /* ════════════════════════════════════════
       Акции section
    ════════════════════════════════════════ */
    .main-page .section-2 {
        padding: 28px 14px !important;
        gap: 16px !important;
    }

    .main-page .text-wrapper-15 {
        font-size: 20px !important;
    }
}

/* ════════════════════════════════════════
   MOBILE DRAWER (hamburger menu)
════════════════════════════════════════ */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--baseblack-500);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    flex-shrink: 0;
}

.mobile-drawer-header img {
    height: 36px;
    width: auto;
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background .15s;
}

.mobile-drawer-close:hover {
    background: rgba(255, 255, 255, .1);
}

/* ── Auth row ── */
.md-auth-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, .05);
}

.md-auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    flex-shrink: 0;
}

.md-auth-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .9);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color .12s;
}

.md-auth-btn:hover {
    color: #FD7200;
}

.md-auth-btn[href] {
    text-decoration: none;
}

.md-logout-btn {
    color: rgba(255, 255, 255, .6);
}

.md-logout-btn:hover {
    color: var(--red-500) !important;
}

.md-auth-sep {
    color: rgba(255, 255, 255, .3);
    font-size: 14px;
    user-select: none;
}

/* ── Catalog link (bold header row) ── */
.md-catalog-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: background .12s;
}

.md-catalog-link:hover {
    background: rgba(255, 255, 255, .07);
}

/* ── Category items ── */
.md-cat-item {
    display: block;
    padding: 10px 20px 10px 36px;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: color .12s, background .12s;
    border-left: 3px solid transparent;
}

.md-cat-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-left-color: rgba(255, 255, 255, .2);
}

/* ── Special (Новинки / Акции) ── */
.md-special-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: background .12s;
}

.md-special-new {
    color: #FD7200;
}

.md-special-sale {
    color: #FD7200;
}

.md-special-item:hover {
    background: rgba(255, 255, 255, .06);
}

/* ── Contact row ── */
.md-contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    flex-wrap: wrap;
}

.md-contact-city {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .6);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

.md-contact-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: color .12s;
}

.md-contact-phone:hover {
    color: #FD7200;
}

/* ── Social row ── */
.md-social-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 20px 16px;
}

.md-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .45);
    transition: color .15s;
}

.md-social-link:hover {
    color: rgba(255, 255, 255, .9);
}

.mobile-drawer-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    padding: 16px 20px 6px;
}

.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .12s, color .12s;
}

.mobile-drawer-item:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.mobile-drawer-item.accent {
    color: #FD7200;
    font-weight: 700;
}

.mobile-drawer-item.accent:hover {
    color: #FD7200;
}

.mobile-drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, .25);
    margin: 4px 0;
}

.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 1100;
    backdrop-filter: blur(2px);
}

.mobile-drawer-overlay.active {
    display: block;
}

/* ════════════════════════════════════════
   MOBILE HEADER
════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Preheader & additional menu: hidden ── */
    .main-page .preheader {
        display: none !important;
    }

    .main-page .additional-menu {
        display: none !important;
    }

    /* ── Main header: compact ── */
    .main-page .main-header-inner {
        height: 56px !important;
        padding: 0 14px !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    /* Logo smaller */
    .main-page .main-header-inner>a>.logo,
    .main-page .main-header-inner .logo {
        height: 32px !important;
        width: auto !important;
    }

    /* Hide search bar + catalog button */
    .main-page .content-2 {
        display: none !important;
    }

    /* Show hamburger */
    .mobile-hamburger {
        display: flex !important;
    }

    /* Show mobile search icon */
    .mobile-search-icon {
        display: flex !important;
    }

    /* Auth: hide text, keep person icon */
    .main-page .auth-buttons .button-4 {
        display: none !important;
    }

    .main-page .auth-buttons .button-3 {
        display: none !important;
    }

    .main-page .auth-divider {
        display: none !important;
    }

    /* Action group: push to right, icons close together */
    .main-page .action {
        margin-left: auto !important;
        gap: 4px !important;
    }

    /* Auth section: no extra margin */
    .main-page .div-2.auth-section {
        margin-left: 0 !important;
    }

    /* Person icon: reset margin */
    .main-page .header-person-icon {
        margin-left: 0 !important;
    }

    /* Buttons in action: smaller */
    .main-page .button-2,
    .main-page .button-wrapper {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Hamburger — hidden on desktop */
.mobile-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background .15s;
}

.mobile-hamburger:hover {
    background: rgba(255, 255, 255, .1);
}

/* Mobile search icon — hidden on desktop */
.mobile-search-icon {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background .15s;
}

.mobile-search-icon:hover {
    background: rgba(255, 255, 255, .1);
}

/* ════════════════════════════════════════
   MOBILE FOOTER
════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Email section */
    .main-page .email-section-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding: 32px 20px !important;
    }

    .main-page .email-section-inner .div-3 {
        max-width: 100% !important;
    }

    .main-page .email-section-inner .text-wrapper-16 {
        font-size: 22px !important;
    }

    .main-page .lorem-ipsum-dolor {
        width: auto !important;
    }

    .main-page .email-capture {
        width: 100% !important;
        flex-direction: column !important;
    }

    .main-page .input-default {
        width: 100% !important;
    }

    .main-page .button-main {
        width: 100% !important;
    }

    /* Footer columns */
    .main-page .footer-wrapper-inner {
        padding: 28px 20px 24px !important;
    }

    .main-page .content-4 {
        flex-direction: column !important;
        gap: 28px !important;
    }

    .main-page .logoa-nd-contacts {
        width: 100% !important;
    }

    .main-page .links {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .main-page .footer-links-column,
    .main-page .footer-links-column-2 {
        width: 100% !important;
    }

    .main-page .section-3 {
        height: auto !important;
        flex-direction: column !important;
        gap: 20px !important;
        flex: none !important;
        width: 100% !important;
    }

    /* Bottom bar */
    .main-page .content-5 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* Footer text smaller */
    .main-page .footer-2 {
        gap: 28px !important;
    }
}

@media (max-width: 480px) {
    .main-page .email-section-inner {
        padding: 24px 16px !important;
    }

    .main-page .footer-wrapper-inner {
        padding: 24px 16px 20px !important;
    }
}

/* ════════════════════════════════════════
   MOBILE SEARCH MODAL
════════════════════════════════════════ */
.mobile-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    background: var(--baseblack-500);
    transform: translateY(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mobile-search-modal.open {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .mobile-search-modal {
        display: flex;
        flex-direction: column;
    }
}

.mobile-search-modal-inner {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    height: 56px;
    gap: 0;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.15s;
}

.mobile-search-form:focus-within {
    border-color: rgba(255, 232, 23, 0.5);
    background: rgba(255, 255, 255, 0.13);
}

.mobile-search-back {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.mobile-search-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    min-width: 0;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.mobile-search-input::-webkit-search-cancel-button {
    display: none;
}

.mobile-search-submit {
    background: var(--yellow-500, #FFE817);
    border: none;
    color: var(--baseblack-500, #2e2828);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.12s;
}

.mobile-search-submit:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.mobile-search-submit:active {
    transform: scale(0.96);
}


@media (max-width: 768px) {
    baner-s-content h1 {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    baner-s-content p {
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    .main-page .p {
        /* display: none !important; */
        color: white;
        font-size: 12px;
        width: 350px;
    }
}