/*
 * Weihnachtsdeko XXL Header
 * Clean Hyvä / Amasty-safe version
 *
 * Ziele:
 * - kompakter Top-Header auf Desktop
 * - Logo sichtbar etwas größer, ohne die Header-Höhe mitzuziehen
 * - Service-Chips nur auf großem Desktop
 * - Amasty/PageBuilder-Menü intern unangetastet
 * - keine gestapelten Override-Blöcke / keine unnötigen !important-Kaskaden
 */

#wd-header-top,
#header.wd-header-nav {
    --wd-primary: #B4232F;
    --wd-primary-hover: #D64A55;
    --wd-ink: #123D2B;
    --wd-soft: rgba(18, 61, 43, 0.72);
    --wd-line: rgba(18, 61, 43, 0.10);
    --wd-line-strong: rgba(18, 61, 43, 0.16);
    --wd-shadow-soft: 0 12px 26px -22px rgba(18, 61, 43, 0.42);
    --wd-shadow-menu: 0 14px 30px -24px rgba(18, 61, 43, 0.55);

    color: var(--wd-ink);
}


/* ==========================================================
   TOP HEADER
   ========================================================== */

#wd-header-top {
    position: relative;
    z-index: 10;
    overflow: visible;

    background:
        radial-gradient(
            circle at 12% 0%,
            rgba(214, 74, 85, 0.13) 0%,
            rgba(214, 74, 85, 0.04) 34%,
            transparent 62%
        ),
        linear-gradient(
            180deg,
            rgba(180, 35, 47, 0.06) 0%,
            #fff 78%
        );

    border-bottom: 1px solid var(--wd-line);
}

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

/*
 * Desktop-Höhe bleibt bewusst kompakt.
 * Das Logo selbst darf optisch leicht über diese Höhe hinausgehen.
 */
#wd-header-top .wd-header-top-row {
    position: relative;
    min-height: 102px;
    height: 102px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
}


/* ==========================================================
   LOGO
   ========================================================== */

#wd-header-top .wd-header-logo {
    position: relative;
    flex: 0 0 440px;
    width: 440px;
    max-width: 440px;
    height: 102px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    overflow: visible;
}

#wd-header-top .wd-header-logo a,
#wd-header-top .wd-header-logo .logo {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    overflow: visible;
}

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

    width: 410px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
    object-position: left center;

    /*
     * Vergrößert nur optisch.
     * Dadurch bleibt die Header-Zeile 102px hoch.
     */
    transform: scale(1.08);
    transform-origin: left center;

    will-change: auto;
}


/* ==========================================================
   SERVICE CHIPS
   ========================================================== */

#wd-header-top .wd-header-service-wrap {
    min-width: 0;
    height: 102px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#wd-header-top .wd-header-services {
    gap: clamp(0.75rem, 1.2vw, 1.35rem);
}

#wd-header-top .wd-header-service-item {
    min-height: 54px;
    padding: 0.45rem 0.8rem;

    border: 1px solid rgba(18, 61, 43, 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(18, 61, 43, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);

    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(180, 35, 47, 0.34);
    background: #fff;

    box-shadow:
        0 14px 26px -20px rgba(18, 61, 43, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#wd-header-top .wd-header-service-icon {
    width: 44px;
    height: 44px;

    border-color: rgba(180, 35, 47, 0.18);

    background:
        linear-gradient(
            180deg,
            rgba(180, 35, 47, 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(180, 35, 47, 0.36);
    background: rgba(180, 35, 47, 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;
}


/* ==========================================================
   NAVIGATION SHELL
   Amasty/PageBuilder-Menü selbst wird absichtlich nicht gestylt.
   ========================================================== */

#header.wd-header-nav {
    position: relative;
    z-index: 30;

    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;
}


/* ==========================================================
   HEADER ACTIONS
   ========================================================== */

#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 var(--wd-line);
}

#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 var(--wd-line);
    border-radius: 999px;

    box-shadow: 0 10px 20px -18px rgba(18, 61, 43, 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(180, 35, 47, 0.07);
    border-color: rgba(180, 35, 47, 0.22);
    box-shadow: 0 14px 24px -18px rgba(180, 35, 47, 0.40);
}

#header.wd-header-nav .wd-header-actions > .customer-menu button,
#header.wd-header-nav .wd-header-actions > div > button {
    border-radius: 999px;
}

#header.wd-header-nav #menu-cart-icon span {
    box-shadow: 0 8px 16px -10px rgba(18, 61, 43, 0.50);
}


/* ==========================================================
   SEARCH DROPDOWN
   ========================================================== */

#header.wd-header-nav #search-content {
    border-top: 1px solid var(--wd-line);
    box-shadow: 0 18px 34px -26px rgba(18, 61, 43, 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: SMALL DESKTOP / TABLET
   ========================================================== */

@media (max-width: 1279px) {
    #wd-header-top .wd-header-service-wrap {
        display: none;
    }

    #wd-header-top .wd-header-top-row {
        min-height: 100px;
        height: 100px;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo {
        flex: 0 1 min(78vw, 470px);
        width: min(78vw, 470px);
        max-width: 470px;
        height: 100px;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo a,
    #wd-header-top .wd-header-logo .logo {
        justify-content: center;
    }

    #wd-header-top .wd-header-logo img {
        width: min(100%, 440px);
        max-width: 440px;
        transform: none;
        object-position: center;
    }
}


/* ==========================================================
   RESPONSIVE: TABLET / MOBILE NAV
   ========================================================== */

@media (max-width: 1023px) {
    #header.wd-header-nav .wd-header-menu-row {
        min-height: 58px;
    }

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


/* ==========================================================
   RESPONSIVE: MOBILE
   ========================================================== */

@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: 90px;
        height: 90px;
        width: 100%;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        height: 90px;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo a,
    #wd-header-top .wd-header-logo .logo {
        width: 100%;
        height: 100%;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo img {
        width: min(100%, 360px);
        max-width: 360px;
        max-height: 82px;
        height: auto;
        transform: none;
        object-fit: contain;
        object-position: center;
    }

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


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

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

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

    #wd-header-top .wd-header-logo {
        height: 84px;
    }

    #wd-header-top .wd-header-logo img {
        width: min(100%, 330px);
        max-width: 330px;
        max-height: 76px;
    }
}
/* =========================================================
   AMASTY MOBILE MENU – HAUPTÜBERSCHRIFTEN
   z.B. Alle Weihnachtsdekorationen / Optiken
   ========================================================= */
/* =========================================================
   AMASTY MOBILE MENU – GROSSE DRILL-TITEL
   z.B. Alle Weihnachtsdekorationen
   ========================================================= */

@media (max-width: 1024px) {

    .drill span.text-4xl {
        font-size: 20px !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;
        letter-spacing: -0.01em !important;
    }

}

/* ================================================================
   MOBILE_LOGO_90_DEV_V1 - desktop / nav / checkout / footer unaffected
   Reuse the existing header's vertical padding for the logo image.
   No asset transformation, no scaling distortion, no extra header height.
   ================================================================ */
@media (max-width: 767px) {
    /* Tailwind py-3 used to take 12px above/below the original row. */
    #wd-header-top > .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    #wd-header-top .wd-header-top-row {
        min-height: 114px;
        height: 114px;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-width: 0;
        align-items: center;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo a,
    #wd-header-top .wd-header-logo .logo {
        display: flex;
        width: 100%;
        max-width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo img {
        display: block;
        width: 90%;
        max-width: 90%;
        max-height: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        transform: none;
    }
}

/* Original header height below 421px: 84px row + 24px padding. */
@media (max-width: 420px) {
    #wd-header-top .wd-header-top-row {
        min-height: 108px;
        height: 108px;
    }
}
/* END MOBILE_LOGO_90_DEV_V1 */
