/* ==========================================================================
   HOME PRODUCT COMPONENT (VINASOMIN SẢN PHẨM & CHỈ SỐ)
   ========================================================================== */
.home-product {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 0 50px;
    color: #ffffff;
    font-family: inherit;
    background-color: #0b5cad;
}

.home-product *,
.home-product *::before,
.home-product *::after {
    box-sizing: border-box;
}

.home-product-container-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ==========================================================================
   1. HÀNG 4 CHỈ SỐ TRÊN CÙNG (TOP STATS)
   ========================================================================== */
.home-product-top-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 35px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
    width: 100%;
}

.home-product-top-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-product-top-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.home-product-top-item:hover .home-product-top-icon {
    transform: translateY(-4px) scale(1.08);
}

.home-product-top-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Chuyển icon ảnh thành màu trắng sắc nét */
}

.home-product-top-icon svg {
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.home-product-top-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.home-product-top-num-wrap .home-product-counter {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.home-product-top-num-wrap .home-product-top-unit {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.home-product-top-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.35;
    margin: 0;
}

/* ==========================================================================
   2. KHỐI NỘI DUNG CHÍNH (GRID 2 CỘT: TRÁI & PHẢI)
   ========================================================================== */
.home-product-inner {
    display: grid;
    grid-template-columns: 42% 1fr; /* Cố định 2 cột không bao giờ bị rớt xuống dưới trên desktop */
    gap: 35px 50px;
    align-items: flex-start;
    width: 100%;
}

.home-product-col-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-product-col-right {
    width: 100%;
    min-width: 0;
}

/* HÌNH TRÒN SẢN PHẨM: 4 GÓC ẢNH RIÊNG BIỆT */
.home-product-circle-wrap {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-product-circle-border {
    position: relative;
    width: 350px;
    height: 350px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    padding: 8px;
    border: 1.5px dashed rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.home-product-circle-border:hover {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

/* Khối lưới 4 góc (Quadrants) */
.home-product-circle-quadrants {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    background: #ffffff; /* Đường viền chỉ trắng mảnh phân cách 4 ảnh */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.home-product-quad-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: #111111;
}

.home-product-quad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease, opacity 0.4s ease;
}

/* HIỆU ỨNG HOVER TỪNG GÓC (NHƯ HÌNH 2) */
.home-product-quad-item:hover img {
    transform: scale(1.18);
    filter: brightness(1.15) contrast(1.05);
}

/* Khi hover vào 1 góc, 3 góc còn lại hơi mờ nhẹ để góc đó nổi bật nhất */
.home-product-circle-quadrants:hover .home-product-quad-item:not(:hover) img {
    opacity: 0.82;
    filter: brightness(0.9);
}

/* BADGE TRÒN SẢN PHẨM Ở CHÍNH GIỮA */
.home-product-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 106px;
    height: 106px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    border: 3px solid #ffffff;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.home-product-circle-border:hover .home-product-center-badge {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.38);
}

.home-product-center-badge span {
    display: block;
    font-weight: 800;
    font-size: 19px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* NGÀY CẬP NHẬT CỘT TRÁI */
.home-product-date-left {
    margin-top: 14px;
    margin-bottom: 22px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* HÀNG 3 CHỈ SỐ TÀI CHÍNH */
.home-product-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-top: 5px;
}

.home-product-stat-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-product-stat-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-stat-icon svg,
.home-product-stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    color: #ffffff;
}

.home-product-stat-content {
    display: flex;
    flex-direction: column;
}

.home-product-stat-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
}

.home-product-stat-val-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.home-product-stat-box .home-product-counter {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.home-product-stat-unit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
    white-space: nowrap;
}

/* TIÊU ĐỀ CỘT PHẢI */
.home-product-right-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}

.home-product-main-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.home-product-main-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* DANH SÁCH CÁC NHÓM SẢN PHẨM */
.home-product-groups-list {
    display: flex;
    flex-direction: column;
}

.home-product-group-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.home-product-group-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-product-group-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.home-product-group-icon svg,
.home-product-group-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    color: #ffffff;
}

.home-product-group-content {
    flex: 1;
    min-width: 0;
}

.home-product-group-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* TỪNG HÀNG DỮ LIỆU SẢN PHẨM */
.home-product-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.home-product-row:last-child {
    margin-bottom: 0;
}

.home-product-row-label {
    flex: 1;
    padding-right: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.home-product-row-right {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    min-width: 140px;
    text-align: right;
}

.home-product-row-right .home-product-counter {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    min-width: 48px;
    text-align: right;
    display: inline-block;
}

.home-product-row-unit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    width: 65px;
    text-align: left;
    flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .home-product-top-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        margin-bottom: 40px;
    }

    .home-product-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-product-circle-border {
        width: 310px;
        height: 310px;
    }

    .home-product-stats-row {
        max-width: 480px;
        margin-bottom: 10px;
    }
}

@media (max-width: 575px) {
    .home-product-top-stats {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-product-circle-border {
        width: 260px;
        height: 260px;
    }

    .home-product-stats-row {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        width: 100%;
        padding-left: 20px;
    }

    .home-product-row {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

    .home-product-row-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 2px;
    }

    .home-product-row-right .home-product-counter {
        text-align: left;
    }
}
