/* common propoties*/
.momo-trust-display-regular {
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-style: normal;
}
a{
    text-decoration: none;
    color: black;
}
h5{
    display: block;
    margin-block-start: 0.1em;
    margin-block-end: 0.1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: lighter;
    unicode-bidi: isolate;
}
h6 {
    display: block;
    font-size: 0.67em;
    margin-block-start: 0.1em;
    margin-block-end: 0.1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: lighter;
    unicode-bidi: isolate;
}

body{
    font-family: "Momo Trust Display";
    font-weight: 400;
    height: fit-content;
}
/* ======================header=================================================================================================*/
.header {
    background: #ffffff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #000;
    transition: 0.3s;
}

.logo i {
    color: #333; /* Màu icon xoay */
    margin: 0 -2px;
}

.nav {
    gap: 10px;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    position: relative;
    transition: 0.3s;
}

.nav-link:hover {
    color: #000;
}

/* Hiệu ứng gạch chân khi hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 10px;
    width: 0;
    height: 2px;
    background: #000;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: calc(100% - 20px);
}
.main-content{
    display:flex;
    justify-content: center;
    justify-content: space-between;
}
.main-content .nav{
    display: flex;
    align-items: center;
}
.nav a{
    padding: 10px;
}
.button{
    display : inline-block;
    padding : 7px 17px;
    color:aliceblue;
    margin-top:auto; 
    margin-bottom: auto;
    border-radius: 5%;
    background-color: black;
    margin-left: 40px;
}
.header .button{
    margin-left: 4%;
    margin-right: 2%;
}
.button:hover{
    transition: 0.5s;
    background-color: dimgray;
}
.main{
    display:flex;
}
.searchAndTag{
    display:flex;
    justify-content:space-between;
}
body {
    margin: 0;
    padding: 20px;
    background: #f6f6f6;
    h1 { text-align: center; }
}
#search {
    display: block;
    margin: 15px auto;
    width: 280px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #aaa;
}
.searchAndBrand{
    display: flex;
    padding: 8px 12px;
}
.searchAndBrand .button{
    border-radius: 6px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px auto;
    justify-content:left;
}

.tag-btn {
    font-family:"Momo Trust Display", sans-serif;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #888;
    cursor: pointer;
    background: white;
    transition: 0.2s;
}

.tag-btn.active {
    background: black;
    color: white;
}

.product-list {
    display:flex ;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: space-between;
}

.product {
    font-family: Arial, sans-serif;
    margin: 0.1% ;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align:left;
    width: 14%;
    height: fit-content;
    padding-top:5px;
    h3 {
        margin-left: 2%;
        margin-block-start: 0.5em;
        margin-block-end: 0.5em;
    }
    p {
        margin-left: 2%;
        margin-block-start: 0.5em;
        margin-block-end: 0.5em;
    }
    cursor: pointer;
}

.product img {
    width: 100%;
    border-radius: 1%;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 6px;
}

.page-btn {
    padding: 7px 14px;
    border: 1px solid #444;
    background: #fff;
    cursor: pointer;
    border-radius: 5px;
}

.page-btn.active {
    background: #000;
    color: #fff;
}

.no-result {
    text-align: center;
    margin-top: 40px;
    font-size: 20px;
}
.product_page{
    display: flex;
    height: fit-content;
}
.product_detail{
    width: 40%;
    margin-left:50px;
    margin-top:50px;
    margin-bottom: 10px;
    margin-right: 10px;
    padding-right: 25px;
    border-right: 1px solid black;    
}
.product_detail .large_product_img{
    position: relative;
}
.product_detail .large_product_img img{
    width: 100%;
    cursor: pointer;
}
.product_detail .small_product_img{
    display: flex;
    justify-content: space-between;
}
.product_detail .small_product_img img{
    width:24%;
    margin-top:5px;
    cursor: pointer;   
}
#productDes{
    white-space: pre-wrap;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: rgb(240, 240, 240);
    padding:5px;

}
.product_page .product_des{
    padding:50px;
    width:50%;
    input{width:40px; height: 20px;margin:10px;margin-left: 0px;}
    h2{
        background-color: rgb(240, 240, 240);
    }

}
.footer_main {
    background: #000;
    color: #fff;
    padding: 30px 0 10px 0;
    margin-top: 80px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.logo-footer {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
}
.logo-footer i { color: #fff; }
.contact_box {
    flex: 1;
    min-width: 250px;
}

.contact_box h3 {
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border-left: 3px solid #fff;
    padding-left: 10px;
}

.contact_box ul {
    list-style: none;
    padding: 0;
}

.contact_box li {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 14px;
}

.contact_box a {
    color: #ccc;
    transition: 0.3s;
}

.contact_box a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-qr {
    text-align: center;
    flex: 0.5;
}

.footer-qr img {
    width: 100px;
    filter: grayscale(1) invert(1); 
    margin-bottom: 10px;
}

.footer-qr p { font-size: 12px; color: #666; }

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #444;
}
.footer_main .contact_box{
    margin-left: 30px;
    margin-right: 30%;
}
.cart{
    display:flex;
    width:80%;
    justify-content: space-between;
}
/*=====================slider===============================*/
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 255 255 / 0%);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 20px;
}
.prev{
    left: 0%;
}
.next{
    right: 0%;
}
.chart{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#chartContainer {
    width: 29%;
    padding: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#ratingContainer {
    width: 60%;
    max-width: 400px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.related-products-container {
    margin-top: 30px;
    overflow: hidden;
}
.product-card {
    max-width: 250px;
    min-width: 150px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.product-card img {
    width: 80%;
    border-radius: 8px;
}
/* ================================================================================================== MOBILE============== */
@media(max-width:800px) {
.searchAndTag{
    display:block;
    button{font-size: xx-small;}
    input{font-size: xx-small;}
}
.searchAndBrand{
    display: flex;
}
.searchAndBrand .button{
    font-size: xx-small;
}
.prev, .next {
    position: absolute;
    top: 89%; ;
    transform: translateY(-50%);
    background: rgb(255 255 255 / 0%);
    color: rgba(255, 255, 255, 0.821);
    border: none;
    border-radius: 20px;
    padding: 10%;
    cursor: pointer;
    font-size: 20px;
    touch-action: manipulation;
}
.prev{
    left: 0%;
    padding-right: 10%;
    padding-left: 10%;
}
.next{
    right: 0%;
    padding-right: 10%;
    padding-left: 10%;
}
    .chart{
        width: 100%;
        display:block
    }
    #chartContainer {
        width: 100%;
        height: 200px;
        margin-bottom: 10px;
    }
    #ratingContainer{
        width: 100%;
    }
    /*========================================================================product page==================*/
    .product{
        width: 30%;
        font-size: 40%;
    }
    .product_page{
    box-sizing: border-box;
    display: block;
    height: fit-content;
    width: 98%;
    }
    .product_detail{
    width: 100%;
    padding:0px;
    margin:0px;
    border-right: none;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid black; 
    }
    .product_page .product_des{
        padding:0px;
        width:97%;
        font-size: x-small;
    }
    .product_page .product_des .button{
        font-size: 70%;
    }
    .footer_main{
    padding: 30px 15px 15px 15px;
    margin-top: 40px;
    }

    .footer-container{
        flex-direction: row;
        align-items: flex-start;
    }

    .footer-brand{
        flex: 1;
    }

    .footer_main .contact_box{
        flex: 1;
        margin: 0;
    }

    .logo-footer{
        font-size: 20px;
        margin-bottom: 6px;
    }

    .slogan{
        font-size: 12px;
        color: #777;
    }

    .contact_box h3{
        font-size: 14px;
        margin-bottom: 10px;
        border-left: 2px solid #fff;
        padding-left: 6px;
    }

    .contact_box li{
        margin-bottom: 6px;
        font-size: 12px;
    }

    .footer-qr{
        display:none;
    }

    .footer-bottom{
        margin-top: 20px;
        padding-top: 10px;
        font-size: 11px;
    }


}
@media(max-width:500px) {
    .header{
        font-size: 10px;
        width: 98%;
    }
    .header .nav{
        display: flex;
        font-size: 10px;
        a{ padding: 5px;}
    }
    .product_page .product_des .button{
        font-size: 80%;
        margin:0px;
    }

    /* ==== ==================================================================================footer ================================*/
}

/* --- CSS CHO AUTH POPUP --- */
.auth-popup {
    display: none; /* Mặc định ẩn */
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Nền đen mờ */
    backdrop-filter: blur(4px); /* Hiệu ứng làm mờ nền */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Class để hiển thị popup (Dùng Flexbox để căn giữa) */
.auth-popup.active {
    display: flex;
}

.auth-container {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    font-family: Arial, sans-serif;
    animation: slideUp 0.3s ease-in-out;
}

.auth-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border 0.3s;
}

.auth-container input:focus {
    border-color: #007bff;
    outline: none;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}

.auth-container button:hover {
    background: #333333;
}

.auth-container p {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-container a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* Nút X để đóng */
.close-btn {
    position: absolute;
    top: 10px; 
    right: 15px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #000;
}

/* Hiệu ứng mượt mà */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* Container chính cho Profile */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

/* Hình ảnh đại diện */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.avatar:hover {
    border-color: #007bff;
}

/* Container bao quanh để giữ vùng hover */
.avatar-container {
    position: relative;
    padding: 10px 0;
}

/* Menu thả xuống */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: none; /* Mặc định ẩn */
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
}

/* Hiển thị khi di chuột vào container */
.avatar-container:hover .dropdown-menu {
    display: block;
}

/* Item trong menu */
.dropdown-menu li a, .user-info {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.dropdown-menu hr {
    margin: 5px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Hiệu ứng trượt xuống */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/*orders==================================================================================================*/
/* Container */
.order-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

/* Card đơn hàng */
.order-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.order-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Header */
.order-box > div:first-child {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* Danh sách sản phẩm */
.item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 6px;
}

/* Tên sản phẩm */
.item div:nth-child(2) {
    font-weight: 500;
    font-size: 100%;
    margin-bottom: 2px;
    text-align: center;
}

/* Quantity */
.item div:nth-child(3) {
    font-size: 12px;
    color: #777;
}

/* Tổng tiền */
.order-box b {
    color: #000;
}
/* Container bọc ngoài đơn hàng */
.order-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.order-box b { color: #333; }

/* Khu vực danh sách sản phẩm trong đơn */
.items {
    margin: 12px 0;
    padding: 10px 0;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
}

.item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.item img {
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #f5f5f5;
}

/* Định dạng chung cho huy hiệu trạng thái */
.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Màu sắc riêng cho từng trạng thái */
.status-pending { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }     /* Cam nhạt */
.status-deposit { background: #fff1f0; color: #f5222d; border: 1px solid #ffa39e; }     /* Đỏ nhạt */
.status-confirmed { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }   /* Xanh dương */
.status-shipped { background: #e6fffb; color: #13c2c2; border: 1px solid #87e8de; }     /* Xanh lục bảo */
.status-delivered { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }   /* Xanh lá */
.status-cancelled { background: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }   /* Xám */
.time {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.order-box div:nth-child(3) { /* Dòng tổng tiền */
    font-size: 16px;
    color: #ee4d2d; /* Màu cam đỏ đặc trưng thương mại điện tử */
    font-weight: bold;
    text-align: right;
}

