/* Shop – Warenkorb-Sidepanel */
.ff-shop-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100500;
    pointer-events: none;
}

.ff-shop-cart-drawer.is-open {
    pointer-events: auto;
}

.ff-shop-cart-drawer__backdrop {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
    touch-action: none;
    overscroll-behavior: none;
}

.ff-shop-cart-drawer.is-open .ff-shop-cart-drawer__backdrop {
    opacity: 1;
}

.ff-shop-cart-drawer__panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(528px, 100vw);
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    overflow: hidden;
    outline: none;
    z-index: 1;
}

.ff-shop-cart-drawer.is-open .ff-shop-cart-drawer__panel {
    transform: translateX(0);
}

body.ff-shop-cart-open {
    overflow: hidden;
    overscroll-behavior: none;
}

html.ff-shop-shell {
    scrollbar-gutter: stable;
}

html.ff-shop-cart-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.ff-shop-cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-height: 56px;
    padding: 20px 24px 16px;
    box-sizing: border-box;
}

.ff-shop-cart-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.ff-shop-cart-drawer__close svg {
    display: block;
    width: 16px;
    height: 16px;
}

.ff-shop-cart-drawer__divider {
    flex: 0 0 auto;
    width: 100%;
    height: 0;
    border-top: 1px solid #d9d9d9;
}

.ff-shop-cart-drawer__items {
    flex: 0 0 auto;
    min-height: 0;
    max-height: calc(100dvh - 360px);
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
}

.ff-shop-cart-drawer__empty {
    margin: 0;
    padding: 24px 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    color: #4a4a4a;
    text-align: center;
}

.ff-shop-cart-drawer__item {
    margin: 0;
    padding: 0;
}

.ff-shop-cart-drawer__item + .ff-shop-cart-drawer__item {
    margin-top: 24px;
}

.ff-shop-cart-drawer__item-inner {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.ff-shop-cart-drawer__media {
    flex: 0 0 auto;
    width: 149px;
    height: 213px;
}

.ff-shop-cart-drawer__img {
    display: block;
    width: 149px;
    height: 213px;
    object-fit: contain;
    object-position: center center;
}

.ff-shop-cart-drawer__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 213px;
}

.ff-shop-cart-drawer__meta-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.ff-shop-shell .ff-shop-cart-drawer__brand {
    margin: 0;
    padding: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0;
    color: #4a4a4a;
}

body.ff-shop-shell .ff-shop-cart-drawer__title {
    margin: 0;
    padding: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    color: #000;
}

.ff-shop-cart-drawer__row-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
}

body.ff-shop-shell .ff-shop-cart-drawer__price {
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0;
    color: #000;
}

.ff-shop-cart-drawer__qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 57px;
    height: 30px;
    padding: 5px 11px;
    box-sizing: border-box;
    border: 0;
    border-radius: 21px;
    background: #000;
    color: #fff;
    flex: 0 0 auto;
}

.ff-shop-cart-drawer__qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6px;
    min-width: 6px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.ff-shop-cart-drawer__qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5px;
    height: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1;
    color: #fff;
}

.ff-shop-cart-drawer__remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    line-height: 0;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.ff-shop-cart-drawer__remove-btn svg {
    display: block;
    width: 19px;
    height: 20px;
}

.ff-shop-cart-drawer__subtotal {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 12px 24px 8px;
    box-sizing: border-box;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    color: #000;
    text-align: right;
}

.ff-shop-cart-drawer__nav {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    margin: 0 0 32px;
    box-sizing: border-box;
}

.ff-shop-cart-drawer__checkout {
    flex: 0 0 auto;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 24px 48px;
    box-sizing: border-box;
}

body.ff-shop-shell .ff-shop-cart-drawer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    padding: 7px 20px;
    border-radius: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 26px;
    letter-spacing: 0.005em;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ff-shop-cart-drawer__btn--outline {
    border: 1px solid #000;
    background: #fff;
    color: #000;
}

.ff-shop-cart-drawer__btn--shop {
    flex: 0 0 174px;
    width: 174px;
    max-width: 174px;
    min-width: 174px;
}

.ff-shop-cart-drawer__btn--cart-view {
    flex: 0 0 214px;
    width: 214px;
    max-width: 214px;
    min-width: 214px;
}

.ff-shop-cart-drawer__btn--checkout {
    flex: 0 0 auto;
    width: 201px;
    height: 40px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
}

body.ff-shop-shell .ff-shop-cart-drawer__btn--outline:hover,
body.ff-shop-shell .ff-shop-cart-drawer__btn--outline:focus-visible {
    opacity: 0.9;
    color: #000;
    text-decoration: none;
}

body.ff-shop-shell .ff-shop-cart-drawer__btn--checkout:hover,
body.ff-shop-shell .ff-shop-cart-drawer__btn--checkout:focus-visible {
    opacity: 0.9;
    color: #fff;
    background: #000;
    text-decoration: none;
}

.ff-shop-cart-drawer__express {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.ff-shop-cart-drawer__express-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 198px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

/* GP/Theme: button:hover setzt oft schwarzen Kasten → neutralisieren */
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__close,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__close:hover,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__close:focus,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__close:focus-visible,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__close:active {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    color: #000 !important;
    opacity: 1 !important;
}

html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__qty-btn,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__qty-btn:hover,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__qty-btn:focus,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__qty-btn:focus-visible,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__qty-btn:active {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    color: #fff !important;
    opacity: 1 !important;
}

html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__remove-btn,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__remove-btn:hover,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__remove-btn:focus,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__remove-btn:focus-visible,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__remove-btn:active {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    color: #000 !important;
    opacity: 1 !important;
}

html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__express-btn,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__express-btn:hover,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__express-btn:focus,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__express-btn:focus-visible,
html body.ff-shop-shell .ff-shop-cart-drawer button.ff-shop-cart-drawer__express-btn:active {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    opacity: 1 !important;
}

.ff-shop-cart-drawer__close::-moz-focus-inner,
.ff-shop-cart-drawer__qty-btn::-moz-focus-inner,
.ff-shop-cart-drawer__remove-btn::-moz-focus-inner,
.ff-shop-cart-drawer__express-btn::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.ff-shop-cart-drawer__panel:focus,
.ff-shop-cart-drawer__panel:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.ff-shop-cart-drawer button,
body.ff-shop-shell .ff-shop-cart-drawer a.ff-shop-cart-drawer__btn {
    -webkit-tap-highlight-color: transparent;
}

.ff-shop-cart-drawer__express-btn img {
    display: block;
    width: 198px;
    height: 42px;
    object-fit: cover;
}

@media (max-width: 560px) {
    .ff-shop-cart-drawer__panel {
        width: 100vw;
    }

    .ff-shop-cart-drawer__items {
        max-height: calc(100dvh - 340px);
    }

    .ff-shop-cart-drawer__express {
        flex-direction: column;
    }

    .ff-shop-cart-drawer__item-inner {
        gap: 16px;
    }

    .ff-shop-cart-drawer__media,
    .ff-shop-cart-drawer__img {
        width: 110px;
        height: auto;
        max-height: 160px;
    }

    .ff-shop-cart-drawer__content {
        min-height: 160px;
    }
}
