        /* ========================================================
           BỘ CSS CƠ BẢN (COS_CMS) - TỐI ƯU & NHẸ NHÀNG
        ======================================================== */
        :root {
            --danger-color: #ef4444;
            --text-main: #1f2937;
            --text-muted: #646361;
            --bg-card: #ffffff;
            --border-color: #e5e7eb;
            --radius: 8px;
            --shadow: 0 1px 3px rgba(0,0,0,0.1);
            --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1);
        }
        /* ========================================================
           GRID SYSTEM & SCALE (LƯỚI VÀ KÍCH THƯỚC)
        ======================================================== */
        .product-grid {
            display: grid;
            gap: 16px;
        }
        /* Scale Class: Điều chỉnh kích thước cột */
        .scaleitem-1 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
        .scaleitem-2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
        .scaleitem-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
        /* ========================================================
           PRODUCT CARD (GIAO DIỆN ITEM SẢN PHẨM)
        ======================================================== */
        .cos-product-item {
            position: relative;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: box-shadow 0.3s ease, transform 0.3s ease;
        }
        .cos-product-item:hover {
            box-shadow: var(--shadow-hover);
        }
        /* Thẻ A bọc toàn bộ item - Không ảnh hưởng layout nhưng phủ kín */
        .cos-item-link {
            position: absolute;
            inset: 0;
            z-index: 1;
        }
        /* Vùng chứa ảnh */
        .cos-product-img-wrap {
            position: relative;
            width: 100%;
            overflow: hidden;
            background-color: #e5e7eb;
            flex-shrink: 0;
        }
        .cos-product-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        .cos-product-item:hover .cos-product-img-wrap img {
            transform: scale(1.05);
        }
        /* Nhãn giảm giá */
        .cos-discount-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background-color: var(--danger-color);
            color: #fff;
            font-size: 0.75rem;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 4px;
            z-index: 2; /* Nổi trên ảnh nhưng dưới link xíu, tuy nhiên link absolute nên badge ko click được, ko sao */
        }
        /* Vùng thông tin */
        .cos-product-info {
            padding: 12px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            justify-content: space-between;
        }
        .cos-product-name {
            font-size: 0.95rem;
            font-weight: 600;
            margin: 0 0 8px 0;
            line-height: 1.4;
            /* Cắt chữ ở 2 dòng */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            color: var(--picmau8);
        }
        .cos-product-prices {
            margin-bottom: 12px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }
        .cos-price-current {
            color: var(--danger-color);
            font-weight: bold;
            font-size: 1rem;
        }
        .cos-price-old {
            color: var(--text-muted);
            text-decoration: line-through;
            font-size: 0.85rem;
        }
        /* Nút mua - Nâng z-index lên 2 để có thể click đè lên lớp thẻ A bọc item */
        .cos-btn-buy {
            position: relative;
            z-index: 2; 
            width: 120px;
            background: none;
            border: solid 1px var(--picmau5);
            color: var(--picmau5);
            padding: 8px 12px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            align-self: center;
            transition: background 0.2s;
        }
        .cos-btn-buy:hover {
            background-color: var(--primary-dark);
            color:#FFF
        }
        .cos-btn-buy svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }
        /* ========================================================
           ASPECT RATIO (TỶ LỆ KHUNG ẢNH THEO YÊU CẦU)
        ======================================================== */
        .griditem-11 .cos-product-img-wrap { aspect-ratio: 1 / 1; }
        .griditem-43 .cos-product-img-wrap { aspect-ratio: 4 / 3; }
        .griditem-34 .cos-product-img-wrap { aspect-ratio: 3 / 4; }
        .griditem-169 .cos-product-img-wrap { aspect-ratio: 16 / 9; }
        /* ========================================================
           RESPONSIVE MOBILE (< 380px)
        ======================================================== */
        @media (max-width: 420px) {
            /* Nếu có class item-mobile, chuyển sang dạng row */
            .item-mobile {
                grid-template-columns: 1fr; /* Trở về 1 cột */
                gap: 12px;
            }
            .item-mobile .cos-product-item {
                flex-direction: row;
                align-items: stretch;
            }
            .item-mobile .cos-product-img-wrap {
                width: 120px; /* Độ rộng ảnh cố định trên mobile */
                height: auto;
                aspect-ratio: 1 / 1; /* Có thể force tỷ lệ 1:1 cho đẹp khi ở dạng row */
            }
            .item-mobile .cos-product-info {
                padding: 10px;
                justify-content: center; /* Căn giữa nội dung */
            }
            .item-mobile .cos-product-name {
                font-size: 0.9rem;
            }
            .item-mobile .cos-btn-buy {
                padding: 6px;
                font-size: 0.85rem;
            }
        }
.buthot {position: absolute;
    width: 76px;
    height: 81px;
    z-index: 9;
    right: 0;
    margin: -6px;
    margin-right: -6px;
    background-image: url(https://i.imgur.com/hXmsngL.png);
}