/* Start Header Content */

body .header-content {
    margin: 2rem auto;
    gap: 2rem;
    text-align: justify;
    line-height: 1.7em;
}

.header-content .right {
    overflow: hidden;
}

.right img {
    border-radius: 0.3rem;
}

.header-content .left {
    width: 50%;
}

.left h1 {
    text-align: center;
    font-size: 3em;
    letter-spacing: 0.1rem;
    line-height: 2em;
}
/* End Header Content */

/* Start Books */
body .books {
    flex-direction: column;
    position: relative;
}

.books .books-title {
    font-size: 2rem;
    font-weight: bold;
}

.books-title::before,
.books-title::after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    top: 1.5rem;
    width: 40%;
    height: 0.15rem;
    background: linear-gradient(to right, #000, #fff);
}

.books-title::before {
    right: 0;
    rotate: 180deg;
}

.books .carts {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    margin: 1rem 0;
}

.carts .cart {
    width: 18rem;
    position: relative;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.7);
    border-radius: 0.3rem;
    overflow: hidden;
    color: var(--dark-gray);
    top: 0;
    transition: all 0.3s;
}
.cart a {
    color: inherit;
}

.carts .cart:hover{
    color: var(--gray);
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.9);
    top: -1rem;
}

.cart-link .cart-img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.cart .cart-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.cart-details .cart-title {
    font-size: 1.2rem;
    font-weight: 300;
}

.cart-details .cart-price {
    font-weight: bold;
    font-style: italic;
}

.cart-details .cart-price::after {
    content: ' ریال';
    font-weight: normal;
    font-style: normal;
    font-size: 0.7em;
}
.cart .add-to-cart {
    padding: 1rem;
}
.add-to-cart .cart-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* End Books */


@media screen and (max-width: 750px) {
    .books-title::before,
    .books-title::after {
        width: 20%;
    }
}