/* ======== Responsive Display Settings ======== */
/* עד 1024px – כולל טאבלטים וטלפונים */

.grecaptcha-badge {
  position: fixed !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 10000000000 !important;
  pointer-events: auto !important;
}

@media (max-width: 1024px) {
  .grecaptcha-badge {
    bottom: 72px !important; /* 60 + 12 מרווח */
  }
}

    @media (max-width: 1024px) {
        :root {
            --mas-header-height: 111px;
        }
    }
@media (max-width: 1024px) {
    /* עיצוב לניידים וטאבלטים */
    
    .mas-wish {
    position: relative;
    display: inline-block;
    }

    .mas-wish-wrapper.mobile {
    }
    /* Mobile slider */
    .header-slider.mobile {
        display: flex;
        align-items: center;
        position: relative;
        width: 100%;
        overflow: hidden;
        max-width:100%;
    }
    /* Mobile wishlist icon */
    .mas-wish-wrapper.mobile .favorite  {
        font-size: 35px;
        width : 35px;
        color: var(--primary-color);
        min-width: 35px;
        min-height: 35px;
        height: 35px;
        font-weight: 250;
    }


.header-search-mobile form {
    display: flex;
    align-items: center;
}

.header-search-mobile input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    padding: 5px;
    width: 0;
    transition: width 0.3s ease;
}

.header-search-mobile input:focus {
    width: 150px;
}

.header-search-mobile button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0px;
    display: flex;
    align-items: center;
}

.search {
    font-size: 24px;
    color: var(--primary-color);
}



.slider-container   {
    height: auto;
}

.slider-item    {
        font-size: 15.5px;
        color: #fafafa;
        font-weight: 600;
        height: 31px;
        min-height: 31px;
        display: flex;
        align-items: center;
        justify-content: center;
}



.header-middle-mobile {
    position: relative;
}

.mobile-search-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-search-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-search-icon:active {
    background-color: rgba(0, 0, 0, 0.1);
}



.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 80px;
}

.mobile-search-overlay.active {
    transform: translateY(31px) !important;
}

.mobile-search-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    height: 100%;
}

.mobile-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 0px 21px;
    border: 1px solid #ddd;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 8px 10px;
    outline: none;
    color: #333;
}

.mobile-search-input::placeholder {
    color: #666;
}

.mobile-search-submit {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-search-submit:hover {
    background-color: rgba(0, 124, 186, 0.1);
}

.mobile-search-submit .mas {
    font-size: 20px;
    color: #007cba;
}

.mobile-search-close {
    background: #f0f0f0;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-search-close:hover {
    background-color: #e0e0e0;
}

.mobile-search-close:active {
    background-color: #d0d0d0;
}

.mobile-search-close .mas {
    font-size: 24px;
    color: #666;
}

    .mobile-search-icon {
        display: flex;
    }

}

/* ======== Accessibility Enhancements ======== */
/* Accessibility: Enhanced contrast for header elements without visual changes */

/* Enhanced contrast for header top section */
div.header-top {
    position: relative;
}

div.header-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.02);
    z-index: -1;
    pointer-events: none;
}

/* Enhanced contrast for order status link */
a.order-status-link,
.contact-link a {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4), 0 0 1px rgba(0, 0, 0, 0.3) !important;
    position: relative;
}

a.order-status-link::before,
.contact-link a::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

/* Enhanced contrast for menu buttons */
button.menu-right,
button.menu-meet {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3), 0 0 1px rgba(0, 0, 0, 0.2) !important;
    position: relative;
}

button.menu-right::before,
button.menu-meet::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

/* Enhanced contrast for all header links */
.header-top a,
.header-bottom a,
.header-middle a {
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.3), 0 0 1px rgba(0, 0, 0, 0.2);
}

/* החל מ־1025px ומעלה – דסקטופ */
@media (min-width: 1025px) {
    /* עיצוב לדסקטופ */
           span.mas.icon-phone_in_talk,
           span.mas.icon-order_approve {
    width: 20px;
}
           a#mas-wishlist-link,
a#login-btn,
a#open-cart {
    font-size: 40px;
    align-items: center;
    display: flex;
}

    .mas.icon-search:before {
  font-size: 35px;

}

.mas.icon-favorite {
      font-size: 35px;
}

.cart-icon.mobile {
    width: 36px;
    font-size: 36px;
}
.mas.icon-account_circle:before {
  font-size: 35px;
}
           .header-slider.mobile{
               max-width:350px;
           }
a.mas-wish-link.mobile {
    font-size: 33px;
    align-items: center;
    display: flex;
}
    /* Desktop slider */
    .header-slider {
        display: flex;
        align-items: center;
        position: relative;
        width: 350px;
        overflow: hidden;
    }
    .header-icons   {
            margin: 0px 45px;
    }
    /* ======== Top Links ======== */
.contact-link,
.order-status {
    display: flex;
    align-items: center;
    
}
    .mobile-search-icon,
    .mobile-search-overlay {
        display: none;
    }
.header-left-top {
    display: flex;
}

.order-status {
    padding-right: 40px;
}

.order-status a,
.contact-link a {
    font-weight: 400;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

a.order-status-link,
.contact-link a {
    color: #fafafa;
}

/* ======== Bottom Header Section ======== */
.header-bottom {
    display: flex !important;
    background: var(--background-color);
    align-items: center;
    color: white;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    position: relative;
}

.mas-header-bottom-right {
    display: flex;
    width: 100%;
    max-width: 1200px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    position: relative;
}

.header--nav,
.header-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    position: relative;  
}

/* ======== Menu Borders ======== */
.menu-right {
    border-right: 1px solid var(--primary-color);
    /* height: 60%; */
    align-self: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.menu-meet {
    border-left: 1px solid var(--secondary-color);
    display: flex;
    align-items: center;
}

/* ======== Menu Icons ======== */
.menu-meet span,
.menu-right span {
    width: 20px;
}

button.menu-meet,
button.menu-right {
    padding: 10px 25px;
}
.header-bottom .menu-right,
.header-bottom .menu-right span {
    color: var(--primary-color);
    transition: color 0.3s ease;
    background: var(--background-color);
    font-size: 15px;
    gap: 10px;
}

.header-bottom .menu-meet,
.header-bottom .menu-meet span {
    color: var(--secondary-color);
    transition: color 0.3s ease;
    background: var(--background-color);
    font-size: 15px;
    gap: 10px;
}


.header-bottom .menu-right:hover,
.header-bottom .menu-right:hover span {
    filter: brightness(1.3); 
    transform: scale(1.05) !important; 
}

.header-bottom .menu-meet:hover,
.header-bottom .menu-meet:hover span {
    filter: brightness(1.3); 
     transform: scale(1.05) !important; 
}
.header-search form {
    display: flex;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    border: 1.4px solid var(--text-color);
    height: 40px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.header-search {
    flex-grow: 1;
    max-width: 450px;
    display: flex;
    max-height: 40px;
}

.header-search input {
    flex: 1;
    background: linear-gradient(to right, #fafafa 20%, #e5e8ec 50%, #d0d8e0 100%);
    padding: 10px 15px;
    border: none;
    font-size: 16px;
    outline: none;
}

.header-search button {
    background: linear-gradient(to left, #202020 20%, #000000 60%, #d0d8e0 120%);
    color: #ffffffc4;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 30%;
}

.header-search button:hover {
    filter: brightness(1.4);
    transform: scale(1.2);
}
/* ======== Main Action Buttons ======== */

#mas-wishlist-link > span:hover, 
#login-btn > span:hover, 
#open-cart > span:hover {
    transform: scale(1.2) !important; 
    filter: brightness(1.4) !important; 
} 

.mas-wishlist-count, .cart-icon {
    position: relative;
    display: flex;
    transition: transform 0.5s ease, filter 0.5s ease !important;
}


}
#open-cart > span.cart-count.mobile {
    top : 60% !important;
}


/* ======== Item Counter (Cart/Wishlist) ======== */
#mas-wishlist-link > span.mas-wishlist-count, 
#open-cart > span.cart-count {
    position: absolute !important;
    top: -12px !important;
    right: -12px !important;
    background: var(--primary-color) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
    font-family: "Heebo", sans-serif !important;
    line-height: 1 !important;
    text-align: center !important;
    z-index: 2 !important;
    /* Override any material icons styles */
    font-feature-settings: normal !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Mobile specific count styling */
@media screen and (max-width: 1024px) {
    .mas-wish .mas-wishlist-count,
    span.mas-wishlist-count,#open-cart > span.cart-count{
        position: absolute !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background: none !important;
        color: var(--primary-color) !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        display: block !important;
        text-align: center !important;
        pointer-events: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        border-radius: 0 !important;
        z-index: 2 !important;
        font-family: "Heebo", sans-serif !important;
    }
}



/* ======== Header Slider ======== */
.slider-btn:hover {
    background: rgba(114, 114, 114, 0.9);
}

/* Direction buttons for slider */
.direction-btn {
    position: absolute;
    background: rgba(131, 147, 163, 0.7);
    font-weight: bold;
    z-index: 10;
    padding: 0px 10px;
    font-size: 24px;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s;
    color: #fff;
}

.direction-btn:hover {
    opacity: 1;
    background: rgba(106, 144, 165, 0.9);
}

#prev-slide {
    left: 0;
}

#next-slide {
    right: 0;
}




/* ======== Login Popup ======== */





/* ======== Logged-in User Menu ======== */
#loggedInMenu {
    position: absolute;
    z-index: 99999;
    background-color: #f8f8f8;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    display: none;
    min-width: 200px;
    font-size: 16px;
    line-height: 1;
    font-weight: 550;
}

#loggedInMenu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--primary-color);
    text-align: left; /* Fixed for English LTR */
}

#loggedInMenu li a:hover {
    background: var(--primary-color);
    color: #f8f8f8;
}

/* ======== Mobile Navigation ======== */
.custom-mobile-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.custom-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Show only LTR content */
.ltr-only {
    display: block;
}

.rtl-only {
    display: none;
}

/* Show mobile menu when active */
.custom-mobile-nav-container.active {
    transform: translateX(0);
}

.custom-mobile-nav-overlay.active {
    display: block;
}

/* Mobile header container optimization */
.header-middle-container-mobile {
    display: flex;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    height: 80px;
    box-sizing: border-box;
    flex-direction: row-reverse;
}

    /* Left section - Cart and Wishlist */
.header-mobile.left-mobile {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 10px;
    order: 1;
    flex: 0 0 auto;
    min-width: 80px;
}


    /* Right section - Menu button */
.header-mobile.right-mobile {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    order: 3;
    flex: 0 0 auto;
    min-width: 50px;
    justify-content: flex-end;
    gap: 10px;
}

    /* Mobile navigation button styling */
    #custom-mobile-nav-toggle {
        background: none;
        border: none;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
        padding: 0;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }



    /* Remove conflicting padding */
    body > header > div.header-middle-mobile > div > div.header-mobile.left-mobile > div.mas-wish-wrapper.mobile {
        padding-right: 0;
    }

    .header-mobile.left-mobile {
        padding-right: 0;
    }

    /* Ensure icons maintain their styling */
    .mas-wish-wrapper.mobile,
    .mini-cart {
        display: flex;
    }


/* Fix for iOS Bounce Effect */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

