.ds-category-page {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.pdp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-tertiary, #64748b);
}

.pdp-breadcrumb a {
    color: var(--accent-primary, #1d4ed8);
    text-decoration: none;
}

.pdp-breadcrumb a:hover {
    text-decoration: underline;
}

.category-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.category-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main, #0f172a);
}

.category-header p {
    margin: 0;
    color: var(--text-secondary, #475569);
    font-size: 1.05rem;
}

.product-count {
    color: var(--text-tertiary, #64748b);
    font-weight: 600;
    white-space: nowrap;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .shop-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1320px) {
    .shop-layout {
        grid-template-columns: 260px minmax(0, 1fr) 300px;
    }
}

.shop-sidebar {
    background: var(--surface-2, #ffffff);
    border: 1px solid var(--border-color, #d8e0ea);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

@media (min-width: 992px) {
    .shop-sidebar {
        position: sticky;
        top: 140px;
    }
}

.filter-section {
    border: 1px solid var(--border-color, #d8e0ea);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2, #ffffff);
}

.filter-section + .filter-section {
    margin-top: 0.75rem;
}

.filter-header {
    width: 100%;
    border: 0;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    cursor: pointer;
}

.filter-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main, #0f172a);
}

.filter-header i {
    font-size: 0.75rem;
    color: var(--text-tertiary, #64748b);
}

.filter-content {
    padding: 0.75rem 0.95rem 0.95rem;
}

.filter-section.is-collapsed .filter-content {
    display: none;
}

.cat-filter-list,
.sub-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-filter-item + .cat-filter-item {
    margin-top: 0.35rem;
}

.cat-filter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-main, #0f172a);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.2rem 0;
}

.cat-filter-link.active {
    color: var(--accent-primary, #1d4ed8);
    font-weight: 700;
}

.cat-filter-link--sub {
    font-size: 0.88rem;
    margin-left: 1.25rem;
}

.sub-filter-list {
    margin-top: 0.35rem;
}

.brand-search-box {
    margin-bottom: 0.7rem;
    position: relative;
}

.brand-search-box input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border-color, #d8e0ea);
    border-radius: 999px;
    padding: 0 0.9rem 0 2.2rem;
    background: var(--surface-2, #ffffff);
    color: var(--text-main, #0f172a);
    font-size: 0.9rem;
}

.brand-search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary, #64748b);
    font-size: 0.8rem;
}

.filter-options.brand-options {
    max-height: 320px;
    overflow-y: auto;
}

.filter-checkbox-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.checkbox-wrapper input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary, #1d4ed8);
}

.brand-name {
    color: var(--text-main, #0f172a);
}

.brand-count {
    font-size: 0.8rem;
    color: var(--text-tertiary, #64748b);
}

.price-range-info {
    font-size: 0.86rem;
    color: var(--text-tertiary, #64748b);
    margin-bottom: 0.65rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.price-input-wrapper {
    position: relative;
    flex: 1;
}

.currency-symbol {
    position: absolute;
    left: 0.62rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary, #64748b);
    font-size: 0.85rem;
    font-weight: 600;
}

.price-input-wrapper input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border-color, #d8e0ea);
    border-radius: 10px;
    padding: 0 0.65rem 0 1.35rem;
    font-size: 0.9rem;
    background: var(--surface-2, #ffffff);
}

.price-separator {
    color: var(--text-tertiary, #64748b);
}

.clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.8rem;
    color: var(--accent-primary, #1d4ed8);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.subcategory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sub-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-color, #d8e0ea);
    text-decoration: none;
    color: var(--text-main, #0f172a);
    background: var(--surface-2, #ffffff);
    font-size: 0.88rem;
    font-weight: 600;
}

.product-grid-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

.sort-select,
.sort-select-mobile {
    min-height: 40px;
    border: 1px solid var(--border-color, #d8e0ea);
    border-radius: 10px;
    background: var(--surface-2, #ffffff);
    color: var(--text-main, #0f172a);
    padding: 0 2rem 0 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 5 3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}

.category-product-grid {
    align-items: stretch;
}

.category-product-grid .ds-product-card {
    min-height: 352px;
}

.infinite-scroll-sentinel {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.loading-spinner {
    display: none;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary, #475569);
    font-size: 0.92rem;
}

.loading-spinner.is-terminal .spinner {
    display: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(29, 78, 216, 0.2);
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: ds-category-spin 0.8s linear infinite;
}

@keyframes ds-category-spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    border: 1px dashed var(--border-color, #d8e0ea);
    border-radius: 14px;
    padding: 2.4rem 1rem;
    background: var(--surface-2, #ffffff);
}

.empty-state .empty-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.empty-state h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: var(--text-main, #0f172a);
}

.empty-state p {
    margin: 0;
    color: var(--text-secondary, #475569);
}

.btn-blue {
    margin-top: 1rem;
}

.ad-sidebar {
    display: none;
}

@media (min-width: 1320px) {
    .ad-sidebar {
        display: block;
        position: sticky;
        top: 140px;
    }
}

.mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.btn-filter {
    min-height: 40px;
    border: 1px solid var(--border-color, #d8e0ea);
    background: var(--surface-2, #ffffff);
    border-radius: 10px;
    padding: 0 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-main, #0f172a);
    font-weight: 700;
    cursor: pointer;
}

.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 12, 27, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1800;
}

.filter-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-header-mobile {
    display: none;
}

@media (max-width: 991px) {
    .category-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-grid-header {
        display: none;
    }

    .shop-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 86vw);
        max-width: 320px;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1900;
        border-radius: 0;
        border-right: 1px solid var(--border-color, #d8e0ea);
        overflow-y: auto;
    }

    .shop-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.85rem;
    }

    .sidebar-header-mobile h3 {
        margin: 0;
        font-size: 1rem;
    }

    .close-btn {
        border: 0;
        background: transparent;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        color: var(--text-main, #0f172a);
    }
}

@media (min-width: 992px) {
    .mobile-filter-bar {
        display: none;
    }
}
