/* ---------------Biến-------------- */
:root {
    --orange: #f08550;
    --text-color: #ffffff;
}


/* -----------Reset CSS------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------------Element---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
    color: black;
}
.open {
    display: block;
}

.close {
    display: none;
}

.err_404 {
    margin: 0px auto;
    width: 70%;
    height: 100%;
}

.img_404 {
    
    width: 100%;
    height: 100%;
}
/*--------------------------------Header-----------------------------*/
/*-------------Header_Top---------------*/
.container {
    max-width: 1300px;
    margin: 0px auto;
}

.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999999999;
    background-color: white;
}

.header_top {
    width: 100%;
    box-shadow: inset 0px -0.5px 0px #e6e6e6;
}

.header_top .container {
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header_logo {
    width: 100px;
    height: 50px;
}

.Logo_icon {
    width: 100%;
    height: 100%;
    
}

.form_search {
    width: 400px;
    height: 40px;
    background-color: #f0f0f0;
    padding: 7px 10px;
    border-radius: 30px;
    display: flex;
    gap: 10px;
    font-size: 18px;
    align-items: center;
    justify-content: space-between;
}
.search_btn {
    color: #707070;
}

.form_search > input {
    width: 70%;
    font-size: 13px;
    border: none;
    outline: none;
    background-color: #f0f0f0;
}

.form_search > button {
    height: 100%;
    font-size: 14px;
    border: none;
    padding: 5px 15px;
    background-color: var(--orange);
    color: var(--text-color);
    border-radius: 18px;
}

.header_list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.header_list > li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header_list > li > i {
    font-size: 28px;
    color: var(--orange);
    position: relative;
}

.text_dndk {
    display: flex;
    font-size: 12px;
}

.text_tk {
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.account {
    position: relative;
}

.account:hover .account_manager {
    display: block;
}

.account_manager {
    list-style: none;
    width: 180px;
    line-height: 28px;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999999999;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 5px 10px #dddddd;
    overflow: hidden;
    display: none;
}

.account_manager li {
    font-size: 14px;
    font-weight: 400;
    color: #707070;
    cursor: pointer;
}

.account_manager li i {
    font-size: 13px;
    color: var(--orange);
    margin-right: 5px;
}

.account_manager a:hover {
    background-color: #f0f0f0;
    color: var(--orange);
}

.account_manager a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 5px 10px;
    color: black;
    font-size: 13px;
    font-weight: 400;
}

#number_items {
    position: absolute;
    top: -13px;
    right: -20px;
    font-size: 13px;
    color: var(--text-color);
    background-color: var(--orange);
    padding: 3px 6px;
    border-radius: 100%;
    text-align: center;
}

.cart a {
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart a i {
    font-size: 28px;
    color: var(--orange);
    position: relative;
}

.cart a span {
    font-size: 14px;
}

/*---------------Header Nav----------------------*/
.header_nav{
    box-shadow: 0px 5px 10px #dddddd;
}
.nav{
    display: flex;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    height: 54px;
    justify-content: space-between;
    
}
.nav::-webkit-scrollbar-thumb {
    max-width: 10px;
    background-color: var(--orange);
    border-radius: 10px;
}
.nav::-webkit-scrollbar-thumb {
    max-width: 10px;
    background-color: var(--orange);
    border-radius: 10px;
}

.nav li a {
    position: relative;
    display: block;
    padding: 15px 30px;
    font-size: 12pt;
    text-align: center;
    text-transform: uppercase;
    font-weight: 450;
    white-space: nowrap;
    scroll-behavior: smooth;
    
}
/* Gạch dưới từ giữa đẩy ra */
.nav li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 3px;
    background-color: var(--orange);
    transition: transform 0.3s ease-in-out;
}

.nav li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}
/* -------------------Main---------------- */

/* -----Slide Show----- */
.slide_show {
    width: 100%;
    height: 520px;
    background-color: #cccccc;
    margin: 20px 0px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.slide_show img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.slide_show button {
    position: absolute;
    font-size: 20px;
    padding: 10px 15px;
    border: none;
    border-radius: 15px;
    background-color: #ffffff8c;
}

.prev_btn {
    top: 45%;
    
}

.next_btn {
    right: 0;
    top: 45%;
}
/* -------Slide Service-------*/
.slide_service {
    width: 100%;
    margin: 20px 0px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service_item {
    width: 23%;
    height: 80px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 5px 10px #dddddd;
}

.service_item i {
    font-size: 40px;
    color: var(--orange);
}

.service_item h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--orange);
}

.service_text p {
    font-size: 14px;
    font-weight: 400;
    color: #707070;
}

/* --------Product------- */
.product {
    width: 100%;
    margin: 40px 0px;

}
.product_title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    scroll-margin-top: 150px;
}

.product_title::after {
    text-align: center;
    position: absolute;
    bottom: -3px;
    content: '';
    display: block;
    width: 20%;
    height: 2px;
    background-color: var(--orange);
    left: 50%;
    transform: translateX(-50%);
}

.productContainer {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product_container_error {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product_error {
    text-align: center;
    line-height: 38px;
}

.product_error i {
    margin-top: 20px;
    font-size: 100px;
}
  
.product_item {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.product_item:hover {
    box-shadow: 0px 5px 10px #707070;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

.product_item img {
    width: 100%;
    height: 200px;
    display: block;
    border-radius: 5px;
    border: solid 1px #ccc;
    object-fit: cover;
}

.product_item h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0px;
}

.product_item p {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--orange);
}

.product_item button {
    padding: 7px 14px;
    font-size: 14px;
    color: #ffffff;
    background-color: var(--orange);
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.product_item button i {
    font-size: 16px;
    margin-right: 10px;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}
  
.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: var(--orange);
    color: #ffffff;
    border: 1px solid #707070;
}

.active {
    color: var(--orange) !important;
    background-color: var(--text-color) !important;
}

/* -------------------Footer------------------- */

.footer {
    width: 100%;
    background-color: #eeeeee;
    padding: 10px 10px;
    margin-top: 20px;
    border-top: 5px solid var(--orange);
}

.footer .container .footer_logo {
    width: 450px;
    height: 100px;
    border-right: 1px solid #ccc;
    padding-right: 20px;
}

.footer .container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer_top {
    display: flex;
    align-items: center;
    padding: 20px 0px;
    border-bottom: 1px solid #ccc;
    gap: 40px;
}

.footer_email {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer_email_text h3 {
    font-size: 23px;
    font-weight: 600;
    color: black;
    text-transform: uppercase;
}

.footer_email_text p {
    font-size: 14px;
    font-weight: 400;
    color: #707070;
}

.footer_form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer_form input {
    width: 300px;
    height: 40px;
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.footer_form button {
    padding: 5px 15px;
    height: 40px;
    font-size: 14px;
    border: none;
    background-color: var(--orange);
    color: var(--text-color);
    border-radius: 20px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.footer_form button:hover {
    border: 1px solid #ccc;
    color: black;
    transform: scale(1.05);
}

.widget_row {
    display: flex;
    justify-content: space-between;
    padding: 20px 0px;
    gap: 60px;
}

.widget_row_col {
    width: 25%;
}

.widget_title {
    font-size: 18px;
    font-weight: 600;
    color: black;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.widget_title::after {
    content: '';
    display: block;
    width: 40%;
    height: 2px;
    background-image: linear-gradient(to right, var(--orange), transparent);
    margin-top: 5px;
}

.widget_row_col_content {
    font-size: 16px;

}

.widget_social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.widget_social a {
    display: block;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    font-size: 18px;
    color: black;
    border: 1px solid black;
    transition: all 0.3s ease-in-out;
    border-radius: 50%;
}

.widget_social a:hover {
    transform: scale(1.2);
    background-color: var(--orange);
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.widget_contact {
    list-style: none;
    margin-top: 10px;
    line-height: 30px;
}

.contact_item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact_item_icon {
    width: 30px;
    height: 30px;
    border: 1px solid black;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    font-size: 14px;
    color: black;
}

.footer_bottom {
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    border-bottom: 1px solid #ccc;
    padding: 5px 0px;
}
/* -------------------Đăng nhập, Đăng ký---------------- */
.container_sign {
    max-width: 1130px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0px;
}

.logo_sign {
    width: 45%;
    height: 150px;
    margin-bottom: 20px;
}

.logo_sign img {
    width: 100%;
    height: 100%;
    
}

.sign {
    width: 35%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 10px #cccccc;
    text-align: center;
    display: block;

}

.sign h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--orange);
}

.sign input {
    width: 80%;
    height: 40px;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.sign input:focus {
    border: 1px solid var(--orange);
}

.sign button {
    padding: 5px 15px;
    height: 40px;
    font-size: 14px;
    border: none;
    background-color: var(--orange);
    color: var(--text-color);
    border-radius: 20px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-bottom: 10px;
}

.sign button:hover {
    border: 1px solid #ccc;
    color: black;
    transform: scale(1.05);
}

.sign span {
    font-size: 14px;
    font-weight: 400;
    color: #707070;
}

.sign span a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: underline;
}

/* ----------------Product-Detail------------ */
.product_detail {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999999999;
    width: 100vw;
    height: 100vh;
    display: none;
}

.product_detail_open {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

.product_detail_main {
    width: 40%;
    background-color: #fff8f0;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.product_detail_content {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: 'Segoe UI', sans-serif;
}

.product_detail_content img {
    border-radius: 10px;
    width: 300px;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.product_detail_info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    color: #333;
    max-width: 60%;
}

.product_detail_info h2 {
    margin: 0;
    font-size: 26px;
    color: #ff7a00;
}

.product_detail_info p {
    margin: 0;
    font-size: 16px;
}

.product_detail_info input[type="number"] {
    padding: 6px 10px;
    width: 40px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.2s;
}

.product_detail_info input[type="number"]:focus {
    border-color: #ffa500;
    outline: none;
}

.product_detail_info button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #ffa500;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.3s, transform 0.2s;
}

.product_detail_info button:hover {
    background-color: var(--orange);
    transform: translateY(-2px);
}

.close_detail_btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: transform 0.2s, color 0.2s;
}

.close_detail_btn:hover {
    transform: scale(1.2);
    color: #333;
}
/*------------------------------Cart-------------------------------------------*/
.cart-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    border-bottom: 1px solid #e6e6e6;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 350px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 5px 10px #bebebe;
}

.cart-item-image img {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.cart-item-details {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.cart-item-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 5px;
}

.cart-item-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #707070;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    padding: 5px 10px;
    font-size: 14px;
    color: #fff;
    background-color: var(--orange);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.quantity-controls button:hover {
    background-color: #e67339;
}

.quantity-controls span {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-actions button {
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: var(--orange);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.cart-item-actions button:hover {
    background-color: #e67339;
}

.total_price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff8f0;
    border-radius: 10px;
    box-shadow: 0px 5px 10px #dddddd;
    margin-top: 20px;
}

.total_price_text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 5px;
}

.total_price_text p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.total_price_btn .btn_order {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: var(--orange);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.total_price_btn .btn_order:hover {
    background-color: #e67339;
    transform: translateY(-2px);
}


