/* Reset */
.pfp-sidebar * {
    box-sizing: border-box;
}

.pfp-sidebar {
    background: #0a0a0a;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sections */
.pfp-section {
    border-bottom: 1px solid #1a1a1a;
}

.pfp-section:last-child {
    border-bottom: none;
}

.pfp-section-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    background: #0a0a0a;
    transition: background 0.2s;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pfp-section-header:hover {
    background: #151515;
}

.pfp-section-header .pfp-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.6;
    color: #ff4444;
}

.pfp-section.open .pfp-icon {
    transform: rotate(180deg);
}

.pfp-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pfp-section.open .pfp-section-content {
    max-height: 2000px;
    padding: 15px 20px 20px;
}

/* Categories */
.pfp-cat-item {
    margin: 0;
}

.pfp-cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.pfp-arrow {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pfp-arrow:hover {
    color: #ff4444;
}

.pfp-arrow svg {
    transition: transform 0.3s ease;
}

.pfp-cat-item.open > .pfp-cat-row > .pfp-arrow svg {
    transform: rotate(90deg);
}

.pfp-spacer {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pfp-cat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
}

.pfp-cat-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pfp-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #2a2a2a;
    border-radius: 3px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
    background: #151515;
}

.pfp-cat-label:hover .pfp-checkmark {
    border-color: #ff4444;
}

.pfp-cat-label input:checked ~ .pfp-checkmark {
    background: #ff4444;
    border-color: #ff4444;
}

.pfp-cat-label input:checked ~ .pfp-checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pfp-cat-name {
    color: #bbb;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pfp-count {
    color: #666;
    font-size: 12px;
    flex-shrink: 0;
}

/* Children */
.pfp-cat-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 28px;
}

.pfp-cat-item.open > .pfp-cat-children {
    max-height: 2000px;
}

.pfp-cat-children .pfp-cat-name {
    font-size: 13px;
    color: #888;
}

.pfp-cat-children .pfp-count {
    font-size: 11px;
}

/* Search */
.pfp-search-wrapper {
    padding: 20px;
}

.pfp-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 14px;
    background: #151515;
    color: #fff;
    transition: all 0.2s;
}

.pfp-input:focus {
    outline: none;
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.pfp-input::placeholder {
    color: #555;
}

.pfp-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: #151515;
    color: #fff;
}

.pfp-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.pfp-checkbox-item label {
    cursor: pointer;
    font-size: 14px;
    color: #bbb;
    flex: 1;
}

.pfp-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff4444;
}

.pfp-price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pfp-price-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 13px;
    background: #151515;
    color: #fff;
}

.pfp-price-inputs span {
    color: #666;
}

.pfp-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pfp-btn-apply {
    width: 100%;
    padding: 13px;
    background: #ff4444;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pfp-btn-apply:hover {
    background: #ff5555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.pfp-btn-reset {
    width: 100%;
    padding: 11px;
    background: transparent;
    color: #888;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pfp-btn-reset:hover {
    border-color: #ff4444;
    color: #ff4444;
}