/*
|--------------------------------------------------------------------------
| Container toàn trang
|--------------------------------------------------------------------------
|
| Tổng chiều rộng tối đa của trang là 1300px.
| Sidebar nằm bên trong chiều rộng này, không làm trang rộng thêm.
|
*/

.product-show-container {
    width: 100%;
    max-width: 1300px !important;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| Khối phía trên: sản phẩm bên trái và sidebar bên phải
|--------------------------------------------------------------------------
|
| Trên PC:
| - Sidebar rộng cố định 280px.
| - Khoảng cách giữa sản phẩm và sidebar là 5px.
| - Khối sản phẩm tự co lại trong tổng chiều rộng 1300px.
|
*/

.product-show-top-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    align-items: start;
    box-sizing: border-box;
}

.product-show-top-main {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
h1.name {
    font-size: 24px;
    font-weight:600;

}

/*
|--------------------------------------------------------------------------
| Sidebar bên phải
|--------------------------------------------------------------------------
*/

.product-right-sidebar {
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    align-self: start;
    box-sizing: border-box;
}

.product-right-sidebar__inner {
    position: sticky;
    top: 24px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| Khối cam kết
|--------------------------------------------------------------------------
*/

.product-benefits {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 10px;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            #f1f3f6 0%,
            #e2e7ec 100%
        );
    box-sizing: border-box;
}

.product-benefits__grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.product-benefit {
    min-width: 0;
    text-align: center;
}

.product-benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    color: #22aaf5;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.05);
}

.product-benefit__icon svg {
    display: block;
    width: 34px;
    height: 34px;
}

.product-benefit__text {
    display: block;
    margin-top: 13px;
    color: #344054;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
}

/*
|--------------------------------------------------------------------------
| Tư vấn bán hàng
|--------------------------------------------------------------------------
*/

.product-sales-consulting {
    display: block;
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #e8edf2;
    box-sizing: border-box;
}

.product-sales-consulting__header {
    width: 100%;
    padding: 15px 18px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.4;
    /*letter-spacing: 0.03em;*/
    text-transform: uppercase;
    background: #55a6ec;
    box-sizing: border-box;
}

.product-sales-consulting__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 18px 14px;
    box-sizing: border-box;
}

.product-sales-consultant {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        120px
        38px;
    gap: 6px;
    width: 100%;
    min-width: 0;
    align-items: center;
    box-sizing: border-box;
}

.product-sales-consultant__name {
    min-width: 0;
    overflow: hidden;
    color: #344054;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-sales-consultant__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    min-height: 38px;
    padding: 6px 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 6px;
    background: #ffffff;
    box-sizing: border-box;
    transition:
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.product-sales-consultant__phone:hover {
    color: #0284c7;
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.08);
}

.product-sales-consultant__zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    border: 4px solid #ffffff;
    border-radius: 7px;
    background: #2aaae2;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-sales-consultant__zalo:hover {
    transform: translateY(-1px);
    box-shadow:
        0 5px 12px rgba(15, 23, 42, 0.14);
}

/*
|--------------------------------------------------------------------------
| Hiển thị sidebar trên PC
|--------------------------------------------------------------------------
|
| Tổng chiều rộng vẫn tối đa 1300px:
| - Sidebar: 280px.
| - Khoảng cách: 5px.
| - Khối sản phẩm lấy toàn bộ chiều rộng còn lại.
|
*/

@media (min-width: 1280px) {
    .product-show-top-layout {
        grid-template-columns:
            minmax(0, 1fr)
            280px;
        gap: 10px;
    }

    .product-right-sidebar {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 280px;
    }

    .product-right-sidebar__inner {
        width: 100%;
    }

    .product-benefits,
    .product-sales-consulting {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Tablet và điện thoại
|--------------------------------------------------------------------------
*/

@media (max-width: 1279px) {
    .product-show-top-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .product-right-sidebar {
        display: none !important;
    }
}