.gpb-ebook-page {
    background: #f7f7f7;
    padding: 34px 0 70px;
}

.gpb-ebook-container {
    max-width: 1240px;
}

.gpb-ebook-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #777;
    font-size: 13px;
}

.gpb-ebook-breadcrumbs a {
    color: #555;
}

.gpb-ebook-product {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.gpb-ebook-product-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 54px;
    padding: 48px;
}

.gpb-ebook-gallery {
    min-width: 0;
}

.gpb-ebook-cover-card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 420px;
    padding: 22px;
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.gpb-ebook-cover {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.gpb-ebook-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 380px;
    color: #777;
    background: #e8e8e8;
}

.gpb-cover-placeholder-icon {
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 700;
}

.gpb-ebook-summary {
    min-width: 0;
}

.gpb-ebook-category-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 11px;
    color: #fff;
    background: #ad7b61;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gpb-ebook-category-label:hover {
    color: #fff;
    opacity: 0.9;
}

.gpb-ebook-title {
    margin: 0 0 18px;
    color: #222;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.gpb-ebook-price {
    margin-bottom: 22px;
    color: #ad7b61;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.gpb-ebook-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 26px;
    padding: 16px 18px;
    background: #f7faf6;
    border: 1px solid #dcebd8;
    border-radius: 8px;
}

.gpb-ebook-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #3d5937;
    font-size: 14px;
    font-weight: 600;
}

.gpb-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    color: #fff;
    background: #67a558;
    border-radius: 50%;
    font-size: 13px;
}

.gpb-ebook-details-card {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
}

.gpb-ebook-details-card h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.gpb-ebook-details-list {
    margin: 0;
}

.gpb-ebook-details-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #ededed;
}

.gpb-ebook-details-list > div:last-child {
    border-bottom: 0;
}

.gpb-ebook-details-list dt {
    color: #777;
    font-weight: 500;
}

.gpb-ebook-details-list dd {
    margin: 0;
    color: #222;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gpb-ebook-checkout-card {
    padding: 22px;
    background: #fbf8f5;
    border: 1px solid #eaded6;
    border-radius: 9px;
}

.gpb-ebook-buy-button {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 13px 22px;
    color: #fff;
    background: #ad7b61;
    border: 0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.gpb-ebook-buy-button[disabled] {
    cursor: not-allowed;
    opacity: 0.62;
}

.gpb-checkout-testing-note {
    margin: 14px 0 6px;
    color: #805d4d;
    font-weight: 600;
}

.gpb-delivery-note {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.gpb-ebook-description-section,
.gpb-ebook-file-section,
.gpb-ebook-tags-section,
.gpb-related-ebooks {
    padding: 40px 48px;
    border-top: 1px solid #ededed;
}

.gpb-section-heading {
    margin-bottom: 24px;
}

.gpb-section-heading span,
.gpb-ebook-file-section h2,
.gpb-ebook-tags-section h2 {
    display: inline-block;
    margin: 0;
    padding-bottom: 9px;
    color: #222;
    border-bottom: 3px solid #ad7b61;
    font-size: 24px;
    font-weight: 700;
}

.gpb-ebook-description {
    max-width: 920px;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.gpb-ebook-description p:last-child {
    margin-bottom: 0;
}

.gpb-file-card {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 780px;
    margin-top: 22px;
    padding: 18px;
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}

.gpb-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    color: #fff;
    background: #d64b45;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.gpb-file-card strong,
.gpb-file-card span {
    display: block;
}

.gpb-file-card strong {
    color: #222;
    overflow-wrap: anywhere;
}

.gpb-file-card div > span {
    margin-top: 4px;
    color: #777;
    font-size: 13px;
}

.gpb-ebook-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.gpb-ebook-tags a {
    display: inline-flex;
    padding: 8px 13px;
    color: #555;
    background: #f1f1f1;
    border-radius: 999px;
    font-size: 13px;
}

.gpb-ebook-tags a:hover {
    color: #fff;
    background: #ad7b61;
}

.gpb-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.gpb-related-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gpb-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.08);
}

.gpb-related-cover-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 16px;
    background: #f5f5f5;
}

.gpb-related-cover {
    width: auto;
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.gpb-related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 200px;
    color: #777;
    background: #dedede;
    font-weight: 700;
}

.gpb-related-content {
    padding: 17px;
}

.gpb-related-content h3 {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.45;
}

.gpb-related-price {
    color: #ad7b61;
    font-weight: 700;
}

.gpb-admin-source-link {
    margin: 0 48px 38px;
    padding: 14px 16px;
    color: #555;
    background: #fff7d8;
    border: 1px solid #ecd981;
    border-radius: 6px;
    font-size: 13px;
}

@media (max-width: 991px) {
    .gpb-ebook-product-grid {
        grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
        gap: 32px;
        padding: 34px;
    }

    .gpb-ebook-description-section,
    .gpb-ebook-file-section,
    .gpb-ebook-tags-section,
    .gpb-related-ebooks {
        padding: 34px;
    }

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

@media (max-width: 767px) {
    .gpb-ebook-page {
        padding: 18px 0 45px;
    }

    .gpb-ebook-product-grid {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .gpb-ebook-cover-card {
        min-height: 320px;
    }

    .gpb-ebook-cover {
        max-height: 430px;
    }

    .gpb-ebook-title {
        font-size: 28px;
    }

    .gpb-ebook-price {
        font-size: 29px;
    }

    .gpb-ebook-description-section,
    .gpb-ebook-file-section,
    .gpb-ebook-tags-section,
    .gpb-related-ebooks {
        padding: 28px 22px;
    }

    .gpb-related-grid {
        grid-template-columns: 1fr;
    }

    .gpb-admin-source-link {
        margin: 0 22px 28px;
    }

/* Woodmart places singular content directly inside a Bootstrap row. */
.main-page-wrapper > .container > .content-layout-wrapper > .gpb-ebook-page {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 15px;
    padding-left: 15px;
}

.gpb-ebook-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.gpb-ebook-container {
    width: min(1240px, calc(100% - 30px));
    max-width: 1240px;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
}

.gpb-ebook-product-grid,
.gpb-ebook-gallery,
.gpb-ebook-summary {
    min-width: 0;
}

.gpb-ebook-title {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

@media (max-width: 1100px) {
    .gpb-ebook-product-grid {
        grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
        gap: 34px;
        padding: 34px;
    }
}

@media (max-width: 767px) {
    .gpb-ebook-container {
        width: calc(100% - 20px);
    }

    .gpb-ebook-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
   
    /* =========================================================
   Great Price Books ebook archive and taxonomy pages
   ========================================================= */

.main-page-wrapper > .container > .content-layout-wrapper > .gpb-catalog-page {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 15px;
    padding-left: 15px;
}

.gpb-catalog-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 34px 0 70px;
    background: #f7f7f7;
}

.gpb-catalog-container {
    width: min(1240px, calc(100% - 30px));
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
}

.gpb-catalog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #777;
    font-size: 13px;
}

.gpb-catalog-breadcrumbs a {
    color: #555;
}

.gpb-catalog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
    padding: 34px 38px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 11px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
}

.gpb-catalog-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #ad7b61;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gpb-catalog-header h1 {
    margin: 0;
    color: #222;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.gpb-catalog-description {
    max-width: 760px;
    margin-top: 13px;
    color: #666;
    font-size: 15px;
    line-height: 1.65;
}

.gpb-catalog-description p:last-child {
    margin-bottom: 0;
}

.gpb-catalog-count {
    flex-shrink: 0;
    padding: 9px 14px;
    color: #6d4d3f;
    background: #f4ebe6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.gpb-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.gpb-catalog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 9px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.gpb-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 11px 28px rgba(0, 0, 0, 0.09);
}

.gpb-catalog-cover-link {
    display: block;
    background: #f2f2f2;
}

.gpb-catalog-cover-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    padding: 20px;
}

.gpb-catalog-cover {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 310px;
    object-fit: contain;
    box-shadow: 0 8px 19px rgba(0, 0, 0, 0.16);
}

.gpb-catalog-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 260px;
    color: #777;
    background: #dedede;
    border-radius: 4px;
}

.gpb-catalog-cover-placeholder strong {
    margin-bottom: 8px;
    font-size: 24px;
}

.gpb-catalog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px;
}

.gpb-catalog-category {
    align-self: flex-start;
    margin-bottom: 10px;
    color: #ad7b61;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gpb-catalog-title {
    margin: 0 0 13px;
    font-size: 17px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.gpb-catalog-title a {
    color: #222;
}

.gpb-catalog-title a:hover {
    color: #ad7b61;
}

.gpb-catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 18px;
    color: #777;
    font-size: 12px;
}

.gpb-catalog-meta span {
    position: relative;
}

.gpb-catalog-meta span:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -8px;
    width: 3px;
    height: 3px;
    background: #aaa;
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
}

.gpb-catalog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #ededed;
}

.gpb-catalog-price {
    color: #ad7b61;
    font-size: 19px;
    font-weight: 700;
}

.gpb-catalog-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    color: #fff;
    background: #222;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.gpb-catalog-view-button:hover {
    color: #fff;
    background: #ad7b61;
}

.gpb-catalog-pagination {
    margin-top: 42px;
}

.gpb-catalog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.gpb-catalog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    color: #444;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gpb-catalog-pagination .page-numbers.current,
.gpb-catalog-pagination .page-numbers:hover {
    color: #fff;
    background: #ad7b61;
    border-color: #ad7b61;
}

.gpb-catalog-empty {
    padding: 65px 30px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    text-align: center;
}

.gpb-catalog-empty h2 {
    margin: 0 0 12px;
}

.gpb-catalog-empty p {
    margin: 0;
    color: #777;
}

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

@media (max-width: 820px) {
    .gpb-catalog-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }

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

@media (max-width: 560px) {
    .gpb-catalog-page {
        padding-top: 20px;
    }

    .gpb-catalog-container {
        width: calc(100% - 20px);
    }

    .gpb-catalog-grid {
        grid-template-columns: 1fr;
    }

    .gpb-catalog-cover-wrap {
        min-height: 300px;
    }
    
    .gpb-catalog-card {
    position: relative;
  }

 .gpb-catalog-draft-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    color: #6c4b00;
    background: #fff1b8;
    border: 1px solid #e4c35c;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
 }
   
