/* Clean category layout inspired by idealo/guenstiger */
body.category-view.category-clean {
    background: #f5f6f8;
}

body.category-view.category-clean .breadcrumbs {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

body.category-view.category-clean .breadcrumb-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

body.category-view.category-clean .breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.category-view.category-clean .breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.category-view.category-clean .breadcrumb-item:hover {
    color: #174d9a;
}

body.category-view.category-clean .breadcrumb-separator {
    color: #999;
    font-size: 12px;
    margin: 0 4px;
}

body.category-view.category-clean .breadcrumb-current {
    color: #174d9a;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.category-view.category-clean .breadcrumb-container {
        padding: 0 15px;
    }

    body.category-view.category-clean .breadcrumbs {
        font-size: 12px;
        padding: 8px 0;
        margin-bottom: 12px;
    }

    body.category-view.category-clean .breadcrumb-nav {
        gap: 6px;
    }
}

body.category-view.category-clean .category-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    body.category-view.category-clean .category-grid {
        grid-template-columns: 1fr;
    }
}

body.category-view.category-clean .category-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 16px;
}

body.category-view.category-clean .category-results {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

body.category-view.category-clean .subcategory-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

body.category-view.category-clean .subcategory-pills.is-collapsed {
    display: flex !important;
}

body.category-view.category-clean .subcategory-pill {
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    background: #f7f8fb;
    font-weight: 600;
    color: #1f2937;
    width: max-content;
}

body.category-view.category-clean .subcategory-toggle {
    width: max-content;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.category-view.category-clean .tagesdeal-inline {
    margin-bottom: 20px;
}

body.category-view.category-clean .tagesdeal-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    background: #ffffff;
}

body.category-view.category-clean .tagesdeal-header {
    background: #0b62d6;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 10px 14px;
}

body.category-view.category-clean .tagesdeal-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    padding: 18px;
    background: #ffffff;
    align-items: start;
}

body.category-view.category-clean .tagesdeal-image-wrap {
    background: #f7f8fb;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

body.category-view.category-clean .tagesdeal-image {
    max-height: 260px;
    width: 100%;
    object-fit: contain;
}

body.category-view.category-clean .tagesdeal-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    align-items: start;
}

body.category-view.category-clean .tagesdeal-title {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

body.category-view.category-clean .tagesdeal-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-column: 1 / 2;
}

body.category-view.category-clean .tagesdeal-price-compare .crossed-price {
    color: #9ca3af;
    font-size: 14px;
}

body.category-view.category-clean .tagesdeal-price-current {
    font-size: 24px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
}

body.category-view.category-clean .tagesdeal-savings span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 600;
    font-size: 12px;
}

body.category-view.category-clean .mega-deal-badge {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

body.category-view.category-clean .tagesdeal-countdown,
body.category-view.category-clean .tagesdeal-coupon {
    grid-column: 1 / -1;
    font-size: 13px;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.category-view.category-clean .tagesdeal-sales-rank,
body.category-view.category-clean .tagesdeal-disclaimer,
body.category-view.category-clean .tagesdeal-meta {
    grid-column: 1 / -1;
}

body.category-view.category-clean .tagesdeal-btn {
    background: #0b62d6;
    color: #ffffff;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    width: max-content;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(11, 98, 214, 0.2);
    grid-column: 2 / 3;
    align-self: start;
}

@media (max-width: 768px) {
    body.category-view.category-clean .tagesdeal-content {
        grid-template-columns: 1fr;
    }
    body.category-view.category-clean .tagesdeal-image-wrap {
        min-height: 160px;
    }
    body.category-view.category-clean .tagesdeal-info {
        grid-template-columns: 1fr;
    }
    body.category-view.category-clean .tagesdeal-btn {
        width: 100%;
        grid-column: 1 / -1;
    }
}

/* Ergebnisliste wie Idealo */
body.category-view.category-clean .list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

body.category-view.category-clean .list-section .product-slide,
body.category-view.category-clean .list-section .product-slide--wide {
    width: 100%;
}

body.category-view.category-clean .list-section .product-card,
body.category-view.category-clean .list-section .dfx-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

body.category-view.category-clean .list-section .product-image-container,
body.category-view.category-clean .list-section .dfx-card__image {
    flex: 0 0 38%;
    max-width: 38%;
    min-width: 220px;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    padding: 4px;
    margin-bottom: 0;
    background: #f7f8fb;
}

body.category-view.category-clean .list-section .product-image-container img,
body.category-view.category-clean .list-section .dfx-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.category-view.category-clean .list-section .card-content,
body.category-view.category-clean .list-section .dfx-card__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 12px 12px 8px;
    gap: 8px;
}

body.category-view.category-clean .list-section .product-card .cta-button,
body.category-view.category-clean .list-section .dfx-card__actions .cta-button,
body.category-view.category-clean .list-section .dfx-card__actions .btn,
body.category-view.category-clean .list-section .product-card .btn {
    width: max-content;
    min-width: 160px;
    padding: 8px 16px;
}

@media (max-width: 768px) {
    body.category-view.category-clean .list-section .product-image-container,
    body.category-view.category-clean .list-section .dfx-card__image {
        flex: 0 0 42%;
        max-width: 42%;
        min-width: 140px;
        aspect-ratio: 1 / 1;
        padding: 4px;
        background: #f7f8fb;
    }
    body.category-view.category-clean .list-section .card-content,
    body.category-view.category-clean .list-section .dfx-card__content {
        padding: 10px 10px 10px 8px;
        gap: 6px;
    }

    body.category-view.category-clean .list-section .product-card .cta-button,
    body.category-view.category-clean .list-section .dfx-card__actions .cta-button,
    body.category-view.category-clean .list-section .product-card .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    body.category-view.category-clean .tagesdeal-content {
        padding: 14px;
        gap: 14px;
    }
    body.category-view.category-clean .tagesdeal-image {
        max-height: 200px;
    }
    body.category-view.category-clean .list-section .product-image-container,
    body.category-view.category-clean .list-section .dfx-card__image {
        min-width: 120px;
        min-height: 140px;
    }
}

body.category-view.category-clean .modern-pagination {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-radius: 12px;
}

body.category-view.category-clean .pagination-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

body.category-view.category-clean .controls-left {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

body.category-view.category-clean .per-page-selector,
body.category-view.category-clean .sort-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f7f8fb;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

body.category-view.category-clean .per-page-selector label,
body.category-view.category-clean .sort-selector label {
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

body.category-view.category-clean .pagination-controls select {
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    background: #f7f8fb;
    min-width: 160px;
}

body.category-view.category-clean .load-more-btn {
    background: #0b62d6;
    color: #ffffff;
    padding: 10px 16px;
    border: none;
    width: max-content;
    min-width: 220px;
}

@media (max-width: 768px) {
    body.category-view.category-clean .pagination-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    body.category-view.category-clean .controls-left,
    body.category-view.category-clean .per-page-selector,
    body.category-view.category-clean .sort-selector {
        width: 100%;
        justify-content: space-between;
    }
    body.category-view.category-clean .load-more-btn {
        width: 100%;
    }
}

/* Untere Boxen bleiben vertikal wie Index */
body.category-view.category-clean .recently-viewed .products-grid,
body.category-view.category-clean .recommended-products .products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1200px) {
    body.category-view.category-clean .recently-viewed .products-grid,
    body.category-view.category-clean .recommended-products .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.category-view.category-clean .recently-viewed .products-grid,
    body.category-view.category-clean .recommended-products .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.category-view.category-clean .recently-viewed .products-grid,
    body.category-view.category-clean .recommended-products .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

body.category-view.category-clean .recently-viewed .product-card,
body.category-view.category-clean .recommended-products .product-card,
body.category-view.category-clean .recently-viewed .dfx-card,
body.category-view.category-clean .recommended-products .dfx-card {
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

body.category-view.category-clean .recently-viewed .product-image-container,
body.category-view.category-clean .recommended-products .product-image-container,
body.category-view.category-clean .recently-viewed .dfx-card__image,
body.category-view.category-clean .recommended-products .dfx-card__image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px;
    aspect-ratio: 4 / 3;
}

body.category-view.category-clean .recently-viewed .card-content,
body.category-view.category-clean .recommended-products .card-content,
body.category-view.category-clean .recently-viewed .dfx-card__content,
body.category-view.category-clean .recommended-products .dfx-card__content {
    padding: 8px;
}

/* Unterkategorien als Buttons ohne Radius */
body.category-view.category-clean .subcategory-pill,
body.category-view.category-clean .subcategory-toggle {
    border-radius: 999px !important;
}
