/* WooCommerce Kategorie-Slider - Elementor-optimiertes CSS */

/* === HAUPTCONTAINER === */
/* Hohe Spezifität für Elementor-Kompatibilität */
.elementor .elementor-element .wc-category-slider,
.wc-category-slider.wc-category-slider {
    display: flex !important;
    gap: 40px;
    width: 1440px !important;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    background: white !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

/* === LINKER TEXTBEREICH === */
.elementor .wc-category-slider .wc-slider-content,
.wc-category-slider .wc-slider-content.wc-slider-content {
    flex: 0 0 350px !important;
    width: 350px !important;
    background: #f9f9f9 !important;
    padding: 30px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-slider-content h3,
.wc-category-slider .wc-slider-content h3.wc-slider-content h3 {
    margin: 0 0 15px 0 !important;
    font-size: 24px !important;
    color: #333 !important;
    font-family: inherit !important;
}

.elementor .wc-category-slider .wc-slider-content p,
.wc-category-slider .wc-slider-content p.wc-slider-content p {
    margin: 0 0 25px 0 !important;
    color: #666 !important;
    line-height: 1.6 !important;
    font-family: inherit !important;
}

.elementor .wc-category-slider .wc-cart-btn,
.wc-category-slider .wc-cart-btn.wc-cart-btn {
    background: #333 !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-block !important;
    border: none !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-cart-btn:hover,
.wc-category-slider .wc-cart-btn.wc-cart-btn:hover {
    background: #555 !important;
    color: white !important;
    text-decoration: none !important;
    transform: none !important;
}

/* === RECHTER SLIDER-BEREICH === */
.elementor .wc-category-slider .wc-slider-area,
.wc-category-slider .wc-slider-area.wc-slider-area {
    flex: 1 !important;
    width: calc(1440px - 350px - 40px) !important;
    max-width: calc(1440px - 350px - 40px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* === KATEGORIE-BUTTONS === */
.elementor .wc-category-slider .wc-category-buttons,
.wc-category-slider .wc-category-buttons.wc-category-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-cat-btn,
.elementor-element .wc-cat-btn,
.wc-category-slider .wc-cat-btn.wc-cat-btn {
    background: transparent !important;
    border: 1px solid #a0a0a0 !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #3c3c3e !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    text-decoration: none !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.elementor .wc-category-slider .wc-cat-btn::after,
.wc-category-slider .wc-cat-btn.wc-cat-btn::after {
    content: '›' !important;
    font-size: 18px !important;
    opacity: 0.7 !important;
}

.elementor .wc-category-slider .wc-cat-btn:hover,
.wc-category-slider .wc-cat-btn.wc-cat-btn:hover {
    border-color: #a0a0a0 !important;
    box-shadow: 0 2px 8px rgba(160, 160, 160, 0.15) !important;
    color: #3c3c3e !important;
    background: transparent !important;
    transform: none !important;
}

.elementor .wc-category-slider .wc-cat-btn.active,
.wc-category-slider .wc-cat-btn.wc-cat-btn.active {
    background: #e5e5e5 !important;
    border-color: #a0a0a0 !important;
    color: #3c3c3e !important;
}

.elementor .wc-category-slider .wc-cat-btn.active::after,
.wc-category-slider .wc-cat-btn.wc-cat-btn.active::after {
    opacity: 1 !important;
}

/* === PRODUKT-SLIDER === */
.elementor .wc-category-slider .wc-products-slider,
.wc-category-slider .wc-products-slider.wc-products-slider {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-loading,
.wc-category-slider .wc-loading.wc-loading {
    text-align: center !important;
    padding: 40px !important;
    color: #666 !important;
    font-family: inherit !important;
}

.elementor .wc-category-slider .wc-products-grid,
.wc-category-slider .wc-products-grid.wc-products-grid {
    display: flex !important;
    gap: 15px !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
}

.elementor .wc-category-slider .wc-products-grid .wc-product-card,
.wc-category-slider .wc-products-grid .wc-product-card.wc-product-card {
    flex: 0 0 calc(25% - 15px) !important;
    width: 165px !important;
    max-width: 165px !important;
    height: 350px !important;
    box-sizing: border-box !important;
}

/* === PRODUKT-KARTEN === */
.elementor .wc-category-slider .wc-product-card,
.wc-category-slider .wc-product-card.wc-product-card {
    background: white !important;
    border: 1px solid #a0a0a0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-product-card:hover,
.wc-category-slider .wc-product-card.wc-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.elementor .wc-category-slider .wc-product-image,
.wc-category-slider .wc-product-image.wc-product-image {
    width: 100% !important;
    height: 45% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-product-image img,
.wc-category-slider .wc-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-product-info,
.wc-category-slider .wc-product-info.wc-product-info {
    padding: 15px 15px 45px 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.elementor .wc-category-slider .wc-product-info h4,
.wc-category-slider .wc-product-info h4 {
    margin: 0 0 10px 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-family: inherit !important;
    line-height: normal !important;
}

.elementor .wc-category-slider .wc-features,
.wc-category-slider .wc-features.wc-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-features li,
.wc-category-slider .wc-features li {
    margin: 0 0 5px 0 !important;
    font-size: 10px !important;
    color: #666 !important;
    font-family: inherit !important;
    line-height: normal !important;
}

.elementor .wc-category-slider .wc-product-description,
.wc-category-slider .wc-product-description.wc-product-description {
    font-size: 10px !important;
    color: #666 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
}

.elementor .wc-category-slider .wc-product-price,
.wc-category-slider .wc-product-price.wc-product-price {
    font-weight: 800 !important;
    font-size: 12px !important;
    font-family: inherit !important;
    line-height: 24px !important;
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #2f2e33 !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
}

/* === WARENKORB-BUTTON === */
.elementor .wc-category-slider .wc-product-cart,
.wc-category-slider .wc-product-cart.wc-product-cart {
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    box-sizing: border-box !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
}

.elementor .wc-category-slider .wc-add-to-cart,
.elementor .wc-category-slider .wc-view-product,
.wc-category-slider .wc-add-to-cart.wc-add-to-cart,
.wc-category-slider .wc-view-product.wc-view-product {
    background: #2f2e33 !important;
    color: white !important;
    border: none !important;
    border-radius: 3px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    outline: none !important;
    background-image: url('/wp-content/uploads/2025/08/Warenkorb-weiss-1.png') !important;
    background-size: 20px 20px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.elementor .wc-category-slider .wc-add-to-cart:hover,
.elementor .wc-category-slider .wc-view-product:hover,
.wc-category-slider .wc-add-to-cart.wc-add-to-cart:hover,
.wc-category-slider .wc-view-product.wc-view-product:hover {
    background: #1a1a1a !important;
    transform: none !important;
    color: white !important;
}

/* === SLIDER-NAVIGATION === */
.elementor .wc-category-slider .wc-slider-nav,
.wc-category-slider .wc-slider-nav.wc-slider-nav {
    position: absolute !important;
    top: 50% !important;
    right: -60px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

.elementor .wc-category-slider .wc-nav-prev,
.elementor .wc-category-slider .wc-nav-next,
.wc-category-slider .wc-nav-prev.wc-nav-prev,
.wc-category-slider .wc-nav-next.wc-nav-next {
    background: white !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    outline: none !important;
}

.elementor .wc-category-slider .wc-nav-prev:hover,
.elementor .wc-category-slider .wc-nav-next:hover,
.wc-category-slider .wc-nav-prev.wc-nav-prev:hover,
.wc-category-slider .wc-nav-next.wc-nav-next:hover {
    border-color: #007cba !important;
    background: #007cba !important;
    color: white !important;
}

.elementor .wc-category-slider .wc-nav-prev:disabled,
.elementor .wc-category-slider .wc-nav-next:disabled,
.wc-category-slider .wc-nav-prev.wc-nav-prev:disabled,
.wc-category-slider .wc-nav-next.wc-nav-next:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .elementor .wc-category-slider .wc-products-grid .wc-product-card,
    .wc-category-slider .wc-products-grid .wc-product-card.wc-product-card {
        flex: 0 0 calc(33.333% - 14px) !important; /* 3 Produkte */
        width: 165px !important;
        max-width: 165px !important;
        height: 350px !important;
    }
}

@media (max-width: 768px) {
    .elementor .wc-category-slider,
    .wc-category-slider.wc-category-slider {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .elementor .wc-category-slider .wc-slider-content,
    .wc-category-slider .wc-slider-content.wc-slider-content {
        padding: 20px !important;
    }
    
    .elementor .wc-category-slider .wc-products-grid .wc-product-card,
    .wc-category-slider .wc-products-grid .wc-product-card.wc-product-card {
        flex: 0 0 calc(50% - 10px) !important; /* 2 Produkte */
        width: 165px !important;
        max-width: 165px !important;
        height: 350px !important;
    }
    
    .elementor .wc-category-slider .wc-category-buttons,
    .wc-category-slider .wc-category-buttons.wc-category-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
    }
    
    .elementor .wc-category-slider .wc-slider-nav,
    .wc-category-slider .wc-slider-nav.wc-slider-nav {
        right: -50px !important;
    }
}

@media (max-width: 600px) {
    .elementor .wc-category-slider,
    .wc-category-slider.wc-category-slider {
        padding: 10px !important;
    }
    
    .elementor .wc-category-slider .wc-slider-content,
    .wc-category-slider .wc-slider-content.wc-slider-content {
        padding: 15px !important;
    }
    
    .elementor .wc-category-slider .wc-slider-content h3,
    .wc-category-slider .wc-slider-content h3 {
        font-size: 20px !important;
    }
    
    .elementor .wc-category-slider .wc-products-grid .wc-product-card,
    .wc-category-slider .wc-products-grid .wc-product-card.wc-product-card {
        flex: 0 0 calc(100% - 20px) !important; /* 1 Produkt */
        width: 165px !important;
        max-width: 165px !important;
        height: 350px !important;
    }
    
    .elementor .wc-category-slider .wc-category-buttons,
    .wc-category-slider .wc-category-buttons.wc-category-buttons {
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding: 10px 0 !important;
        margin-bottom: 20px !important;
    }
    
    .elementor .wc-category-slider .wc-category-buttons::-webkit-scrollbar,
    .wc-category-slider .wc-category-buttons.wc-category-buttons::-webkit-scrollbar {
        height: 6px !important;
    }
    
    .elementor .wc-category-slider .wc-category-buttons::-webkit-scrollbar-track,
    .wc-category-slider .wc-category-buttons.wc-category-buttons::-webkit-scrollbar-track {
        background: #f0f0f0 !important;
        border-radius: 3px !important;
    }
    
    .elementor .wc-category-slider .wc-category-buttons::-webkit-scrollbar-thumb,
    .wc-category-slider .wc-category-buttons.wc-category-buttons::-webkit-scrollbar-thumb {
        background: #007cba !important;
        border-radius: 3px !important;
    }
    
    .elementor .wc-category-slider .wc-cat-btn,
    .wc-category-slider .wc-cat-btn.wc-cat-btn {
        flex-shrink: 0 !important;
        min-width: 140px !important;
        min-height: 50px !important;
    }
    
    .elementor .wc-category-slider .wc-slider-nav,
    .wc-category-slider .wc-slider-nav.wc-slider-nav {
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin-top: 15px !important;
    }
}

