.pcu-catalog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pcu-catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.pcu-view-switcher {
    display: flex;
    gap: 5px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 6px;
}

.pcu-view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    color: #666;
}

.pcu-view-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.pcu-view-btn.active {
    background: white;
    color: #2271b1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pcu-search-filter {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.pcu-search-input,
.pcu-category-filter {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.pcu-search-input {
    flex: 1;
}

.pcu-category-filter {
    min-width: 150px;
}

.pcu-search-input:focus,
.pcu-category-filter:focus {
    outline: none;
    border-color: #2271b1;
}

.pcu-products-container {
    min-height: 400px;
}

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

.pcu-products-container[data-columns="2"] .pcu-products-grid {
    grid-template-columns: repeat(2, 1fr);
}

.pcu-products-container[data-columns="3"] .pcu-products-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pcu-products-container[data-columns="4"] .pcu-products-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .pcu-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .pcu-products-grid {
        grid-template-columns: 1fr !important;
    }
}

.pcu-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.pcu-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.pcu-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pcu-products-grid .pcu-product-card {
    display: flex;
    flex-direction: column;
}

.pcu-product-image {
    width: 100%;
    padding-top: 75%;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.pcu-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcu-product-info {
    padding: 15px;
    flex: 1;
}

.pcu-product-category {
    font-size: 12px;
    color: #2271b1;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.pcu-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.pcu-product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcu-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.pcu-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
}

.pcu-product-sku {
    font-size: 12px;
    color: #999;
}

.pcu-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.pcu-tag {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #666;
}

.pcu-products-list .pcu-product-card {
    display: flex;
    flex-direction: row;
}

.pcu-products-list .pcu-product-image {
    width: 250px;
    padding-top: 0;
    height: 200px;
    flex-shrink: 0;
}

.pcu-products-list .pcu-product-info {
    flex: 1;
    padding: 20px;
}

.pcu-products-list .pcu-product-description {
    -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
    .pcu-products-list .pcu-product-card {
        flex-direction: column;
    }

    .pcu-products-list .pcu-product-image {
        width: 100%;
        padding-top: 60%;
        height: auto;
    }
}

.pcu-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.pcu-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.pcu-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pcu-pagination button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.pcu-pagination button:hover:not(:disabled) {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.pcu-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pcu-pagination button.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}
