/* RESET & COMMON */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f8fafc; color: #1e293b; overflow-x: hidden; }
.container { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; padding: 0 30px; }
.space-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* HEADER & NAV (Giữ nguyên phần menu to đẹp) */
#header-wrapper { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
.top-bar { background-color: #1e293b; padding: 8px 0; }
.auth-links a { color: #94a3b8; text-decoration: none; font-size: 12px; margin-left: 20px; transition: 0.3s; }
.auth-links a:hover { color: #ffb400; }
.divider { color: #475569; margin-left: 15px; }

.main-header { background-color: #334155; padding: 15px 0; color: white; }
.logo-box { border: 2px solid #ffb400; padding: 5px 15px; border-radius: 6px; text-align: center; }
.logo-box.inline { display: inline-block; }
.logo-kng { display: block; font-size: 24px; font-weight: 900; color: #ffb400; line-height: 1; }
.logo-sub { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

.search-bar { background: #f1f5f9; border-radius: 50px; padding: 6px 20px; width: 30%; display: flex; align-items: center; }
.search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; color: #334155; }
.search-bar button { background: none; border: none; cursor: pointer; color: #64748b; }

.hotline { display: flex; align-items: center; }
.hotline i { color: #ffb400; font-size: 22px; margin-right: 10px; }
.hotline-label { display: block; font-size: 11px; color: #cbd5e1; }
.hotline-number { display: block; font-size: 15px; font-weight: 700; }

.cart-btn { background: #ffb400; padding: 8px 18px; border-radius: 6px; font-weight: 700; color: #1e293b; cursor: pointer; display: flex; align-items: center; gap: 8px; }

.khung-lua-chon { background: white; height: 70px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); display: flex; align-items: center; }
.nav-container { display: flex; justify-content: space-between; width: 100%; }
.breadcrumb-side { flex: 1; }
.spacer-side { flex: 1; }
.nav-links { display: flex; gap: 60px; list-style: none; padding: 0; margin: 0; }
.nav-item { text-decoration: none; color: #1e293b; font-weight: 800; text-transform: uppercase; font-size: 18px; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.nav-item:hover { color: #ffb400; }

/* DROPDOWN */
.has-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: white; display: none; min-width: 180px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-top: 4px solid #ffb400; list-style: none; padding: 0; margin: 0; z-index: 1000; }
.dropdown-menu a { display: block; padding: 12px 25px; text-decoration: none; color: #334155; font-size: 15px; font-weight: 600; border-bottom: 1px solid #f1f5f9; transition: 0.2s; }
.dropdown-menu a:hover { background: #fffbeb; color: #ffb400; padding-left: 30px; }
.has-dropdown:hover .dropdown-menu { display: block; }

/* SLIDER */
.main-slider { margin-top: 175px; position: relative; }
.slider-container { height: 500px; overflow: hidden; background: #000; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.prev, .next { cursor: pointer; position: absolute; top: 50%; padding: 16px; color: white; font-weight: bold; font-size: 20px; transition: 0.6s; background: rgba(0,0,0,0.3); transform: translateY(-50%); z-index: 2; }
.next { right: 0; }
.dot-container { text-align: center; position: absolute; bottom: 20px; width: 100%; }
.dot { height: 12px; width: 12px; margin: 0 5px; background-color: rgba(255,255,255,0.5); border-radius: 50%; display: inline-block; cursor: pointer; }
.dot.active { background-color: #ffb400; width: 30px; border-radius: 10px; }

/* PRODUCT GRID */
.product-section { padding: 60px 0; }
.container-grid { max-width: 1400px; margin: 0 auto; padding: 0 30px; }
.section-title { text-align: center; font-size: 28px; margin-bottom: 40px; color: #1e293b; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; width: 60px; height: 4px; background: #ffb400; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card { background: white; border-radius: 15px; overflow: hidden; border: 1px solid #e2e8f0; transition: 0.3s; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.product-img { height: 350px; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.product-card:hover .overlay { opacity: 1; }
.add-to-cart-btn { background: #ffb400; border: none; padding: 12px 24px; border-radius: 50px; font-weight: 700; cursor: pointer; }
.product-info { padding: 20px; text-align: center; }
.product-info h3 { font-size: 16px; color: #334155; margin-bottom: 8px; font-weight: 700; }
.price { color: #ffb400; font-weight: 800; font-size: 18px; }

/* --- FOOTER SỬA LẠI --- */
.main-footer { background: #1e293b; color: #94a3b8; }

/* Thanh dịch vụ trên footer */
.footer-top-service { background: white; padding: 30px 0; border-bottom: 1px solid #e2e8f0; color: #1e293b; }
.service-wrapper { display: flex; justify-content: space-around; width: 100%; }
.service-item { display: flex; align-items: center; gap: 15px; }
.service-item i { font-size: 30px; color: #ffb400; }
.service-txt strong { display: block; font-size: 16px; }
.service-txt span { font-size: 13px; color: #64748b; }

/* Nội dung chính footer */
.footer-main-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 60px 30px; align-items: start; }
.footer-col h4 { color: white; font-size: 16px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.f-line { width: 40px; height: 3px; background: #ffb400; margin-bottom: 25px; }
.footer-desc { margin-top: 20px; font-size: 14px; line-height: 1.6; }
.footer-contact { margin-top: 20px; }
.footer-contact p { font-size: 14px; margin-bottom: 10px; display: flex; gap: 10px; }
.footer-contact i { color: #ffb400; margin-top: 3px; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { text-decoration: none; color: #94a3b8; font-size: 14px; transition: 0.3s; }
.footer-col ul a:hover { color: #ffb400; padding-left: 5px; }

.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; background: #334155; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; text-decoration: none; transition: 0.3s; }
.social-icons a:hover { background: #ffb400; color: #1e293b; transform: translateY(-5px); }

.footer-bottom { background: #0f172a; padding: 25px; text-align: center; border-top: 1px solid #334155; }
.footer-bottom p { font-size: 13px; color: #64748b; }
/* =========================
   MODAL
========================= */

.modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
}

.modal-content{
    background:white;
    width:90%;
    max-width:700px;
    margin:60px auto;
    border-radius:15px;
    padding:30px;
    position:relative;
}

.close{
    position:absolute;
    right:20px;
    top:15px;
    font-size:30px;
    cursor:pointer;
}

.cart-item{
    display:flex;
    gap:15px;
    border-bottom:1px solid #ddd;
    padding:15px 0;
}

.cart-item img{
    width:90px;
    height:110px;
    object-fit:cover;
}

.product-detail{
    display:flex;
    gap:30px;
    align-items:center;
}

.product-detail img{
    width:320px;
    border-radius:15px;
}

.detail-info p{
    margin:20px 0;
    line-height:1.6;
}
/* =========================
   PRODUCT MODAL
========================= */

.product-modal-overlay{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    z-index:99999;

    display:flex;
    justify-content:center;
    align-items:center;

}

.product-modal-box{

    width:900px;
    max-width:95%;
    background:white;
    border-radius:20px;
    padding:30px;
    position:relative;

}

.close-modal{

    position:absolute;
    top:15px;
    right:20px;
    font-size:35px;
    cursor:pointer;

}

.product-modal-content{

    display:flex;
    gap:40px;
    align-items:center;

}

.product-modal-image{

    width:45%;

}

.product-modal-image img{

    width:100%;
    border-radius:15px;

}

.product-modal-info{

    flex:1;

}

.product-modal-info h2{

    margin-bottom:20px;
    font-size:30px;

}

.product-modal-info p{

    margin-bottom:15px;
    font-size:18px;
    line-height:1.6;

}

.detail-price{

    color:#ffb400;
    font-size:32px !important;
    font-weight:800;

}

@media(max-width:768px){

    .product-modal-content{

        flex-direction:column;

    }

    .product-modal-image{

        width:100%;

    }

}
/* =========================
   FORM LOGIN REGISTER
========================= */

.form-input{

    width:100%;
    padding:14px;
    margin-top:15px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:15px;

}

.form-btn{

    width:100%;
    margin-top:20px;
    padding:14px;
    border:none;
    background:#ffb400;
    color:#1e293b;
    font-weight:700;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;

}

.form-btn:hover{

    opacity:0.9;

}