*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #3e3e3f;
    font-family: Arial, Helvetica, sans-serif;
}
a {
    text-decoration: none;
}
ul {
    list-style: none;
}
.container-header {
   width: 100%;
   height: 65px;
   background-color: #000;
}
.content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    min-width: 1024px;
    margin: auto;
    height: 65px;
}
.container-header .logo {
    margin-right: 15px;
}
.container-header .logo img{   
    display: inline-block;
    width: 100%;
    height: 65px;
}
/* css menu */
.header-menu {
    overflow: auto;
    width: 65%;
}
.header-menu > li {
    float: left;
    width: 12%;
    transition: opacity .2s cubic-bezier(.645,.045,.355,1);
}
.header-menu > li > a {
    color: #fff;
    display: block;
    overflow: hidden;
    padding: 25px 0 21px;
    text-align: center;
    font-size: 15px;
}
.header-menu > li:hover a{
 background-color: #2d2d2d;
}
/* right icon */
.icon-header {
    margin-right: 10px
}
.icon-header > a {
    margin-right: 20px;
    display: inline-block;
    background-color: #3e3e3f;
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}
.icon-header > a > i {
    color: #fff;
    font-size: 14px;
}
/* form input css */
.search {
    display: none;
    width: 600px;
    transition: opacity .2s cubic-bezier(.645,.045,.355,1);
    animation: Fade;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 20px 0;
    height: 64px;
    margin: auto;
    position: absolute;
}
.search .content-input {
    display: block;
    overflow: hidden;
    position: relative;
}
.content-input > .fa-search {
    color: #fff;
    font-size: 15px;
    margin-right: 10px;
    position: absolute;
    cursor: pointer;
    top: 10%;
}
.content-input > .fa-times {
    color: #fff;
    font-size: 15px;
    position: absolute;
    right: 0;
    cursor: pointer;
    top: 10%;
    margin-left: 10px;
}
.content-input > input {
    width: 100%;
    overflow: hidden;
    float: right;
    border: 0;
    height: 20px;
    font-size: 16px;
    padding-left: 30px;
    outline: none;
    background: #000;
    color: #fff;
    transition: .65s ease-out;
    animation: Fade;
    
}
/*slide show css */
.main-content .main-slider {
    width: 100%;
    height: 421px;
    position: relative;
}
.main-slider > img {
    width: 100%;
    height: 421px;
    position: absolute;
    top: 0;
    left: 0;
}
.main-slider > img:first-child{
    z-index: 1;
}
.main-slider > img:first-child(6){
    z-index: 0;
}
.navigation-button{
    text-align: center;
    position: relative;
}
.dot {
    margin-right: 10px;
    cursor: pointer;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    background-color: #bbb;
}
.active,
.dot:hover {
    background-color: #717171;
}
/* main item product */
.item-product {
    max-width: 1200px;
    min-width: 1024px;
    margin: auto;
}
.main-item {
    display: flex;
    align-items: center;
    width: 103%;
    margin: 50px auto 80px;
}
.main-item > .item {
    text-align: center;
    width: 25%;
    background-color: #323232;
    height: 220px;
    position: relative;
    border-radius: 13px;
    margin: 20px;
    transition: 0.3s all ease;
}
.main-item > .item:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.main-item > .item > img {
    margin: 45px 0 5px 0;
    height: 110px;
}
.main-item > .item  > p {
    margin-top: 10px;
    color: #fff;
}
/* product card css */
.product-item {
    display: block;
    margin-top: 35px;
    width: 1200px;
    margin: auto;
}
.product-item .name-product {
    text-align: center;
    color: #fff;
    font-size: 38px;
    font-weight: normal;
    margin-bottom: 20px;
}
.product-item .name-product > img{
    height: 35px;
}
.product-item .main-product {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 45px auto 88px;
}
.product-item .main-product > li {
    cursor: pointer;
    text-align: center;
    position: relative;
    height: 420px;
    width: 295px;
    background-color: #323232;
    border-radius: 20px;
    margin: 0 15px;
    transition: 0.3s all ease;
}
.main-product > li:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.main-product > li > img {
    margin-top: 30px;
    margin-bottom: 20px;
    height: 280px;
}
.main-product > li > p {
    margin-top: 0px;
    margin-bottom: 18px;
    color: #fff;
}
.main-product > li > span {
    color: #fff;
}
/* maccss */
.macbook .mac-product > li > img {
    margin-bottom: 0;
}
.macbook .mac-product > li > p {
    font-size: 14px !important;
}
/* button next and previous css */
.previous {
    position: absolute;
    left: 6%;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 25px;
    background-color: #323232;
    color: #bbb;
    user-select: none;
}
.previous > span {
    top: 10px;
    position: absolute;
    left: 15px;
}
.previous::before {
    border-top-left-radius: 10px;
    top:23.4px;
    right: 15px;
    height: 2px;
    width: 16px;
    background-color: #bbb;
    content: "";
    position: absolute;
}
.next {
    position: absolute;
    right: 4%;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    background-color: #323232;
    color: #bbb;
    cursor: pointer;
    transition: 0.3s all ease;
}
.next:hover {
    background-color: #717171;
}
.next > span {
    top: 8px;
    position: absolute;
    left: 20px;
}
.next::before {
    border-top-left-radius: 10px;
    top:23.4px;
    right: 18px;
    height: 2px;
    width: 16px;
    background-color: #bbb;
    content: "";
    position: absolute;
}

/*  */
.airpod-item .airpod-product > li {
    height: 450px !important;
}
.airpod-item .airpod-product > li > .price-sale {
    margin-top: 10px;
    color: orange;
    font-size: 13px;
}
/* tekzone css */
.contact-section {
    width: 100%;
    padding: 70px 20px;
    background: #1f1f1f;
    color: #fff;
    box-sizing: border-box;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
}

.contact-title {
    text-align: center;
    margin-bottom: 45px;
}

.contact-title span {
    color: #d9a441;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.contact-title h2 {
    margin: 10px 0;
    font-size: 36px;
    font-weight: 800;
}

.contact-title p {
    color: #aaa;
    margin: 0;
    font-size: 16px;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-box {
    min-height: 150px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;

    background: #292929;
    border: 1px solid #3b3b3b;
    border-radius: 16px;

    transition: 0.3s ease;
    box-sizing: border-box;
}

.contact-box:hover {
    transform: translateY(-5px);
    border-color: #d9a441;
    box-shadow: 0 10px 30px rgba(217, 164, 65, 0.15);
}

.contact-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #111;
    border: 1px solid #d9a441;

    font-size: 25px;
}

.contact-box h3 {
    margin: 0 0 8px;
    color: #d9a441;
    font-size: 18px;
}

.contact-box p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.contact-box small {
    display: block;
    margin-top: 5px;
    color: #888;
}

.contact-box a {
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.contact-box a:hover {
    color: #d9a441;
}

.contact-footer {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 30px;
    min-width: 150px;

    border-radius: 30px;
    background: linear-gradient(135deg, #d9a441, #f2c766);
    color: #111 !important;

    font-weight: 700;
    text-decoration: none;

    transition: 0.3s;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 164, 65, 0.3);
}

/* Nút Zalo */
.zalo-button {
    background: linear-gradient(135deg, #d9a441, #f2c766);
    color: #111 !important;
}

.zalo-button:hover {
    background: #0055d6;
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.3);
}

/* Nút xem bản đồ */
.map-button {
    background: linear-gradient(135deg, #d9a441, #f2c766);
    color: #111 !important;
    border: 1px solid #d9a441;
}

/* Điện thoại */
@media (max-width: 768px) {

    .contact-section {
        padding: 50px 15px;
    }

    .contact-title h2 {
        font-size: 28px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 20px;
    }

    .contact-footer {
        flex-direction: column;
    }

    .contact-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   DAT APPLE - RESPONSIVE MASTER CSS
   Desktop / Tablet / Mobile
   Dán cuối file để ghi đè các kích thước desktop cũ.
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

img,
video,
iframe {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

/* ---------- SLIDER ---------- */
.main-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.main-content .main-slider {
    width: 100%;
    height: 421px;
    position: relative;
    overflow: hidden;
}

.main-slider > img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ---------- GLOBAL CONTAINERS ---------- */
.content,
.item-product,
.product-item {
    width: min(1200px, calc(100% - 32px));
    max-width: 1200px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- HOME SERVICE CARDS ---------- */
.main-item {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.main-item > .item {
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* ---------- PRODUCT ROWS ---------- */
.product-item .main-product {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.product-item .main-product > li {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.main-product > li > img {
    max-width: 90%;
    object-fit: contain;
}

/* ---------- CONTACT / VIDEO ---------- */
.contact-container,
.store-video-section {
    width: min(1100px, calc(100% - 32px));
    max-width: 1100px;
    min-width: 0;
}

.contact-content,
.store-video-grid {
    min-width: 0;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1024px) {

    .content {
        width: calc(100% - 24px);
    }

    .container-header .content {
        min-width: 0;
        flex-wrap: nowrap;
    }

    .header-menu {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-menu > li {
        width: auto;
    }

    .header-menu > li > a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
    }

    .icon-header {
        flex: 0 0 auto;
    }

    .item-product,
    .product-item {
        width: calc(100% - 24px);
    }

    .main-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-item .main-product {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .product-item .main-product > li {
        height: auto;
        min-height: 420px;
    }

    .contact-content,
    .store-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* HEADER */
    .container-header {
        width: 100%;
        height: auto !important;
        min-height: 64px;
    }

    .container-header .content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 64px;
        padding: 6px 10px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .container-header .logo {
        width: 70px;
        max-width: 70px;
        margin-right: 5px;
        flex: 0 0 70px;
    }

    .container-header .logo img {
        width: 70px;
        height: 55px;
        object-fit: contain;
    }

    .icon-header {
        margin-left: auto;
        margin-right: 0;
        flex: 0 0 auto;
    }

    .icon-header > a {
        width: 36px;
        height: 36px;
        line-height: 36px;
        margin-right: 4px;
    }

    /* MENU: vuốt ngang trên điện thoại */
    .header-menu {
        order: 3;
        flex: 1 0 100%;
        width: 100% !important;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        display: flex;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .header-menu::-webkit-scrollbar {
        display: none;
    }

    .header-menu > li {
        float: none;
        width: auto;
        flex: 0 0 auto;
    }

    .header-menu > li > a {
        padding: 11px 13px;
        font-size: 13px;
    }

    /* SEARCH */
    .search {
        width: calc(100% - 30px);
        max-width: 600px;
    }

    /* SLIDER - HIỂN THỊ NGUYÊN BANNER */
    .main-content .main-slider {
        width: 100%;
        height: auto !important;
        aspect-ratio: 2.5 / 1;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden;
        background: #000;
    }

    .main-slider > img {
        width: 100%;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center;
        background: #000;
    }

    .navigation-button {
        padding: 10px 0 0;
    }

    .dot {
        width: 9px;
        height: 9px;
        margin-right: 7px;
    }

    /* HOME SERVICE CARDS */
    .item-product {
        width: calc(100% - 20px) !important;
        max-width: 1200px !important;
        min-width: 0 !important;
        padding: 0;
    }

    .main-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 35px auto 65px;
    }

    .main-item > .item {
        width: 100% !important;
        min-width: 0 !important;
        height: 205px !important;
        margin: 0 !important;
        border-radius: 14px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main-item > .item > img {
        width: 84%;
        max-width: 150px;
        height: 110px;
        margin: 0 0 10px 0;
        object-fit: contain;
    }

    .main-item > .item > p {
        margin: 0;
        font-size: 18px;
        line-height: 1.3;
    }

    /* ZALO CARD */
    .main-item .zalo-group-item {
        min-height: 205px !important;
        height: 205px !important;
    }

    .zalo-group-icon {
        width: 48px;
        height: 48px;
        font-size: 21px;
        margin-bottom: 5px;
    }

    .main-item .zalo-group-item p.zalo-group-title {
        font-size: 16px;
    }

    .zalo-group-item strong {
        font-size: 25px;
    }

    .zalo-group-item span {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* PRODUCT SECTION */
    .product-item {
        width: calc(100% - 20px) !important;
        max-width: 1200px !important;
        min-width: 0 !important;
    }

    .product-item .name-product {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .product-item .name-product > img {
        height: 28px;
        max-width: 100%;
        object-fit: contain;
    }

    .product-item .main-product {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 30px auto 65px;
    }

    .product-item .main-product > li {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 325px;
        margin: 0 !important;
        border-radius: 14px;
        overflow: hidden;
    }

    .main-product > li > img {
        width: 90%;
        max-width: 180px;
        height: 190px;
        margin: 18px auto 10px;
        object-fit: contain;
    }

    .main-product > li > p {
        padding: 0 8px;
        line-height: 1.35;
    }

    /* AIRPODS */
    .airpod-item .airpod-product > li {
        height: auto !important;
        min-height: 350px;
    }

    /* CONTACT */
    .contact-section {
        width: 100%;
        padding: 48px 12px;
    }

    .contact-container {
        width: 100%;
        max-width: 1100px;
    }

    .contact-title {
        margin-bottom: 30px;
    }

    .contact-title h2 {
        font-size: 27px;
        line-height: 1.25;
    }

    .contact-title p {
        font-size: 14px;
        line-height: 1.5;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-box {
        min-height: 125px;
        padding: 17px;
        gap: 14px;
        border-radius: 13px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 20px;
    }

    .contact-box h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .contact-box p {
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .contact-footer {
        flex-direction: column;
        gap: 10px;
    }

    .contact-button {
        width: 100%;
        min-width: 0;
    }

    /* VIDEO */
    .store-video-section {
        width: calc(100% - 20px);
        margin: 42px auto 30px;
        padding: 30px 12px 34px;
    }

    .store-video-title h2 {
        font-size: 27px;
        line-height: 1.25;
    }

    .store-video-title p {
        font-size: 14px;
        line-height: 1.5;
    }

    .store-video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .store-video-card {
        padding: 9px;
        border-radius: 13px;
    }

    /* BUTTONS */
    .previous,
    .next {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .previous {
        left: 8px;
    }

    .next {
        right: 8px;
    }
}

/* =========================================================
   ĐIỆN THOẠI NHỎ
========================================================= */
@media (max-width: 400px) {

    .container-header .logo {
        width: 62px;
        flex-basis: 62px;
    }

    .container-header .logo img {
        width: 62px;
        height: 52px;
    }

    .header-menu > li > a {
        padding-left: 11px;
        padding-right: 11px;
        font-size: 12px;
    }

    .main-item {
        gap: 9px;
    }

    .main-item > .item,
    .main-item .zalo-group-item {
        height: 190px !important;
        min-height: 190px !important;
    }

    .main-item > .item > img {
        height: 100px;
        max-width: 135px;
    }

    .main-item > .item > p {
        font-size: 16px;
    }

    .product-item .main-product {
        gap: 9px;
    }

    .product-item .main-product > li {
        min-height: 300px;
    }

    .main-product > li > img {
        height: 165px;
        margin-top: 15px;
    }

    .product-item .name-product {
        font-size: 25px;
    }
}
/* =====================================================
   SLIDER DESKTOP - HIỂN THỊ ĐÚNG TỶ LỆ BANNER
===================================================== */

@media (min-width: 769px) {

    .main-content {
        width: 100%;
        overflow: hidden;
    }

    .main-content .main-slider {
        width: 100%;
        height: auto !important;
        aspect-ratio: 2.5 / 1;
        position: relative;
        overflow: hidden;
    }

    .main-slider > img,
    .main-slider > img.swiper-slide {
        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
        object-position: center center !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        background: #000;
    }

    .navigation-button {
        position: relative;
        z-index: 20;
        text-align: center;
    }

}
/* =========================================
   THU NHỎ SLIDER TRÊN MÁY TÍNH
========================================= */

@media (min-width: 769px) {

    .main-content .main-slider {
        width: 100% !important;

        /* nhỏ hơn hiện tại */
        height: 330px !important;

        max-height: 330px !important;

        overflow: hidden;
        position: relative;
    }

    .main-slider > img {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
        object-position: center center !important;

        display: block;
    }

}
/* =====================================================
   CĂN SLIDER THẲNG HÀNG VỚI NỘI DUNG BÊN DƯỚI
===================================================== */

@media (min-width: 769px) {

    /* Khung slider */
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: hidden;
    }

    .main-content .main-slider {
        width: 100% !important;
        max-width: 1200px !important;

        height: 330px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        position: relative;
        overflow: hidden;
    }

    /* Ảnh slider */
    .main-slider > img {
        width: 100% !important;
        height: 100% !important;

        position: absolute !important;
        top: 0 !important;
        left: 0 !important;

        object-fit: contain !important;
        object-position: center center !important;

        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Các chấm nằm giữa slider */
    .navigation-button {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

}


/* =====================================================
   MÀN HÌNH NHỎ HƠN
===================================================== */

@media (min-width: 769px) and (max-width: 1250px) {

    .main-content .main-slider {
        width: calc(100% - 30px) !important;
        max-width: 1200px !important;
    }

}


/* =====================================================
   MOBILE - GIỮ NGUYÊN GIAO DIỆN HIỆN TẠI
===================================================== */

@media (max-width: 768px) {

    .main-content .main-slider {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2.5 / 1;
        max-width: 100% !important;
    }

    .main-slider > img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

}