
/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background:#0d0d0f;
    color:rgb(255, 226, 226);
    line-height:1.6;
}

/* HEADER */
.header{
    background:#000;
    padding:15px 0;
}

.nav{
    max-width:1100px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
}

.nav a{
    color:white;
    text-decoration:none;
    font-size:14px;
    white-space:nowrap;   /* không cho xuống dòng */
    transition:0.2s;
}

.nav a:hover{
    color:#ff6a00;
}
/* HERO */
.hero{
    position:relative;
    width:100%;
    height:auto;
    overflow:hidden;
}

.hero-img{
    width:100%;
    height:auto;
    display:block;
}

.hero-content{
    position:absolute;
    top:5%;
    left:50%;
    transform:translateX(-50%);
    text-align:center;
    color:rgb(240, 254, 255);
    width:90%;
}

.hero-content h1{
    font-size:clamp(40px,8vw,80px);
}

.hero-content p{
    font-size:clamp(16px,3vw,22px);
}

/* SECTION BASE */
.section{
    width:100%;
    padding:80px 0;
}

.container{
    max-width:1600px;
    margin:auto;
    padding:0 20px;
}

/* BLOCK STYLE */
.block{
    background:#16161a;
    border:1px solid #ff6a00;
    border-radius:14px;
    padding:40px;
    margin-bottom:60px;
}

.block h2{
    text-align:center;
    font-size:32px;
    color:#ff6a00;
    margin-bottom:30px;
}

/* PRODUCT INFO */
.info p{
    margin-bottom:34px;
    text-align:center;
}

/* UPGRADE */
.upgrade ul{
    text-align:center;
    list-style:disc;
    padding-left:20px;
}

/* MODELS */
.models-title{
    text-align:center;
    font-size:38px;
    color:#ff6a00;
    margin-bottom:50px;
}

.model-card{
    background:#1b1b20;
    border:1px solid #ff6a00;
    border-radius:14px;
    padding:30px;
    margin-bottom:30px;
    text-align:center;
    transition:0.3s;
}

.model-card:hover{
    transform:translateY(-5px);
}

.model-card h3{
    font-size:28px;
    color:#ff6a00;
    margin-bottom:15px;
}

.model-card p{
    margin-bottom:20px;
}

.model-card button{
    padding:10px 20px;
    border:none;
    background:#ff6a00;
    color:white;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s;
}

.model-card button:hover{
    background:#ff8c2f;
}

/* PRICE */
.price-title{
    text-align:center;
    font-size:40px;
    color:#ff6a00;
    margin-bottom:20px;
}

.price p{
    text-align:center;
    font-size:18px;
}

/* WARRANTY */
.warranty p{
    text-align:center;
}

/* BUTTON AREA */
.action{
    text-align:center;
    margin-top:40px;
}

.action button{
    padding:14px 30px;
    margin:10px;
    border:none;
    border-radius:10px;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.btn-mess{
    background:#00a2ff;
    color:white;
}

.btn-order{
    background:#ff6a00;
    color:white;
}

.btn-mess:hover{
    background:#0088dd;
}

.btn-order:hover{
    background:#ff8c2f;
}

/* FOOTER */
.footer{
    text-align:center;
    padding:30px 0;
    background:black;
    margin-top:80px;
    font-size:14px;
    opacity:0.7;
}

/* ===== PREVIEW SECTION ===== */

.preview-container{
    width:80%;           /* chỉnh chiều ngang tại đây */
    max-width:1200px;
    height:65vh;         /* chỉnh chiều cao tại đây */
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.preview-container img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;   /* không crop */
    transition:0.4s ease;
}
.model-details{
    display:none;
    margin-top:20px;
}

.model-preview{
    margin-top:25px;
    text-align:center;
}

.model-preview img{
    max-width:80%;
    max-height:60vh;
    object-fit:contain;
    transition:0.3s ease;
}

/* ===== POPUP ===== */

.popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}
.popup-overlay.active {
    display: flex;
}
.popup-box{
    background:#111;
    width:95%;
    max-width:750px;
    max-height:90vh;
    overflow-y:auto;
    padding:45px;
    border-radius:12px;
    border:1px solid #ff6a00;
}

.popup-header{
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.popup-header h2{
    margin: 0;
}

.close-btn{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
}

.option-group{
    margin-bottom:25px;
    text-align:center;
}

.option-group h3{
    margin-bottom:15px;
}

.scroll-select{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option-item{
    background:#1e1e24;
    border:1px solid #444;
    border-radius:10px;
    padding:10px;
    text-align:center;
    cursor:pointer;
    transition:0.2s ease;
}

.option-item:hover{
    border-color:#ff6a00;
}

.option-item.active{
    background:transparent;
    border:1px solid #ff6a00;
    box-shadow:0 0 8px rgba(255,106,0,0.4);
}

.quantity-control{
    display:flex;
    align-items:center;
    gap:15px;
}

.quantity-control button{
    width:35px;
    height:35px;
}

.total-box{
    margin:20px 0;
    padding:15px;
    background:#1a1a1f;
    border-radius:8px;
    text-align:center;
}

.customer-info input{
    width:100%;
    padding:10px;
    margin-bottom:10px;
    border-radius:6px;
    border:none;
}

.confirm-btn{
    width:100%;
    padding:12px;
    background:#ff6a00;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

/* Mobile full screen */
@media(max-width:768px){
    .popup-box{
        width:100%;
        height:100%;
        border-radius:0;
    }
}
/* màu sắc */
.color-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:15px;
  border-radius:12px;
}

.color-circle{
  display:flex;
  width:40px;
  height:40px;
  border-radius:50%;
  overflow:hidden;
  margin-bottom:8px;
  border:2px solid #333;
}

.color-circle span{
  flex:1;
}
/* căn chỉnh */
@media(max-width:768px){

    .nav{
        justify-content:space-around;
        flex-wrap:nowrap;
    }

    .nav a{
        font-size:12px;
    }

}
/* SUCCESS POPUP */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.success-box {
  background: #111;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  color: white;
  animation: fadeIn 0.3s ease;
}

.success-box h2 {
  margin-bottom: 15px;
  color: #00ffcc;
}

.success-box button {
  margin-top: 20px;
  padding: 10px 25px;
  border: none;
  background: #ff6a00;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/*new*/
.form-message {
  margin: 15px 0;
  font-size: 24px;
  text-align: center;
  display: none;
}

.form-message.success {
  color: #f79225;
}

.form-message.error {
  color: #ff4d4d;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}