/* $$$$$$$$$$ ABGENOMMEN START $$$$$$$$$$ */

body {
    font-family: Roboto, sans-serif;
    line-height: 1.25rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* Reusable floating input component - outer container div */
.floating-input {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.floating-input *,
.floating-input *::before,
.floating-input *::after {
    box-sizing: border-box;
}
/* Input field styling */
.floating-input input,
.floating-input textarea {
    order: 1;
    width: 100%;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    border: 2px solid #c7c7c7;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
    outline: none;
    position: relative;
    z-index: 0;
}
.floating-input input:focus,
.floating-input textarea:focus {
    border-color: #3d7a39;
}
/* Floating label styling */
.floating-input label {
    order: 2;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: white;
    padding: 0 0.25rem;
    z-index: 2;
}
/* When input is focused - use :focus-within on container */
.floating-input:focus-within label {
    top: 0;
    transform: translateY(-50%) scale(0.75);
    color: #3d7a39;
    font-weight: 500;
}
/* When input has content - target input with content, then style the label */
.floating-input:has(input:not(:placeholder-shown)) label,
.floating-input:has(textarea:not(:placeholder-shown)) label {
    top: 0;
    transform: translateY(-50%) scale(0.75);
    color: #3d7a39;
    font-weight: 500;
}
/* Hide the default placeholder */
.floating-input input::placeholder,
.floating-input textarea::placeholder {
    opacity: 0;
}

/* Header - Top Bar */
header .top-bar {
    background: #43853e;
    color: white;
    padding: 8px 15px;
    display: flex;
    font-size: 13px;
    gap: 10px;
}

header .top-bar .icons {
    vertical-align: middle;
    width: 1.5em;
}

header .top-bar a {
    color: white;
    text-decoration: underline;
}

header .top-bar > div {
    flex: 1;
    background: #43853e;
    color: white;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        text-align: center;
    }
    
    .top-bar > div {
        flex: 1 1 auto;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

header .nav-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    border-bottom: 1px solid #ddd;
}

/* Header - Logo */
header .nav-wrapper .logo {
    flex: 0 0 auto;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 5px;
}

header .nav-wrapper .logo img {
    width: auto;
    vertical-align: middle;
    max-width: 100%;
}

/* Header - Main Navigation */
header .nav-wrapper .nav-container {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    padding: 0px 10px 10px 10px;
    gap: 8px;
}

@media (max-width: 768px) {
    header .nav-wrapper {
        flex-wrap: wrap;
    }
    header .nav-wrapper .logo {
        width: 100%;
        text-align: center;
    }
    header .nav-wrapper .nav-container {
        width: 100%;
    }
}

header .nav-wrapper .nav-container .button {
    height: 43px;
    min-width: 43px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    background: #43853e;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}

header .nav-wrapper .nav-container .button:focus,
header .nav-wrapper .nav-container input:focus {
    outline: 3px solid #0066cc !important;
    outline-offset: 2px;
}

header .nav-wrapper .nav-container a.button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
}

header .nav-wrapper .nav-container .button img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    vertical-align: middle;
}

header .nav-wrapper .nav-container .button.withscript {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding-left: 6px;
    padding-right: 6px;
}

@media (max-width: 768px) {
    header .nav-wrapper .nav-container .button.withscript.loggedin,
    header .nav-wrapper .nav-container .button.withscript.hidescriptmobile {
        padding-left: 0px;
        padding-right: 0px;
    }
    header .nav-wrapper .nav-container .button.withscript.loggedin span.text,
    header .nav-wrapper .nav-container .button.withscript.hidescriptmobile span.text {
        display: none;
    }
}

header .nav-wrapper .nav-container .button.hide {
    display: none;
}

header .nav-wrapper .nav-container .nav-cart-count {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    margin: auto;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background-color: #cc0000;
    color: #fff;
    border-radius: 50%;
    transition: all .3s;
}
header .nav-wrapper .nav-container .nocount .nav-cart-count {
    visibility: hidden;
}
@media (min-width: 769px) {
    header .nav-wrapper .nav-container .nav-cart-count {
        left: 12px;
        right: auto;
    }
}

header .nav-wrapper .nav-container .wishlist-count {
    position: absolute;
    margin: auto;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    line-height: 18px;
    color: #43853e;
}

/* Header - Mega Menu */
header .main-menu { background: #f8f8f8; border-bottom: 1px solid #ddd; position: relative; }
header .main-menu .menu-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; justify-content: center; text-transform: uppercase; }
header .main-menu .menu-list .menu-item > a { display: block; position: relative; padding: 12px; color: #333; text-decoration: none; font-size: 0.9rem; font-weight: bold; transition: all .2s; }
header .main-menu .menu-list .menu-item > a:hover { background: #43853e; color: white; text-decoration: underline; }
header .main-menu .menu-list .menu-item > a:focus { background: #43853e; color: white; outline: 2px solid #0066cc; outline-offset: -2px; }
header .main-menu .menu-list .menu-item > a.active { background: #43853e; color: white; text-decoration: underline; }
header .main-menu .menu-list .menu-item .menu-label { position: absolute; top: -8px; right: 0px; font-size: 10px; font-weight: 700; text-align: center; padding: 0px 5px; background-color: #cc0000; color: #fff; white-space: nowrap; }
header .main-menu .mega-panel { position: absolute; left: 0; right: 0; background: white; border: 1px solid #ddd; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0s, visibility 0s 0.2s; transition-delay: 0.2s; }
header .main-menu .mega-panel.show { opacity: 1; visibility: visible; transition-delay: 0.2s; }
header .main-menu .mega-panel .mega-content { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 20px; }
header .main-menu .mega-panel .mega-content a { font-size: .9375rem; color: #5d5d5d; }
header .main-menu .mega-panel .mega-content a:hover { color: #cc0000; text-decoration: underline; }
header .main-menu .mega-panel .mega-content a:focus { color: #cc0000; text-decoration: underline; outline: 2px solid #0066cc; outline-offset: 2px; }
header .main-menu .mega-panel .mega-content .category-title { font-size: .9375rem;  color: #2d2d2d; text-transform: uppercase; font-weight: 700; }
header .main-menu .mega-panel .mega-content .subcategories { margin-top: 5px; }
header .main-menu .mega-panel .mega-content .subcategories li { margin: 10px 0; }

@media (min-width: 769px) {
    header .mobile-menu { display: none; }
    header .nav-container #mobileMenuButton { display: none; }
}

/* Header - Mobile Menu */
@media (max-width: 768px) {
    header .main-menu { display: none; }
    header .mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; z-index: 9999; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; font-size: 1rem; }
    header .mobile-menu.show { transform: translateX(0); }
    header .mobile-menu .mobile-header { background: #43853e; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
    header .mobile-menu .mobile-header button { background: none; border: none; cursor: pointer; }
    header .mobile-menu .mobile-nav { padding: 0; }
    header .mobile-menu .mobile-nav { transition: transform 0.3s ease; }
    header .mobile-menu .mobile-nav.slide-right { animation: slideFromRight 0.3s ease; }
    header .mobile-menu .mobile-nav.slide-left { animation: slideFromLeft 0.3s ease; }
    header .mobile-menu .mobile-nav > a { display: block; padding: 15px 20px; color: #333; text-decoration: none; border-bottom: 1px solid #eee; }
    header .mobile-menu .mobile-nav .nav-item { display: flex; align-items: center; border-bottom: 1px solid #eee; }
    header .mobile-menu .mobile-nav .nav-item a { flex: 1; padding: 15px 20px; color: #333; text-decoration: none; }
    header .mobile-menu .mobile-nav .arrow-btn { background: none; border: none; border-left: 1px solid #ddd; padding: 5px 20px; cursor: pointer; min-width: 44px; vertical-align: middle; }
    @keyframes slideFromRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    @keyframes slideFromLeft {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }
}

/* $$$$$$$$$$ OVERWRITTEN OLD STYLES - DEPRACATE $$$$$$$$$$ */

header .nav-wrapper .nav-container .searchbar-wrapper button {
    position: absolute;
    display: block;
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    top: 0;
    right: 0;
}

header .nav-wrapper .nav-container .searchbar-wrapper form {
    position: relative;
}

header .nav-wrapper .nav-container .searchbar-wrapper input {
    height: 43px;
}

header .nav-wrapper .nav-container .searchbar-wrapper ul.ui-autocomplete {
    min-width: 300px;
}

@media (max-width: 768px) {
    header .search-widget {
        width: 100% !important;
    }
}

/* $$$$$$$$$$ ABGENOMMEN END $$$$$$$$$$ */

/* $$$$$$$$$$ TEST/TODO $$$$$$$$$$ */




aheader .main-menu .mega-content { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 20px; }
aheader .main-menu .mega-content a { color: #333; text-decoration: none; padding: 5px 0; display: block; transition: all 0.2s; }
aheader .main-menu .mega-content a:hover { color: #43853e; text-decoration: underline; background: rgba(67,133,62,0.05); padding-left: 5px; }
aheader .main-menu .mega-content a:focus { color: #43853e; text-decoration: underline; background: rgba(67,133,62,0.05); padding-left: 5px; outline: 2px solid #0066cc; outline-offset: 2px; }




/* $$$$$$$$$$ TEST/TODO END $$$$$$$$$$ */

        

        








