*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    font-family: Arial, Helvetica, sans-serif;
}

header {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr;
    align-items: center;
    background-color: #5873cc;
    padding: 0 16px;
    height: 46px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    gap: 16px;
}

#nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 16px;
}

#nav li a {
    text-decoration: none;
    color: #fff;
    padding: 12px;
}

#nav li:hover a {
    background-color: #ccc;
    color: #000;
    border-radius: 4px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    padding: 4px 8px;
    border-radius: 4px;
    height: 32px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.search-container i {
    color: #000000;
    font-size: 16px;
}

.search {
    border: none;
    outline: none;
    font-size: 14px;
    min-width: 300px;
}

.cart a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 12px;
}

.cart:hover {
    background-color: #ccc;
    color: #000;
    border-radius: 4px;
    cursor: pointer;
}

.user-icon {
    position: relative;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    justify-self: end;
}

.user-icon:hover {
    color: #000;
    opacity: 0.8;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 0;
    min-width: 180px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-icon:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
}

.user-dropdown a:hover {
    background-color: #f0f0f0;
}


.cart-hover {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 9999;
}

.user-icon:hover .cart-hover {
    display: block;
}

.cart-hover a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.product-list {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    cursor: pointer;
    width: fit-content;
    justify-self: start;
}

.product-list > a {
    text-decoration: none;
    color: white;
    padding: 12px 4px;
}

.product-list > i {
    font-size: 12px;
    color: white;
    transition: transform 0.2s ease;
}

.product-list:hover > i {
    transform: rotate(180deg);
}

.product-list .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 4px;
    min-width: 180px;
    z-index: 9999;
}

.product-list:hover .dropdown {
    display: block;
}

.product-list .dropdown li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.product-list .dropdown li a:hover {
    background-color: #f0f0f0;
}

#content{
    padding:46px;
}

#content #menu{
    margin-top: 46px;
    position: relative;
    background-color: #757575;
    line-height: 36px;
    height: 36px;
    padding-left: 12px;
}

#content #content-menu:hover{
    cursor:pointer;
    color:#fff;
}

#menu #content-menu{
    display:inline-block;
}

#content #menu{
    margin-top: 46px;
    position: relative;
    background-color: #757575;
    line-height: 36px;
    height: 36px;
    padding-left: 12px;
}

#menu #content-menu{
    display:inline-block;
}

/* menu và slider  */
/* css menu */
#menu-slider{
    /* display: grid; */
    grid-template-columns: 220px 1fr;
}

#content #sub-menu{
    background-color: #757575;
    padding-left: 32px;
    padding-top: 16px;
    line-height: 100px;
    z-index: 1000;
    position:absolute;
    left: 0;
    height:320px;
    display:none;
}

#content-menu:hover #sub-menu {
    display: block;
}

#sub-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style-type: none;
    padding-right: 16px;
    color:#000;
}

#sub-menu li:hover{
    color:#5873cc;
    cursor:pointer;
}

#sub-menu li a{
    text-decoration: none;
    display:inline-block;
    color: inherit;
}

#sub-menu .sub-menu-angle-right{
    margin-left: auto;
}

.book-type{
    padding: 16px;
}

.book-type a{
    text-decoration: none;
    color:#000;
}

.book-type a:hover{
    opacity:0.8;
}

.container-book{
    display:grid;
    grid-template-columns: 340px 650px 1fr;
}

.container-book .book-img{
    height:500px;
    width:300px;
    padding: 16px;

}

.img{
    height:360px;
    width:auto;
}

.container-book .book-pay{
    height:500px;
}

.container-book h2{
    font-size: 40px;
}

.container-book .price{
    margin: 12px;
    color:#5873cc;
    font-size: 32px;
    font-weight: 700;
}

.container-book .status{
    color:#5873cc;
}


.quantity{
    float:left;
} 



.add{
    min-width: 500px;
    background-color: #5873cc;
    font-size: 20px;
    padding: 20px 8px;
    margin-top: 12px;
}

.book-pay .add:hover{
    cursor:pointer;
}

 .i4-pro {
    font-size: 16px;
    color: #333;
    padding: 8px;
}

.i4-pro p {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.i4-pro ul {
    list-style-type: disc;
    margin-left: 20px;
}

.i4-pro li {
    font-size: 14px;
    color: #555;
}


.info-container {
    width: 350px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.info-container h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 20px;
    color: #333;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span {
    color: #555;
}

.info-item a {
    color:#5873cc;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

#container-book-i4 {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-i4 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    padding: 0 15px;
}

/* Đảm bảo rằng nội dung văn bản có sự dễ nhìn và dễ đọc */
@media (max-width: 768px) {
    #container-book-i4 {
        width: 90%;
    }
    h2 {
        font-size: 24px;
    }
    p {
        font-size: 14px;
    }
}

#footer {
    background-color: #5873cc;
    color: white;
    padding: 40px 0;
    font-size: 14px;
    text-align: center;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
    gap: 24px;
    text-align: left;
}

.footer-column {
    flex: 1 1 240px;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 6px;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 6px 0;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-logo {
    width: 160px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
}

#footer p,
#footer li,
#footer a,
#footer h4 {
    color: white !important;
}