* {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: black;
}

#header-left {
    width: 20%;
}

#header-left img {
    width: 180px;
    height: 50px;
    padding-right: 10px;
    padding-left: 10px;
    margin-top: 10px;
}

.header-menu {
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#header-middle {
    width: 30%;
    padding-right: 10px;
    padding-left: 10px;
}

#header-right {
    width: 50%;
    display: flex;
    gap: 10px;
}

#search-bar {
    display: flex;
    width: 100%;
    position: relative;
}

#search-bar input {
    width: 100%;
    height: 38px;
    padding-right: 55px;
    border: 1px solid #CCC;
    border-radius: 4px 0 0 4px;
    background-color: #F1F1F1;
    outline: none;
    padding-left: 15px;
}

#search-bar button {
    position: absolute;
    right: 0px;
    top: 0px;
    height: 38px;
    width: 55px;
    background-color: #f5ed5a;
    border: 1px solid #CCC;
    border-radius: 0 4px 4px 0;
}

#search-bar button:hover {
    background-color: #fff204;
    cursor: pointer;
}

#container {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
}

.logo-form img {
    width: 25px;
    height: 25px;
    align-self: center;
    margin-right: 15px;
}

.logo-form {
    display: flex;
    margin-left: 10px;
    position: relative;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span,
.logo-text a,
.logo-form a,
#sub-right a {
    text-align: center;
    text-decoration: none;
    color: black;
}

.logo-text a:hover,
.logo-form a:hover {
    color: #fff204;
}

#sign-up {
    font-size: 12px;
    color: black;
    display: flex;
}

#cart-item {
    position: absolute;
    left: 25px;
    top: 4px;
    background-color: #F3EB59;
    font-size: 12px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    display: block;
    color: green;
}

#cart-img {
    padding-top: 5px;
}

#cart-link {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 12px;
    border: 1px solid #FFF;
    border-radius: 10px;
}

#cart-link:hover {
    background-color: #2E9F3C;
    color: white;
}

#menu-toggle {
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
    display: none;
}

.sub-header {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.danh-muc {
    width: 20%;
    background-color: #2E9F3C;
    color: White;
    height: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-radius: 3px;
}

.danh-muc span {
    margin-right: 10px;
}

#sub-container {
    width: 100%;
    height: 40px;
    display: flex;
    padding-left: 30px;
    padding-right: 30px;
}

#sub-right {
    display: flex;
    width: 80%;
    height: 100%;
    border-bottom: 1px solid #c2c1c1;
}

#sub-right img {
    width: 39px;
    height: auto;
    object-fit: cover;
}

.sub-content {
    display: flex;
    align-items: center;
    width: 33.3%;
}

.sub-content span:hover {
    color: #16a216;
}

#menu-link {
    width: 100%;
    height: 50px;
    padding-top: 10px;
}

#menu-link a {
    text-decoration: none;
    color: black;
    font-size: 14px;
}

#menu-link a:nth-child(3) {
    color: #a3a1a1;
}

#footer {
    width: 100%;
    height: 400px;
    box-sizing: border-box;
    clear: both;
}

.footer-top {
    width: 100%;
    height: 20%;
    background-color: #e59617;
    display: flex;
    align-items: center;
}

.footer-container {
    margin: 0px 100px;
    padding: 0px 15px;
    height: 70%;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

#footer-title {
    width: 30%;
    height: 100%;
    color: white;
    padding-top: 5px;
}

#footer-title strong {
    font-size: 18px;
    padding-bottom: 5px;
}

#footer-letter {
    width: 70%;
    height: 100%;
    display: flex;
    align-items: center;
}

#footer-letter form {
    width: 100%;
}

#footer-letter input {
    height: 70%;
    width: 70%;
    padding-left: 10px;
    border-radius: 8px;
    border: 1px solid #CCC;
}

#footer-letter button {
    height: 70%;
    width: 20%;
    border-radius: 8px;
    border: 1px solid #CCC;
    background-color: white;
    cursor: pointer;
    color: #e59617;
}

#footer-letter button:hover {
    background-color: #F3EB59;
    color: #16a216;
}

.footer-bottom {
    height: 80%;
    width: 100%;
}

.bottom-start {
    height: 70%;
    width: 100%;
    padding: 30px 50px;
    display: flex;
}

.start-content {
    width: 33%;
    height: 100%;
}

.start-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.start-content ul li {
    margin-bottom: 20px;
    list-style: none;
}

.start-content ul li a {
    text-decoration: none;
    color: black;
    font-size: 13px;
}

.bottom-end {
    height: 20%;
    width: 100%;
    padding-top: 20px;
}

.end-container {
    height: 100%;
    width: 100%;
    padding: 0px 50px;
}

.bottom-end h3 {
    margin-bottom: 10px;
}

.lien-he {
    padding-left: 30px;
}

.lien-he span {
    margin-right: 70px;
}

#content-end {
    width: 100%;
    height: 50px;
    background-color: #dca957;
    display: flex;
    align-items: center;
    justify-content: center;
}


#toast-container {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    background-color: #2E9F3C;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s ease, fadeOut 0.5s ease 2.5s forwards;
    color: white;
}

.cartTab {
    width: 400px;
    background-color: #353432;
    color: #eee;
    position: fixed;
    inset: 0 -400px 0 auto;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    transition: transform .5s;
    z-index: 9999;
}

.cartTab h1 {
    padding: 20px;
    margin: 0;
    font-weight: normal;
    font-size: 25px;
}

.cartTab .btn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.cartTab .btn button {
    background-color: #E8BC0E;
    font-family: Poppins;
    border: none;
    font-weight: 300px;
    cursor: pointer;
}

.cartTab .btn .close {
    background-color: #eee;
}

.cartTab .listCart .item img {
    width: 100%;
}

.cartTab .listCart .item {
    display: grid;
    grid-template-columns: 70px 150px 50px 1fr;
    gap: 10px;
    text-align: center;
    align-items: center;
}

.listCart .quantity span {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #eee;
    color: #555;
    border-radius: 50%;
    cursor: pointer;
}

.listCart .quantity span:nth-child(2) {
    background-color: transparent;
    color: #eee;
}

.listCart .item:nth-child(even) {
    background-color: #eee1;
}

.listCart {
    overflow: auto;
}

.listCart::-webkit-scrollbar {
    width: 0;
}

body.showCart .cartTab {
    inset: 0 0 0 auto;
}

body.showCart .container {
    transform: translateX(-250px);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
}

[class*="col-"] {
    box-sizing: border-box;
    padding: 15px;
}

.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

.messenger-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #CCC;
    object-fit: cover;
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 998;
}

@media only screen and (max-width: 768px) {

    .sub-header,
    .hotline,
    .map,
    .loginn,
    #slide {
        display: none;
    }

    #container {
        display: flex;
        flex-wrap: wrap;
    }

    .header-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
    }

    #header-middle {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    #header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #menu-toggle {
        display: block;
    }

    #header-left img {
        width: 120px;
        height: auto;
    }

    #header-right {
        width: 50%;
        justify-content: flex-end;
        margin-top: 10px;
        margin-left: auto;
    }

    #footer {
        display: none;
    }

    .price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-container button {
        align-self: flex-end;
    }

    .col-s-1 {
        width: 8.33%;
    }

    .col-s-2 {
        width: 16.66%;
    }

    .col-s-3 {
        width: 25%;
    }

    .col-s-4 {
        width: 33.33%;
    }

    .col-s-5 {
        width: 41.66%;
    }

    .col-s-6 {
        width: 50%;
    }

    .col-s-7 {
        width: 58.33%;
    }

    .col-s-8 {
        width: 66.66%;
    }

    .col-s-9 {
        width: 75%;
    }

    .col-s-10 {
        width: 83.33%;
    }

    .col-s-11 {
        width: 91.66%;
    }

    .col-s-12 {
        width: 100%;
    }

    .cate-right-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 5px !important;
        gap: 10px !important;
    }

    .noi-dung-sach {
        min-width: 160px;
        flex-shrink: 0;
        width: calc(50% - 5px) !important;
        min-width: unset !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {

    #footer,
    .sub-header,
    .hotline,
    .map,
    #slide {
        display: none;
    }

    #container {
        display: flex;
        flex-wrap: wrap;
    }

    #header-middle {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    #header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #header-left img {
        width: 120px;
        height: auto;
    }

    #header-right {
        width: 50%;
        justify-content: flex-end;
        margin-top: 10px;
        margin-left: auto;
    }

    .header-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
    }

    #menu-toggle {
        display: block;
    }

    .noi-dung-sach {
        width: calc(33.33% - 10px) !important;
    }

    .col-m-1 {
        width: 8.33%;
    }

    .col-m-2 {
        width: 16.66%;
    }

    .col-m-3 {
        width: 25%;
    }

    .col-m-4 {
        width: 33.33%;
    }

    .col-m-5 {
        width: 41.66%;
    }

    .col-m-6 {
        width: 50%;
    }

    .col-m-7 {
        width: 58.33%;
    }

    .col-m-8 {
        width: 66.66%;
    }

    .col-m-9 {
        width: 75%;
    }

    .col-m-10 {
        width: 83.33%;
    }

    .col-m-11 {
        width: 91.66%;
    }

    .col-m-12 {
        width: 100%;
    }

    .cate-right-container {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .noi-dung-sach {
        min-width: 160px;
        flex-shrink: 0;
    }
}

@media only screen and (min-width: 1280px) {
    #slide {
        display: block;
    }

    .col-x-1 {
        width: 8.33%;
    }

    .col-x-2 {
        width: 16.66%;
    }

    .col-x-3 {
        width: 25%;
    }

    .col-x-4 {
        width: 33.33%;
    }

    .col-x-5 {
        width: 41.66%;
    }

    .col-x-6 {
        width: 50%;
    }

    .col-x-7 {
        width: 58.33%;
    }

    .col-x-8 {
        width: 66.66%;
    }

    .col-x-9 {
        width: 75%;
    }

    .col-x-10 {
        width: 83.33%;
    }

    .col-x-11 {
        width: 91.66%;
    }

    .col-x-12 {
        width: 100%;
    }
}

@media only screen and (max-width: 1023px) {
    #cate-left {
        display: none;
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background: white;
        z-index: 9999;
        border: 1px solid #CCC;
    }

    .header-menu {
        height: auto !important;
        padding: 10px 0 !important;
    }

    #header-middle {
        width: 100% !important;
        margin-top: 15px !important;
        padding-bottom: 5px !important;
    }

    #container {
        height: auto !important;
        padding: 5px 10px !important;
    }

    #cate-left.active {
        display: block;
    }

    #cate-right {
        width: 100% !important;
        margin: 10px 0 !important;
    }
}