/* Dodatkowe style dla listy produktów */
.page-header {
    background-color: var(--color-dark-green);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 80px 0;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 74, 56, 0.7);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--color-gold);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: var(--color-white);
}

.breadcrumb-item.active {
    color: var(--color-white);
}

.products-wrapper {
    display: flex;
    gap: 30px;
}

.products-sidebar {
    width: 25%;
    max-width: 280px;
}

.products-content {
    flex: 1;
}

.widget {
    margin-bottom: 30px;
    background-color: var(--color-light-gray);
    padding: 20px;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.widget-block {
    margin-bottom: 25px;
}

.widget-block h4 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    margin-right: 8px;
}

.form-check-label {
    font-size: 14px;
    cursor: pointer;
}

.price-range {
    margin-top: 15px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.price-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.products-found {
    font-size: 14px;
}

.products-sort select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--color-white);
    cursor: pointer;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.product-badge.sale {
    left: 10px;
    background-color: #e53935;
    color: var(--color-white);
}

.product-badge.featured {
    right: 10px;
    background-color: var(--color-gold);
    color: var(--color-white);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 74, 56, 0.9);
    display: flex;
    justify-content: center;
    padding: 12px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.product-action {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-action:hover {
    color: var(--color-gold);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-title a {
    color: var(--color-dark-green);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--color-gold);
}

.product-price {
    margin-bottom: 10px;
}

.price {
    font-weight: 700;
    color: var(--color-dark-green);
}

.price.sale {
    color: #e53935;
}

.price.old {
    text-decoration: line-through;
    color: #888;
    font-weight: 400;
    font-size: 14px;
    margin-left: 8px;
}

.product-collections {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.product-collection {
    font-size: 12px;
    padding: 3px 8px;
    background-color: var(--color-beige);
    color: var(--color-dark-green);
    border-radius: 3px;
    text-decoration: none;
}

.product-collection:hover {
    background-color: var(--color-gold-light);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
}

.no-products i {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.no-products h3 {
    margin-bottom: 15px;
}

.no-products p {
    margin-bottom: 25px;
    color: var(--color-gray);
}

.products-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    color: var(--color-dark-green);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: var(--color-dark-green);
    color: var(--color-white);
    border-color: var(--color-dark-green);
}

.page-link:hover {
    background-color: var(--color-beige);
}

@media (max-width: 991px) {
    .products-wrapper {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .products-wrapper {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .filter-content {
        max-height: 0 !important;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .filter-content.active {
        max-height: 2000px !important;
        transition: max-height 0.5s ease-in;
    }

    #filterToggleIcon {
        transition: transform 0.3s ease;
    }

    #filterToggleIcon.rotated {
        transform: rotate(180deg);
    }

    .filter-header {
        user-select: none;
        cursor: pointer;
        padding: 10px;
        margin: -10px -10px 10px -10px;
        border-radius: 6px;
        transition: background 0.2s;
    }

    .filter-header:active {
        background: rgba(0, 0, 0, 0.05);
    }

    .filter-clear-mobile {
        display: block;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .products-sort {
        width: 100%;
    }

    .products-sort select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Desktop - zawsze widoczne */
@media (min-width: 769px) {
    .filter-content {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    .filter-header {
        cursor: default !important;
    }

    .filter-header:hover {
        background: transparent !important;
    }

    #filterToggleIcon {
        display: none;
    }

    .filter-clear-mobile {
        display: none !important;
    }
}

/* Mobile - domyślnie ukryte */
@media (max-width: 768px) {
    .filter-content {
        display: block;
    }
}