/* Shop-Bereich (WooCommerce) – Content-Layout */

body.ff-shop-shell .ff-content-wrap {
    background: #000;
}

body.ff-shop-shell #main.site-main {
    display: block !important;
    width: 100% !important;
    max-width: min(1000px, calc(100% - 2 * var(--ff-layout-gutter))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 max(16px, var(--ff-layout-gutter)) 0 !important;
    box-sizing: border-box !important;
}

body.ff-shop-shell #main.site-main > article {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
}

body.ff-shop-shell #main.site-main > article .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

body.ff-shop-main-page .inside-article > .entry-header,
body.ff-shop-main-page .entry-header .entry-title,
body.ff-shop-main-page h1.entry-title:not(.screen-reader-text),
body.woocommerce-shop .page-header,
body.woocommerce-shop .rank-math-breadcrumb,
body.woocommerce-shop .yoast-breadcrumb,
body.woocommerce-shop nav.woocommerce-breadcrumb {
    display: none !important;
}

body.ff-shop-main-page .woocommerce-products-header,
body.ff-shop-main-page .woocommerce-no-products-found,
body.ff-shop-main-page .woocommerce-result-count,
body.ff-shop-main-page .term-description {
    display: none !important;
}

body.ff-shop-main-page .site-main,
body.ff-shop-main-page .inside-article,
body.ff-shop-main-page .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}

body.ff-shop-main-page #ff-shop-primary.ff-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
}

body.ff-shop-main-page .ff-shop-wrap {
    max-width: min(1000px, calc(100% - 2 * var(--ff-layout-gutter)));
    width: 100%;
    margin-inline: auto;
    padding: 0 0 48px;
    box-sizing: border-box;
}

/* ── Shop-Hero (Startseite, 715px) ── */
.ff-shop-hero {
    position: relative;
    width: 100%;
    height: 715px;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.ff-shop-hero__bg {
    position: absolute;
    inset: 0;
    background-color: #000;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ff-shop-hero__overlay {
    display: none;
}

.ff-shop-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: center;
    justify-content: center;
    gap: 100px;
    height: 100%;
    max-width: min(var(--ff-layout-max, 1000px), calc(100% - 2 * var(--ff-layout-gutter, 20px)));
    margin: 0 auto;
    padding: 0 max(16px, var(--ff-layout-gutter, 20px));
    box-sizing: border-box;
}

.ff-shop-hero__content {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ff-shop-hero__issue {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 0 0 20px;
}

.ff-shop-hero__issue-no {
    flex: 0 0 auto;
    display: inline-block;
    margin: 0 0 0 -1px;
    padding: 0 0 2px;
    align-self: flex-start;
    transform: translateY(-6px);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
    font-variant: small-caps;
    text-decoration: none;
    color: #fff;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: -1px 100%;
}

.ff-shop-hero__issue-num {
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    align-items: flex-end;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 55px;
    line-height: 1;
    letter-spacing: 0;
}

.ff-shop-hero__price {
    margin: 0 0 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

.ff-shop-hero__tax {
    margin: 0 0 32px;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

.ff-shop-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.ff-shop-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 30px;
    padding: 5px 11px;
    border: none;
    border-radius: 21px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.005em;
    text-decoration: none !important;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.ff-shop-hero__btn--view {
    min-width: 73px;
    background: #2b2b2bcc;
    color: #fff !important;
}

.ff-shop-hero__btn--cart {
    min-width: 139px;
    background: #ffffffe5;
    color: #000 !important;
}

.ff-shop-hero__btn:hover,
.ff-shop-hero__btn:focus {
    opacity: 0.88;
    text-decoration: none !important;
}

.ff-shop-hero__media {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-shop-hero__cover {
    display: block;
    width: 268px;
    height: 374px;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 782px) {
    .ff-shop-hero {
        height: auto;
        min-height: 0;
        padding: 32px 0 40px;
    }

    .ff-shop-hero__inner {
        flex-direction: column;
        height: auto;
        gap: 100px;
    }

    .ff-shop-hero__media {
        order: -1;
    }

    .ff-shop-hero__issue-no {
        font-size: clamp(28px, 8vw, 40px);
    }

    .ff-shop-hero__issue-num {
        font-size: clamp(36px, 10vw, 55px);
        width: auto;
        height: auto;
    }

    .ff-shop-hero__price {
        font-size: clamp(28px, 8vw, 40px);
    }

    .ff-shop-hero__tax {
        font-size: clamp(18px, 5vw, 25px);
    }
}

.ff-shop-archive,
.ff-shop-single {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    background: #000;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.ff-shop-wrap {
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    width: 100%;
    margin: 0 auto;
    padding: 24px 0 48px;
    box-sizing: border-box;
}

.ff-shop-archive-header {
    margin-bottom: 28px;
}

.ff-shop-archive-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #fff;
}

.ff-shop-archive .woocommerce-result-count,
.ff-shop-archive .woocommerce-ordering {
    margin-bottom: 20px;
    color: #fff;
}

.ff-shop-archive ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 32px);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    clear: both;
}

.ff-shop-archive ul.products::before,
.ff-shop-archive ul.products::after {
    display: none;
}

.ff-shop-archive ul.products li.product {
    margin: 0;
    width: 100%;
    max-width: none;
    float: none;
}

@media (max-width: 782px) {
    .ff-shop-wrap {
        padding-left: max(12px, env(safe-area-inset-left, 0));
        padding-right: max(12px, env(safe-area-inset-right, 0));
    }

    body.ff-shop-main-page .ff-shop-wrap {
        padding-left: max(12px, env(safe-area-inset-left, 0));
        padding-right: max(12px, env(safe-area-inset-right, 0));
    }

    .ff-shop-archive ul.products {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 783px) and (max-width: 1024px) {
    .ff-shop-archive ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}
