/* Shopkeeper Header Styles */

/* Font Family */
body, h1, h2, h3, h4, h5, h6, .site-title, .main-navigation a, .site-tools ul li a {
    font-family: "Jost", -apple-system, BlinkMacSystemFont, Arial, Helvetica, 'Helvetica Neue', Verdana, sans-serif;
}

/* Page Wrapper */
#page_wrapper {
    position: relative;
}

/* Body padding for sticky header */
body {
    padding-top: 120px; /* Adjust based on header height */
}

body.static-page {
    padding-top: 120px;
}

/* Top Headers Wrapper */
.top-headers-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.top-headers-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Site Top Bar */
#site-top-bar {
    background: #191613;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
}

.site-top-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-top-message {
    text-align: center;
    width: 100%;
}

.site-top-message a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.site-top-message a:hover {
    color: #1e3a8a;
}

/* Social Icons */
.sk_social_icons_list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.sk_social_icons_list.right {
    margin-left: auto;
}

.sk_social_icon_link {
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.sk_social_icon_link:hover {
    color: #1e3a8a;
}

/* Top Bar Menu */
.topbar-menu {
    margin-left: 20px;
}

.menu-top-bar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.menu-top-bar-menu .menu-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.menu-top-bar-menu .menu-item a:hover {
    color: #1e3a8a;
}

/* Main Header */
.site-header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e7e7e7;
}

.site-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.site-branding {
    position: relative;
    flex-shrink: 0;
}

.site-logo, .sticky-logo, .mobile-logo {
    display: block;
}

.site-logo-img, .sticky-logo-img, .mobile-logo-img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

/* Mobile logo specific sizing */
.mobile-logo-img {
    max-height: 35px; /* Same size as tablet sticky logo */
}

.sticky-logo {
    display: none;
}

.mobile-logo {
    display: none;
    margin-left: 15px; /* Add left margin to prevent logo from being too close to left edge */
}

/* Sticky Header Logo */
.top-headers-wrapper.sticky .site-logo {
    display: none;
}

.top-headers-wrapper.sticky .sticky-logo {
    display: block;
}

.top-headers-wrapper.sticky .sticky-logo-img {
    max-height: 40px;
}

/* Main Navigation */
.menu-wrapper {
    flex: 1;
    margin: 0 40px;
}

.menu-main-navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.menu-main-navigation .menu-item {
    position: relative;
}

.menu-main-navigation .menu-item > a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.menu-main-navigation .menu-item > a:hover,
.menu-main-navigation .menu-item.current-menu-item > a {
    color: #1e3a8a;
}

/* Dropdown Menus */
.menu-main-navigation .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e7e7e7;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.menu-main-navigation .menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item {
    display: block;
}

.sub-menu .menu-item a {
    display: block;
    padding: 12px 20px;
    color: #545454;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.sub-menu .menu-item:last-child a {
    border-bottom: none;
}

.sub-menu .menu-item a:hover {
    color: #1e3a8a;
    background: #f9f9f9;
}

/* Site Tools */
.site-tools {
    flex-shrink: 0;
}

.site-tools-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
    margin-right: 10px; /* Add right margin for desktop */
}

.tools_button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tools_button:hover {
    color: #1e3a8a;
}

.tools_button_icon {
    font-size: 18px;
}

/* Shopping Bag Items Number */
.shopping_bag_items_number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-button {
    display: none;
}

/* Fix duplicate shopping cart icons */
.shopping-bag-button::before,
.shopping-bag-button::after,
.tools_button::before,
.tools_button::after {
    display: none !important;
}

/* Ensure only one shopping cart icon is visible */
.shopping-bag-button .tools_button_icon {
    position: relative;
    z-index: 1;
}

.shopping-bag-button .tools_button_icon::before,
.shopping-bag-button .tools_button_icon::after {
    display: none !important;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: left 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    left: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #ffffff;
    padding: 0;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #1e3a8a;
    color: #ffffff;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.mobile-navigation {
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #e7e7e7;
}

.mobile-menu-item a {
    display: block;
    padding: 15px 20px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-menu-item a:hover {
    background-color: #f9f9f9;
    color: #1e3a8a;
}

.mobile-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    display: none;
}

.mobile-sub-menu.active {
    display: block;
}

.mobile-sub-menu li a {
    padding: 12px 40px;
    font-size: 14px;
    color: #545454;
}

.mobile-menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    font-size: 12px;
}

.mobile-menu-item-has-children.active > a::after {
    content: '\f106';
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media only screen and (max-width: 1024px) {
    .menu-wrapper {
        display: none;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .site-logo {
        display: none;
    }
    
    .sticky-logo {
        display: none !important;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .site-header-wrapper {
        padding: 0 15px;
    }
    
    .site-tools-list {
        gap: 15px;
        margin-left: 10px; /* Add margin for tablet view */
        margin-right: 15px; /* Add right margin to prevent icons from being too close to right edge */
    }
    
    /* Mobile logo sizing for tablet */
    .mobile-logo-img {
        max-height: 35px; /* Same size as sticky logo */
    }
    
    .mobile-logo {
        margin-left: 20px; /* More margin for tablet */
    }
    
    /* Shopping bag button specific tablet styling */
    .shopping-bag-button {
        margin-left: 5px; /* Small margin for tablet */
    }
}

@media only screen and (max-width: 768px) {
    /* Adjust body padding for mobile */
    body {
        padding-top: 100px;
    }
    
    body.static-page {
        padding-top: 100px;
    }
    
    .site-top-bar-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0 15px;
    }
    
    .sk_social_icons_list.right {
        margin-left: 0;
    }
    
    .topbar-menu {
        margin-left: 0;
    }
    
    .site-header {
        padding: 15px 0;
    }
    
    .site-tools-list {
        gap: 10px;
        margin-left: 15px; /* Add margin to prevent icons from being too close to left */
        margin-right: 20px; /* Add right margin for mobile */
    }
    
    .tools_button {
        width: 35px;
        height: 35px;
    }
    
    .tools_button_icon {
        font-size: 16px;
    }
    
    /* Mobile logo sizing for mobile */
    .mobile-logo-img {
        max-height: 32px; /* Larger for mobile, but not too big */
    }
    
    .mobile-logo {
        margin-left: 25px; /* More margin for mobile */
    }
    
    /* Shopping bag button specific mobile styling */
    .shopping-bag-button {
        margin-left: 8px; /* Add specific margin for cart icon */
    }
    
    .shopping_bag_items_number {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        top: -3px;
        right: -3px;
    }
    
    /* Main navigation responsive */
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-navigation ul li a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media only screen and (max-width: 480px) {
    /* Adjust body padding for small mobile */
    body {
        padding-top: 90px;
    }
    
    body.static-page {
        padding-top: 90px;
    }
    
    .site-top-message {
        font-size: 11px;
        text-align: center;
        width: 100%;
        padding: 0 10px;
    }
    
    .site-top-bar-inner {
        padding: 0 10px;
    }
    
    .menu-top-bar-menu {
        gap: 15px;
    }
    
    .menu-top-bar-menu .menu-item a {
        font-size: 12px;
    }
    
    .site-tools-list {
        gap: 8px;
        margin-left: 20px; /* Increase margin for smaller screens */
        margin-right: 25px; /* More right margin for small mobile */
    }
    
    .tools_button {
        width: 30px; /* Smaller button size for small mobile */
        height: 30px;
    }
    
    .tools_button_icon {
        font-size: 14px; /* Smaller icon size */
    }
    
    /* Mobile logo sizing for small mobile */
    .mobile-logo-img {
        max-height: 28px; /* Larger for small mobile too */
    }
    
    .mobile-logo {
        margin-left: 30px; /* Even more margin for small mobile */
    }
    
    /* Shopping bag button specific small mobile styling */
    .shopping-bag-button {
        margin-left: 10px; /* More margin for small mobile */
    }
    
    .shopping_bag_items_number {
        font-size: 9px; /* Smaller badge text */
        min-width: 14px; /* Smaller badge */
        height: 14px;
        top: -2px;
        right: -2px;
    }
    
    /* Main navigation for small mobile */
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .main-navigation ul li a {
        font-size: 13px;
        padding: 6px 10px;
        display: block;
    }
    
    .site-header {
        padding: 10px 0;
    }
}

/* Sticky Header Animation */
.top-headers-wrapper.sticky .site-header {
    padding: 15px 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hover Effects */
.menu-main-navigation .menu-item > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e3a8a;
    transition: width 0.3s ease;
}

.menu-main-navigation .menu-item > a:hover::before,
.menu-main-navigation .menu-item.current-menu-item > a::before {
    width: 100%;
}

/* Focus States */
.tools_button:focus,
.menu-main-navigation .menu-item > a:focus {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

/* Loading States */
.tools_button.loading .tools_button_icon {
    /* Animation removed for better performance */
}
