/**
 * Bemo MegaMenu Styles
 * Główny kolor tła: #c2b39b
 * Kolor tekstu: biały
 * Layout: pływający od lewej do prawej bez marginesów
 */

/* Global image size limit - max 200px */
.bemo-megamenu-container img:not(.bemo-megamenu-image) {
    max-width: 200px !important;
    max-height: 200px !important;
}

.bemo-megamenu-container {
    width: 100%;
    background-color: #4ab971;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1000;
    overflow: visible;
    min-height: 60px;
}

.bemo-megamenu-nav {
    width: 100%;
    margin: 0;
    padding: 0;
}

.bemo-megamenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.bemo-megamenu-item {
    position: relative;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.bemo-megamenu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.bemo-megamenu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    background: none;
    min-height: 60px;
}

.bemo-megamenu-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.bemo-megamenu-link:focus {
    color: white !important;
    text-decoration: none;
    outline: none;
}

.bemo-megamenu-text {
    display: inline-block;
    vertical-align: middle;
}

.bemo-megamenu-submenu-text {
    display: inline-block;
    vertical-align: middle;
}

.bemo-megamenu-image {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.bemo-megamenu-image.product-image {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bemo-megamenu-arrow {
    margin-left: 5px;
    font-size: 18px;
    color: white;
    transition: transform 0.3s ease;
}

.bemo-megamenu-item:hover .bemo-megamenu-arrow {
    transform: rotate(180deg);
}

/* Dropdown styles */
.bemo-megamenu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #c2b39b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease-in-out;
    min-width: 200px;
    margin-top: 2px;
}

.bemo-megamenu-dropdown.main-dropdown {
    border-top: 2px solid white;
}

.bemo-megamenu-item:hover > .bemo-megamenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bemo-megamenu-dropdown .bemo-megamenu-list {
    flex-direction: column;
    align-items: stretch;
}

.bemo-megamenu-dropdown .bemo-megamenu-item {
    display: block;
    width: 100%;
}

.bemo-megamenu-dropdown .bemo-megamenu-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: auto;
}

.bemo-megamenu-dropdown .bemo-megamenu-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.bemo-megamenu-dropdown .bemo-megamenu-item:last-child .bemo-megamenu-link {
    border-bottom: none;
}

/* Sub-dropdown positioning */
.bemo-megamenu-dropdown .sub-dropdown {
    top: 0;
    left: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced dropdown with products/banners */
.bemo-megamenu-dropdown-enhanced {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #c2b39b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.4s ease-in-out;
    min-width: 400px;
    max-width: 600px;
}

.bemo-megamenu-item:hover > .bemo-megamenu-dropdown-enhanced {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-enhanced-container {
    display: flex;
    min-height: 200px;
    max-height: 400px;
}

.dropdown-enhanced-left {
    flex: 1;
    padding: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
}

.dropdown-enhanced-right {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dropdown-enhanced-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-enhanced-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.product-image-wrapper-small {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.dropdown-enhanced-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    max-width: 200px;
    max-height: 200px;
}

.product-info-small {
    flex: 1;
}

.product-name-small {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.product-price-small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-enhanced-banners {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-enhanced-banner {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-enhanced-banner-image {
    width: 100%;
    height: auto;
    max-height: 120px;
    max-width: 200px;
    object-fit: cover;
}

/* Mega Card Styles */
.bemo-megamenu-mega-card {
    position: fixed;
    top: var(--mega-card-top, 80px);
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    margin: 0 !important;
    background: #369758;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    padding: 0;
    will-change: opacity, visibility;
}

.bemo-megamenu-item.has-mega-card:hover > .bemo-megamenu-mega-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Only show mega menu if it has proper positioning variable set */
body:not(.mega-menu-loading) .bemo-megamenu-item.has-mega-card:hover > .bemo-megamenu-mega-card[style*="--mega-card-top"] {
    opacity: 1;
    visibility: visible;
}

/* Force show mega menu when needed (after page load positioning) */
.bemo-megamenu-item.force-show-mega > .bemo-megamenu-mega-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Stabilize menu during initial hover after positioning */
.bemo-megamenu-item.stabilizing > .bemo-megamenu-mega-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* First hover stability - prevents menu from closing on first interaction */
.bemo-megamenu-item.first-hover-stability:hover > .bemo-megamenu-mega-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition-delay: 0.2s !important;
}

/* Enhanced stability for force-show state */
.bemo-megamenu-item.force-show-mega > .bemo-megamenu-mega-card,
.bemo-megamenu-item.force-show-mega:hover > .bemo-megamenu-mega-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: opacity 0.1s ease-in-out !important;
}

/* Loading state - prevent mega menus from showing during page load */
.mega-menu-loading .bemo-megamenu-mega-card {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Disable hover during loading */
.mega-menu-loading .bemo-megamenu-item:hover > .bemo-megamenu-mega-card {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
}

/* Block all hover interactions during loading */
.mega-menu-loading .bemo-megamenu-item {
    pointer-events: none !important;
}

.mega-menu-loading .bemo-megamenu-item * {
    pointer-events: none !important;
}

/* Only allow mega menu to show when properly positioned */
.bemo-megamenu-mega-card:not([style*="--mega-card-top"]) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Smooth positioning transition */
.bemo-megamenu-mega-card.positioning {
    transition: top 0.1s ease-out !important;
}

.mega-card-container {
    display: flex;
    min-height: 300px;
    max-height: 80vh;
}

.mega-card-left {
    flex: 1;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
}

.mega-card-right {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.mega-card-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.mega-card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0 15px 0;
    padding: 0;
    font-style: italic;
}

.mega-card-custom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mega-card-custom-image {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.mega-card-custom-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mega-card-submenu {
    margin-top: 10px;
}

.mega-card-submenu .bemo-megamenu-list {
    flex-direction: column;
}

.mega-card-submenu .bemo-megamenu-item {
    display: block;
    width: 100%;
    margin-bottom: 5px;
}

.mega-card-submenu .bemo-megamenu-link {
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-height: auto;
}

.mega-card-submenu .bemo-megamenu-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

/* Products container for multiple products */
.mega-card-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    height: 100%;
}

/* When there are multiple products, show them in a grid for 2-3 products */
.mega-card-products:has(.product-2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mega-card-products:has(.product-3) {
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Individual product display in mega cards */
.mega-card-product {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    min-height: 120px;
}

/* Product link styling */
.mega-card-product .product-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.mega-card-product:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mega-card-product .product-link:hover {
    text-decoration: none;
    color: inherit;
}

/* When only one product, make it vertical and larger */
.mega-card-products:not(:has(.product-2)) .mega-card-product {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    min-height: 200px;
}

.mega-card-products:not(:has(.product-2)) .mega-card-product .product-link {
    flex-direction: column;
    text-align: center;
}

.product-image-wrapper {
    flex: 0 0 auto;
}

.mega-card-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    max-width: 200px;
    max-height: 200px;
}

/* For single product display - larger image */
.mega-card-products:not(:has(.product-2)) .mega-card-product-image {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    max-width: 200px;
    max-height: 200px;
}

.product-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
}

.product-name {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

/* For single product - larger text */
.mega-card-products:not(:has(.product-2)) .product-name {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.mega-card-products:not(:has(.product-2)) .product-description {
    font-size: 12px;
    margin-bottom: 10px;
}

.product-price {
    margin: 10px 0 15px 0;
    font-weight: 600;
}

.product-price .price {
    font-size: 18px;
    color: white;
}

.product-price .regular-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    margin-right: 8px;
}

.product-actions {
    margin-top: 15px;
}

.product-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Quickview button specific styles */
.product-miniature__quickview_button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.product-miniature__quickview_button .material-icons {
    font-size: 14px;
}

/* Custom image display */
.mega-card-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-card-custom-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .bemo-megamenu-mega-card {
        width: 60vw;
    }
}

@media (max-width: 992px) {
    .bemo-megamenu-mega-card {
        width: 70vw;
    }
    
    .mega-card-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .mega-card-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .bemo-megamenu-mega-card {
        width: 90vw;
        left: -45vw;
        margin-left: 50%;
    }
}

/* Current/active state */
.bemo-megamenu-item.current > .bemo-megamenu-link {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .bemo-megamenu-container {
        display: none; /* Można zastąpić mobilną wersją */
    }
    
    /* Style dla sklonowanego sticky header */
    .header-bottom-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        border-bottom: 1px solid #e5e5e5 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        display: none !important;
        overflow: visible !important;
    }
    
    .header-bottom-sticky .container-md {
        padding: 10px 15px !important;
        margin: 0 auto !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .header-bottom-sticky .header-bottom__row {
        min-height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
}

/* Material Icons support */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}


/* Animation improvements */
.bemo-megamenu-item {
    overflow: visible;
}

.bemo-megamenu-dropdown {
    border-radius: 0 0 4px 4px;
}

/* Custom scrollbar for long dropdowns */
.bemo-megamenu-dropdown::-webkit-scrollbar {
    width: 6px;
}

.bemo-megamenu-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.bemo-megamenu-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.bemo-megamenu-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Fix for Bootstrap conflicts */
.bemo-megamenu-container .dropdown-item {
    color: white !important;
    background-color: transparent !important;
}

.bemo-megamenu-container .dropdown-item:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Header sticky removal styles */
.bemo-header-no-sticky,
.header.bemo-header-no-sticky,
header.bemo-header-no-sticky,
#header.bemo-header-no-sticky {
    position: static !important;
    top: auto !important;
}

/* Ensure header containers also lose sticky positioning */
.header-container.bemo-header-no-sticky,
.header-wrapper.bemo-header-no-sticky,
.main-header.bemo-header-no-sticky {
    position: static !important;
    top: auto !important;
}

/* General override for any header-related sticky positioning */
.header,
header,
#header {
    position: static !important;
    top: auto !important;
}

/* Disable scroll behavior for sliders */
.scroll-to-top-disabled {
    scroll-behavior: unset !important;
}

.scroll-to-top-disabled * {
    scroll-behavior: unset !important;
}

/* Specifically target TBCMS slider elements */
.tbcms-slider-offerbanner-wrapper,
.tbcms-slider-offerbanner-wrapper *,
[class*="tbcms"][class*="slider"],
[class*="tbcms"][class*="banner"] {
    scroll-behavior: unset !important;
}

/* Disable smooth scroll on slider containers */
.container-fluid [class*="slider"],
.container-fluid [class*="carousel"],
.container-fluid [class*="swiper"],
.container-fluid [class*="banner"] {
    scroll-behavior: unset !important;
}

/* Override any scroll-padding or scroll-margin that might cause jumps */
.scroll-to-top-disabled,
.tbcms-slider-offerbanner-wrapper,
[class*="tbcms"][class*="slider"] {
    scroll-padding: 0 !important;
    scroll-margin: 0 !important;
    scroll-padding-top: 0 !important;
    scroll-margin-top: 0 !important;
}

.gx-2.align-items-stretch.header-bottom__row {
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}
div#_desktop_cart {
    display: flex;
}
div#_desktop_user_info {
    display: flex
;
}
@media only screen and (min-width: 992px) {
    #search_widget {
        min-width: 20.5rem;
    }
}
div#_desktop_cart {
    display: flex;
}
div#_desktop_search {
    margin-left: auto;
}
ul#bemo-megamenu-main
 {
    justify-content: center;
}
span.bemo-megamenu-text {
    text-transform: uppercase;
}

     .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;
}

#search_widget form input {
    width: 100%;
    padding: 10px 20px 10px 40px;
    outline: none;
    background-color: white;
    border: 1px solid #C7B198;
    border-radius: 20px;
}
.search-widgets__dropdown.js-search-dropdown {
    z-index: 1000000000;
}
/* Placeholder for empty mega card right section */
.mega-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    margin: 20px;
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.placeholder-content p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

@media (min-width: 768px) {
    .header-bottom__row {
        min-height: 6rem;
    }
    .header-bottom {
          margin: 25px 10px;
    --header-bottom-border-bottom: none;
    }
}

span.bemo-megamenu-text
 {
    font-weight: bold;
}
.header-bottom {
        margin: 25px 0px;
    --header-bottom-border-bottom: none;
}
.mega-card-left {
    max-width: 25%;
}

span.d-none.d-md-flex.header-block__title {
    color: black;
}
i.material-icons.header-block__icon {
    color: black;
}
.logo-row {
    max-width: 100%;
    margin: 0 10px;
}