/*
 * Walt Deko Header – Premium Safe Version
 * Schönere Optik wie erste Version, aber ohne Amasty/PageBuilder-Menü intern zu verändern.
 */

#wd-header-top,
#header.wd-header-nav {
    --wd-primary: #d97706;
    --wd-primary-hover: #ff9927;
    --wd-ink: #22383d;
    --wd-soft: rgba(34, 56, 61, 0.72);
    --wd-line: rgba(34, 56, 61, 0.10);
    --wd-line-strong: rgba(34, 56, 61, 0.16);
    --wd-shadow-soft: 0 12px 26px -22px rgba(34, 56, 61, 0.42);
    --wd-shadow-menu: 0 14px 30px -24px rgba(34, 56, 61, 0.55);

    color: var(--wd-ink);
}
/*
 * Layering:
 * Cookie bar uses z-40, so header must stay below it.
 * Header still needs to be above wd-header-top for mobile menu.
 */
#wd-header-top {
    z-index: 10;
}

#header.wd-header-nav {
    position: relative;
    z-index: 30;
}
/* ===============================
   Top Header: Logo + Service
   =============================== */

#wd-header-top {
    background:
        radial-gradient(circle at 12% 0%,
            rgba(255, 153, 39, 0.13) 0%,
            rgba(255, 153, 39, 0.04) 34%,
            transparent 62%),
        linear-gradient(
            180deg,
            rgba(217, 119, 6, 0.06) 0%,
            rgba(255, 255, 255, 1) 78%
        );
    border-bottom: 1px solid var(--wd-line);
}

#wd-header-top .container {
    max-width: 1500px;
}

#wd-header-top .wd-header-top-row {
    min-height: 96px;
}

#wd-header-top .wd-header-logo {
    width: clamp(220px, 22vw, 330px);
    max-width: 330px;
}

#wd-header-top .wd-header-logo a,
#wd-header-top .wd-header-logo img {
    display: block;
}

#wd-header-top .wd-header-logo img {
    width: auto;
    max-width: 100%;
    max-height: 84px;
    height: auto;
    object-fit: contain;
}

/* ===============================
   Service Chips
   =============================== */

#wd-header-top .wd-header-services {
    gap: clamp(0.8rem, 1.4vw, 1.6rem);
}

#wd-header-top .wd-header-service-item {
    min-height: 56px;
    padding: 0.48rem 0.85rem;
    border: 1px solid rgba(34, 56, 61, 0.11);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    box-shadow:
        0 10px 22px -18px rgba(34, 56, 61, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: var(--wd-ink);
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

#wd-header-top a.wd-header-service-item:hover {
    color: var(--wd-primary);
    border-color: rgba(217, 119, 6, 0.34);
    background: #ffffff;
    box-shadow:
        0 14px 26px -20px rgba(34, 56, 61, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#wd-header-top .wd-header-service-icon {
    width: 46px;
    height: 46px;
    border-color: rgba(217, 119, 6, 0.18);
    background:
        linear-gradient(180deg,
            rgba(217, 119, 6, 0.10),
            rgba(255, 255, 255, 0.96)
        );
    color: var(--wd-primary);
}

#wd-header-top a.wd-header-service-item:hover .wd-header-service-icon {
    color: var(--wd-primary-hover);
    border-color: rgba(217, 119, 6, 0.36);
    background: rgba(217, 119, 6, 0.08);
}

#wd-header-top .wd-header-service-title {
    font-size: 0.9rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--wd-ink);
    white-space: nowrap;
}

#wd-header-top .wd-header-service-sub {
    margin-top: 0.15rem;
    font-size: 0.82rem;
    line-height: 1.15;
    color: var(--wd-soft);
    white-space: nowrap;
}

/* ===============================
   Sticky Header Shell
   Nur äußerer Rahmen – kein Menü-Inhalt
   =============================== */

#header.wd-header-nav {
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.99),
            rgba(255, 255, 255, 0.96)
        );
    border-bottom: 1px solid var(--wd-line);
    box-shadow: var(--wd-shadow-menu);
}

#header.wd-header-nav .container {
    max-width: 1500px;
}

#header.wd-header-nav .wd-header-menu-row {
    min-height: 62px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

#header.wd-header-nav .wd-header-menu {
    min-width: 0;
    flex: 1 1 auto;
}

/*
 * Wichtig:
 * Kein Styling für nav, nav a, .ammenu-link, .ammenu-item, .navigation a.
 * Dein Amasty/PageBuilder-Menü bleibt komplett eigenständig.
 */

/* ===============================
   Sticky Actions: Suche, Konto, Warenkorb
   =============================== */

#header.wd-header-nav .wd-header-actions {
    min-width: 140px;
    justify-content: flex-end;
    gap: 0.35rem;
    padding-left: 0.75rem;
    margin-left: 0.75rem;
    border-left: 1px solid rgba(34, 56, 61, 0.10);
}

#header.wd-header-nav #menu-search-icon,
#header.wd-header-nav #menu-cart-icon {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wd-ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(34, 56, 61, 0.10);
    border-radius: 999px;
    box-shadow: 0 10px 20px -18px rgba(34, 56, 61, 0.45);
    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

#header.wd-header-nav #menu-search-icon:hover,
#header.wd-header-nav #menu-cart-icon:hover {
    color: var(--wd-primary);
    background: rgba(217, 119, 6, 0.07);
    border-color: rgba(217, 119, 6, 0.22);
    box-shadow: 0 14px 24px -18px rgba(217, 119, 6, 0.40);
}

/* Kundenkonto nur im Actions-Bereich sanft abrunden, Dropdown nicht anfassen */
#header.wd-header-nav .wd-header-actions > .customer-menu button,
#header.wd-header-nav .wd-header-actions > div > button {
    border-radius: 999px;
}

/* Warenkorb-Badge */
#header.wd-header-nav #menu-cart-icon span {
    box-shadow: 0 8px 16px -10px rgba(34, 56, 61, 0.5);
}

/* ===============================
   Search Dropdown
   =============================== */

#header.wd-header-nav #search-content {
    border-top: 1px solid var(--wd-line);
    box-shadow: 0 18px 34px -26px rgba(34, 56, 61, 0.52);
}

#header.wd-header-nav #search-content input[type="search"],
#header.wd-header-nav #search-content input[type="text"] {
    min-height: 46px;
    border-radius: 999px;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 1279px) {
    #wd-header-top .wd-header-top-row {
        min-height: 84px;
    }

    #wd-header-top .wd-header-logo {
        width: clamp(190px, 30vw, 280px);
    }

    #wd-header-top .wd-header-logo img {
        max-height: 72px;
    }
}

@media (max-width: 1023px) {
    #wd-header-top .wd-header-top-row {
        justify-content: center;
    }

    #wd-header-top .wd-header-logo {
        width: clamp(180px, 48vw, 260px);
    }

    #header.wd-header-nav .wd-header-menu-row {
        min-height: 58px;
    }

    #header.wd-header-nav .wd-header-actions {
        border-left: 0;
        margin-left: 0.35rem;
        padding-left: 0.35rem;
    }
}

@media (max-width: 767px) {
    #wd-header-top .container,
    #header.wd-header-nav .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #wd-header-top .wd-header-top-row {
        min-height: 74px;
    }

    #wd-header-top .wd-header-logo img {
        max-height: 64px;
    }

    #header.wd-header-nav .wd-header-actions {
        min-width: auto;
    }

    #header.wd-header-nav #menu-search-icon,
    #header.wd-header-nav #menu-cart-icon {
        min-width: 40px;
        min-height: 40px;
    }
}