/**
 * Frontend Styles für Speisekarten Manager
 * 
 * @package Speisekarten_Manager
 * @author Carsten Seeberger
 * @version 1.0.0
 * 
 * Safari Kompatibilität:
 * - Flexbox gap Fallbacks mit @supports
 * - Vollständige -webkit- Prefixes
 * - Optimiertes Font-Rendering
 * - Explizite display/flex Properties
 * - word-wrap für Textumbruch
 */

/* ==================== CSS Reset für Page Builder Isolation ==================== */
/* Verhindert Konflikte mit Breakdance, Elementor, etc. */

.skm-menu-container,
.skm-menu-container *,
.skm-menu-container *::before,
.skm-menu-container *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    @supports (-webkit-touch-callout: none) {
        .skm-menu-container .skm-item-body {
            display: -webkit-flex !important;
            display: flex !important;
            -webkit-flex-direction: column !important;
            flex-direction: column !important;
            -webkit-flex-wrap: nowrap !important;
            flex-wrap: nowrap !important;
        }
        .skm-menu-container .skm-item-right {
            width: 100% !important;
            min-width: 0 !important;
            order: 1 !important;
            margin-bottom: 12px !important;
        }
        .skm-menu-container .skm-item-left {
            width: 100% !important;
            padding-top: 0 !important;
            order: 2 !important;
        }
    }
}

.skm-menu-container {
    all: initial;
    display: block !important;
    box-sizing: border-box !important;
}

/* Haupt-Container */
.skm-menu-container {
    margin: 30px 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #2c3e50 !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Suchfeld */
.skm-search-wrapper {
    position: relative !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    box-sizing: border-box !important;
    isolation: isolate !important;
    z-index: 1 !important;
}

.skm-search-input {
    width: 100% !important;
    padding: 14px 18px 14px 48px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #2c3e50 !important;
    background: #fff !important;
    border: 1px solid #9ca3af !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

.skm-search-input:focus {
    outline: none !important;
}

.skm-search-input::placeholder {
    color: #6c757d !important;
    opacity: 0.7 !important;
}

.skm-search-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    color: #6c757d !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
}

/* Lade-Animation beim Suchen */
.skm-search-wrapper.skm-searching .skm-search-icon {
    animation: skm-search-pulse 1.5s ease-in-out infinite !important;
}

@keyframes skm-search-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Alternative: Rotate Animation für intensivere Suche */
.skm-search-wrapper.skm-searching-active .skm-search-icon {
    animation: skm-search-spin 0.8s linear infinite !important;
}

@keyframes skm-search-spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Filter Dropdown für Mobile */
.skm-filter-dropdown-wrapper {
    display: none !important; /* Versteckt auf Desktop */
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.skm-filter-dropdown {
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #2c3e50 !important;
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232c3e50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    padding-right: 45px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.skm-filter-dropdown:focus {
    outline: none !important;
    border-color: #2c3e50 !important;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1) !important;
}

.skm-filter-dropdown:hover {
    border-color: #adb5bd !important;
}

.skm-filter-dropdown option {
    padding: 12px 8px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    min-height: 44px !important;
    color: #2c3e50 !important;
    background: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.skm-filter-dropdown option:checked {
    background: #f8f9fa !important;
    font-weight: 600 !important;
}

/* Chrome-spezifische Fixes für Dropdown-Optionen */
@supports (-webkit-appearance: none) {
    .skm-filter-dropdown option {
        font-size: 16px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* Filter Buttons für Desktop */
.skm-filter-buttons {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 25px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile: Zeige Dropdown, verstecke Buttons */
@media (max-width: 768px) {
    .skm-search-wrapper {
        margin-bottom: 10px !important;
    }
    
    .skm-search-input {
        font-size: 16px !important;
        padding: 12px 16px 12px 46px !important;
    }
    
    .skm-search-icon {
        left: 14px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .skm-filter-dropdown-wrapper {
        display: block !important;
        margin-bottom: 16px !important;
    }
    
    .skm-filter-dropdown {
        font-size: 16px !important;
        padding: 12px 16px !important;
        padding-right: 42px !important;
    }
    
    .skm-filter-dropdown option {
        font-size: 16px !important;
        padding: 10px 8px !important;
        min-height: 44px !important;
    }
    
    .skm-filter-buttons {
        display: none !important; /* Buttons auf Mobile versteckt */
    }
}

@media (max-width: 480px) {
    .skm-search-input {
        padding: 10px 14px 10px 44px !important;
    }
    
    .skm-search-icon {
        left: 12px !important;
        width: 16px !important;
        height: 16px !important;
    }
    
    .skm-filter-dropdown {
        font-size: 16px !important;
        padding: 12px 14px !important;
        padding-right: 42px !important;
    }
    
    .skm-filter-dropdown option {
        font-size: 16px !important;
    }
}

/* Safari Fallback für gap */
@supports not (gap: 10px) {
    .skm-filter-buttons {
        margin: 0 -5px 25px -5px !important;
    }
    .skm-filter-btn {
        margin: 5px !important;
    }
}

.skm-filter-btn {
    padding: 10px 20px !important;
    background: #fff !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #495057 !important;
    -webkit-transition: all 0.2s ease !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-sizing: border-box !important;
}

.skm-filter-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
}

.skm-filter-btn.skm-active {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
}

/* Category Description */
.skm-category-description {
    margin: 0 0 25px 0 !important;
    padding: 15px 20px !important;
    background: #f8f9fa !important;
    border-left: 1px solid #2c3e50 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    -webkit-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    -webkit-transform: translateY(-10px) !important;
    transform: translateY(-10px) !important;
}

.skm-category-description[style*="display: block"] {
    opacity: 1 !important;
    -webkit-transform: translateY(0) !important;
    transform: translateY(0) !important;
}

.skm-category-description-content {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #495057 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.skm-category-description-content p {
    margin: 0 0 10px 0 !important;
}

.skm-category-description-content p:last-child {
    margin-bottom: 0 !important;
}

/* Menu Items Container */
.skm-menu-items {
    display: -ms-grid !important;
    display: grid !important;
    -ms-grid-columns: 1fr !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Safari/IE Fallback - Block Layout */
@supports not (display: grid) {
    .skm-menu-items {
        display: block !important;
    }
}

/* Menu Item - Basis-Struktur ohne Hover-Effekte (Mobile-First) */
.skm-menu-item {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    position: relative !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    overflow: hidden !important;
}

/* Erster und letzter Eintrag mit abgerundeten Ecken für Container-Optik */
.skm-menu-items > .skm-menu-item:first-child {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.skm-menu-items > .skm-menu-item:last-child {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.skm-menu-item.skm-hidden {
    display: none !important;
}

/* Angebots-Label (Text hinter Produktname) */
.skm-offer-label {
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    opacity: 0.8;
    margin-left: 8px;
}

/* Item Header (nur Produktname) */
.skm-item-header {
    display: block !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.skm-item-name {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* Allergene/Zusatzstoffe als Subscript */
.skm-item-meta-info {
    font-size: 9px !important;
    font-weight: 400 !important;
    color: #6c757d !important;
    margin-left: 4px !important;
    vertical-align: sub !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
}

/* Item Body - 2 Spalten Layout */
.skm-item-body,
.skm-menu-item .skm-item-body,
.skm-menu-container .skm-item-body,
div.skm-item-body {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-flex-direction: row !important;
    flex-direction: row !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    float: none !important;
    position: relative !important;
    -webkit-align-items: flex-start !important;
    align-items: flex-start !important;
    -webkit-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
}

@supports (display: grid) {
    @media (min-width: 769px) {
        .skm-item-body,
        .skm-menu-item .skm-item-body,
        .skm-menu-container .skm-item-body,
        div.skm-item-body {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) 220px !important;
            column-gap: 28px !important;
            row-gap: 12px !important;
        }

        .skm-item-left,
        .skm-item-body .skm-item-left,
        .skm-menu-container .skm-item-left,
        div.skm-item-left {
            padding: 0 !important;
            order: initial !important;
            grid-column: 1 / span 1 !important;
        }

        .skm-item-right,
        .skm-item-body .skm-item-right,
        .skm-menu-container .skm-item-right,
        div.skm-item-right {
            width: 100% !important;
            min-width: 0 !important;
            max-width: none !important;
            grid-column: 2 / span 1 !important;
            padding-left: 0 !important;
        }
        
        .skm-item-right-full {
            grid-column: 1 / span 2 !important;
        }
    }
}

/* Linke Spalte: Details */
.skm-item-left,
.skm-item-body .skm-item-left,
.skm-menu-container .skm-item-left,
div.skm-item-left {
    -webkit-box-flex: 0 !important;
    -webkit-flex: 0 0 100% !important;
    flex: 0 0 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 18px 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    order: 2 !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
}

/* Rechte Spalte: Preise */
.skm-item-right,
.skm-item-body .skm-item-right,
.skm-menu-container .skm-item-right,
div.skm-item-right {
    -webkit-box-flex: 0 !important;
    -webkit-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    -webkit-align-self: flex-start !important;
    align-self: flex-start !important;
    order: 1 !important;
}

/* Single Row - Größe und Preis in einer Zeile */
.skm-single-row {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -webkit-align-items: center !important;
    align-items: center !important;
    -webkit-box-pack: end !important;
    -webkit-justify-content: flex-end !important;
    justify-content: flex-end !important;
    gap: 15px !important;
}

/* Safari Fallback für gap */
@supports not (gap: 15px) {
    .skm-single-row {
        gap: 0 !important;
    }
    .skm-single-row .skm-item-size,
    .skm-single-row .skm-item-price-wrapper {
        margin-left: 15px !important;
    }
    .skm-single-row .skm-item-size:first-child,
    .skm-single-row .skm-item-price-wrapper:first-child {
        margin-left: 0 !important;
    }
}

.skm-item-size {
    font-size: 14px;
    color: #6c757d;
}

/* Preis Wrapper für Angebote */
.skm-item-price-wrapper {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-align: end !important;
    -webkit-align-items: flex-end !important;
    align-items: flex-end !important;
    gap: 5px !important;
}

/* Safari Fallback */
@supports not (gap: 5px) {
    .skm-item-price-wrapper .skm-item-price-regular {
        margin-bottom: 5px !important;
    }
}

/* Preis Wrapper in Single Row - horizontal */
.skm-single-row .skm-item-price-wrapper {
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.skm-single-row .skm-item-price-wrapper > * {
    margin-top: 0;
    margin-left: 10px;
}

.skm-single-row .skm-item-price-wrapper > *:first-child {
    margin-left: 0;
}

/* Regulärer Preis (durchgestrichen) */
.skm-item-price-regular {
    color: #6c757d;
    font-size: 13px;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Preis */
.skm-item-price {
    color: #27ae60;
    font-weight: 600;
    font-size: 16px;
    min-width: 80px;
    text-align: right;
}

/* Angebotspreis - größer und auffälliger */
.skm-item-price-sale {
    font-size: 18px;
    font-weight: 700;
}

/* Item Details (Beschreibung, Allergene, Zusatzstoffe) */
.skm-item-details {
    font-size: 12px;
    color: inherit !important;
    max-width: 100% !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.skm-item-description {
    display: block !important;
    margin-bottom: 0 !important;
    font-style: italic !important;
    opacity: 0.95 !important;
    color: inherit !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    -webkit-hyphens: auto !important;
    
    hyphens: auto !important;
}

.skm-item-allergens,
.skm-item-additives {
    margin-bottom: 5px;
    display: block !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.skm-item-allergens:last-child,
.skm-item-additives:last-child {
    margin-bottom: 0;
}

.skm-item-allergens strong,
.skm-item-additives strong {
    color: #495057;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* No Items Message */
.skm-no-items {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skm-menu-container {
        margin: 20px 0 !important;
    }
    
    .skm-category-description {
        padding: 10px 14px !important;
        margin: 0 0 12px 0 !important;
    }
    
    .skm-category-description-content {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .skm-menu-items {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .skm-menu-item {
        overflow-x: hidden;
    }
    
    /* Hover-Effekte auf Mobile deaktivieren */
    .skm-menu-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 480px) {
    .skm-menu-container {
        margin: 20px 0;
        overflow-x: hidden;
    }
    
    .skm-menu-items {
        padding: 0;
    }
    
    .skm-item-details {
        font-size: 11px;
    }
    
    .skm-item-details,
    .skm-item-allergens,
    .skm-item-additives,
    .skm-item-description {
        font-size: 12px;
        word-break: break-word;
    }
}

/* Print Styles */
@media print {
    .skm-filter-buttons {
        display: none;
    }
    
    .skm-menu-item {
        break-inside: avoid;
        background: transparent!important;
    }
    
    .skm-item-header {
        border-bottom: 1px solid #ddd;
    }
}

/* ==================== Varianten-System (Tabellen-Layout) ==================== */

/* Varianten Tabelle - im Header rechts */
.skm-item-variants-table,
.skm-menu-container .skm-item-variants-table,
.skm-item-right .skm-item-variants-table,
div.skm-item-variants-table {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: column !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Safari Fallback - verwende margin statt gap */
@supports not (gap: 2px) {
    .skm-item-variants-table {
        gap: 0 !important;
    }
    .skm-variant-row {
        margin-bottom: 2px !important;
    }
    .skm-variant-row:last-child {
        margin-bottom: 0 !important;
    }
}

/* Einzelne Varianten-Zeile - Table Layout als Basis für Safari */
.skm-variant-row,
.skm-menu-container .skm-variant-row,
.skm-menu-items .skm-variant-row,
div.skm-variant-row,
span.skm-variant-row {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-spacing: 0 !important;
    min-height: 24px !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.skm-variant-row:last-child {
    border-bottom: none !important;
}

/* Flexbox Override für moderne Browser */
@supports (display: flex) {
    .skm-variant-row,
    .skm-menu-container .skm-variant-row,
    .skm-menu-items .skm-variant-row,
    div.skm-variant-row {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -webkit-box-orient: horizontal !important;
        -webkit-box-direction: normal !important;
        -webkit-flex-direction: row !important;
        -ms-flex-direction: row !important;
        flex-direction: row !important;
        -webkit-box-pack: justify !important;
        -webkit-justify-content: space-between !important;
        -ms-flex-pack: justify !important;
        justify-content: space-between !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
    }
}

/* Table-cell als Basis (Safari-sicher) */
.skm-variant-row .skm-variant-size,
.skm-variant-row .skm-variant-price,
.skm-menu-container .skm-variant-row .skm-variant-size,
.skm-menu-container .skm-variant-row .skm-variant-price,
div.skm-variant-row .skm-variant-size,
div.skm-variant-row .skm-variant-price,
div.skm-variant-row span.skm-variant-size,
div.skm-variant-row span.skm-variant-price {
    display: table-cell !important;
    vertical-align: middle !important;
    float: none !important;
}

.skm-variant-row .skm-variant-size,
.skm-menu-container .skm-variant-row .skm-variant-size,
div.skm-variant-row .skm-variant-size,
div.skm-variant-row span.skm-variant-size {
    width: 100px !important;
    margin-right: 0 !important;
    padding-right: 15px !important;
    white-space: nowrap !important;
}

.skm-variant-row .skm-variant-price,
.skm-menu-container .skm-variant-row .skm-variant-price,
div.skm-variant-row .skm-variant-price,
div.skm-variant-row span.skm-variant-price {
    width: auto !important;
    text-align: right !important;
    padding-left: 15px !important;
}

/* Flexbox Override für moderne Browser */
@supports (display: flex) {
    .skm-variant-row .skm-variant-size,
    .skm-variant-row .skm-variant-price,
    .skm-menu-container .skm-variant-row .skm-variant-size,
    .skm-menu-container .skm-variant-row .skm-variant-price,
    div.skm-variant-row .skm-variant-size,
    div.skm-variant-row .skm-variant-price {
        display: inline-block !important;
    }
    
    .skm-variant-row .skm-variant-size,
    .skm-menu-container .skm-variant-row .skm-variant-size,
    div.skm-variant-row .skm-variant-size,
    div.skm-variant-row span.skm-variant-size {
        -webkit-box-flex: 0 !important;
        -webkit-flex: 0 0 auto !important;
        -ms-flex: 0 0 auto !important;
        flex: 0 0 auto !important;
        padding-right: 0 !important;
        margin-right: 15px !important;
        width: auto !important;
        min-width: 50px !important;
        max-width: 100px !important;
    }

    .skm-variant-row .skm-variant-price,
    .skm-menu-container .skm-variant-row .skm-variant-price,
    div.skm-variant-row .skm-variant-price,
    div.skm-variant-row span.skm-variant-price {
        -webkit-box-flex: 1 !important;
        -webkit-flex: 1 1 auto !important;
        -ms-flex: 1 1 auto !important;
        flex: 1 1 auto !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -webkit-box-pack: end !important;
        -webkit-justify-content: flex-end !important;
        -ms-flex-pack: end !important;
        justify-content: flex-end !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
        padding-left: 0 !important;
        width: auto !important;
        min-width: 0 !important;
    }
}

/* Größe (links) */
.skm-variant-row .skm-variant-size {
    font-size: 14px;
    color: #6c757d;
    min-width: 50px;
}

/* Preis (rechts) */
.skm-variant-row .skm-variant-price {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* Regulärer Preis (durchgestrichen bei Angebot) */
.skm-variant-row .skm-price-regular {
    font-size: 14px !important;
    color: #6c757d !important;
    text-decoration: line-through !important;
    margin-right: 8px !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* Angebotspreis */
.skm-variant-row .skm-price-sale {
    font-weight: 700 !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* ==================== Responsive Varianten ==================== */

@media (max-width: 768px) {
    .skm-item-variants-table {
        gap: 2px !important;
    }
    
    /* Safari Fallback für mobile */
    @supports not (gap: 2px) {
        .skm-item-variants-table {
            gap: 0 !important;
        }
        .skm-variant-row {
            margin-bottom: 2px !important;
        }
        .skm-variant-row:last-child {
            margin-bottom: 0 !important;
        }
    }
    
    .skm-variant-row {
        gap: 10px !important;
    }
    
    .skm-variant-row .skm-variant-size {
        font-size: 13px;
        min-width: 45px;
    }
    
    .skm-variant-row .skm-variant-price {
        font-size: 15px;
    }
    
    .skm-variant-row .skm-price-regular {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* Mobile: Behalte das Zebra-Striping und Border-Design */
    .skm-menu-item {
        margin-bottom: 0 !important;
    }
    
    /* Kompaktere Header-Paddings */
    .skm-item-header {
        padding: 10px 14px !important;
    }
    
    /* Kompaktere Body-Paddings */
    .skm-item-body {
        padding: 10px 14px !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
    }
    
    /* Kompaktere Abstände für Details */
    .skm-item-description {
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }
    
    .skm-item-details {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    
    /* Produktname größer auf Mobile */
    .skm-item-name {
        font-size: 17px;
        font-weight: 700;
    }
    
    /* Meta-Info (Subscript) auf Mobile */
    .skm-item-meta-info {
        font-size: 8px !important;
        margin-left: 3px !important;
    }
    
    /* Größenangaben kleiner */
    .skm-item-size {
        font-size: 13px;
    }
    
    .skm-variant-row .skm-variant-size {
        font-size: 13px;
    }
    
    /* Preise kleiner auf Mobile */
    .skm-item-price {
        font-size: 14px;
    }
    
    .skm-item-price-sale {
        font-size: 16px;
    }
    
    .skm-variant-row .skm-variant-price {
        font-size: 14px;
    }
    
    .skm-variant-row .skm-price-sale {
        font-size: 16px;
    }
    
    .skm-item-price-regular {
        font-size: 12px;
    }

    .skm-item-left {
        padding-right: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        order: 2 !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        -webkit-box-flex: 1 !important;
        -webkit-flex: 1 1 auto !important;
        flex: 1 1 auto !important;
    }

    .skm-item-right {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        margin-bottom: 0 !important;
        padding-bottom: 8px !important;
        overflow: hidden !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        -webkit-box-flex: 0 !important;
        -webkit-flex: 0 0 auto !important;
        flex: 0 0 auto !important;
    }
    
    .skm-item-variants-table > * {
        margin-top: 2px;
    }
    
    .skm-item-variants-table > *:first-child {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    /* Noch kompaktere Abstände auf sehr kleinen Screens */
    .skm-menu-item {
        margin-bottom: 5px !important;
    }
    
    .skm-item-header {
        padding: 8px 12px !important;
    }
    
    .skm-item-body {
        padding: 8px 12px !important;
    }
    
    /* Noch kompaktere Detail-Abstände */
    .skm-item-description {
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }
    
    /* Produktnamen auf kleinen Screens */
    .skm-item-name {
        font-size: 16px;
    }
    
    /* Meta-Info noch kleiner auf sehr kleinen Screens */
    .skm-item-meta-info {
        font-size: 7px !important;
        margin-left: 2px !important;
    }
    
    /* Größenangaben noch kleiner */
    .skm-item-size {
        font-size: 12px;
    }
    
    /* Preise noch kompakter */
    .skm-item-price {
        font-size: 13px;
    }
    
    .skm-item-price-sale {
        font-size: 15px;
    }
    
    .skm-item-price-regular {
        font-size: 11px;
    }
    
    .skm-item-body {
        padding: 12px 15px;
        overflow: hidden;
    }
    
    .skm-item-header {
        padding: 12px 15px;
        overflow: hidden;
    }
    
    .skm-variant-row {
        gap: 8px;
    }
    
    .skm-variant-row .skm-variant-size {
        font-size: 12px;
        min-width: 40px;
    }
    
    .skm-variant-row .skm-variant-price {
        font-size: 13px;
    }
    
    .skm-variant-row .skm-price-sale {
        font-size: 15px;
    }
    
    .skm-variant-row .skm-price-regular {
        font-size: 12px;
        margin-right: 6px;
    }
}
