/* Goods Category Page Styles */

/* Header Area */
.category-header {
    background-color: #222;
    padding: 30px 0;
    color: #fff;
    margin-bottom: 40px;
}

.category-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    color: #999;
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* Layout */
.category-container {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.product-list-main {
    flex: 1;
}

/* Sidebar Styles */
.sidebar-box {
    background: #fff; /* Or dark depending on theme, spec implies dark bg main, but components often light on dark or reverse */
    /* Assuming site is dark mode dominant based on specs */
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
}

.sidebar-box h3 {
    font-size: 18px;
    color: #fff;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cat-list li {
    margin-bottom: 10px;
}

.cat-list a {
    color: #999;
    font-size: 14px;
    display: block;
    padding: 5px 0;
    transition: all 0.3s;
}

.cat-list a:hover, .cat-list a.active {
    color: var(--accent);
    padding-left: 5px;
}

/* Sort Bar */
.sort-bar {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    color: #999;
    font-size: 14px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.sort-bar a {
    color: #999;
}

.sort-bar a.active, .sort-bar a:hover {
    color: var(--accent);
}

/* Product Grid (Reuse grid layout but specific items) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Reuse product-item from global or index if possible, but defining here for safety/override */
.product-item {
    background: #fff;
    transition: transform 0.3s;
    border-radius: 4px;
    overflow: hidden;
    padding-bottom: 15px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.prod-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.prod-img img {
    max-height: 100%;
    max-width: 100%;
}

.prod-info {
    padding: 15px;
    text-align: center;
}

.prod-info h4 {
    height: 40px; /* Limit height for 2 lines */
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.prod-info h4 a {
    color: #333;
}

.prod-info h4 a:hover {
    color: var(--accent);
}

.prod-info .price {
    color: var(--accent);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.prod-info .btn-outline {
    border-color: #ddd;
    color: #666;
    padding: 5px 20px;
    font-size: 12px;
}

.prod-info .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a, .pagination span {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border: 1px solid #444; /* Darker border for dark bg context */
    color: #999;
    border-radius: 4px;
    background: transparent;
}

.pagination span.current, .pagination a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .category-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
