/* ====================================================================
   membraPure Shop – Komplettes CSS
   Subnavigation + Hero + Kategorien
   ==================================================================== */


/* ============ SUBNAVIGATION ============ */

.mp-shop-subnav {
    background: #006fb7;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1;
}
.mp-shop-subnav *,
.mp-shop-subnav *::before,
.mp-shop-subnav *::after {
    box-sizing: border-box;
}

.mp-shop-subnav__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.mp-shop-subnav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    flex-shrink: 0;
    line-height: 1;
    position: relative;
}
.mp-shop-subnav__brand-icon.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.mp-shop-subnav__brand-text {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}
.mp-shop-subnav__brand.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 24px;
    bottom: 14px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.mp-shop-subnav__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    gap: 4px;
}
.mp-shop-subnav__links li {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}
.mp-shop-subnav__link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    padding: 0 16px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    border: none;
}
.mp-shop-subnav__link:hover {
    color: #fff !important;
}
.mp-shop-subnav__link.is-active {
    color: #fff !important;
    font-weight: 500;
}
.mp-shop-subnav__link.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.mp-shop-subnav__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    flex-shrink: 0;
}

.mp-shop-subnav__search {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0 14px;
    height: 36px;
    transition: background 0.15s ease;
    margin-right: 8px;
    line-height: 1;
}
.mp-shop-subnav__search:hover,
.mp-shop-subnav__search:focus-within {
    background: rgba(255, 255, 255, 0.2);
}
.mp-shop-subnav__search-icon.dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
    flex-shrink: 0;
}
.mp-shop-subnav__search input[type="search"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 13px;
    width: 200px;
    height: 36px;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit;
    line-height: 36px;
    -webkit-appearance: none;
    appearance: none;
    vertical-align: middle;
}
.mp-shop-subnav__search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}
.mp-shop-subnav__search input[type="search"]:focus {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.mp-shop-subnav__search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.mp-shop-subnav__icon {
    color: #fff !important;
    text-decoration: none !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.15s ease;
    flex-shrink: 0;
    line-height: 1;
}
.mp-shop-subnav__icon:hover {
    background: rgba(255, 255, 255, 0.15);
}
.mp-shop-subnav__icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0;
    padding: 0;
}
.mp-shop-subnav__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #00a89b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mp-shop-subnav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
}
.mp-shop-subnav__burger:hover {
    background: rgba(255, 255, 255, 0.12);
}
.mp-shop-subnav__burger span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    display: block;
}


/* ============ HERO ============ */

.mp-hero {
    background: #006fb7;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    padding: 80px 32px;
}
.mp-hero *,
.mp-hero *::before,
.mp-hero *::after {
    box-sizing: border-box;
}

.mp-hero__inner {
    max-width: 1320px;
    margin: 0 auto;
    text-align: left;
}

.mp-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    line-height: 1;
}

.mp-hero__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0 0 20px;
    max-width: 780px;
}

.mp-hero__subtitle {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 36px;
    max-width: 620px;
    font-weight: 400;
}

.mp-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mp-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.18s ease;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.mp-hero__btn--primary {
    background: #fff;
    color: #006fb7 !important;
    border-color: #fff;
}
.mp-hero__btn--primary:hover {
    background: #f3f6f9;
    color: #005590 !important;
}

.mp-hero__btn--secondary {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45);
}
.mp-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
}

.mp-hero--klein  { padding: 56px 32px; }
.mp-hero--normal { padding: 80px 32px; }
.mp-hero--gross  { padding: 120px 32px; }


/* ============ KATEGORIEN ============ */

.mp-kat {
    background: #fafbfc;
    width: 100%;
    box-sizing: border-box;
    padding: 80px 32px;
}
.mp-kat *,
.mp-kat *::before,
.mp-kat *::after {
    box-sizing: border-box;
}

.mp-kat__inner {
    max-width: 1320px;
    margin: 0 auto;
}

.mp-kat__head {
    text-align: center;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.mp-kat__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #006fb7;
    margin-bottom: 14px;
}
.mp-kat__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #1a2332;
    margin: 0 0 14px;
}
.mp-kat__subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #5b6473;
    margin: 0;
}

/* === 2x2 Grid mit höherer Spezifität gegen Theme-Konflikte === */
.mp-kat .mp-kat__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.mp-kat .mp-kat__card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecef;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
}
.mp-kat .mp-kat__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 70, 120, 0.12);
    border-color: var(--kat-color, #006fb7);
}

.mp-kat__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--kat-color, #f1f4f7);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-kat__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.mp-kat__card:hover .mp-kat__media img {
    transform: scale(1.04);
}
.mp-kat__icon.dashicons {
    font-size: 64px !important;
    width: 64px !important;
    height: 64px !important;
    line-height: 1 !important;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mp-kat__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a2332;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.mp-kat__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 3px solid var(--kat-color, #006fb7);
}
.mp-kat__name {
    font-size: 22px;
    font-weight: 500;
    color: #005590;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}
.mp-kat__desc {
    font-size: 14px;
    line-height: 1.6;
    color: #5b6473;
    margin: 0 0 18px;
    flex: 1;
}
.mp-kat__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--kat-color, #006fb7);
    align-self: flex-end;
    transition: gap 0.2s ease;
}
.mp-kat__card:hover .mp-kat__cta {
    gap: 10px;
}


/* ============ TABLET (&lt; 1100px) ============ */

@media (max-width: 1100px) {
    .mp-shop-subnav__inner {
        gap: 20px;
        padding: 0 24px;
    }
    .mp-shop-subnav__search input[type=&quot;search&quot;] {
        width: 140px;
    }
    .mp-shop-subnav__link {
        font-size: 13px;
        padding: 0 12px;
    }
    .mp-shop-subnav__link.is-active::after {
        left: 12px;
        right: 12px;
    }
    .mp-hero { padding: 64px 24px; }
    .mp-hero--klein  { padding: 48px 24px; }
    .mp-hero--gross  { padding: 96px 24px; }
    .mp-kat { padding: 64px 24px; }
    .mp-kat__head { margin-bottom: 36px; }
}


/* ============ MOBILE (&lt; 768px) ============ */

@media (max-width: 768px) {
    .mp-shop-subnav__inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 16px;
        height: auto;
    }
    .mp-shop-subnav__burger { display: flex; }
    .mp-shop-subnav__brand {
        padding-right: 0;
        border-right: none;
        margin-right: auto;
        height: 36px;
    }
    .mp-shop-subnav__brand.is-active::after { display: none; }
    .mp-shop-subnav__links {
        order: 99;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        gap: 0;
    }
    .mp-shop-subnav__links li {
        height: auto;
    }
    .mp-shop-subnav.is-open .mp-shop-subnav__links {
        max-height: 600px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 6px;
    }
    .mp-shop-subnav__link {
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        height: auto;
        justify-content: flex-start;
    }
    .mp-shop-subnav__link.is-active::after {
        display: none;
    }
    .mp-shop-subnav__link.is-active {
        background: rgba(255, 255, 255, 0.1);
    }
    .mp-shop-subnav__search { display: none; }
    .mp-shop-subnav__actions { gap: 4px; }
}


/* ============ MOBILE SMALL (&lt; 640px) ============ */

@media (max-width: 640px) {
    .mp-hero { padding: 56px 20px; }
    .mp-hero--klein  { padding: 40px 20px; }
    .mp-hero--gross  { padding: 72px 20px; }
    .mp-hero__eyebrow { margin-bottom: 14px; }
    .mp-hero__title { margin-bottom: 16px; }
    .mp-hero__subtitle { margin-bottom: 28px; }
    .mp-hero__btn { padding: 12px 22px; font-size: 13px; flex: 1; min-width: 140px; }

    .mp-kat { padding: 56px 20px; }
    .mp-kat .mp-kat__grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .mp-kat__body { padding: 20px 22px 22px; }
    .mp-kat__name { font-size: 20px; }
    .mp-kat__icon.dashicons {
        font-size: 52px !important;
        width: 52px !important;
        height: 52px !important;
    }
}