/* ==========================================================================
   CSS TỐI ƯU CHO TRANG DANH MỤC ĐẦU TƯỚI PHUN MƯA (VIFASO)
   ========================================================================== */

.main-wrapper-catalog {
    background-color: #f8fafc;
    font-family: 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    padding: 30px 20px;
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */
.catalog-breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

.catalog-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.catalog-breadcrumb span {
    color: #0f172a;
    font-weight: 600;
}

/* Layout chính: 2 cột */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* CỘT TRÁI: BỘ LỌC */
.filter-sidebar {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.filter-header {
    background: #16a34a;
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-body {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #334155;
}

.filter-body.no-border {
    border-bottom: none;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-label:last-child {
    margin-bottom: 0;
}

.filter-label input {
    margin-right: 8px;
}

/* CỘT PHẢI: NỘI DUNG & SẢN PHẨM */
.catalog-header-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.catalog-title-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.catalog-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    outline: none;
}

.catalog-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Lưới danh sách sản phẩm */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-img-box {
    background: #f1f5f9;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-brand-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1d4ed8;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-fallback-icon {
    font-size: 40px;
    color: #16a34a;
}

.product-info-box {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-price {
    margin-top: auto;
    color: #16a34a;
    font-size: 16px;
    font-weight: 800;
}

.no-product-box {
    grid-column: 1 / -1;
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}