#wapf-product-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wapf-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.wapf-filter-group-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wapf-filter-group {
    text-align: left;
    position: relative;
}

.wapf-filter-toggle {
    color: #000000;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 20px;
    border: 1px solid #022839;
    border-radius: 4px;
    background-color: #ffffff;
}

.wapf-toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.wapf-checkbox-wrapper {
    display: none;
    position: absolute;
    z-index: 99;
}

.wapf-checkbox-group.fabric-filter {
    width: 320px;
}

.wapf-checkbox-group {
    max-height: 240px;
    width: 164px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #fdfdfd;
}

.wapf-checkbox-group.movement-filter {
    width: 164px;
}

.wapf-checkbox-label {
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wapf-filter[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.wapf-filter[type="checkbox"]:checked {
    background-color: #0073aa;
    border-color: #0073aa;
}

.wapf-filter[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
}

.wapf-filter[type="select"] {
    width: 200px;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fdfdfd;
    transition: border-color 0.3s ease;
}

.wapf-filter:focus {
    border-color: #0073aa;
    outline: none;
}

.wapf-fabric-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.wapf-checkbox-label:hover .wapf-fabric-image {
    transform: scale(1.05);
    border-color: #0073aa;
}

.wapf-selected-filters {
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.wapf-selected-filters h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#wapf-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.wapf-filter-tag {
    background: #e0e0e0;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wapf-fabric-tag-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.wapf-remove-tag {
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.wapf-remove-tag:hover {
    color: #ff0000;
}

.wapf-clear-all {
    color: #000000 !important;
    font-size: 14px;
    cursor: pointer;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

.wapf-clear-all:hover {
    color: #b32d2e !important;
}

#wapf-product-grid .wapf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.wapf-product-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.wapf-product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.wapf-product-item img {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.wapf-product-item:hover img {
    transform: scale(1.03);
}

.wapf-product-item h2 {
    font-size: 1.2rem;
    color: #222;
    margin: 10px 0 5px;
}

.wapf-price {
    font-size: 1rem;
    color: #2a0c04;
    font-weight: 600;
    margin-bottom: 12px;
}

.wapf-buy-button {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #022839, #001019);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease;
}

.wapf-buy-button:hover {
    color: #fff;
    background: linear-gradient(135deg, #000000, #001019);
}

.wapf-no-results {
    text-align: center;
    padding: 30px;
    font-size: 1.2rem;
    color: #999;
    font-style: italic;
}

.wapf-skeleton {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.wapf-skeleton-image,
.wapf-skeleton-title,
.wapf-skeleton-price,
.wapf-skeleton-button {
    background: #e0e0e0;
    border-radius: 4px;
    animation: shimmer 1.5s infinite linear;
    margin-bottom: 10px;
}

.wapf-skeleton-image {
    width: 100%;
    height: 200px;
}

.wapf-skeleton-title {
    width: 80%;
    height: 20px;
    margin: 10px auto;
}

.wapf-skeleton-price {
    width: 60%;
    height: 16px;
    margin: 10px auto;
}

.wapf-skeleton-button {
    width: 50%;
    height: 30px;
    margin: 10px auto;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

.wapf-skeleton-image,
.wapf-skeleton-title,
.wapf-skeleton-price,
.wapf-skeleton-button {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200px 100%;
}

.wapf-load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.wapf-load-more:hover {
    background: #262829;
}

.wapf-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wapf-filter-group-filters.mobile {
    display: none;
}

/* Sidebar and Close Button Styles */
.wapf-filter-group-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wapf-close-sidebar {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    height: 20px;
    width: 20px;
    background: none;
    color: #000000;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
}

.wapf-close-sidebar svg {
    height: 20px;
    width: 20px;
}

.wapf-close-sidebar:hover {
    background: none;
}

.rotated {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    #wapf-product-grid .wapf-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .wapf-filter-group {
        width: 100%;
    }

    .wapf-filters {
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 120px;
        align-items: center;
    }

    .wapf-filter-group-filters {
        width: 100%;
        justify-content: space-between;
    }

    .wapf-filter-group-content {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #ffffff;
        z-index: 1000;
        padding: 20px;
        padding-top: 60px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        flex-direction: column;
        overflow-y: auto;
    }

    .wapf-filter-group-content.active {
        display: flex;
        transform: translateX(0);
        flex-wrap: nowrap;
    }

    .wapf-close-sidebar {
        display: block;
    }

    .wapf-filter-group-filters.mobile {
        display: block;
    }

    .wapf-filter-toggle {
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 400;
    }

    .wapf-checkbox-group {
        width: 100% !important;
    }

    .wapf-filter.sort-filter {
        font-size: 14px;
        font-weight: 400;
    }

    .wapf-checkbox-wrapper {
        position: static;
    }

    .wapf-filter-group {
        position: static;
    }
}

@media (max-width: 480px) {
    #wapf-product-grid .wapf-product-grid {
        grid-template-columns: 1fr;
    }
}