    @font-face {
    font-family: 'Montserrat';
    src: url('../font/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../font/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

body {
    font-family: 'Montserrat' !important;
    font-synthesis: none;
    /*font-size: 16px;*/
    line-height: 1.6;
    color: #FFF;
    margin: 0;
    padding: 0;
    background: #FFF;
}

/* ==== Banner Section ==== */

/* Tùy chỉnh dấu chấm indicator */
.carousel-indicators [data-bs-target] {
    width: 7px;
    /* 👈 tăng kích thước */
    height: 7px;
    /* 👈 tăng kích thước */
    border-radius: 50%;
    /* tròn */
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    /* khoảng cách giữa các chấm */
    border: none;
}

.carousel-indicators .active {
    background-color: #ff6666;
    /* màu chấm active */
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    background: #FFF;
}

.banner {
    width: 100%;
    margin-bottom: 20px;
    background: #FFF;
}

*/ */ .hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #FFF;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    background: #FFF;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-align: center;
}

ol,
ul {
    padding-left: 0;
}

.computer-section ol,
.computer-section ul,
.why-section ol,
.why-section ul,
.details ol,
.details ul,
.why-rosa-wrapper ol,
.why-rosa-wrapper ul {
    padding-left: 2rem;
}



/* ==== ảnh nên ==== */
.why-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.why-section-image {
    width: 100%;
    height: auto;
    display: block;
}

ol,
ul {
    padding-left: 0;
}

.computer-section ol,
.computer-section ul,
.why-section ol,
.why-section ul,
.details ol,
.details ul,
.why-rosa-wrapper ol,
.why-rosa-wrapper ul {
    padding-left: 2rem;
}


/* ==== Computer Section ==== */
.computer-section {
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.view-all-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* ==== Category Tabs ==== */
.category-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.category-tabs {
    background-color: #f2f2f2;
    border-radius: 25px;
    display: flex;
    padding: 4px;
    gap: 2px;
    width: 100%;
    max-width: 580px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs button {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: fit-content;
}

.category-tabs button.active {
    background-color: #b71c1c;
    color: white;
    font-weight: 500;
}

/*san pham*/

.product-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: stretch;
    /* ép các card cao bằng nhau */
}

.why-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    /* cho card full chiều cao trong grid */
}

.image-container img {
    width: 100%;
    height: 220px;
    /* ép ảnh cao bằng nhau */
    object-fit: cover;
    /* cắt cho đẹp */
    border-radius: 8px;
}

.details {
    flex-grow: 1;
    /* nội dung co giãn */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==== Product Grid ==== */
.product-container-custom {
    width: 100%;
}

.product-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.why-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s ease;
}

/* 
.why-card:hover {
    transform: translateY(-2px);
} */

.image-container {
    width: 100%;
    background: #fff;
    padding: 10px;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* lấy đúng sản phẩm */

.category-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.category-tabs button {
    padding: 10px 20px;
    border: none;
    /* background: #eee; */
    cursor: pointer;
    /* border-radius: 6px; */
    font-weight: 600;
}


/* Căn giữa giá sản phẩm */
.why-card .price {
    text-align: center;
    width: 75%;
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    margin: 8px 0;
}

/* ==== Product Details ==== */
.details {
    padding: 15px;
    background-color: #FFFFFF;
    text-align: center;
    /* mặc định căn giữa */
}

.details h3 {
    font-size: 22px;
    width: 80%;
    font-weight: 600;
    color: #000;
    margin: 10px 0;
    line-height: 1.3;
}

.details hr {
    border: none;
    height: 1px;
    background-color: #343a40;
    margin: 10px 0;
}

.key-specs {
    font-size: 15px;
    color: #000;
    line-height: 1.8;
    margin: 13px 0;
    text-align: left;
    /* chỉ đoạn specs căn trái */
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: #c62828;
    margin: 15px auto;
    display: block;
    width: 100%;
    /* chiếm hết chiều ngang */
    text-align: center;
    /* chữ giá ở giữa */
}


.shop-button {
    display: inline-block;
    background: #C10000;
    color: #FFFFFF;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 14px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
    width: 80%;
    text-align: center;
    border: none;
    box-shadow: none;
}

.shop-button:hover,
.shop-button:focus,
.shop-button:active {
    background: #C10000;
    color: #fff;
    text-decoration: none !important;
    outline: none;
}


/* ==== Why Rosa Section ==== */
.why-rosa-wrapper {
    padding: 30px 15px;
    font-family: 'Montserrat', sans-serif;
    max-width: 1300px;
    margin: 0 auto;
}

.why-rosa-title {
    margin: 0 auto 25px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #6b6b6b;
    text-align: center;
}

.why-rosa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-rosa-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-rosa-card-title {
    margin: 4px 0 10px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: #111;
}

.why-rosa-divider {
    width: 100%;
    height: 1px;
    background: #eee;
    margin: 6px 0 12px;
    border-radius: 1px;
}

.why-rosa-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

/* ==== RESPONSIVE BREAKPOINTS ==== */

/* Tablet - 768px and below */
@media (max-width: 768px) {
    .computer-section {
        padding: 0 10px;
        margin: 15px auto;
        background: #FFF;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-tabs {
        padding: 3px;
        gap: 1px;
    }

    .category-tabs button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .details h3 {
        font-size: 16px;
    }

    .key-specs {
        font-size: 12px;
    }

    .price {
        font-size: 15px;
    }

    .shop-button {
        padding: 8px 16px;
        font-size: 13px;
        width: 85%;
    }

    .why-rosa-title {
        font-size: 24px;
    }

    .why-rosa-card {
        padding: 25px 15px;
    }

    .why-rosa-card-title {
        font-size: 16px;
    }
}


/* Mobile - 480px and below */
@media (max-width: 480px) {
    .computer-section {
        margin: 10px auto;
        padding: 0 8px;
        background: #FFF;
    }

    .section-title {
        font-size: 20px;
    }

    .view-all-link {
        font-size: 12px;
    }

    .category-tabs-wrapper {
        padding: 0 5px;
    }

    .category-tabs {
        border-radius: 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tabs button {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 60px;
    }

    .product-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .why-card {
        margin: 0 auto;
        max-width: 350px;
        background: #FFF;
    }

    .details {
        padding: 12px;
    }

    .details h3 {
        font-size: 15px;
        margin: 8px 0;
    }

    .key-specs {
        font-size: 11px;
        padding: 0 5px;
    }

    .price {
        font-size: 14px;
        margin: 12px 0;
    }

    .shop-button {
        padding: 8px 15px;
        font-size: 12px;
        width: 90%;
    }

    .why-rosa-wrapper {
        padding: 20px 10px;
    }

    .why-rosa-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .why-rosa-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .why-rosa-card {
        padding: 20px 15px;
    }

    .why-rosa-card-title {
        font-size: 15px;
    }

    .why-rosa-desc {
        font-size: 13px;
    }

    .product-group {
        grid-template-columns: repeat(2, 1fr);
        /* Thay 1fr thành repeat(2, 1fr) */
        gap: 10px;
        /* Giảm gap một chút để vừa không gian màn hình nhỏ */
    }

    .why-card {
        margin: 0 auto;
        /* Bỏ max-width hoặc để auto để card co giãn theo grid */
        max-width: 100%;
        background: #FFF;
    }

    /* Tối ưu kích thước chữ cho vừa 2 cột */
    .details h3 {
        font-size: 13px;
        /* Giảm nhẹ size chữ tiêu đề */
        margin: 8px 0;
        height: 3em;
        /* Giới hạn chiều cao tiêu đề để không bị lệch khung */
        overflow: hidden;
    }

    .key-specs {
        font-size: 10px;
        padding: 0 5px;
    }

    .price {
        font-size: 13px;
        margin: 8px 0;
    }

    .shop-button {
        padding: 6px 10px;
        font-size: 11px;
        width: 95%;
    }
}

/* Extra small devices - 360px and below */
@media (max-width: 360px) {
    .computer-section {
        padding: 0 5px;
        background: #FFF;
    }

    .section-title {
        font-size: 18px;
    }

    .category-tabs button {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 55px;
    }

    .details h3 {
        font-size: 14px;
    }

    .key-specs {
        font-size: 10px;
    }

    .price {
        font-size: 13px;
    }

    .shop-button {
        font-size: 11px;
        padding: 7px 12px;
    }

    .why-rosa-title {
        font-size: 18px;
    }

    .why-rosa-card {
        padding: 15px 10px;
    }

    .why-rosa-card-title {
        font-size: 14px;
    }

    .why-rosa-desc {
        font-size: 12px;
    }
}

/* ==== Additional Mobile Optimizations ==== */

/* Touch-friendly interactions */
@media (max-width: 768px) {
    .category-tabs button {
        min-height: 44px;
        min-width: 44px;
    }

    /*.shop-button {*/
    /*    min-height: 44px;*/
    /*}*/

    .why-card {
        cursor: pointer;
    }
}

/* Prevent horizontal scroll */
* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    background: #FFF;
}

/* Improve text readability on mobile */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
        background: #FFF;
    }
}

/* Loading performance improvements */
.image-container img {
    loading: lazy;
}

/* Dark mode support (optional) */
/*@media (prefers-color-scheme: dark) {*/
/*    body {*/
/*        background-color: #fff;*/
/*        color: #ffffff;*/
/*    }*/

/*    .why-card {*/
/*        background: #FFF;*/
/*        border: 1px solid #FFF;*/
/*    }*/

/*    .why-rosa-card {*/
/*        background: #2d2d2d;*/
/*        border: 1px solid #444;*/
/*    }*/
/*}*/