@import url("global-styles.css");
@import url("header.css");
@import url("callout.css");
@import url("footer.css");
@import url("card.css");
@import url("article.css");

.book-card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #7e7e7e;
    padding: 20px 0;
}

.book-card figure {
    position: relative;
    width: 50%;
    height: auto;
    transition: transform 0.4s ease-in-out;
}

.book-card:hover figure {
    transform: rotate(5deg);
}

.book-card figure .image-book {
    width: 100%;
    height: auto;
}

.book-card .book-content .book-content__title {
    color: var(--font-color-primary);
    font-size: 2rem;
}

.book-card .book-content {
    width: 100%;
}

.book-card .book-content .book-content__title,
.book-card .book-content .book-authors {
    width: 65%;
}

.book-card .book-content .book-description {
    width: 75%;
}

.book-card .book-content .book-authors {
    margin: 0;
}

.book-card .book-content .book-authors span {
    font-weight: bold;
    color: #2a3a58;
}

.book-buttons__button {
    width: 150px;
    height: 35px;
    border-radius: 7px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease,
        box-shadow 0.3s ease;
}

.book-buttons__button:hover {
    box-shadow: 3px 3px 5px rgba(21, 21, 21, 0.192);
}

.book-buttons__add-cart {
    background-color: var(--color-secondary);
    overflow: hidden;
}

.book-buttons__add-cart:hover {
    background-color: #ff8d22;
    transform: scale(1.1) translateX(-10px);
}

.book-buttons__add-cart img {
    width: 17px;
    margin-right: 5px;
}

.book-buttons__buy-now {
    background-color: #99bd4d;
}
.book-buttons__buy-now:hover {
    background-color: #82a830;
    transform: scale(1.1) translateX(10px);
}

.book-editorial {
    margin-top: 15px;
    list-style: none;
}

.item-sold__out {
    position: relative;
}

.item-sold__out::before {
    content: "SOLD OUT";
    font-weight: bold;
    color: white;
    position: absolute;
    top: 10px;
    left: 10px;
    transform: rotate(-20deg);
    z-index: 1;
    background-color: var(--color-secondary);
    border: 5px double #fff;
    height: 180px;
    width: 180px;
    font-size: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.831);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.588);
}

.item-sold__out figure img {
    filter: grayscale(100%);
}
.item-sold__out .book-content .book-content__title,
.item-sold__out .book-content .book-authors,
.item-sold__out .book-content .book-authors span,
.item-sold__out .book-content .book-description {
    color: #545454;
}

.item-sold__out .book-content .book-buttons .book-buttons__button,
.item-sold__out .book-content .events-select,
.item-sold__out .book-content .events-select option {
    background-color: #545454;
}
.item-sold__out figure img {
    filter: grayscale(100%);
}

@media screen and (min-width: 1800px) {
    .book-card figure {
        width: 30%;
    }

    .book-card .book-content .book-content__title {
        font-size: 2.5rem;
    }

    .book-card .book-content .book-content__title,
    .book-card .book-content .book-authors {
        width: 70%;
    }

    .book-card .book-content .book-description {
        width: 70%;
    }

    .book-editorial,
    .book-card .book-content .book-authors,
    .book-card .book-content .book-description {
        font-size: 1.2rem;
    }

    .book-buttons__button {
        width: 170px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 10px;
        position: relative;
    }

    .book-buttons__add-cart img {
        width: 20px;
        /* margin-right: 5px; */
    }

    .item-sold__out::before {
        font-size: 3rem;
        height: 250px;
        width: 250px;
    }
}

@media screen and (max-width: 1050px) {
    .book-card figure .image-book,
    .book-card figure {
        width: 250px;
    }

    .book-card .book-content .book-content__title,
    .book-card .book-content .book-authors {
        width: 400px;
    }

    .book-card .book-content .book-description {
        width: 80%;
    }

    .book-card .book-content .book-content__title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 850px) {
    .book-card {
        flex-direction: column;
    }

    .book-card .book-content {
        text-align: center;
    }

    .book-card figure .image-book,
    .book-card figure {
        width: 350px;
    }

    .book-card .book-content .book-content__title,
    .book-card .book-content .book-authors {
        width: 100%;
    }

    .book-card .book-content .book-description {
        width: 100%;
    }
}

@media screen and (max-width: 400px) {
    .book-card figure .image-book,
    .book-card figure {
        width: 200px;
    }

    .book-card .book-content .book-content__title {
        font-size: 1.3rem;
    }

    .book-buttons__button {
        margin: 3px;
        width: 85%;
    }

    .item-sold__out::before {
        height: 130px;
        width: 130px;
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 300px) {
    .book-card .book-content .book-content__title {
        font-size: 1.1rem;
    }

    .book-authors,
    .book-editorial,
    .book-buttons__button {
        font-size: 0.8rem;
    }

    .book-buttons__button:hover {
        transform: none;
    }

    .book-description {
        font-size: 0.95rem;
    }
    /* 
    .main-container__store {
        background-color: red;
        width: 50%;
    } */
}
