.catalog-body {
    background: #f7f2e8;
    color: #25211d;
}

.catalog-hero {
    padding: clamp(4rem, 9vw, 7rem) 0;
    background: linear-gradient(135deg, #111b1a, #173c39);
    color: #fff;
}

.catalog-eyebrow {
    margin: 0 0 .75rem;
    color: #f2994a;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.catalog-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: .95;
}

.catalog-hero > .container > p:last-child {
    max-width: 48rem;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.15rem;
    line-height: 1.7;
}

.catalog-section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.catalog-toolbar p {
    margin: 0;
}

.catalog-toolbar a,
.catalog-detail-link {
    color: #9a4d18;
    font-weight: 800;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 2rem;
}

.catalog-card {
    overflow: hidden;
    border: 1px solid #ded5c8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(43, 34, 24, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(43, 34, 24, .14);
}

.catalog-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #171c1b;
}

.catalog-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.catalog-card:hover .catalog-cover img {
    transform: scale(1.025);
}

.catalog-status {
    position: absolute;
    top: .85rem;
    right: .85rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: #f2994a;
    color: #1a1816;
    font-size: .72rem;
    font-weight: 800;
}

.catalog-card-content {
    padding: 1.25rem;
}

.catalog-card-meta,
.book-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.catalog-card-meta span,
.book-detail-meta span {
    padding: .28rem .55rem;
    border-radius: 999px;
    background: #efe6d8;
    color: #714320;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.catalog-card h2 {
    margin: .9rem 0 .35rem;
    color: #25211d;
    font-size: 1.35rem;
}

.catalog-card h2 a,
.catalog-author a,
.coming-soon-content h3 a {
    color: inherit;
    text-decoration: none;
}

.catalog-card h2 a {
    color: #25211d;
}

.catalog-author {
    margin: 0 0 .85rem;
    color: #6f665d;
}

.catalog-blurb {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 1rem;
    color: #5e564e;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.book-detail {
    padding-top: clamp(2rem, 6vw, 5rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.book-back {
    display: inline-block;
    margin-bottom: 2rem;
    color: #9a4d18;
    font-weight: 800;
}

.book-detail-grid {
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    align-items: start;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.book-detail-cover img {
    display: block;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 22px 60px rgba(25, 20, 15, .22);
}

.book-detail-content h1 {
    margin: 1rem 0 .5rem;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 1;
}

.book-detail-author,
.book-series {
    color: #6f665d;
}

.book-detail-tagline {
    margin: 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.45;
}

.book-detail-blurb {
    max-width: 48rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.purchase-panel {
    max-width: 52rem;
    margin-top: 2.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #ded5c8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(43, 34, 24, .08);
}

.purchase-eyebrow {
    margin: 0 0 .35rem;
    color: #9a4d18;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.purchase-panel h2 {
    margin: 0;
    color: #25211d;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.purchase-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
    gap: .75rem;
    margin-top: 1.25rem;
}

.purchase-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding: .8rem 1rem;
    border: 1px solid #173c39;
    border-radius: 7px;
    background: #173c39;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.purchase-button:hover {
    transform: translateY(-2px);
    background: #f2994a;
    border-color: #f2994a;
    color: #171717;
}

@media (max-width: 760px) {
    .catalog-toolbar,
    .book-detail-grid {
        display: block;
    }

    .catalog-toolbar a {
        display: inline-block;
        margin-top: .6rem;
    }

    .book-detail-cover {
        max-width: 320px;
        margin-bottom: 2rem;
    }

    .purchase-actions {
        grid-template-columns: 1fr;
    }
}
