@charset "utf-8";
/* 1. Khung bọc tổng thể cho các khối danh mục sản phẩm trang chủ Desktop */
.desktop-category-products-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 20px auto;
    background: #f4f4f4;
    padding: 15px;
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif;
}

/* 2. Khung section riêng cho từng danh mục sản phẩm */
.desktop-cat-section {
    background: #fff;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

/* 3. Thanh tiêu đề danh mục (Tên danh mục + Nút "Xem tất cả") */
.desktop-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #005E38;
    padding-bottom: 8px;
}

.desktop-cat-header h2 {
    font-size: 18px;
    color: #005E38;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

.desktop-cat-header a {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.desktop-cat-header a:hover {
    text-decoration: underline !important;
}

/* 4. Lưới hiển thị chính xác 4 sản phẩm trên một hàng ngang cho Desktop */
.desktop-product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    box-sizing: border-box;
}

/* 5. Từng ô sản phẩm đơn lẻ (Card sản phẩm) */
.desktop-product-item {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

/* Hiệu ứng rê chuột (Hover) làm nổi bật ô sản phẩm */
.desktop-product-item:hover {
    border-color: #005E38;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 6. Khung chứa ảnh sản phẩm chuẩn tỷ lệ 480x343 */
.desktop-product-item img {
    width: 100%;
    aspect-ratio: 480 / 343;
    object-fit: contain;
    display: block;
}

/* 7. Phần tiêu đề tên sản phẩm (giới hạn tối đa 2 dòng, tránh vỡ khung) */
.desktop-product-title {
    margin: 10px 0 6px 0;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.desktop-product-title a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.4;
}

.desktop-product-title a:hover {
    color: #0066cc;
    text-decoration: underline;
}
.desktop-product-material {
    margin: 0 0 8px 0;
    font-size: 11.5px;
    color: #64748b;
    font-style: italic;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Cố định gọn trong 1 dòng, chống đẩy khung giá */
    -webkit-box-orient: vertical;
    height: 16px;
}
/* 8. Khung hiển thị giá tiền và giá khuyến mại / gạch ngang */
.desktop-product-price {
    font-weight: bold;
    color: #197f35;
    font-size: 14px;
    margin-top: 5px;
}

.desktop-product-price del {
    font-size: 12px;
    color: #777;
    text-decoration: line-through;
    font-weight: normal;
}

/* 9. Tùy chỉnh phần giới thiệu ngắn (SEO / AI Overview) ngay dưới slide Desktop nếu có */
.desktop-category-products-wrapper + .home-intro-seo,
.desktop-slider-wrapper + div {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

