.wcafcw-categories-container,
.wcafcw-filter-container {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    /* Přidáno pro zajištění správného rozšíření pozadí */
    overflow: hidden;
    height: auto;
    min-height: 100%;
    width: 100%;
    display: block;
    clear: both;
}

/* Přidáno pro zajištění clearfixu (předchází zborcení layoutu) */
.wcafcw-categories-container:after,
.wcafcw-filter-container:after {
    content: "";
    display: table;
    clear: both;
}

/* Category Widget Styles */
.wcafcw-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Přidáno pro zajištění, že seznam zůstane uvnitř kontejneru */
    width: 100%;
    display: block;
    overflow: visible;
}

.wcafcw-category-list li {
    padding: 5px 0;
    position: relative;
}

.wcafcw-category-list .depth-1 > li {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.wcafcw-category-list .depth-1 > li:last-child {
    border-bottom: none;
}

.wcafcw-category-list .toggle-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    cursor: pointer;
    color: #0131a9;
    position: relative;
}

.wcafcw-category-list .toggle-icon:before {
    content: "►";
    font-size: 11px;
    position: absolute;
    left: 0;
    top: -2px;
}

.wcafcw-category-list .toggle-icon.expanded:before {
    content: "▼";
}

.wcafcw-category-list .bullet-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
}

.wcafcw-category-list .bullet-icon:before {
    content: "○";
    color: #0131a9;
    font-size: 11px;
    position: absolute;
    left: 0;
    top: -3px;
}

.wcafcw-category-list a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.wcafcw-category-list a:hover {
    color: #0131a9;
}

.wcafcw-category-list .current > a {
    font-weight: bold;
    color: #0131a9;
}

.wcafcw-category-list .subcategories {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
}

.wcafcw-category-list .subcategories.expanded {
    display: block;
}

/* Filter Widget Styles */
.wcafcw-filter-section {
    margin-bottom: 20px;
}

.wcafcw-filter-section h4 {
    font-size: 15px;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
}

.price-inputs label {
    flex: 0 0 48%;
    font-size: 12px;
    color: #666;
}

.wcafcw-price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.attribute-options {
    max-height: 250px;
    overflow: hidden;
}

.attribute-list {
    display: flex;
    flex-direction: column;
}

.attribute-list.scrollable {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.attribute-option {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
}

.attribute-option input[type="checkbox"] {
    margin-right: 8px;
}

.attribute-name {
    font-size: 13px;
    color: #333;
}

.wcafcw-filter-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.wcafcw-filter-button {
    background-color: #0131a9 !important;
    color: white !important;
    border: none !important;
    padding: 8px 15px !important;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 3px;
    flex: 0 0 48%;
}

.wcafcw-reset-button {
    background-color: #f1f1f1 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    padding: 8px 15px !important;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    flex: 0 0 48%;
}

.widgettitle, body#top #wrap_all .all_colors .widgettitle, h3 .widgettitle{
    color:#0131a9 !important;
}

.widget{
    padding: 0px 0 30px 0
}

/* Responsive Styles */
@media (max-width: 768px) {
    .price-inputs {
        flex-direction: column;
    }
    
    .price-inputs label {
        margin-bottom: 10px;
    }
}

/* Zachování konzistence zobrazení produktů */
.products {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.products .product {
    width: 33.333%; /* 3 produkty na řádek */
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.products .product-inner {
    border: 1px solid #e5e5e5;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    text-align: center;
    margin-bottom: 15px;
}

.product-image img {
    max-width: 100%;
    height: auto;
}

.product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.woocommerce-loop-product__title {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-price {
    font-weight: bold;
    font-size: 18px;
    color: #0a3167;
    margin-bottom: 5px;
}

.tax-label {
    font-size: 12px;
    color: #777;
}

.price-with-tax {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stock-status {
    font-weight: bold;
    margin-bottom: 15px;
}

.stock-status.in-stock {
    color: #2ecc71;
}

.stock-status.on-order {
    color: #f39c12;
}

.product-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-buttons .button {
    display: block;
    text-align: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #fff;
    background-color: #0a3167;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s;
}

.product-buttons .button:hover {
    background-color: #0f4086;
}

/* Responzivní zobrazení */
@media (max-width: 992px) {
    .products .product {
        width: 50%; /* 2 produkty na řádek na tabletech */
    }
}

@media (max-width: 576px) {
    .products .product {
        width: 100%; /* 1 produkt na řádek na mobilech */
    }
}