/**
 * Bemo MegaMenu Mobile Styles
 * Mobilne menu z wysuwaniem z lewej strony
 */

/* Hamburger button styles */
.bemo-mobile-menu-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1000;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger-icon span {
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.bemo-mobile-menu-toggle:hover .hamburger-icon span {
    background: #007bff;
}

/* Ukryj na desktop */
@media (min-width: 768px) {
    .bemo-mobile-menu-toggle,
    .mobile-menu-toggle,
    [data-toggle="mobile-menu"] {
        display: none !important;
    }
}

/* Mobile menu overlay */
.bemo-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bemo-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu container */
.bemo-mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #71b378;
    z-index: 999900;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    color: #ffffff;
}

.bemo-mobile-menu.active {
    left: 0;
    visibility: visible;
}

/* Force hide menu initially */
.bemo-mobile-menu:not(.active) {
    left: -320px !important;
    visibility: hidden !important;
}

/* Mobile menu header */
.bemo-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.bemo-mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.bemo-mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.bemo-mobile-menu-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile menu content */
.bemo-mobile-menu-content {
    padding: 0;
}

/* Mobile menu list */
.bemo-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bemo-mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.bemo-mobile-menu-item:last-child {
    border-bottom: none;
}

/* Mobile menu item header - container dla linku i przycisku toggle */
.bemo-mobile-menu-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile menu links */
.bemo-mobile-menu-link,
.bemo-mobile-menu-link:visited,
.bemo-mobile-menu-link:active,
.bemo-mobile-menu-link:focus {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 15px 20px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    border-bottom: none;
    outline: none;
}

.bemo-mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    text-decoration: none !important;
}

.bemo-mobile-menu-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

/* Mobile menu text and image */
.bemo-mobile-menu-text {
    display: flex;
    align-items: center;
    flex: 1;
}

.bemo-mobile-menu-image {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

/* Mobile menu arrow */
.bemo-mobile-menu-arrow {
    font-size: 16px;
    color: #999;
    transition: transform 0.2s ease;
    margin-left: 10px;
}

.bemo-mobile-menu-arrow.expanded {
    transform: rotate(90deg);
}

/* Mobile submenu toggle button */
.bemo-mobile-submenu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #ffffff;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bemo-mobile-submenu-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile submenu */
.bemo-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.bemo-mobile-menu-item.expanded .bemo-mobile-submenu {
    max-height: 1000px;
}

.bemo-mobile-submenu .bemo-mobile-menu-list {
    padding: 0;
}

.bemo-mobile-submenu .bemo-mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bemo-mobile-submenu .bemo-mobile-menu-link {
    padding: 12px 20px 12px 40px;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
}

.bemo-mobile-submenu .bemo-mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Submenu items container */
.bemo-mobile-submenu-items {
    padding: 0;
}

.bemo-mobile-submenu-items .bemo-mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bemo-mobile-submenu-items .bemo-mobile-menu-item-header {
    padding-left: 0;
}

.bemo-mobile-submenu-items .bemo-mobile-menu-link {
    padding-left: 40px;
}

.bemo-mobile-submenu-items .bemo-mobile-menu-link {
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
}

/* Mega menu content in mobile */
.bemo-mobile-megamenu-content {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.bemo-mobile-megamenu-products {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bemo-mobile-product-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-bottom: none;
}

.bemo-mobile-product-card:last-child {
    border-bottom: none;
}

.bemo-mobile-product-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    width: 100%;
    text-align: center;
}

.bemo-mobile-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0;
    margin-bottom: 8px;
}

.bemo-mobile-product-info {
    flex: 1;
}

.bemo-mobile-product-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.bemo-mobile-product-price {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    opacity: 0.9;
}

/* Mobile banners */
.bemo-mobile-megamenu-banners {
    margin-top: 15px;
}

.bemo-mobile-banner {
    margin-bottom: 10px;
}

.bemo-mobile-banner:last-child {
    margin-bottom: 0;
}

.bemo-mobile-banner-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Products section in mobile menu */
.bemo-mobile-products {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
}

.bemo-mobile-products-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bemo-mobile-product {
    display: flex;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.bemo-mobile-product:hover {
    color: #007bff;
    text-decoration: none;
}

.bemo-mobile-product:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.bemo-mobile-product-image {
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    border: 1px solid #e0e0e0;
}

.bemo-mobile-product-info {
    flex: 1;
}

.bemo-mobile-product-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.bemo-mobile-product-price {
    font-size: 12px;
    color: #007bff;
    font-weight: 600;
    margin: 0;
}

/* Banner section in mobile menu */
.bemo-mobile-banner {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
}

.bemo-mobile-banner-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.bemo-mobile-banner-link {
    display: block;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .bemo-mobile-menu {
        width: 280px;
        left: -280px;
    }
}

@media (max-width: 800px) {
    .header__bottom #search_widget input, .search__offcanvas #search_widget input {
    padding-left: 2.5rem;
  
}
 .header-block__badge {
    background: #C7B198;
    color: white;
    font-size: 10px;
    height: 1rem;
    line-height: 1.6;
    margin-left: -0.6em;
    margin-top: -1.3rem;
    min-width: 1rem;
    position: static;
}

}


/* Hide mobile menu on desktop */
@media (min-width: 768px) {
    .bemo-mobile-menu,
    .bemo-mobile-menu-overlay {
        display: none !important;
    }

   
}

/* Animation keyframes */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth scrolling */
.bemo-mobile-menu {
    -webkit-overflow-scrolling: touch;
}

/* Focus states for accessibility */
.bemo-mobile-menu-link:focus,
.bemo-mobile-menu-close:focus {
    outline: none;
    box-shadow: none;
}

/* Loading state */
.bemo-mobile-menu.loading {
    pointer-events: none;
}

.bemo-mobile-menu.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.bemo-mobile-menu-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
}

.bemo-mobile-menu-toggle:hover {
    color: #007bff;
}

/* Style dla ikony hamburger */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger-icon span {
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Ukryj na desktop (Bootstrap classes) */
@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
}

span.material-icons.header-block__icon {
    color: black;
}
i.material-icons.header-block__icon {
    color: black;
}