body{
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    animation: zoom-body 0.3s linear forwards;
    position: relative;
}
@keyframes zoom-body{
    from{
        left: 50px;
    }
    to{
        left: 0;
    }
}

.navbar {
    background: #fff;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom:solid #8989899c 1px;       
}

.left-navbar {
    width: 500px;   
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.right-navbar {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

.navbar-list {
    min-width: 400px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0 2rem;
    align-items: center;
}
.navbar-list svg{
    color: #ae7c30;
}
.navbar-list svg:hover{
    cursor: pointer;
}
.cart-container {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.411);
    transition: all 0.5s ease;
}
.cart-header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
}
.cart-container.visible{
    display: grid !important;
    animation: dropdown 0.5s ease;
    flex-direction: column;
}
.cart-container.hide{
    animation: blowup 0.5s ease;
}
@keyframes blowup{
    0%{
        background: rgba(0, 0, 0, 0);
        transform: translateY(0);
    }
    100%{
        background: rgba(255, 255, 255, 0);
        transform: translateY(-100%);
    }
}
@keyframes dropdown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.cart {
    width: 600px;
    max-width: 95vw;
    min-height: 400px;
    max-height: 600px;
    background-color: #fff;
    color: #222;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 32px;
}
.navbar-list svg:hover{
    cursor: pointer;
}

.navbar-list li {
    display: inline;
}
.navbar-list a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.navbar-list a:hover {
    color: #c57c39;
}

.logo{
    font-weight: bold;
    font-size: 2em;
    color:#ae7c30;
}
.logo:hover{
    cursor:pointer;
}
.container{
    display: flex;
    flex-direction: row;
    width: 1207px;
    height: 400px;
    background-color: white;
    margin: 20px auto;
    padding: 40px;
    gap: 40px;
    align-items: center;
}

.features_main{
    display: flex;
    width: 100%;
    height: 600px;
    background-color: #ffffff;
    color: #fca522;
    margin: 10px;
    background: linear-gradient(-135deg, #ffffff 10%, #feeee1 60%, rgb(255, 240, 217) 100%);
    justify-content: space-between;
}
.features-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 40px;
    max-width: 540px;
    color: #8e761e;
    text-align: left;
    gap: 24px;
    border-radius: 18px;
}
.features-left a{
    text-decoration:none;
    color:#8e761e;
    font-weight:bold;
}
.features-left h1 {
    margin: 0 0 16px 0;
    font-size: 3rem;
    font-weight: 700;
    color: #65520e;
}
.features-left p {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #8e761e;
    line-height: 1.6;
}
.cta-button .btn {
    background: #fff;
    color: #b49739;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    border: 1.5px solid #694101;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(44, 62, 80, 0.04);
    transition-duration: 0.3s;
}
.cta-button .btn:hover {
    background: #ba914a;
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(44, 62, 80, 0.10);
}
.features-right img{
    height: 100%;
    
}

.categories-heading{
    font-family: serif Georgia, 'Times New Roman', Times, serif;
}

.top-categories{
    width: 1250;
    height: 650;
    margin: auto;
    padding: 20px;
    font-size: 1rem;
    color: #07356f;
}


.top-categories-list{
    height: 450px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 10px;
}

.category img{
    width: 370px;
    height: 207;
    border-radius: 10px;
}
.category-description{
    font-size: 1.2rem;
}

.top-categories a{
    color: #415f89;
    padding: 20px;
    background-color: white;
    border: solid 1px #22334b;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}
.top-categories a:hover{
    color: white;
    background-color: #22334b;
}
.arrow-right {
    position: relative;
    animation: arrow 1s ease-in-out infinite;
}

@keyframes arrow {
    0% {
        left: 0;
    }
    50% {
        left: 8px;
    }
    100% {
        left: 0;
    }
}
.header{
    color: #07356f;
    font-family: sans-serif ;
    text-align: center;
}
.new-books{
    display: grid;
    margin: auto;
}
.new-books-list{
    display: flex;
    justify-content: space-between;
    padding:40px;
    margin-left: 30px;
    margin-right: 30px;
}
.book-image-cover{
    width: 300px;
    height: 400px;
    background-color: white;
    box-shadow: 0px -2px 10px 2px rgba(34, 60, 80, 0.2);
    align-items: center;
    display: grid;
}
.book-image-cover img{
    width: 230px;
    height: 318px;
    margin: auto;
}

.book-image-cover:hover img{
    filter: blur(5px);
    transition: .5s ease;
}

.book-name{
    font-size: 22px;
    color: #07356f;
}
.book-author{
    font-size: 14;
    color: #626262;
}
.book-price{
    font-weight: bold;
    color:#f29d1d;
    font-size:1.2rem;
}
.book-info{
    width: 270px;
}
.book-info  a{
    display: none;
    width: 200px;
    color: #ffffff;
    text-decoration: none;
    border: #ae7c30 1px solid;
    background-color: #f37e10;
    padding: 15px 20px;
    margin: 0px 30px;
    position: absolute;
    font-size: 1.2em;
    font-family:sans-serif;
}

.book-image-cover:hover a{
    display: block;
}

.view-more{
    text-decoration: none;
    color: #c57c39;
    padding: 20px;
    display: block;
    text-align: right;
    font-size: 1.3em;
}
.authors-list{
    display: flex;
    gap:50px;
    color: #07356f;
    margin: 50px auto;
    width: 1100px;
    justify-content: space-between;
    
}
.author-info{
    width: 300px;
}
.author-info img{
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.author-bio{
    color: #555555;
}
.author-bio{
    height: 120px;
}
.author-info a{
    text-decoration: none;
    padding: 10px;
    border: #22334b 1px solid;
    transition: 0.3s;
    color: #22334b;
    border-radius: 2px;
}
.author-info a:hover{
    background-color: #062954;
    color: #fff;
}

.jingle{
    animation: jingle 0.3s infinite;
}
@keyframes jingle {
    0%{
        transform: rotate(0);
    }
    20%{
        transform: rotate(-10deg);
    }
    40%{
        transform: rotate(5deg);
    }
    50%{
        transform: rotate(0);
    }
    70%{
        transform: rotate(10deg);
    }
    90%{
        transform: rotate(-5deg);
    }
    100%{
        transform: rotate(0);
    }
}

.messages {
    position: fixed;
    list-style-type: none;
    top: 30px;
    right: 30px;
    z-index: 2000;
    min-width: 280px;
    max-width: 400px;
    background: #fffbe6;
    color: #6b4f09;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    padding: 18px 28px;
    font-size: 1.1rem;
    font-family: sans-serif;
    display: none;
    align-items: center;
    gap: 12px;
    animation: fade-in-message 0.5s;
}

@keyframes fade-in-message {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.control{
    display: flex;
}

.orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
    padding: 0 8px;
    max-height: 400px;
    overflow-y: auto;
}

.order_item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
    min-height: 80px;
}

.order_item_left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order_item_img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.order_item_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 220px;
}

.order_item .item-title {
    font-size: 1.1rem;
    color: #222;
    margin: 0 0 4px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.order_item .item-price {
    font-size: 1rem;
    color: #007aff;
    margin: 0;
    font-weight: 500;
}

.order_item_delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    color: #e05d06;
    transition: color 0.2s;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.order_item_delete:hover {
    background: #ffe5d0;
    color: #c0392b;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6faff;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 1.2rem;
    color: #222;
    font-weight: 600;
    margin-top: 12px;
}

.cart-total {
    color: #007aff;
    font-weight: bold;
    font-size: 1.2rem;
}

.cart-checkout-btn, .cart-goto-btn {
    width: 100%;
    padding: 16px 0;
    /* margin-top: 16px; */
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cart-checkout-btn {
    background: #007aff;
    color: #fff;
    margin-bottom: 8px;
}

.cart-checkout-btn:hover {
    background: #005bb5;
}

.cart-goto-btn {
    background: #fff;
    color: #007aff;
    border: 2px solid #007aff;
}

.cart-goto-btn:hover {
    background: #e6f0ff;
}