* {
    box-sizing: border-box;
}

:root {
    --primary-color: #232222;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    font-family: 'Inter';
    scroll-behavior: smooth;
}

/* todo: Common */
a {
    text-decoration: none;
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 0;
    min-width: 98px;
    background: var(--primary-color);
    border-radius: 99px;
    font-weight: 500;
    font-size: 1.6rem;
    text-align: center;
    color: #fff;
}

.container {
    width: 70vw;
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
}

h2.swal2-title {
    font-size: 2.2rem;
    line-height: 1.4;
}

#swal2-html-container {
    font-size: 1.5rem;
    line-height: 1.4;
}

button.swal2-confirm.swal2-styled {
    font-size: 1.7rem;
}

#scrollTrigger {
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    color: blue;
}


/*todo -----------Hero----------- */
.header {
    height: auto;
    font-family: 'Inter';
}

.img__bg {
    background-image: url('../img/background.jpg');
    height: auto;
    background-size: cover;
    padding: 50px 0;
}

.row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column__left {
    width: 30%;
}

.column__left h1 {
    font-size: 7rem;
    color: #ffcc00;
    font-weight: 600;
    line-height: 10rem;
}

.column__left p {
    display: block;
    margin-top: 30px;
    color: #fff;
    font-size: 2.5rem;
}

.column__right {
    position: relative;
    width: 55%;
}

.column__right img {
    object-fit: cover;
    width: 100%;
}

/* Row Check */
.row-check {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    padding: 20px 0;
}

.row-check .column-1 {
    width: 30%;
}

.row-check .column-1 img {
    width: 50%;
}

.row-check .column-2 {
    display: flex;
    flex-direction: column;
    max-width: 35%;
    width: 35%;
}

.row-check .column-2 p {
    color: #ffcc00;
    line-height: 2.5rem;
}

.row-check .column-2 .form-check {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.column-2 .form-check span {
    color: #fff;
    margin-top: 15px;
    font-weight: 600;
}

.column-2 .form-check .input__check {
    width: 90%;
    height: 40px;
    border: 0.5px solid #232222;
    border-radius: 8px;
    margin: 10px 0;
    padding-left: 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-check .input__check::placeholder {
    color: #666;
    font-weight: 600;
    font-size: 1.6rem;
}

.row-check .column-2 .btn__check {
    margin-top: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 500ms;
    font-weight: 600;
}

.column-2 .btn__check:hover {
    transform: translateY(-0.5rem);
}

/* Check Warranty Not correct */
.column-2 p.not__correct {
    margin-top: 10px;
    color: red;
    opacity: 0;
    visibility: hidden;
    height: 0;
}

.column-2 p.not__active {
    margin-top: 10px;
    color: red;
    opacity: 0;
    visibility: hidden;
    height: 0;
}

/* todo: ================= result__check================ */
.result__check {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Inter';
}

.result__check img {
    height: 300px;
    object-fit: cover;
}

.checking__info-list {
    display: flex;
    text-align: left;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    width: 80%;
}

.checking__info-list tr {
    color: #777;
}

.checking__info-list tr th {
    font-weight: 600;
    vertical-align: middle;
    padding-left: 10px;
}

.checking__info-list tr:nth-child(even) {
    background-color: #ebebeb;
}

.checking__info-list tr td {
    vertical-align: middle;
    padding: 10px 0 10px 20px;
}

.checking__info-list td .status {
    display: block;
    margin-top: 10px;
    padding-right: 10px;
    color: green;
    line-height: 1.2;
}


/* -------Column-3------------ */
.row-check .column-3 {
    width: 30%;
}

.row-check .column-3 img {
    width: 50%;
}

.row-check .column-3 .language {
    font-size: 1.8rem;
}

.row-check .column-3 .language span {
    color: #ffcc00;
}

.column-3 .language a {
    color: #fff;
    font-weight: 600;
}


/*todo --------------Main------------- */

/* ----------------Feature -------------------*/
.feature {
    margin-top: 30px;
    padding-bottom: 50px;
}


.feature__list {
    margin-top: 50px;
    display: flex;
    gap: 30px;
}

.feature__list a {
    width: 100%;
}

.feature__item {
    flex: 1;
    border: 1px solid #a3a3a3;
    border-radius: 6px;
    position: relative;
    height: 400px;
}


.feature__img {
    height: 75%;
    max-width: 100%;
    width: 100%;
    background-size: cover;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
}


.feature__img-hover {
    background-color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 12px;
    cursor: default;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10%);
    /* Bắt đầu ở ngoài phần tử cha, di chuyển từ dưới lên */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.feature__img img {
    width: 100%;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: 100%;
    overflow: hidden;
}

.feature__item:hover .feature__img-hover {
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
    /* Di chuyển về vị trí ban đầu */
}

.btn.btn__add,
.btn.btn__select-options {
    border-radius: 4px;
    font-size: 1.4rem;
    background: #fff;
    border: 1px solid #000;
    color: #000;
    padding: 10px;
    font-weight: 500;
    cursor: pointer;
}

.btn.btn__add:hover,
.btn.btn__select-options:hover {
    color: #fff;
    background: #000;
}


.feature__discount {
    background-color: #8224e3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -10px;
    top: 30px;
}

.feature__discount span {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature__item .feature__body {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    height: 25%;
}

.item__title {
    font-size: 1.7rem;
    font-weight: 600;
}

.item__price {
    margin-top: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;

}

.item__price span {
    font-size: 1.6rem;
}

.item__price span:nth-child(1) {
    font-size: 1.4rem;
    color: #888;
    text-decoration: line-through;
}

/*-----------Warranty Policy-------------  */
.warranty__row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

.warranty__guide {
    width: 70%;
}

.warranty__guide p {
    margin: 20px 0;
    line-height: 24px;
    color: #444;
    font-size: 1.5rem;
    text-align: justify;
}

.warranty__guide strong {
    font-weight: 600;
}

.warranty__register {
    width: 20%;
    min-width: 230px;
    margin-top: 20px;
}

.warranty__register form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.warranty__register h3 {
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    display: block;
    margin: 0 auto;
}

.warranty__register h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 1px;
    background-color: #ccc;
}

.warranty__col {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.warranty__register label {
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.warranty__register input {
    font-size: 1.6rem;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding-left: 8px;
}

.warranty__register select {
    display: block;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding-left: 8px;
    font-size: 1.5rem;
    font-weight: 500;
}

.warranty__col.country {
    margin-top: 0;
}

.btn__submit {
    cursor: pointer;
    width: 40%;
}

.warranty__register .notify {
    margin-top: 10px;
}

.warranty__register .notify-success {
    color: rgb(0 157 13);
    font-weight: 500;
    display: none;
}

.warranty__register .notify-fail {
    color: red;
    display: none;
    font-weight: 500;
}

/* -----------------------------E2pen Description---------------------- */

.e2pen__des {
    background-color: #f3f3f3;
    margin-top: 50px;
    padding: 20px 0;
}

.e2pen__des h2 {
    font-style: italic;
}

.e2pen__des p {
    margin: 20px 0;
    line-height: 24px;
    color: #444;
    font-size: 1.5rem;
    text-align: justify;
}

.e2pen__des strong {
    font-weight: 600;
}

/* -------------------------FREQUENTLY ASKED QUESTIONS-------------------- */
.question {
    padding: 50px 0;
}

.question .info {
    width: 70%;
    margin: 0 auto;
    margin-top: 30px;
}

.question h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 30px;
}

.list__quest {
    margin-top: 10px;
}

.question .item {
    border-top: 1px solid rgb(221, 221, 221);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #777;
    padding: 20px 30px;
}

.item .item__question {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.item__question svg {
    width: 19px;
    fill: #777;
    transition: transform 0.5s;
    /* Thêm chuyển đổi mượt mà */
}

.item__question.active svg {
    transform: rotate(180deg);
    /* Xoay SVG 90 độ khi active */
    fill: #000;
}


.item .item__question:hover {
    color: #8b3ad6;
}

.item .item__answer {
    font-size: 1.4rem;
    display: none;
    margin-left: 30px;
}

.item__question.active {
    font-weight: 600;
    color: #000;
}


/* ----------------Click Me------------------ */
.sign__click {
    background-color: rgb(67, 35, 110);
    padding: 20px 0;
}

.sign__click .row {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.sign__click h3 {
    font-size: 2rem;
    color: #fff;
    font-weight: 600;
}

.btn.btn__click-me {
    border: 1px solid #fff;
    background-color: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.btn.btn__click-me:hover {
    background-color: #fff;
    color: #444;
}


/* todo --------------- table info check warranty ------------- */
.info-table {
    width: 70%;
    border-collapse: collapse;
    margin: 10px 0;
    border-radius: 4px;
    overflow: hidden;
}

.info-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
    /* Căn giữa theo chiều dọc */
    line-height: 2;
    color: #ccc;
}

.info-table tr:nth-child(even) {
    background-color: #2a2832;
}

.info-table tr:nth-child(even) td {
    color: #cac8cf;
}


.info-table td:first-child {
    font-weight: 500;
}

.warranty__info {
    font-weight: 500;
    color: #51d45c
}


/* todo: Popup NotActive */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    position: relative;;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
}

.close {
    position: absolute;
    color: #aaa;
    font-size: 26px;
    font-weight: bold;
    top: 2px;
    right: 8px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.warranty__register.warranty__register-2 {
    width: 86%;
    margin: 0 auto;
}

span.registerForm__required {
    color: #333;
    font-weight: 600;
    text-align: justify;
    line-height: 1.4;
    font-style: italic;
}


/* todo ----------------Responsive---------------- */

/* todo: PC 1200px --> 1399px */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .container {
        width: 80vw;
        max-width: calc(100% - 48px);
        margin-left: auto;
        margin-right: auto;
    }

    .warranty__register {
        width: 22%;
    }

    .checking__info-list {
        width: 90%;
    }

    .feature__list {
        display: grid; 
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 20px;
    }

    .feature__item {
        height: 320px;
        min-width: 100%;
    }

    .feature__body h3 {
        font-size: 1.6rem;
        white-space: nowrap;
        overflow: hidden;
    }
}

/* todo: PC 992px --> 1199px */
@media screen and (min-width: 992px) and (max-width: 1199px) {

    .checking__info-list {
        width: 90%;
    }

    .row-check .column-1 {
        padding-top: 30px;
    }

    .column__left p {
        font-size: 2.2rem;
        margin-top: 10px;
    }

    .row-check {
        padding: 30px 0;
    }

    .feature__list {
        gap: 15px;
    }

    .feature__item {
        padding: 0;
        height: 300px;
    }

    .feature__item .feature__body {
        padding: 10px 10px;
    }

    .item__title {
        font-size: 1.5rem;
    }

    .item__price span:nth-child(1) {
        font-size: 1.3rem;
    }

    .item__price span {
        font-size: 1.5rem;
    }

    .warranty__register h3 {
        font-size: 1.7rem;
    }

    .question {
        padding: 25px 0;
    }

}

/* Tablet & Mobile */
@media screen and (max-width: 991px) {}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .navbar {
        padding: 18px 0;
    }

    .navbar .logo {
        width: 168px;
    }

    .row-check .column-1 {
        padding-top: 30px;
    }

    .checking__info-list {
        width: 100%;
        line-height: 1.2;
    }

    .column__left {
        width: 40%;
    }

    .column__left p {
        margin-top: 20px;
    }

    .feature__list {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .feature__item {
        height: 330px;
    }

    .warranty__row {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .warranty__guide {
        width: 100%;
    }

    .warranty__register {
        width: 35%;
    }
}


/* Mobile */
@media screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2){
    .row-title {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .column__left {
        width: 100%;
        /* margin-left: 30px; */
    }

    .column__left h1 {
        font-size: 6rem;
        line-height: 1.2;
    }

    .column__right {
        width: 100%;
    }

    .column__right img {
        width: 100%
    }

    .row-check {
        flex-direction: column;
        gap: 20px;
    }

    .row-check .column-1,
    .row-check .column-2,
    .row-check .column-3 {
        width: 100%;
    }

    .row-check .column-2 {
        max-width: 100%;
    }

    .checking__info-list {
        width: 95%;
    }

    .feature__discount {
	left: 0;
        width: 34px;
        height: 34px;
    }

    .feature__discount span {
        font-size: 1.2rem;
    }

    .feature__list {
    	display: -webkit-grid; /* Safari h? tr? Grid */
    	display: grid;
    	-webkit-grid-template-columns: repeat(2, 1fr); /* Hai c?t d?u nhau */
   	grid-template-columns: repeat(2, 1fr);
    	gap: 10px; /* Kho?ng cch gi?a cc c?t */
    }

    .feature__list a {
        height: 70%;
    }

    .feature__item {
        height: 250px;
        width: 100%; /* ?m b?o chi?u r?ng dng v?i Grid */
        box-sizing: border-box; /* ?m b?o Padding/Margin khng ?nh hu?ng kch thu?c */
        overflow: hidden;
    }
	
    .feature__item .feature__body {
        flex-direction: column;
        padding: 8px;             
        gap: 10px;
        justify-content: center;
    }

    .item__title {      
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;             
    }

    .item__price {
        gap: 5px;
        margin-top: 0;
    }

    .item__price span:nth-child(1) {
        font-size: 1.2rem;
    }

    .item__price span {
        font-size: 1.2rem
    }

    .warranty__row {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .warranty__guide {
        width: 100%;
    }

    .warranty__register {
        width: 70%;
    }

    .warranty__register input.btn {
        margin: 0 auto;;
    }

    .question {
        padding: 30px 0;
    }
    
    .question h2 {
        font-size: 2.2rem;
    }

    .question .info {
        width: 100%;
    }

    .question h3 {
        font-size: 1.8rem;
    }

    .question .item {
        padding: 20px 5px
    }

    .item .item__question {
        align-items: baseline;
        gap: 15px;
    }

    .item .item__question span {
        line-height: 1.6;
    }

    .sign__click .row {
        gap: 5px;
    }

    .sign__click h3 {
        font-size: 1.8rem;
    }

    .btn.btn__click-me {
        font-size: 1.5rem;
    }

    .modal-content {
        margin: 30% auto;
        max-width: 350px;
    }
}