/* Container Layout */
.custom-shop-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica', sans-serif; 
}

/* Sidebar Styles */
.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    transition: transform 0.3s ease;
    z-index: 1;
}

.shop-sidebar h3 {
    color: #eebe26;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Mobile Specific Elements (Standardmäßig versteckt) */
.mobile-filter-toggle,
.mobile-filter-header,
.mobile-filter-actions,
.sidebar-overlay {
    display: none;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* Custom Checkbox Styling */
.filter-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
}

.filter-group input[type="checkbox"] {
    accent-color: #eebe26;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-radius: 0;
}

/* Shop Content & Header */
.shop-content {
    flex-grow: 1;
}

.shop-header {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.custom-select {
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 0px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    min-width: 200px;
}

.custom-select:focus {
    border-color: #eebe26;
}

/* Product Grid Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.custom-product-card {
    border: 1px solid #eee;
    padding-bottom: 15px;
    transition: box-shadow 0.3s ease;
    background-color: var(--e-global-color-secondary);
}

.custom-product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.custom-product-card a.img-link,
.custom-product-card a.content-link {
    text-decoration: none;
    color: inherit;
    display: block; 
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    /*display: flex;*/
    display: none;
    align-items: center;
    justify-content: center;
    color: #d63384;
}

.prod-details {
    padding: 0 10px;
}

.prod-cat {
    font-size: 11px;
    color: #fff;
    background-color: #e91e63;
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 5px;
    background-color: transparent;
    padding: 0px !important;
    margin-bottom: 0px !important;
    gap: 0px;
    display: flex;
    justify-content: flex-start;
}

.rdfhreher a {
    background-color: #E70D57;
    color: white;
    border-radius: 5px;
    font-size: 11px;
    margin-right: 3px;
    padding: 2px 5px;
}
.rdfhreher a:hover {
    color: white;
    background-color: #eebe26;
}

.prod-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    height: 50px;
    margin-top: 10px;
    overflow: hidden;
}

.prod-price {
    font-size: 1.1rem;
    color: #eebe26;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.product-monthly-price {
    font-size: 11px !important;
}
.product-monthly-price span {
    font-weight: 400 !important;
}
span.month_text {
    font-weight: bold !important;
    font-size: 13px !important;
}
span.woocommerce-Price-amount.amount {
    font-size: 22px;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
}

#load-more-btn {
    background-color: transparent;
    color: #333;
    border: 2px solid #eebe26;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#load-more-btn:hover {
    background-color: #eebe26;
    color: #fff;
}

#load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    font-size: 1.2rem;
    color: #666;
}

/* --- OVERLAY LOADER STYLES --- */
#loader {
    display: none; /* STANDARDMÄßIG VERSTECKT */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); 
    z-index: 10;
    padding-top: 100px;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: #eebe26;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shop_grid_ext .woocommerce-Price-amount.amount {
    margin-left: 0px !important;
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .custom-shop-container {
        flex-direction: column;
        padding: 10px;
        position: relative;
    }

    /* 1. Toggle Button Style */
    .mobile-filter-toggle {
        display: block;
        margin-bottom: 0px;
    }

    #open-filter-btn {
        width: 100%;
        background: #fff;
        border: 2px solid #333;
        padding: 12px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        text-transform: uppercase;
        font-weight: bold;
    }

    /* 2. Sidebar als Modal/Off-Canvas */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 96vh;
        width: 85%;
        max-width: 320px;
        background: #fff;
        transform: translateX(-100%);
        padding: 20px;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .shop-sidebar.active {
        transform: translateX(0);
    }

    /* Overlay Hintergrund */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* 3. Header im Modal (Titel + Schließen) */
    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .mobile-filter-header h3 {
        margin: 0;
        font-size: 1.2rem;
        color: #333;
    }

    #close-filter-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #333;
    }

    .shop-sidebar > h3 {
        display: none;
    }

    /* 4. Footer im Modal (Ergebnisse Button) */
    .mobile-filter-actions {
        display: block;
        margin-top: 20px;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    #apply-filter-btn {
        width: 100%;
        background: #eebe26;
        color: #fff;
        border: none;
        padding: 12px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
    }

    /* Restliche Mobile Anpassungen */
    .shop-header {
        justify-content: flex-start; 
    }

    .product-grid {
        grid-template-columns: 1fr 1fr; 
        gap: 5px;
    }

    span.woocommerce-Price-amount.amount {
        font-size: 18px; 
    }
    
    .custom-product-card {
        padding-bottom: 10px;
    }
    
    .product-monthly-price {
        font-size: 8px !important;
    }
    
    span.month_text {
        font-weight: bold !important;
        font-size: 12px !important;
    }
    
    .rdfhreher a {
        font-size: 8px;
    }
}