/* DGM Commerce V2 – Shop-Hauptseite V1.0.9
   Alle Markenfarben und Schriften aus dgm-design-system.css.
   Individuelle Pastellflächen kommen aus WooCommerce/ACF.
   Keine globale Typografie, keine Eingriffe in andere Archive. */
.dgm-shop-page,
.dgm-shop-page .elementor-widget-shortcode,
.dgm-shop-page .elementor-widget-shortcode .elementor-widget-container,
.dgm-shop-page .dgm-shop-breadcrumb {
    min-width: 0;
    width: 100%;
}
.dgm-shop-page .dgm-shop-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    color: var(--dgm-color-text-light);
    font-family: var(--dgm-type-body-s-family), sans-serif;
    font-size: var(--dgm-type-body-s-size);
    font-weight: var(--dgm-type-body-s-weight);
    line-height: var(--dgm-type-body-s-line-height);
    letter-spacing: 0;
}
.dgm-shop-page .dgm-shop-breadcrumb .woocommerce-breadcrumb a {
    color: var(--dgm-color-primary-dark);
}
.dgm-shop-page .dgm-shop-breadcrumb a:focus-visible,
.dgm-shop-hero a:focus-visible,
.dgm-shop-category:focus-visible {
    outline: 2px solid var(--dgm-color-text-strong);
    outline-offset: 2px;
}

/* 01 – Hero: one image layer and live HTML text on every device. */
.dgm-shop-hero,
.dgm-shop-hero *,
.dgm-shop-categories,
.dgm-shop-categories * { box-sizing: border-box; }
.dgm-shop-hero {
    --dgm-shop-hero-background: var(--dgm-color-bg-gray);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 250px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--dgm-shop-hero-background);
    color: var(--dgm-color-text-strong);
    font-family: var(--dgm-type-body-m-family), sans-serif;
    letter-spacing: 0;
}
/* Gemeinsame Hero-Bildlogik fuer Shop und alle regulaeren Kategorieebenen.
   Das Motiv behaelt seine Proportionen und die volle Hero-Hoehe. Ein zu
   breites Panorama wird links beschnitten, niemals in der Hoehe verkleinert.
   Die Maske mildert nur die linke Bildkante (keine vertikale Maske). */
.dgm-shop-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.dgm-shop-hero__media .dgm-shop-hero__image {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%);
    mask-image: linear-gradient(90deg, transparent, #000 12%);
}
/* Farbdeckung bis 40%, dann kontinuierlicher Verlauf bis 75%. */
.dgm-shop-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dgm-shop-hero-background) 0%, var(--dgm-shop-hero-background) 40%, transparent 75%);
}
.dgm-shop-hero__content {
    width: min(100%, 1050px);
    min-width: 0;
    padding: 20px clamp(24px, 2.7vw, 42px);
    overflow-wrap: anywhere;
}
.dgm-shop-hero.has-image .dgm-shop-hero__content { width: 65%; }
/* Header und Hero wechseln gemeinsam bei 1024px in den Hintergrundmodus. */
@media (max-width: 1024px) {
    .dgm-shop-hero.has-image .dgm-shop-hero__content { width: 100%; }
    .dgm-shop-hero__media { opacity: .27; }
    .dgm-shop-hero.mobile-image-soft .dgm-shop-hero__media { opacity: .18; }
    .dgm-shop-hero__media::after {
        background: linear-gradient(90deg, var(--dgm-shop-hero-background) 0%, var(--dgm-shop-hero-background) 40%, transparent 100%);
    }
}
.dgm-shop-hero__accent {
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 8px;
    border-radius: 2px;
    background: var(--dgm-color-primary);
}
.dgm-shop-hero .dgm-shop-hero__title {
    margin: 0 0 6px;
    color: var(--dgm-color-text-strong);
    font-family: var(--dgm-type-h1-hero-family), sans-serif;
    font-size: min(var(--dgm-type-h1-hero-size), 2.65rem);
    font-weight: var(--dgm-type-h1-hero-weight);
    line-height: var(--dgm-type-h1-hero-line-height);
    letter-spacing: var(--dgm-type-h1-hero-letter-spacing);
    word-spacing: var(--dgm-type-h1-hero-word-spacing);
    text-wrap: initial;
    overflow-wrap: anywhere;
}
/* Vorüberschrift wie auf der Startseite: senkrechter Markenakzent und
   globale Label-Typografie. Ohne Vorüberschrift bleibt der Einzelakzent. */
.dgm-shop-hero__content:has(> .dgm-shop-hero__eyebrow) > .dgm-shop-hero__accent {
    display: none;
}
.dgm-shop-hero .dgm-shop-hero__eyebrow {
    position: relative;
    display: block;
    margin: 0 0 7px;
    padding-left: 17px;
    color: var(--dgm-color-primary);
    font-family: var(--dgm-type-label-family), sans-serif;
    font-size: var(--dgm-type-label-size);
    font-weight: var(--dgm-type-label-weight);
    line-height: var(--dgm-type-label-line-height);
    letter-spacing: var(--dgm-type-label-letter-spacing);
    word-spacing: var(--dgm-type-label-word-spacing);
    text-transform: var(--dgm-type-label-transform);
    overflow-wrap: anywhere;
}
.dgm-shop-hero .dgm-shop-hero__eyebrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 15px;
    border-radius: 99px;
    background: var(--dgm-color-primary);
    transform: translateY(-50%);
}
.dgm-shop-hero .dgm-shop-hero__subtitle {
    margin: 0 0 6px;
    color: var(--dgm-color-text-strong);
    font-family: var(--dgm-type-card-title-family), sans-serif;
    font-size: var(--dgm-type-card-title-size);
    font-weight: var(--dgm-type-card-title-weight);
    line-height: var(--dgm-type-card-title-line-height);
    overflow-wrap: anywhere;
}
.dgm-shop-hero .dgm-shop-hero__description {
    max-width: 84ch;
    margin: 0 0 10px;
    color: var(--dgm-color-text);
    font-family: var(--dgm-type-body-m-family), sans-serif;
    font-size: var(--dgm-type-body-m-size);
    font-weight: var(--dgm-type-body-m-weight);
    line-height: var(--dgm-type-body-m-line-height);
    letter-spacing: 0;
    word-spacing: normal;
}
.dgm-shop-hero .dgm-shop-hero__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    color: var(--dgm-color-text-strong);
    font-family: var(--dgm-type-icon-text-family), sans-serif;
    font-size: min(var(--dgm-type-icon-text-size), .875rem);
    font-weight: var(--dgm-type-icon-text-weight);
    line-height: var(--dgm-type-icon-text-line-height);
    letter-spacing: 0;
}
/* Ruhige, kompakte Vorteils-Chips; keine zusätzlichen Bedienflächen. */
.dgm-shop-hero__benefits li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    padding: 4px 10px 4px 7px;
    border: 1px solid var(--dgm-color-border-light);
    border-radius: 6px;
    background: var(--dgm-color-bg-white);
}
.dgm-shop-hero__benefits li span { min-width: 0; overflow-wrap: anywhere; }
.dgm-shop-hero__benefits svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--dgm-color-primary-dark);
    background: var(--dgm-color-primary-light);
    border-radius: 50%;
    padding: 3px;
}
.dgm-shop-hero .dgm-shop-hero__advice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--dgm-color-primary);
    border-radius: 7px;
    background: var(--dgm-color-primary);
    color: var(--dgm-color-text-strong);
    text-decoration: none;
    font-family: var(--dgm-type-button-small-family), sans-serif;
    font-size: var(--dgm-type-button-small-size);
    font-weight: var(--dgm-type-button-small-weight);
    line-height: 1.3;
    letter-spacing: 0;
    transition: box-shadow 150ms ease;
}
.dgm-shop-hero__advice svg { width: 18px; height: 18px; flex: 0 0 18px; }
.dgm-shop-hero .dgm-shop-hero__advice:hover { color: var(--dgm-color-text-strong); box-shadow: inset 0 0 0 2px var(--dgm-color-text-strong); }

/* 02 – One-row category navigation; native horizontal scrolling without JS.
   JS measures the real Boxed container and fits complete readable cards. */
.dgm-shop-categories {
    --dgm-shop-category-min-width: 213px;
    --dgm-shop-category-max-width: 281px;
    --dgm-shop-carousel-control-width: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 24px 0 0;
}
.dgm-shop-categories.has-overflow {
    grid-template-columns: var(--dgm-shop-carousel-control-width) minmax(0, 1fr) var(--dgm-shop-carousel-control-width);
}
.dgm-shop-categories .dgm-shop-categories__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--dgm-shop-category-width, var(--dgm-shop-category-min-width));
    grid-template-rows: auto;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}
.dgm-shop-categories.is-ready .dgm-shop-categories__grid { scrollbar-width: none; }
.dgm-shop-categories.is-ready .dgm-shop-categories__grid::-webkit-scrollbar { display: none; }
.dgm-shop-categories .dgm-shop-categories__item {
    min-width: 0;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
}
.dgm-shop-categories .dgm-shop-categories__control[hidden] { display: none !important; }
.dgm-shop-categories .dgm-shop-categories__control {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--dgm-color-border-light);
    border-radius: 8px;
    background: var(--dgm-color-bg-white);
    color: var(--dgm-color-text-strong);
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
}
.dgm-shop-categories__control svg { width: 20px; height: 20px; flex: 0 0 20px; pointer-events: none; }
.dgm-shop-categories .dgm-shop-categories__control:not([aria-disabled="true"]):hover {
    border-color: var(--dgm-color-primary);
    background: var(--dgm-color-primary);
    color: var(--dgm-color-text-strong);
}
.dgm-shop-categories .dgm-shop-categories__control[aria-disabled="true"] {
    opacity: .45;
    cursor: default;
}
.dgm-shop-categories .dgm-shop-categories__control:focus-visible {
    outline: 2px solid var(--dgm-color-text-strong);
    outline-offset: -3px;
}
.dgm-shop-categories .dgm-shop-category:focus-visible { outline-offset: -3px; }
.dgm-shop-categories .dgm-shop-category {
    --dgm-shop-category-background: var(--dgm-color-bg-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    height: 100%;
    min-height: 194px;
    padding: 15px 7px 19px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--dgm-shop-category-background);
    color: var(--dgm-color-text-strong);
    text-decoration: none;
    font-family: var(--dgm-type-card-title-s-family), sans-serif;
    letter-spacing: 0;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.dgm-shop-category__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 113px;
    width: 113px;
    height: 113px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--dgm-color-bg-white);
    color: var(--dgm-color-text-strong);
}
.dgm-shop-category__visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dgm-shop-category__visual svg { width: 56px; height: 56px; }
.dgm-shop-category__name {
    min-width: 0;
    font-size: min(var(--dgm-type-body-s-size), 0.8125rem);
    font-weight: var(--dgm-type-card-title-s-weight);
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.dgm-shop-categories .dgm-shop-category:hover { border-color: var(--dgm-color-primary); color: var(--dgm-color-text-strong); box-shadow: 0 3px 10px rgb(0 0 0 / 6%); }

/* 03 – Existing catalog stays intact, no second boxed width inside Elementor. */
.dgm-shop-page .dgm-archive-catalog {
    width: 100%;
    max-width: none;
    margin: 32px 0 0;
    padding-bottom: 32px;
}
.dgm-shop-page .dgm-archive-catalog__count {
    font-family: var(--dgm-type-h2-section-family), sans-serif;
    font-size: var(--dgm-type-h2-section-size);
    font-weight: var(--dgm-type-h2-section-weight);
    line-height: var(--dgm-type-h2-section-line-height);
    letter-spacing: var(--dgm-type-h2-section-letter-spacing);
}

/* 04 – Tablet & small desktop. Hero only. */
@media (min-width: 768px) and (max-width: 1366px) {
    .dgm-shop-categories { margin-top: 20px; }
    .dgm-shop-page .dgm-archive-catalog { margin-top: 24px; }
    .dgm-shop-hero { min-height: 230px; }
    .dgm-shop-hero .dgm-shop-hero__title { font-size: min(var(--dgm-type-h1-hero-size), 2.25rem); }
}

/* 05 – Mobile: image stays behind text, never becomes a separate block. */
@media (max-width: 767px) {
    .dgm-shop-hero { min-height: 0; border-radius: 10px; }
    .dgm-shop-hero.has-image .dgm-shop-hero__content,
    .dgm-shop-hero__content { width: 100%; padding: 14px 16px; }
    .dgm-shop-hero__accent { width: 28px; margin-bottom: 8px; }
    .dgm-shop-hero .dgm-shop-hero__title {
        font-size: min(var(--dgm-type-h1-hero-size), 1.55rem);
        line-height: 1.13;
        margin-bottom: 6px;
        text-wrap: initial;
    }
    .dgm-shop-hero .dgm-shop-hero__description {
        font-size: min(var(--dgm-type-body-s-size), 0.875rem);
        line-height: 1.4;
        margin-bottom: 10px;
    }
    /* The three repeated selling points are intentionally omitted on phones. */
    .dgm-shop-hero .dgm-shop-hero__benefits { display: none; }
    .dgm-shop-hero .dgm-shop-hero__advice { min-height: 44px; padding: 8px 12px; }
    .dgm-shop-hero .dgm-shop-hero__eyebrow { margin-bottom: 6px; }
    .dgm-shop-hero .dgm-shop-hero__subtitle { margin-bottom: 6px; font-size: min(var(--dgm-type-card-title-size), 1rem); }
    .dgm-shop-page .dgm-archive-catalog { margin-top: 20px; }
    /* Compact but readable vertical cards; always one horizontal row. */
    .dgm-shop-categories {
        margin-top: 16px;
        --dgm-shop-category-min-width: 166px;
        --dgm-shop-carousel-control-width: 30px;
        column-gap: 4px;
    }
    .dgm-shop-categories .dgm-shop-categories__grid { gap: 12px; }
    .dgm-shop-categories .dgm-shop-category {
        min-height: 181px;
        padding: 12px 6px;
        gap: 10px;
        border-radius: 8px;
    }
    .dgm-shop-category__visual { flex-basis: 81px; width: 81px; height: 81px; }
    .dgm-shop-category__visual svg { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .dgm-shop-category, .dgm-shop-hero__advice { transition: none; }
}

/* V1.0.8 – Shop-Hero spacing (same as category V1.0.3), using the actual visible content blocks.
   Flex prevents collapsing margins and leaves optional fields without blank rows. */
.dgm-shop-hero:not(.dgm-category-hero) .dgm-shop-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: clamp(12px, 1.35vw, 21px);
}
.dgm-shop-hero:not(.dgm-category-hero) .dgm-shop-hero__content > :is(.dgm-shop-hero__title, .dgm-shop-hero__subtitle, .dgm-shop-hero__description, .dgm-shop-hero__benefits) {
    margin: 0;
    min-width: 0;
    max-width: 100%;
}
.dgm-shop-hero:not(.dgm-category-hero) .dgm-shop-hero__content > .dgm-shop-hero__description {
    max-width: min(100%, 84ch);
}
.dgm-shop-hero:not(.dgm-category-hero) .dgm-shop-hero__title + .dgm-shop-hero__subtitle {
    margin-top: 24px;
}
.dgm-shop-hero:not(.dgm-category-hero) :is(.dgm-shop-hero__title, .dgm-shop-hero__subtitle) + .dgm-shop-hero__description {
    margin-top: 6px;
}
.dgm-shop-hero:not(.dgm-category-hero) :is(.dgm-shop-hero__title, .dgm-shop-hero__subtitle, .dgm-shop-hero__description) + .dgm-shop-hero__benefits {
    margin-top: 32px;
}
.dgm-shop-hero:not(.dgm-category-hero) .dgm-shop-hero__benefits + .dgm-shop-hero__advice {
    margin-top: 32px;
}
/* No benefits (off/empty): maintain a compact transition to the CTA. */
.dgm-shop-hero:not(.dgm-category-hero) :is(.dgm-shop-hero__title, .dgm-shop-hero__subtitle, .dgm-shop-hero__description) + .dgm-shop-hero__advice {
    margin-top: 12px;
}
@media (max-width: 767px) {
    .dgm-shop-hero:not(.dgm-category-hero) .dgm-shop-hero__content { padding-left: 16px; }
    /* Benefits are still hidden on phones. Do not reserve their desktop spacing. */
    .dgm-shop-hero:not(.dgm-category-hero) .dgm-shop-hero__benefits + .dgm-shop-hero__advice { margin-top: 12px; }
}
