html {
    overflow-x: hidden;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-family: "Montserrat", sans-serif !important;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: #625d5d;
    font-family: "Montserrat", sans-serif !important;
}

/* REPLACE WITH: */
main.box-set-wrapper {
    background-color: #f8f6ef;
    padding-top: 140px;
    padding-bottom: 60px;
}

.box-set-page-title h3 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 33px;
    line-height: 46px;
    color: #000000;
    text-align: left;
    padding-bottom: 30px;
}

.box-set-page-subtitle p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    text-align: left;
}

.books-grid-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 52px;
    overflow: visible;
}

.book-grid-card {
    width: 203px;
    background: #ffffff;
    padding: 10px 10px 20px 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    z-index: 1;
    text-align: left;
}

.book-grid-card:hover {
    z-index: 99;
}

.book-hover-details {
    position: absolute;
    top: 80%;
    left: 350px;
    width: 400px;
    background: #f8f7f5;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-sizing: border-box;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.96);
    transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s ease;
    text-align: left;
    z-index: 99;
}

.book-grid-card:hover .book-hover-details {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    -webkit-transform: translate(-50%, -50%) scale(1);
    -moz-transform: translate(-50%, -50%) scale(1);
    -ms-transform: translate(-50%, -50%) scale(1);
    -o-transform: translate(-50%, -50%) scale(1);
}

.book-hover-details__title {
    margin: 0 0 22px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 600;
    color: #f45e3f;
    word-break: break-word;
}

.book-hover-details__author {
    margin: 0 0 22px;
    font-size: 19px;
    line-height: 1.4;
    color: #111111;
}

.book-hover-details__author strong,
.book-hover-details__desc strong {
    color: #000000;
    font-weight: 700;
}

.book-hover-details__desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #6b6b6b;
}

.sticky-add-to-cart-wrapper {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    margin: 0 auto;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0px -3px 3.8px rgba(0, 0, 0, 0.15);
    left: 0;
}

@media (max-width: 767px) {
    .book-hover-details {
        width: 420px;
        min-height: auto;
    }

    .book-hover-details__title {
        font-size: 24px;
    }

    .book-hover-details__author,
    .book-hover-details__desc {
        font-size: 17px;
    }
}


.book-grid-card__image {
    display: block;
    width: 183px;
    height: 217px;
    margin-bottom: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.book-grid-card__image img {
    width: 183px;
    height: 217px;
    display: block;
    object-fit: fill;
}

/* FIND and REPLACE: */
.book-grid-card__title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #000000;

    /* ADD these 3 lines: */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.book-grid-card__author {
    margin: 0 0 14px;
    font-size: 12px !important;
    line-height: 1.3;
    font-weight: 600;
    color: #000000;
    text-align: left;
}

.book-grid-card__bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.book-format-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    background: #FFEEB2;
    color: #ff6b4a;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    border: 1px solid #FFD233;
}

.book-grid-card__rating {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 1px;
    color: #f4c430;
    white-space: nowrap;
}

.book-load-item {
    display: none;
}

.book-load-item.prepare-show {
    display: flex;
    opacity: 0;
    transform: translateY(24px);
}

.book-load-item.show-more-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.books-load-more-wrap {
    text-align: center;
    padding-top: 100px;
}

.books-load-more-btn {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.books-load-more-btn:hover {
    opacity: 0.75;
}

.books-load-more-btn.is-hidden {
    display: none;
}

@keyframes fadeUpBook {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.books-load-more-wrap {
    text-align: center;
    padding-top: 100px;
}

.books-load-more-btn {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.books-load-more-btn:hover {
    opacity: 0.75;
}

.books-load-more-btn.is-hidden {
    display: none;
}

.book-details-box {
    padding-left: 10px;
}

.details-title {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: #000;
    margin-bottom: 18px;
    text-align: left;
}

.divider {
    border-top: 1px dashed #cfc6bc;
    margin: 18px 0 22px;
}

.custom-accordion {
    margin-top: 40px;
}

.custom-accordion .accordion-item {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #949494;
    background: transparent;
}

.accordion-item:last-of-type {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.custom-accordion .accordion-button {
    background: transparent;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: #111;
    box-shadow: none;
}

.custom-accordion .accordion-button::after {
    content: "";
    width: 15px;
    height: 15px;
    margin-left: auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: none !important;
}

.custom-accordion .accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.0625 8.4375H8.4375V14.0625C8.4375 14.3111 8.33873 14.5496 8.16291 14.7254C7.9871 14.9012 7.74864 15 7.5 15C7.25136 15 7.0129 14.9012 6.83709 14.7254C6.66127 14.5496 6.5625 14.3111 6.5625 14.0625V8.4375H0.9375C0.68886 8.4375 0.450403 8.33873 0.274588 8.16291C0.0987722 7.9871 0 7.74864 0 7.5C0 7.25136 0.0987722 7.0129 0.274588 6.83709C0.450403 6.66127 0.68886 6.5625 0.9375 6.5625H6.5625V0.9375C6.5625 0.68886 6.66127 0.450402 6.83709 0.274587C7.0129 0.0987711 7.25136 0 7.5 0C7.74864 0 7.9871 0.0987711 8.16291 0.274587C8.33873 0.450402 8.4375 0.68886 8.4375 0.9375V6.5625H14.0625C14.3111 6.5625 14.5496 6.66127 14.7254 6.83709C14.9012 7.0129 15 7.25136 15 7.5C15 7.74864 14.9012 8.33873 14.7254 8.16291C14.5496 8.33873 14.3111 8.4375 14.0625 8.4375Z' fill='black' fill-opacity='0.6'/%3E%3C/svg%3E");
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    width: 15px;
    height: 2px;
    background-size: 15px 2px;
    background-image: url("data:image/svg+xml,%3Csvg width='15' height='2' viewBox='0 0 15 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1C0 1.55228 0.447715 2 1 2H14C14.5523 2 15 1.55228 15 1C15 0.447715 14.5523 0 14 0H1C0.447715 0 0 0.447715 0 1Z' fill='black' fill-opacity='0.6'/%3E%3C/svg%3E");
}

.custom-accordion .accordion-body {
    padding: 0 0 18px;
    font-size: 16px;
    color: #2d2d2d;
    text-align: left;
}

.box-set-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.box-set-list li {
    margin-bottom: 6px;
    font-size: 16px;
    text-align: left;
}

.book-price-wrap .sale-price {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: baseline;
}

.sale-price p.regular-price {
    font-size: 22px !important;
    font-weight: 500;
    color: #acacac;
}

p.updated-price {
    font-size: 31px !important;
    color: #ff5c3e;
    font-weight: 500;
}

.ship-icon-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.ship-icon {
    flex: 0 0 28px;
    width: 28px;
    line-height: 0;
}

.ship-icon svg {
    display: block;
}

.ship-details p {
    margin: 0;
    line-height: 1.3;
}

.add-to-cart-buy-now-wrapper {
    height: fit-content;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    border: unset !important;
}

.quantity-item p {
    font-size: 18px !important;
    font-weight: 400;
    text-align: left;
    color: #000;
    font-family: "Montserrat", sans-serif !important;
}

.quantity-item-add-to-cart {
    display: grid;
    align-items: center;
    gap: 10px;
    grid-template-columns: 1fr 2fr;
}

.quantity-increase-decrease {
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    border-radius: 8px;
    padding: 2px 12px;
    background-color: #fff;
    height: 54px;
}

.quantity-increase-decrease p {
    margin-bottom: 0;
    font-size: 24px !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500;
}

.add-to-cart-item a button {
    border: 0;
    outline: none;
    width: 100%;
    border-radius: 8px;
    color: #ff5c3e;
    cursor: pointer;
    font-weight: 500;
    padding: 5px 30px;
    background-color: #fff;
    text-align: center;
    height: 54px;
    font-size: 20px;
}

.buy-now-button a button {
    background-color: #ff5c3e;
    border: 1px solid #ff5c3e;
    outline: none;
    padding: 10px 30px;
    width: 100%;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
    height: 54px;
    font-size: 20px;
}

@media (max-width: 991px) {
    .book-grid-card__image img {
        height: 220px;
    }

    .book-details-box {
        padding-left: 0;
    }
}

/* =========================
   MOBILE SHOWCASE
========================= */
.book-mobile-showcase {
    display: none;
}

@media (max-width: 767px) {
    .box-set-page-title h3 {
        font-size: 28px;
        line-height: 1.2;
    }

    .box-set-page-subtitle p {
        font-size: 14px;
        line-height: 1.4;
    }

    .book-mobile-showcase {
        display: block;
        margin-bottom: 30px;
    }

    .book-mobile-stage {
        background: #ffffff;
        padding: 18px;
        min-height: 330px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 18px;
        touch-action: pan-y;
    }

    .book-mobile-stage__image-wrap {
        width: 100%;
        height: 100%;
        min-height: 294px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .book-mobile-stage__image-wrap img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 312px;
        object-fit: contain;
        display: block;
    }

    .book-mobile-content {
        margin-bottom: 16px;
    }

    .book-mobile-title {
        margin: 0 0 12px;
        color: #111111;
        font-size: 22px;
        line-height: 1.2;
        font-weight: 700;
        font-family: "Montserrat", sans-serif !important;
    }

    .book-mobile-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .book-mobile-author {
        margin: 0;
        color: #111111;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 500;
        font-family: "Montserrat", sans-serif !important;
        flex: 1 1 auto;
    }

    .book-mobile-meta__right {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .book-mobile-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 96px;
        height: 26px;
        padding: 0 12px;
        border-radius: 8px;
        background: #FFEEB2;
        color: #ff6b4a;
        font-size: 11px;
        line-height: 1;
        font-weight: 500;
        border: 1px solid #FFD233;
        font-family: "Montserrat", sans-serif !important;
    }

    .book-mobile-rating {
        color: #f4c430;
        letter-spacing: 1px;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }

    .book-mobile-thumbs-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin: 0 -2px;
    }

    .book-mobile-thumbs-viewport::-webkit-scrollbar {
        display: none;
    }

    .book-mobile-thumbs {
        display: flex;
        gap: 12px;
        width: max-content;
        min-width: 100%;
        padding: 2px;
    }

    .book-mobile-thumb {
        flex: 0 0 calc((100vw - 54px) / 4);
        max-width: 110px;
        min-width: 92px;
        aspect-ratio: 1 / 1;
        background: #ffffff;
        border: 0;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        scroll-snap-align: start;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
        border: 2px solid transparent;
    }

    .book-mobile-thumb.is-active {
        border-color: #ff5c3e;
        box-shadow: 0 0 0 1px rgba(255, 92, 62, 0.12);
    }

    .book-mobile-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .book-mobile-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-top: 18px;
    }

    .book-mobile-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        border: 0;
        background: #cccccc;
        padding: 0;
        transition: width 0.25s ease, background-color 0.25s ease;
    }

    .book-mobile-dot.is-active {
        width: 34px;
        background: #ff6b4a;
    }

    .books-grid-wrap,
    .books-load-more-wrap {
        display: none !important;
    }

    .book-details-box {
        padding-left: 0;

    }

    /* .book-details-box .details-title {
        display: none;
    } */

    .book-price-wrap .sale-price {
        margin-top: 0;
    }

    .sale-price p.regular-price {
        font-size: 18px !important;
    }

    p.updated-price {
        font-size: 26px !important;
    }

    .ship-icon-wrap {
        margin-bottom: 12px;
    }

    .quantity-item-add-to-cart {
        grid-template-columns: 1fr 2fr;
    }

    .add-to-cart-item a button,
    .buy-now-button a button,
    .quantity-increase-decrease {
        height: 50px;
        font-size: 18px;
    }

    .custom-accordion {
        margin-top: 28px;
    }
}

@media (max-width: 575.98px) {
    .book-collection-section {
        padding-top: 12px !important;
    }

    .book-mobile-stage {
        min-height: 300px;
        padding: 16px;
    }

    .book-mobile-stage__image-wrap {
        min-height: 268px;
    }

    .book-mobile-stage__image-wrap img {
        max-height: 280px;
    }

    .book-mobile-title {
        font-size: 20px;
    }

    .book-mobile-meta {
        gap: 10px;
    }

    .book-mobile-author {
        font-size: 13px;
        max-width: 48%;
    }

    .book-mobile-meta__right {
        gap: 10px;
    }

    .book-mobile-badge {
        min-width: 92px;
        height: 24px;
        font-size: 10px;
        padding: 0 10px;
    }

    .book-mobile-rating {
        font-size: 13px;
        letter-spacing: 0.8px;
    }

    .book-mobile-thumbs {
        gap: 10px;
    }

    .book-mobile-thumb {
        flex-basis: calc((100vw - 44px) / 4);
        min-width: 80px;
        padding: 4px;
    }

    .divider {
        margin: 16px 0 18px;
    }

    .quantity-item p {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    main.box-set-wrapper {
        padding-top: 80px;
    }

    /* sticky add to cart wrapper css start */
    .sticky-add-to-cart-wrapper {
        display: block;
        position: fixed;
        bottom: 0;
        width: 100%;
        margin: 0 auto;
        z-index: 999;
        background-color: #fff;
        box-shadow: 0px -3px 3.8px rgba(0, 0, 0, 0.15);
        left: 0;
    }

    .sticky-add-to-cart-wrapper .add-to-cart-item a button {
        /* margin-top: 30px; */
        border: 1px solid #000000;
        outline: none;
        width: 100%;
        border-radius: 28px;
        color: #ff5c3e;
        cursor: pointer;
        font-weight: 500;
        border-radius: 8px;
        padding: 5px 50px;
        background-color: #fff;
    }

    .sticky-add-to-cart-wrapper .quantity-increase-decrease {
        border: 1px solid #000000;
        display: flex;
        gap: 25px;
        border-radius: 8px;
        padding: 2px 12px;
        background-color: #fff;
    }

    #atc-sticky {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }

    /* Sticky visible when normal is out of view */
    #atc-sticky.is-show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    main.box-set-wrapper {
        padding-top: 70px;
    }
}