.radem-books-page {
    --books-ink: #101b2b;
    --books-muted: #66717f;
    --books-navy: #071426;
    --books-gold: #c9aa72;
    --books-cream: #f6f3eb;
    --books-sage: #aeb79a;
    background: #fff;
    color: var(--books-ink);
}

.books-catalog {
    padding: 150px 0 110px;
    background: linear-gradient(180deg, #071426 0, #071426 360px, #f6f3eb 360px, #fff 100%);
}

.books-catalog-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
    align-items: end;
    margin-bottom: 28px;
    color: #fff;
}

.books-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #e5c98f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.books-kicker:before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.books-catalog-head h1 {
    margin: 18px 0 12px;
    color: #fff;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 1;
}

.books-catalog-head p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 17px;
    line-height: 1.75;
}

.books-store-status {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}

.books-store-status span {
    display: block;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    font-weight: 700;
}

.books-store-status strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 20px;
}

.books-toolbar,
.books-layout {
    border: 1px solid rgba(16, 27, 43, .08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(17, 28, 40, .08);
}

.books-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto 260px;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px;
}

.books-search,
.books-stock-toggle,
.books-sort {
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid #e5e9ee;
    border-radius: 8px;
    background: #fbfcfd;
}

.books-search {
    gap: 11px;
    padding: 0 14px;
}

.books-search i {
    color: var(--books-gold);
}

.books-search input,
.books-sort select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--books-ink);
    font-size: 14px;
}

.books-stock-toggle {
    gap: 10px;
    padding: 0 14px;
    color: #354152;
    font-size: 13px;
    font-weight: 800;
}

.books-stock-toggle input {
    width: 17px;
    height: 17px;
    accent-color: #0b7d70;
}

.books-sort {
    gap: 10px;
    padding: 0 12px;
}

.books-sort span {
    flex: 0 0 auto;
    color: #8490a0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.books-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    overflow: hidden;
}

.books-filter-panel {
    min-height: 100%;
    padding: 20px;
    border-right: 1px solid #edf0f3;
    background: #fbfcfd;
}

.books-filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--books-ink);
}

.books-filter-title i {
    color: #0b7d70;
}

.books-filter-group {
    padding: 18px 0;
    border-top: 1px solid #edf0f3;
}

.books-filter-group h2 {
    margin: 0 0 12px;
    color: #263043;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.books-filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin: 0;
    color: #5d6876;
    font-size: 13px;
    cursor: pointer;
}

.books-filter-group input {
    width: 16px;
    height: 16px;
    accent-color: #0b7d70;
}

.books-filter-group em {
    margin-left: auto;
    color: #9aa4b2;
    font-style: normal;
    font-size: 12px;
}

.books-products {
    padding: 20px;
}

.books-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.books-products-head strong {
    color: #263043;
    font-size: 14px;
}

.books-products-head div {
    display: flex;
    gap: 8px;
}

.books-view-toggle {
    flex: 0 0 auto;
}

.books-products-head button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e6ebef;
    border-radius: 8px;
    background: #fff;
    color: #7b8795;
}

.books-products-head button.is-active {
    background: var(--books-navy);
    color: #fff;
}

.books-products-head button:hover {
    border-color: rgba(11, 125, 112, .35);
    color: #0b7d70;
}

.books-products-head button.is-active:hover {
    color: #fff;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    transition: opacity .16s ease;
}

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

.books-grid.is-loading {
    opacity: .45;
    pointer-events: none;
}

.books-empty-state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1px dashed #d7ded8;
    border-radius: 8px;
    background: #fbfcfd;
    color: #66717f;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.book-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid #ece8df;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(17, 28, 40, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 170, 114, .65);
    box-shadow: 0 20px 46px rgba(17, 28, 40, .12);
}

.books-grid--list .book-card {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
}

.books-grid--list .book-card:hover {
    transform: translateY(-3px);
}

.book-cover {
    position: relative;
    display: flex;
    height: 310px;
    min-height: 310px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(145deg, #f4efe4, #fbfaf7);
    overflow: hidden;
}

.books-grid--list .book-cover {
    height: 100%;
    min-height: 260px;
}

.book-card--sage .book-cover { background: linear-gradient(145deg, #eef2e8, #fbfaf7); }
.book-card--blue .book-cover { background: linear-gradient(145deg, #e9eef5, #fbfaf7); }
.book-card--ink .book-cover { background: linear-gradient(145deg, #091827, #233344); }

.book-cover:before {
    content: "";
    position: absolute;
    inset: auto -20% -35% -20%;
    height: 55%;
    background: radial-gradient(circle, rgba(201, 170, 114, .3), rgba(201, 170, 114, 0) 68%);
}

.book-cover img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    filter: none;
    transition: transform .25s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.035);
}

.book-badge,
.book-discount {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.book-badge {
    top: 14px;
    left: 14px;
    min-height: 28px;
    padding: 0 10px;
    background: #fff;
    color: var(--books-ink);
    box-shadow: 0 8px 18px rgba(17, 28, 40, .1);
}

.book-discount {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
    flex-direction: column;
    background: #0b7d70;
    color: #fff;
    line-height: 1;
}

.book-discount small {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 800;
}

.book-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.books-grid--list .book-info {
    min-height: 260px;
    justify-content: center;
    padding: 24px;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.book-meta span {
    padding: 5px 8px;
    border-radius: 8px;
    background: #f5f6f2;
    color: #66705e;
    font-size: 11px;
    font-weight: 800;
}

.book-info h2 {
    min-height: 56px;
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.35;
}

.books-grid--list .book-info h2 {
    min-height: auto;
    max-width: 620px;
    font-size: 24px;
}

.book-info h2 a {
    color: var(--books-ink);
    text-decoration: none;
}

.book-info h2 a:hover {
    color: #0b7d70;
}

.book-excerpt {
    display: -webkit-box;
    min-height: 42px;
    margin: -4px 0 16px;
    overflow: hidden;
    color: var(--books-muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.book-excerpt p,
.book-excerpt ul,
.book-excerpt ol {
    margin: 0;
}

.book-excerpt ul,
.book-excerpt ol {
    padding-left: 17px;
}

.book-excerpt a {
    color: #0b7d70;
    text-decoration: none;
    font-weight: 700;
}

.book-info dl {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.book-info dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.book-info dt,
.book-info dd {
    margin: 0;
    font-size: 12px;
}

.book-info dt {
    color: #9aa4b2;
    font-weight: 800;
}

.book-info dd {
    color: #4e5968;
    text-align: right;
}

.book-buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf0f3;
}

.book-price {
    display: grid;
    gap: 2px;
}

.book-price del {
    color: #a2aab5;
    font-size: 12px;
}

.book-price strong {
    color: #0b7d70;
    font-size: 19px;
}

.book-price--soon strong {
    color: var(--books-gold);
    font-size: 15px;
}

.book-buy-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--books-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.book-buy-action:hover {
    background: #0b7d70;
    color: #fff;
}

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

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

@media (max-width: 991px) {
    .books-catalog {
        padding-top: 120px;
    }

    .books-catalog-head,
    .books-toolbar,
    .books-layout {
        grid-template-columns: 1fr;
    }

    .books-filter-panel {
        border-right: 0;
        border-bottom: 1px solid #edf0f3;
    }

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

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

@media (max-width: 575px) {
    .books-catalog {
        padding: 105px 0 70px;
        background: linear-gradient(180deg, #071426 0, #071426 430px, #f6f3eb 430px, #fff 100%);
    }

    .books-catalog-head h1 {
        font-size: 42px;
    }

    .books-toolbar,
    .books-filter-panel,
    .books-products {
        padding: 14px;
    }

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

    .books-grid--list .book-card {
        display: block;
    }

    .book-cover {
        min-height: 285px;
    }

    .books-grid--list .book-cover,
    .books-grid--list .book-info {
        min-height: auto;
    }

    .book-info h2 {
        min-height: auto;
    }
}
