/* File: css/style.css */

/* --- TỔNG QUAN --- */
.tss-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tss-section-title {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: 600;
}

/* --- LƯỚI DANH MỤC (#1. Đã thu nhỏ) --- */
.tss-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Giảm kích thước tối thiểu */
    gap: 20px;
    margin-bottom: 50px;
}

.tss-category-card {
    display: block;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tss-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.tss-category-image {
    height: 120px; /* Giảm chiều cao ảnh */
    background-size: cover;
    background-position: center;
}

.tss-category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: white;
    font-size: 3em; /* Giảm kích thước chữ placeholder */
    font-weight: bold;
}

.tss-category-name {
    font-size: 1.25em; /* Giảm kích thước tên */
    margin: 15px 20px 5px;
    color: #2c3e50;
}

.tss-category-count {
    font-size: 0.9em;
    color: #7f8c8d;
    margin: 0 20px 20px;
}


/* --- LƯỚI SẢN PHẨM (DỊCH VỤ) --- */
.tss-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tss-product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tss-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

a.tss-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tss-product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.tss-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f2f2f2;
    color: #aaa;
}

.tss-product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tss-product-title {
    font-size: 1.25em;
    margin: 0 0 10px 0;
    color: #34495e;
    line-height: 1.3;
}

.tss-product-excerpt {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
}

/* Giá tiền đã bị ẩn trong file PHP */

.tss-product-action {
    padding: 0 20px 20px 20px;
}

/* #2. Style cho nút "Xem chi tiết" */
.tss-details-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #3498db;
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
    text-decoration: none;
}
.tss-details-button:hover {
    background-color: #2980b9;
    color: white;
}

/* #3. Style cho thanh phân trang */
.tss-pagination {
    margin-top: 40px;
    text-align: center;
    width: 100%;
}
.tss-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #3498db;
    transition: background-color 0.3s, color 0.3s;
}
.tss-pagination .page-numbers:hover,
.tss-pagination .page-numbers.current {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}
.tss-pagination .page-numbers.dots {
    border: none;
    background: none;
    padding: 8px 0;
}
