/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #8b1a1a 0%, #c41e1e 50%, #de8d1e 100%);
    padding: 18px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(237, 12, 12, 0.3);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li::after {
    content: '›';
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 400;
}

.breadcrumb li:last-child {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #ffffff;
    font-weight: 600;
}

/* Category Page Layout */
.category-page {
    padding: 40px 0 60px;
}

.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 18px;
}

/* Price Filter */
.price-filter {
    padding: 10px 0;
}

.price-range-slider {
    position: relative;
    height: 5px;
    margin: 25px 5px 30px;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--border-color);
    border-radius: 5px;
    top: 0;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    top: 0;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: auto;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    background: var(--bg-light);
}

.price-inputs span {
    color: var(--text-light);
    font-weight: 500;
    flex-shrink: 0;
}

.btn-filter {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-filter:hover {
    background: var(--secondary-color);
}

/* Featured Products Widget */
.featured-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-product {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
    cursor: pointer;
}

.mini-product:hover {
    background: var(--bg-light);
}

.mini-product-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.mini-product-image .placeholder-image {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.mini-product-info {
    flex: 1;
}

.mini-product-info h4 {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-color);
    line-height: 1.4;
}

.mini-product-info .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    min-height: 600px;
}

.category-header {
    margin-bottom: 30px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.result-count {
    font-size: 14px;
    color: var(--text-light);
}

.sort-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
}

/* Category Products Grid */
.category-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .sort-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 24px;
    }
}
