/* ============================================
   fixfind Shop-Widget – zentrale Version (https://shop.fixfind.at/widget/shop-widget.css)
   Standardfarben (hell). Eigene Werte in :root der Website gehen immer vor (:where hat keine Spezifität).
   Dunkles Design: <div class="ff-theme-dark"> um den Shop oder data-theme="dark" am <html>.
   ============================================ */
:where(:root) {
    --mk-bg: #ffffff;
    --mk-bg-card: #ffffff;
    --mk-bg-elevated: #f6f7f9;
    --mk-bg-input: #ffffff;
    --mk-border: #e3e6ea;
    --mk-border-light: #eef0f3;
    --mk-text: #1d2330;
    --mk-text-secondary: #4a5263;
    --mk-text-muted: #6b7385;
    --mk-accent: #2563eb;
    --mk-accent-hover: #1d4ed8;
    --mk-accent-glow: rgba(37, 99, 235, 0.25);
    --mk-on-accent: #ffffff;
    --mk-radius: 10px;
    --mk-radius-lg: 16px;
    --mk-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:where(.ff-theme-dark, [data-theme="dark"]) {
    --mk-bg: #0a0a0a;
    --mk-bg-card: #111111;
    --mk-bg-elevated: #1a1a1a;
    --mk-bg-input: #151515;
    --mk-border: #222222;
    --mk-border-light: #2a2a2a;
    --mk-text: #f0f0f0;
    --mk-text-secondary: #999999;
    --mk-text-muted: #777777;
    --mk-accent: #dc2626;
    --mk-accent-hover: #b91c1c;
    --mk-accent-glow: rgba(220, 38, 38, 0.3);
}

/* ============================================
   SHOP WIDGET - DARK THEME STYLES (MAJESTICKOI SKIN)
   Headless E-Commerce Integration (ff- Namespace)
   ============================================ */

/* ===== SEARCH & FILTERS ===== */
.ff-shop-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ff-search-bar {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.ff-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mk-text-muted);
    pointer-events: none;
}

.ff-search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: var(--mk-bg-input);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    color: var(--mk-text);
    font-size: 0.95rem;
    font-family: var(--mk-font);
    transition: border-color 0.3s;
}

.ff-search-input:focus {
    outline: none;
    border-color: var(--mk-accent);
    box-shadow: 0 0 0 3px var(--mk-accent-glow);
}

.ff-search-input::placeholder {
    color: var(--mk-text-muted);
}

.ff-select {
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    background: var(--mk-bg-input);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    color: var(--mk-text);
    font-size: 0.9rem;
    font-family: var(--mk-font);
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
}

.ff-select:focus {
    outline: none;
    border-color: var(--mk-accent);
}

/* ===== CATEGORY TABS ===== */
.ff-category-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.ff-cat-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid var(--mk-border);
    background: transparent;
    color: var(--mk-text-secondary);
}

.ff-cat-tab:hover {
    border-color: var(--mk-text-secondary);
    color: var(--mk-text);
}

.ff-cat-tab--active {
    background: var(--mk-accent);
    border-color: var(--mk-accent);
    color: var(--mk-on-accent);
}

/* ===== PRODUCT GRID ===== */
.ff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    min-height: 300px;
}

.ff-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--mk-text-muted);
}

/* ===== PRODUCT CARD ===== */
.ff-card {
    background: var(--mk-bg-card);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.ff-card:hover {
    transform: translateY(-4px);
    border-color: var(--mk-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--mk-accent-glow);
}

.ff-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--mk-bg);
}

.ff-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ff-card:hover .ff-card-img img {
    transform: scale(1.06);
}

.ff-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
    background: var(--mk-bg-elevated);
}

.ff-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--mk-accent);
    color: var(--mk-on-accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
}

.ff-sold-out {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mk-text-muted);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ff-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ff-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mk-accent);
    margin-bottom: 0.4rem;
}

.ff-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.ff-card-desc {
    font-size: 0.82rem;
    color: var(--mk-text-muted);
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.ff-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 0.8rem;
    border-top: 1px solid var(--mk-border);
}

.ff-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mk-text);
}

.ff-price-info {
    font-size: 0.7rem;
    color: var(--mk-text-muted);
    display: block;
}

.ff-btn {
    background: var(--mk-accent);
    color: var(--mk-on-accent);
    border: none;
    border-radius: var(--mk-radius);
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ff-btn:hover {
    background: var(--mk-accent-hover);
    transform: scale(1.05);
}

.ff-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* ===== PAGINATION ===== */
.ff-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.ff-page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    background: transparent;
    color: var(--mk-text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.ff-page-btn:hover {
    border-color: var(--mk-text-secondary);
    color: var(--mk-text);
}

.ff-page-btn--active {
    background: var(--mk-accent);
    border-color: var(--mk-accent);
    color: var(--mk-on-accent);
}

/* ===== CART SIDEBAR ===== */
.ff-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.ff-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ff-cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: var(--mk-bg-card);
    border-left: 1px solid var(--mk-border);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    /* zu: um die eigene Breite nach rechts verschoben (auch bei width: 100 % am Handy ganz unsichtbar) */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.ff-cart-sidebar.open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ff-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--mk-border);
}

.ff-cart-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.ff-cart-close {
    background: none;
    border: none;
    color: var(--mk-text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
}

.ff-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.ff-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mk-border);
}

.ff-cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--mk-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--mk-bg-elevated);
}

.ff-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ff-cart-item-info {
    flex: 1;
    min-width: 0;
}

.ff-cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-cart-item-price {
    font-size: 0.85rem;
    color: var(--mk-text-secondary);
    margin-top: 2px;
}

.ff-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.ff-cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid var(--mk-border);
    background: var(--mk-bg-input);
    color: var(--mk-text);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-cart-item-qty button:hover {
    border-color: var(--mk-accent);
}

.ff-cart-item-qty span {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.ff-cart-item-remove {
    background: none;
    border: none;
    color: var(--mk-text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    align-self: flex-start;
}

.ff-cart-item-remove:hover {
    color: var(--mk-accent);
}

.ff-cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--mk-border);
    background: var(--mk-bg-elevated);
}

.ff-cart-totals {
    margin-bottom: 1rem;
}

.ff-cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--mk-text-secondary);
}

.ff-cart-total-row--grand {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mk-text);
    border-top: 1px solid var(--mk-border);
    padding-top: 8px;
    margin-top: 8px;
}

.ff-cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--mk-text-muted);
}

.ff-cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== PRODUCT MODAL =====
   Laptop: Fenster passt immer auf den Bildschirm (höchstens 760 px), Bild bleibt stehen, nur die Textspalte scrollt.
   Handy (bis 768 px): Blatt von unten, Warenkorb-Knopf bleibt unten sichtbar. */
.ff-modal {
    --ff-modal-h: min(calc(100vh - 4rem), 760px);
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
@supports (height: 100dvh) {
    .ff-modal { --ff-modal-h: min(calc(100dvh - 4rem), 760px); }
}

.ff-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    animation: ffFade 0.2s ease;
}

.ff-modal-content {
    position: relative;
    background: var(--mk-bg-card);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg);
    max-width: 980px;
    width: 100%;
    max-height: var(--ff-modal-h);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: ffPop 0.22s ease;
}

@keyframes ffFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ffPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes ffSheet { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }

.ff-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: var(--mk-bg-elevated);
    border: 1px solid var(--mk-border);
    color: var(--mk-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    z-index: 10;
    transition: border-color 0.2s, transform 0.2s;
}
.ff-modal-close:hover { border-color: var(--mk-accent); transform: rotate(90deg); }

/* Modal inner layout */
.ff-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.75rem;
    align-items: start;
}

.ff-modal-info {
    max-height: calc(var(--ff-modal-h) - 3.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.25rem 0.5rem 0.25rem 0;
    scrollbar-width: thin;
}

.ff-modal-title {
    margin: 0 2.5rem 0.5rem 0;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    line-height: 1.25;
}

.ff-modal-price {
    font-size: 1.7rem;
    margin-bottom: 0.25rem;
}

.ff-modal-tax {
    color: var(--mk-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.ff-modal-buy { margin: 0 0 1.5rem; }

.ff-modal-desc {
    color: var(--mk-text-secondary);
    line-height: 1.65;
    border-top: 1px solid var(--mk-border);
    padding-top: 1.25rem;
}
.ff-modal-desc p { margin: 0 0 0.8rem; }
.ff-modal-desc p:last-child { margin-bottom: 0; }

.ff-modal-cart-btn {
    padding: 0.95rem 2rem;
    font-size: 1rem;
    width: 100%;
}

/* ===== GALLERY ===== */
.ff-gallery-container {
    position: relative;
    user-select: none;
}

.ff-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    /* Fensterhöhe minus Innenabstand minus Vorschaubilder: so passt das Fenster auch auf einen Laptop */
    max-height: calc(var(--ff-modal-h, 80vh) - 3.5rem - 76px);
    background: var(--mk-bg);
    border-radius: var(--mk-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-gallery-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.ff-gallery-slide:active {
    cursor: grabbing;
}

.ff-gallery-slide-video { background: #000; cursor: default; }
.ff-gallery-slide-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
/* YouTube Shorts (Handy-Video im Hochformat) */
.ff-gallery-slide-video--vertical iframe {
    width: auto;
    max-width: 100%;
    aspect-ratio: 9/16;
}

.ff-gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ff-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
}

.ff-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.85);
}

.ff-gallery-prev {
    left: 8px;
}

.ff-gallery-next {
    right: 8px;
}

.ff-gallery-counter {
    /* oben links im Bild (unten wäre bei Vorschaubildern mitten in deren Leiste) */
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    z-index: 5;
}

.ff-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.ff-gallery-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--mk-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.ff-gallery-thumb:hover,
.ff-gallery-thumb.active {
    border-color: var(--mk-accent);
}

.ff-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ff-gallery-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.4rem;
}

.ff-gallery-placeholder {
    height: 300px;
    background: var(--mk-bg);
    border-radius: var(--mk-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.2;
}

/* ===== LIGHTBOX (fullscreen zoom) ===== */
.ff-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.ff-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.ff-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ff-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ff-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.ff-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ff-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ff-lightbox-prev {
    left: 1rem;
}

.ff-lightbox-next {
    right: 1rem;
}

.ff-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    z-index: 2;
}

@media (max-width: 768px) {
    .ff-modal {
        padding: 0;
        align-items: flex-end;
    }
    .ff-modal-content {
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
        animation: ffSheet 0.25s ease;
    }
    /* Schließen-Knopf scrollt mit und bleibt oben rechts */
    .ff-modal-close {
        position: sticky;
        top: 0.6rem;
        margin: 0.6rem 0.6rem -44px auto;
    }
    .ff-modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem 1rem 0;
    }
    .ff-modal-info {
        max-height: none;
        overflow: visible;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    /* Knopf ans Ende und unten festhalten, solange man durch den Text scrollt */
    .ff-modal-buy {
        order: 99;
        position: sticky;
        bottom: 0;
        margin: 1rem -1rem 0;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        background: var(--mk-bg-card);
        border-top: 1px solid var(--mk-border);
        z-index: 4;
    }
    .ff-modal-desc { border-top: 0; padding-top: 0.25rem; }
    .ff-gallery-main {
        aspect-ratio: 4/3;
        max-height: 48vh;
    }
    .ff-gallery-slide-video--vertical iframe { aspect-ratio: 9/16; }
    /* Hochformat-Video am Handy größer zeigen */
    .ff-gallery-main--vertical { aspect-ratio: 3/4; max-height: 62vh; }
    .ff-gallery-thumb {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 600px) {
    .ff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .ff-card-body {
        padding: 0.8rem;
    }
    
    .ff-card-title {
        font-size: 0.85rem;
    }
    
    .ff-card-desc {
        display: none;
    }
    
    .ff-price {
        font-size: 1rem;
    }
    
    .ff-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .ff-cart-sidebar {
        width: 100%;
    }
}
/* ===== Raster, Kategorien, Seiten (gilt für #shopGrid aus FRONTEND_GUIDE und WordPress-Plugin) ===== */
#shopGrid, .ff-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.ff-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
#shopPagination, .ff-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.ff-filters { display: flex; gap: 0.5rem; }
@media (max-width: 600px) {
    #shopGrid, .ff-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ff-search-bar { min-width: 0; }
}

/* Unabhängig vom Theme der Website: Breiten inkl. Innenabstand rechnen, Preis nicht umbrechen */
:where(#shopWidget, #cartSidebar, #productModal, .fixfind-shop),
:where(#shopWidget, #cartSidebar, #productModal, .fixfind-shop) *,
:where(#shopWidget, #cartSidebar, #productModal, .fixfind-shop) *::before,
:where(#shopWidget, #cartSidebar, #productModal, .fixfind-shop) *::after {
    box-sizing: border-box;
}
.ff-price { white-space: nowrap; }

/* Textfarbe des Widgets statt der Website (sonst z.B. schwarze Titel im dunklen Design) */
.ff-card, .ff-cart-sidebar, .ff-modal-content, .ff-lightbox { color: var(--mk-text); }
.ff-card-title, .ff-modal-title, .ff-cart-header h3, .ff-cart-item-title { color: var(--mk-text); }
.ff-card-footer { gap: 0.5rem; flex-wrap: wrap; }

/* ===== Schwebender Warenkorb-Knopf (embed.js, WordPress-Plugin) ===== */
.ff-floating-cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1990; /* unter Overlay (2000) und Warenkorb (2001), sonst liegt er über „Zur Kasse“ */
    border: 0;
    border-radius: 999px;
    padding: .8rem 1.1rem;
    font-size: 1rem;
    font-family: var(--mk-font);
    cursor: pointer;
    background: var(--mk-accent);
    color: var(--mk-on-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.ff-floating-cart #cartCount { font-weight: 700; margin-left: .3rem; }

/* Kasse: Eingabefelder in den zweispaltigen Zeilen dürfen schrumpfen (sonst ragen sie am Handy rechts hinaus) */
#ff-checkout-form input:not([type="checkbox"]):not([type="radio"]),
#ff-checkout-form select { min-width: 0; width: 100%; box-sizing: border-box; }
