.site-header {
    background: #1f1f1f;
    color: white;
}

.top-header {
    padding: 18px 0;
}

.top-header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
}

.search-form {
    flex: 1;
    display: flex;
}

.search-form input {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
}

.search-form button {
    border: none;
    padding: 0 22px;
    background: #ffcc00;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-actions a {
    color: white;
    text-decoration: none;
}

.cart-header-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffcc00;
    color: #222;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.shipping-bar {
    display: block;
    width: 100%;
    padding: 5px 12px;
    background: #2b2b2b;
    color: #eeede9;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 1px solid #3a3a3a;
}

.shipping-bar:hover {
    background: #333;
    color: #ffd85a;
}

.category-nav {
    background: #2b2b2b;
}

.nav-inner {
    display: flex;
    align-items: center;
}

.nav-inner > a,
.dropdown-heading > a {
    color: white;
    text-decoration: none;
    padding: 17px 18px;
    display: block;
}

.nav-inner > a:hover,
.dropdown:hover .dropdown-heading > a,
.dropdown:focus-within .dropdown-heading > a {
    background: #3a3a3a;
}

.dropdown {
    position: relative;
}

.dropdown-heading {
    display: flex;
    align-items: stretch;
}

.dropdown-toggle,
.mobile-menu-toggle {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .18);
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 14px 18px;
    color: #222;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #f2f2f2;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    display: block;
}

.account-dropdown {
    position: relative;
}

.account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 190px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .18);
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.account-menu a {
    display: block;
    padding: 13px 16px;
    color: #222;
    text-decoration: none;
}

.account-menu a:hover {
    background: #f2f2f2;
}

.account-dropdown:hover .account-menu {
    display: block;
}

/* Voorkom horizontaal scrollen */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.top-header-inner,
.search-form,
.search-form input,
.header-actions,
.nav-inner {
    min-width: 0;
}

/* Tablet en mobiel */
@media (max-width: 768px) {
    .top-header {
        padding: 14px 0;
    }

    .top-header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
    }

    .logo {
        order: 1;
        flex-shrink: 0;
    }

    .logo img {
        height: 50px;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        gap: 14px;
        flex-shrink: 0;
    }

    .header-actions a {
        white-space: nowrap;
        font-size: 14px;
    }

    .search-form {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
    }

    .search-form input {
        min-width: 0;
        padding: 12px 14px;
        font-size: 14px;
    }

    .search-form button {
        flex-shrink: 0;
        padding: 0 18px;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        border: 0;
        background: transparent;
        color: white;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .nav-inner {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 10px;
    }

    .category-nav.menu-is-open .nav-inner {
        display: flex;
    }

    .nav-inner > a,
    .dropdown {
        width: 100%;
    }

    .nav-inner > a,
    .dropdown-heading > a {
        padding: 14px 16px;
    }

    .dropdown-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        width: 100%;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: white;
        cursor: pointer;
        font: inherit;
    }

    .dropdown-toggle span {
        display: inline-block;
        transition: transform .2s ease;
    }

    .dropdown.is-open .dropdown-toggle span {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        display: none;
    }

    .dropdown.is-open > .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 13px 16px 13px 32px;
    }

    /* Hover mag op mobiel het submenu niet openen */
    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu {
        display: none;
    }

    .dropdown.is-open:hover > .dropdown-menu,
    .dropdown.is-open:focus-within > .dropdown-menu {
        display: block;
    }
}

/* Kleine telefoons */
@media (max-width: 500px) {
    .shipping-bar {
        padding: 7px 10px;
        font-size: 12px;
    }

    .top-header {
        padding: 12px 0;
    }

    .top-header-inner {
        gap: 12px;
    }

    .logo img {
        height: 44px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions a {
        font-size: 0;
    }

    .header-actions a::first-letter {
        font-size: 21px;
    }

    .cart-header-link {
        gap: 4px;
    }

    .cart-count {
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        font-size: 11px;
    }

    .logout-link {
        display: none !important;
    }

    .search-form input {
        padding: 11px 12px;
        font-size: 13px;
    }

    .search-form button {
        padding: 0 14px;
        font-size: 13px;
    }
}

/* Zeer kleine telefoons */
@media (max-width: 360px) {
    .logo img {
        height: 40px;
    }

    .header-actions {
        gap: 7px;
    }

    .search-form button {
        padding: 0 11px;
    }
}