/* ==================== PLP RESULTS TOOLBAR (EDITORIAL / KINETIC) ==================== */

.plp-toolbar {
    width: 100%;
    background-color: var(--secondary-950, #000000);
    /* Razor sharp 1px technical divider instead of chunky 3px border */
    border-bottom: 1px solid var(--dynamic-accent, #ff0000);
}

.plp-toolbar-inner {
    width: 100%;
    max-width: 100%;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}

.plp-toolbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.plp-toolbar-count {
    font-family: var(--font-family, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Editorial tracking */
    white-space: nowrap;
}

.plp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* --- KINETIC ACTIONS (NO CLUNKY BOXES) --- */

.plp-toolbar-clear-all,
.plp-toolbar-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    font-family: var(--font-family, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    /* Kill the brutalist drop shadow and jump */
    box-shadow: none;
    transform: none;
    /* Use instant snappy color inversion instead of slow fades */
    transition: background-color 0s, color 0s, border-color 0s;
}

/* Clear All: Ghost outline that snaps instantly to solid accent */
.plp-toolbar-clear-all {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.plp-toolbar-clear-all:hover {
    background-color: var(--dynamic-accent);
    color: var(--secondary-950, #000000);
    border-color: var(--dynamic-accent);
}

/* Filter Button: Solid white block that snaps instantly to accent */
.plp-toolbar-filter-btn {
    background-color: #ffffff;
    color: var(--secondary-950, #000000);
    border: 1px solid #ffffff;
}

.plp-toolbar-filter-btn:hover,
.plp-toolbar-filter-btn--active {
    background-color: var(--dynamic-accent);
    color: var(--secondary-950, #000000);
    border-color: var(--dynamic-accent);
}

/* Filter Icon SVG color handling */
.plp-toolbar-filter-icon {
    width: 16px;
    height: 16px;
}

/* Badge tightly integrated with the flat design */
.plp-toolbar-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: var(--secondary-950, #000000);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
}

.plp-toolbar-filter-btn:hover .plp-toolbar-filter-badge,
.plp-toolbar-filter-btn--active .plp-toolbar-filter-badge {
    background-color: #ffffff;
    color: var(--secondary-950, #000000);
}

/* --- EDITORIAL SORT DROPDOWN --- */
.plp-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plp-toolbar-sort-label {
    font-family: var(--font-family, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    /* Subdued label */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ditch the box entirely. It's now a sleek, underlined interactive text element */
.plp-toolbar-sort-select {
    font-family: var(--font-family, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.25rem 1.5rem 0.25rem 0;
    /* Remove left padding to align text */
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    appearance: none;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: border-color 0.2s ease;

    /* Custom minimalist sharp arrow */
    background-image: url('data:image/svg+xml;utf8,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="white" stroke-width="1.5" stroke-linecap="square"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
}

.plp-toolbar-sort-select:hover,
.plp-toolbar-sort-select:focus {
    border-bottom: 2px solid var(--dynamic-accent);
    outline: none;
}

/* Browser default dropdown styling fix for dark mode */
.plp-toolbar-sort-select option {
    background-color: var(--secondary-950, #000000);
    color: #ffffff;
}

@media (max-width: 767px) {
    .plp-toolbar-inner {
        padding: 1rem;
    }

    .plp-toolbar-sort-label {
        display: none;
    }

    .plp-toolbar-filter-label {
        display: none;
    }
}