.cpw-container {
    display: flex;
    gap: 30px;
    width: 100%;
}

.cpw-sidebar {
    width: 25%;
    flex-shrink: 0;
}

.cpw-content {
    flex: 1;
    min-width: 0;
}

.cpw-cat-heading {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.cpw-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cpw-cat-item {
    margin-bottom: 0;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cpw-cat-item:last-child {
    border-bottom: none;
}

.cpw-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cpw-cat-link {
    cursor: pointer;
    color: #2b6cb0;
    font-size: 14px;
    transition: color 0.3s;
    line-height: 1.6;
    text-decoration: none;
}

.cpw-cat-link:hover {
    text-decoration: none;
}

.cpw-cat-link.is-active {
    color: #1a4a8a;
    font-weight: 700;
}

.cpw-cat-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s;
    padding: 2px;
}

.cpw-cat-item.is-open > .cpw-cat-row > .cpw-cat-toggle {
    transform: rotate(180deg);
}

.cpw-cat-toggle svg {
    width: 16px;
    height: 16px;
    stroke: #999;
}

.cpw-cat-children {
    display: none;
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 16px;
}

.cpw-cat-child {
    margin-bottom: 8px;
}

/* Products Grid */
.cpw-products-grid {
    display: grid;
    gap: 20px;
    transition: opacity 0.2s;
}

.cpw-products-grid.cpw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cpw-products-grid.cpw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cpw-products-grid.cpw-cols-4 { grid-template-columns: repeat(4, 1fr); }

.cpw-product-card {
    display: block;
    text-decoration: none;
}

.cpw-product-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8e8e8;
    transition: background-image 0.3s ease;
}

.cpw-product-title {
    margin: 10px 0 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-align: center;
    line-height: 1.5;
}

/* Search Bar */
.cpw-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.cpw-search-keyword {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cpw-search-mode-toggle {
    display: flex;
    gap: 0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
}

.cpw-mode-btn {
    padding: 6px 18px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    background: #fff;
}

.cpw-mode-btn.is-active {
    background: #2b6cb0;
    color: #fff;
    font-weight: 600;
}

.cpw-mode-btn:hover:not(.is-active) {
    background: #f5f5f5;
    color: #555;
}

/* Responsive */
@media (max-width: 991px) {
    .cpw-products-grid.cpw-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .cpw-container {
        flex-direction: column;
    }

    .cpw-sidebar {
        width: 100% !important;
    }

    .cpw-products-grid.cpw-cols-3,
    .cpw-products-grid.cpw-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cpw-product-title {
        font-size: 12px;
    }
}
