/* ── Global font tokens — inherits from style.css :root ─────────────── */
/* Use var(--font-heading) and var(--font-body) throughout               */

/* ==================================================
   CONCEIVE LIFE BOOKS PAGE
   Only Books page styles
   ================================================== */

.books-page {
    --books-pink: #f58cab;
    --books-bright-pink: #fa88aa;
    --books-light-pink: #fff1f5;
    --books-navy: #0b2c45;
    --books-border: #f3d8e1;
    --books-body: #555555;

    width: 100%;
    height: auto;
    max-height: none;
    overflow-x: clip;
    overflow-y: visible;
    background: #fbfbfb;
    color: var(--books-body);
    font-family: var(--font-body);
}

.books-page h1,
.books-page h2,
.books-page h3 {
    color: var(--books-navy);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading);
}

/* ==================================================
   PAGE BANNER
   ================================================== */

.books-page .books-banner {
    display: flex;
    align-items: center;
    min-height: 202px;
    padding: 48px 0;
    background: linear-gradient(
        105deg,
        #fff6f8 0%,
        #ffe7ef 52%,
        #ffd9e6 100%
    );
}

.books-page .books-banner h1 {
    margin: 0 0 12px;
    color: #0b2c45;
    font-family: var(--font-heading);
    font-size: clamp(38px, 4vw, 50px);
    font-weight: var(--font-weight-heading);
    line-height: 1.15;
}

.books-page .book-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #99959a;
    font-size: 15px;
}

.books-page .book-breadcrumb a {
    color: #ff88aa;
    font-weight: 600;
    text-decoration: none;
}

.books-page .book-breadcrumb a:hover {
    color: #ec7196;
}

/* ==================================================
   SHOP SECTION
   ================================================== */

.books-page .books-shop-section {
    padding: 40px 0 56px;
    background: #fbfbfb;
}

/* Result bar */

.books-page .books-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75px;
    padding: 13px 20px;
    margin-bottom: 24px;
    border: 1px solid #f7dce5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(242, 128, 161, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.books-page .books-result-bar:hover {
    box-shadow: 0 12px 27px rgba(242, 128, 161, 0.13);
    transform: translateY(-2px);
}

.books-page .books-result-bar p {
    margin: 0;
    color: #99979b;
    font-size: 14px;
}

.books-page .books-result-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.books-page .books-result-actions > select {
    width: 182px;
    height: 43px;
    padding: 0 42px 0 14px;
    border: 1px solid #f5cbd8;
    border-radius: 30px;
    outline: none;
    background: #ffffff;
    color: #0b2c45;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.books-page .books-result-actions > select:focus {
    border-color: #f58cab;
    box-shadow: 0 0 0 3px rgba(245, 140, 171, 0.12);
}

/* View buttons */

.books-page .books-view-toggle {
    display: flex;
    gap: 8px;
}

.books-page .books-view-toggle button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #f5cbd8;
    border-radius: 13px;
    background: #ffffff;
    color: #9d9699;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.books-page .books-view-toggle button:hover,
.books-page .books-view-toggle button.active {
    border-color: #f99db9;
    background: #f99db9;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(249, 157, 185, 0.28);
}

/* ==================================================
   MAIN LAYOUT
   ================================================== */

.books-page .books-shop-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

/* ==================================================
   SIDEBAR
   ================================================== */

.books-page .books-sidebar {
    padding: 24px 20px 21px;
    border: 1px solid #f4dce4;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(221, 105, 139, 0.09);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.books-page .books-sidebar:hover {
    box-shadow: 0 13px 29px rgba(221, 105, 139, 0.13);
    transform: translateY(-2px);
}

.books-page .books-filter-block + .books-filter-block {
    margin-top: 26px;
}

.books-page .books-filter-block h2 {
    margin: 0;
    color: #0b2c45;
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.25;
}

.books-page .books-filter-title-line {
    width: 42px;
    height: 3px;
    margin: 7px 0 15px;
    border-radius: 20px;
    background: #f693b0;
}

/* Search */

.books-page .books-sidebar-search {
    position: relative;
}

.books-page .books-sidebar-search input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 16px;
    border: 1px solid #f5cbd8;
    border-radius: 30px;
    outline: none;
    background: #ffffff;
    color: #0b2c45;
    font-family: var(--font-body);
    font-size: 13px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.books-page .books-sidebar-search input::placeholder {
    color: #a5a0a4;
}

.books-page .books-sidebar-search input:focus {
    border-color: #f58aaa;
    box-shadow: 0 0 0 3px rgba(245, 138, 170, 0.11);
}

.books-page .books-sidebar-search i {
    position: absolute;
    top: 50%;
    right: 16px;
    color: #ff7fa5;
    font-size: 13px;
    transform: translateY(-50%);
}

/* Categories */

.books-page .books-category-list {
    display: grid;
    gap: 9px;
}

.books-page .books-category-list button {
    min-height: 47px;
    padding: 0 16px;
    border: 1px solid #f5cbd8;
    border-radius: 30px;
    background: #ffffff;
    color: #fb82a6;
    text-align: left;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.books-page .books-category-list button:hover {
    padding-left: 20px;
    border-color: #f58cab;
    background: #fff3f7;
}

.books-page .books-category-list button.active {
    border-color: #f58cab;
    background: #f58cab;
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(245, 140, 171, 0.24);
}

/* Product status */

.books-page .books-status-select {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 0 16px;
    border: 1px solid #f5cbd8;
    border-radius: 30px;
    color: #0b2c45;
    font-size: 13px;
    font-weight: 600;
}

.books-page .books-status-select + .books-status-select {
    margin-top: 8px;
}

.books-page .books-status-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.books-page .books-status-select i {
    margin-left: auto;
    font-size: 11px;
}

/* Price filter */

.books-page .books-price-filter input[type='range'] {
    width: 100%;
    height: 4px;
    margin: 4px 0 13px;
    border-radius: 20px;
    outline: none;
    background: #ed829f;
    appearance: none;
    cursor: pointer;
}

.books-page
.books-price-filter
input[type='range']::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #f08baa;
    appearance: none;
}

.books-page
.books-price-filter
input[type='range']::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #f08baa;
}

.books-page .books-price-filter-bottom {
    display: flex;
    align-items: center;
    gap: 11px;
}

.books-page .books-price-filter-bottom button {
    min-width: 88px;
    height: 41px;
    border: 0;
    border-radius: 30px;
    background: #f58cab;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 7px 16px rgba(245, 140, 171, 0.25);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.books-page .books-price-filter-bottom button:hover {
    transform: translateY(-2px);
}

.books-page .books-price-filter-bottom span {
    color: #aaa3a6;
    font-size: 11px;
    white-space: nowrap;
}

/* ==================================================
   PRODUCT GRID
   ================================================== */

.books-page .books-products-area {
    min-width: 0;
}

.books-page .books-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* ==================================================
   BOOK CARD
   ================================================== */

.books-page .shop-book-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 414px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #f3d7e0;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 7px 19px rgba(221, 106, 139, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.books-page .shop-book-card:hover {
    border-color: #f2b5c7;
    box-shadow: 0 15px 30px rgba(220, 105, 138, 0.17);
    transform: translateY(-5px);
}

.books-page .shop-book-card[hidden] {
    display: none;
}

/* Book image section */

.books-page .shop-book-cover {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 210px;
    width: 100%;
    height: 210px;
    padding: 24px 20px 14px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #fff5f8 0%,
        #fee8ef 100%
    );
}

.books-page .shop-book-cover > a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    animation: none;
}

.books-page .shop-book-cover img {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 170px;
    object-fit: contain;
    filter: none;
    image-rendering: auto;
    transition: transform 0.3s ease;
}

.books-page .shop-book-cover__empty {
    display: block;
    width: 110px;
    height: 150px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px dashed rgba(226, 76, 116, 0.28);
}

.books-page .shop-book-cover img[src*=".webp"] {
    position: relative;
    left: -28px;
    width: 255px;
    max-width: 255px;
    height: 170px;
    max-height: 170px;
    object-fit: contain;
    object-position: center;
}

.books-page .shop-book-card:hover .shop-book-cover img {
    transform: none;
}

/* HOT label */

.books-page .shop-book-hot {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    padding: 7px 11px;
    border-radius: 30px;
    background: #fb91b1;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(251, 145, 177, 0.3);
}

/* Heart and view buttons */

.books-page .shop-book-hover-actions {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    display: grid;
    gap: 8px;
    opacity: 0;
    transform: translateX(8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.books-page .shop-book-card:hover .shop-book-hover-actions {
    opacity: 1;
    transform: translateX(0);
}

.books-page .shop-book-hover-actions button,
.books-page .shop-book-hover-actions a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e5e8eb;
    border-radius: 50%;
    background: #ffffff;
    color: #0b2c45;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 11px rgba(46, 50, 54, 0.08);
    transition: all 0.25s ease;
}

.books-page .shop-book-hover-actions button:hover,
.books-page .shop-book-hover-actions a:hover {
    border-color: #f58cab;
    background: #f58cab;
    color: #ffffff;
    transform: scale(1.07);
}

/* Card content */

.books-page .shop-book-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 204px;
    padding: 15px 16px;
    background: #ffffff;
}

.books-page .shop-book-content h2 {
    display: -webkit-box;
    min-height: 48px;
    max-height: 48px;
    margin: 0 0 5px;
    overflow: hidden;
    color: #0b2c45;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: var(--font-weight-heading);
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.books-page .shop-book-content h2 a {
    color: #0b2c45;
    text-decoration: none;
}

.books-page .shop-book-content h2 a:hover {
    color: #f37f9f;
}

.books-page .shop-book-list-description {
    display: none;
}

/* Price */

.books-page .shop-book-price {
    display: flex;
    align-items: baseline;
    min-height: 25px;
    gap: 7px;
    margin-bottom: 5px;
}

.books-page .shop-book-price strong {
    color: #fa88aa;
    font-size: 18px;
    font-weight: 800;
}

.books-page .shop-book-price del {
    color: #999598;
    font-size: 11px;
}

/* Rating */

.books-page .shop-book-rating {
    display: flex;
    align-items: center;
    min-height: 20px;
    gap: 5px;
    margin-bottom: 12px;
    white-space: nowrap;
}

.books-page .shop-book-rating > span {
    overflow: hidden;
    max-width: 55px;
    color: #ffc735;
    font-size: 11px;
    letter-spacing: -1px;
}

.books-page .shop-book-rating strong {
    color: #0b2c45;
    font-size: 11px;
    font-weight: 700;
}

.books-page .shop-book-rating small {
    color: #999396;
    font-size: 10px;
}

/* Add to cart */

.books-page .shop-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    border: 1px solid #f6bfd0;
    border-radius: 30px;
    background: #fff7fa;
    color: #fa88aa;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.books-page .shop-add-cart:hover {
    border-color: #f58cab;
    background: #f58cab;
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(245, 140, 171, 0.25);
    transform: translateY(-2px);
}

/* ==================================================
   LIST VIEW
   ================================================== */

.books-page .books-product-grid.books-list-view {
    grid-template-columns: 1fr;
}

.books-page
.books-product-grid.books-list-view
.shop-book-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    height: auto;
    min-height: 240px;
}

.books-page
.books-product-grid.books-list-view
.shop-book-cover {
    width: 220px;
    height: 100%;
    min-height: 240px;
}

.books-page
.books-product-grid.books-list-view
.shop-book-content {
    justify-content: center;
    min-height: 240px;
    padding: 25px;
}

.books-page
.books-product-grid.books-list-view
.shop-book-content h2 {
    min-height: 0;
    max-height: none;
    font-size: 21px;
}

.books-page
.books-product-grid.books-list-view
.shop-book-list-description {
    display: block;
    max-width: 680px;
    margin-bottom: 14px;
    color: #747176;
    font-size: 13px;
    line-height: 1.7;
}

.books-page
.books-product-grid.books-list-view
.shop-add-cart {
    width: 190px;
}

/* ==================================================
   EMPTY RESULT
   ================================================== */

.books-page .books-empty {
    padding: 80px 20px;
    color: #8f8589;
    text-align: center;
}

.books-page .books-empty[hidden] {
    display: none;
}

.books-page .books-empty > i {
    margin-bottom: 14px;
    color: #f58cab;
    font-size: 32px;
}

.books-page .books-empty h2 {
    font-size: 22px;
}

.books-page .books-empty p {
    margin-bottom: 16px;
}

.books-page .books-empty button {
    padding: 10px 18px;
    border: 0;
    border-radius: 30px;
    background: #f58cab;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
}

/* ==================================================
   SERVICE STRIP
   ================================================== */

.books-page .books-service-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin-top: 68px;
    border: 1px solid #f2dce4;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(224, 117, 147, 0.09);
}

.books-page .books-service-strip > div {
    padding: 27px 20px;
    text-align: center;
}

.books-page .books-service-strip > div + div {
    border-left: 1px solid #f1e2e7;
}

.books-page .books-service-strip i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 13px;
    background: #fff0f5;
    color: #f58cab;
    font-size: 19px;
    transition: transform 0.3s ease;
}

.books-page .books-service-strip > div:hover i {
    transform: translateY(-4px) rotate(4deg);
}

.books-page .books-service-strip h3 {
    margin: 0 0 6px;
    color: #0b2c45;
    font-family: var(--font-heading);
    font-size: 14px;
}

.books-page .books-service-strip p {
    max-width: 205px;
    margin: 0 auto;
    color: #9caabd;
    font-size: 11px;
    line-height: 1.55;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1199.98px) {
    .books-page .books-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .books-page .books-shop-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 18px;
    }

    .books-page .books-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .books-page .books-banner {
        min-height: 175px;
    }

    .books-page .books-result-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .books-page .books-result-actions {
        width: 100%;
    }

    .books-page .books-result-actions > select {
        flex: 1;
        width: auto;
    }

    .books-page .books-shop-layout {
        grid-template-columns: 1fr;
    }

    .books-page .books-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .books-page .books-service-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 45px;
    }

    .books-page .books-service-strip > div + div {
        border-left: 0;
    }

    .books-page
    .books-service-strip
    > div:nth-child(even) {
        border-left: 1px solid #f1e2e7;
    }

    .books-page
    .books-service-strip
    > div:nth-child(n + 3) {
        border-top: 1px solid #f1e2e7;
    }
}

@media (max-width: 575.98px) {
    .books-page .books-banner h1 {
        font-size: 34px;
    }

    .books-page .books-result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .books-page .books-view-toggle {
        align-self: flex-end;
    }

    .books-page .books-category-list {
        grid-template-columns: 1fr;
    }

    .books-page .books-product-grid {
        grid-template-columns: 1fr;
    }

    .books-page .shop-book-card {
        max-width: 290px;
        margin: 0 auto;
    }

    .books-page
    .books-product-grid.books-list-view
    .shop-book-card {
        display: flex;
        height: 414px;
        min-height: 414px;
    }

    .books-page
    .books-product-grid.books-list-view
    .shop-book-cover {
        width: 100%;
        height: 210px;
        min-height: 210px;
    }

    .books-page
    .books-product-grid.books-list-view
    .shop-book-content {
        min-height: 204px;
        padding: 15px 16px;
    }

    .books-page
    .books-product-grid.books-list-view
    .shop-book-list-description {
        display: none;
    }

    .books-page
    .books-product-grid.books-list-view
    .shop-add-cart {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .books-page *,
    .books-page *::before,
    .books-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.books-wishlist-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    color: #0b2c43;
    background: #ffffff;
    border: 1px solid #f3b5c8;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.books-wishlist-button:hover {
    color: #ffffff;
    background: #f56f99;
    border-color: #f56f99;
    box-shadow: 0 7px 18px rgba(245, 111, 153, 0.22);
    transform: translateY(-1px);
}

.books-wishlist-count {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    color: #ffffff;
    background: #0b2c43;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
}

.books-wishlist-button:hover .books-wishlist-count {
    color: #f56f99;
    background: #ffffff;
}