/* Mobile Header Styles - From Figma Design */

/* Mobile Header Container - Hidden by default on desktop */
.header-mobile {
    display: none;
    background: #ffffff;
    height: 127px;
    position: relative;
    width: 100%;
}

/* Show on mobile devices */
@media (max-width: 768px) {
    .header-mobile {
        display: block !important;
    }
    
    .header-mobile__content {
        width: 344px;
        height: 55.14px;
        position: absolute;
        left: 24px;
        top: 36px;
    }
    
    /* Burger Menu Button */
    .header-mobile__burger {
        width: 32px;
        height: 24px;
        position: absolute;
        left: 0px;
        top: 15.14px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .header-mobile__burger-line {
        background: #0fc998;
        width: 32px;
        height: 3px;
        position: absolute;
        left: 0px;
    }
    
    .header-mobile__burger-line:nth-child(1) {
        top: 0px;
    }
    
    .header-mobile__burger-line:nth-child(2) {
        top: 10px;
    }
    
    .header-mobile__burger-line:nth-child(3) {
        top: 21px;
    }
    
    /* Logo */
    .header-mobile__logo {
        width: 45px;
        height: 55.14px;
        position: absolute;
        left: 56px;
        top: 0px;
    }
    
    .header-mobile__logo img {
        width: 100%;
        height: 100%;
    }
    
    /* Search Button */
    .header-mobile__search {
        width: 22px;
        height: 23px;
        position: absolute;
        left: 220px;
        top: 16.14px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .header-mobile__search img {
        width: 100%;
        height: 100%;
    }
    
    /* Cart Container */
    .header-mobile__cart {
        width: 27px;
        height: 25px;
        position: absolute;
        left: 269px;
        top: 14.14px;
    }
    
    .header-mobile__cart-btn {
        width: 27px;
        height: 23px;
        position: absolute;
        left: 0px;
        top: 2px;
        display: block;
    }
    
    .header-mobile__cart-btn img {
        width: 100%;
        height: 100%;
    }
    
    /* Cart Badge */
    .header-mobile__cart-badge-container {
        width: 13px;
        height: 13px;
        position: absolute;
        left: 8px;
        top: 0px;
    }
    
    .header-mobile__cart-badge {
        background: #0fc998;
        border-radius: 50%;
        width: 13px;
        height: 13px;
        position: absolute;
        left: 0px;
        top: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Скрываем бейдж если корзина пуста */
    .header-mobile__cart-badge:has(.header-mobile__cart-count:empty),
    .header-mobile__cart-badge:has(.header-mobile__cart-count[data-count="0"]) {
        display: none;
    }
    
    .header-mobile__cart-count {
        color: #ffffff;
        text-align: center;
        font-family: "Inter", sans-serif;
        font-size: 10px;
        line-height: 1;
        font-weight: 400;
    }
    
    .header-mobile__cart-count:empty::after {
        content: '0';
    }
    
    /* User Icon */
    .header-mobile__user {
        width: 21px;
        height: 24px;
        position: absolute;
        left: 323px;
        top: 15.14px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .header-mobile__user img {
        width: 100%;
        height: 100%;
    }
}

