/* 4-page brochure PDP — premium print-studio content */
.br4-hero,
.br4-content,
.br4-faq,
.br4-sticky {
    --br4-ink: #1a1714;
    --br4-navy: #1c2333;
    --br4-gold: #b08d3e;
    --br4-gold-soft: rgba(176, 141, 62, 0.12);
    --br4-bg: #f6f3ee;
    --br4-surface: #fffdf9;
    --br4-border: rgba(28, 35, 51, 0.08);
    --br4-muted: #5c564e;
    --br4-text: #2a2622;
    --br4-radius: 16px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--br4-text);
    -webkit-font-smoothing: antialiased;
}

.br4-hero h2,
.br4-content h2,
.br4-content h3,
.br4-faq h2,
.br4-final-cta h2 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    color: var(--br4-navy);
    letter-spacing: -0.02em;
}

.br4-hero {
    background: var(--br4-bg);
    border-top: 1px solid var(--br4-border);
    padding: 20px 16px 8px;
}

.br4-hero__crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 0.78rem;
    color: var(--br4-muted);
}

.br4-hero__crumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 6px;
    color: #9a9288;
}

.br4-hero__crumbs a {
    color: var(--br4-navy);
    text-decoration: none;
}

.br4-hero__card {
    background: var(--br4-surface);
    border: 1px solid var(--br4-border);
    border-radius: var(--br4-radius);
    padding: 22px 20px 24px;
    box-shadow: 0 10px 32px rgba(28, 35, 51, 0.05);
}

.br4-hero__eyebrow,
.br4-label {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a6d12;
    background: var(--br4-gold-soft);
    border-radius: 999px;
}

.br4-hero__sub {
    margin: 0 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    line-height: 1.25;
    color: var(--br4-navy);
}

.br4-hero__lead,
.br4-hero__body,
.br4-lead {
    margin: 0 0 12px;
    line-height: 1.65;
    color: var(--br4-muted);
}

.br4-hero__price-band {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 16px 0;
    padding: 12px 14px;
    background: #1c2333;
    color: #fff;
    border-radius: 12px;
}

.br4-hero__from {
    display: block;
    font-size: 0.78rem;
    opacity: 0.8;
}

.br4-hero__price {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.br4-hero__price-note {
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.75;
}

.br4-hero__trust,
.br4-hero__stats,
.br4-checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.br4-hero__trust li,
.br4-hero__stats li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
}

.br4-hero__trust i,
.br4-hero__stats i {
    color: var(--br4-gold);
}

.br4-hero__stats {
    margin: 14px 0 0;
}

.br4-hero__stats li {
    flex: 1 1 140px;
    padding: 10px 12px;
    background: var(--br4-surface);
    border: 1px solid var(--br4-border);
    border-radius: 12px;
}

.br4-hero__stats strong,
.br4-hero__stats span {
    display: block;
    line-height: 1.3;
}

.br4-hero__cta,
.br4-final-cta .br4-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.br4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.br4-btn--primary {
    background: var(--br4-navy);
    color: #fff;
}

.br4-btn--ghost {
    background: transparent;
    color: var(--br4-navy);
    border-color: rgba(28, 35, 51, 0.2);
}

.br4-content {
    background: var(--br4-bg);
    border-top: 1px solid var(--br4-border);
}

.br4-content__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 16px 64px;
}

.br4-intro {
    max-width: 760px;
    margin: 0 auto 40px;
}

.br4-intro h2,
.br4-section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.br4-block {
    margin: 0 0 40px;
    padding: 24px 0 0;
}

.br4-block--surface,
.br4-final-cta {
    background: var(--br4-surface);
    border: 1px solid var(--br4-border);
    border-radius: var(--br4-radius);
    padding: 28px 20px;
}

.br4-section-head {
    margin-bottom: 18px;
}

.br4-section-head--center {
    text-align: center;
}

.br4-section-head p,
.br4-intro p {
    margin: 0 0 10px;
    line-height: 1.7;
    color: var(--br4-muted);
}

.br4-fold {
    margin: 0 0 22px;
}

.br4-fold__sheet {
    display: grid;
    gap: 8px;
}

.br4-fold__half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    min-height: 88px;
}

.br4-fold__half span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--br4-surface);
    border: 1px dashed rgba(28, 35, 51, 0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    text-align: center;
}

.br4-fold__half--inside span {
    background: #efe8d8;
}

.br4-fold__crease {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--br4-gold);
}

.br4-fold__caption {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--br4-muted);
    text-align: center;
}

.br4-panels,
.br4-guidelines,
.br4-why,
.br4-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.br4-panels {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.br4-panels li,
.br4-guidelines li,
.br4-why li,
.br4-steps li,
.br4-card {
    background: var(--br4-surface);
    border: 1px solid var(--br4-border);
    border-radius: 14px;
    padding: 16px;
}

.br4-panels__num,
.br4-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--br4-gold-soft);
    color: #8a6d12;
    font-size: 0.72rem;
    font-weight: 700;
}

.br4-panels p,
.br4-card p,
.br4-why p,
.br4-steps p {
    margin: 6px 0 0;
    color: var(--br4-muted);
    line-height: 1.55;
}

.br4-cards {
    display: grid;
    gap: 12px;
}

.br4-cards--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.br4-cards--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.br4-cards--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.br4-card i {
    color: var(--br4-gold);
    margin-bottom: 8px;
}

.br4-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.br4-card--link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.br4-card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(28, 35, 51, 0.08);
}

.br4-card--cta .br4-btn {
    margin-top: 14px;
}

.br4-table-wrap {
    overflow-x: auto;
}

.br4-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--br4-surface);
    border-radius: 12px;
    overflow: hidden;
}

.br4-table th,
.br4-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--br4-border);
    text-align: left;
    vertical-align: top;
}

.br4-table thead th {
    background: #1c2333;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.br4-template {
    margin: 16px 0 0;
}

.br4-template a {
    color: var(--br4-navy);
    font-weight: 600;
}

.br4-why {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.br4-why li {
    display: flex;
    gap: 10px;
}

.br4-why i {
    color: #2f7d4a;
    margin-top: 3px;
}

.br4-steps {
    counter-reset: br4step;
}

.br4-steps li {
    counter-increment: br4step;
}

.br4-steps li strong::before {
    content: counter(br4step) ". ";
    color: var(--br4-gold);
}

.br4-final-cta {
    text-align: center;
}

.br4-checkout-trust {
    justify-content: center;
    margin: 16px 0;
}

.br4-checkout-trust li {
    padding: 6px 10px;
    background: var(--br4-gold-soft);
    border-radius: 999px;
    font-size: 0.8rem;
}

.br4-faq {
    background: var(--br4-bg);
    padding: 8px 0 48px;
}

.br4-faq__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}

.br4-faq__item {
    background: var(--br4-surface);
    border: 1px solid var(--br4-border);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 4px 16px;
}

.br4-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
}

.br4-faq__answer p {
    margin: 0 0 14px;
    color: var(--br4-muted);
    line-height: 1.65;
}

.br4-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #1c2333;
    color: #fff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.br4-sticky__copy {
    font-size: 0.92rem;
}

.br4-sticky .br4-btn--primary {
    background: var(--br4-gold);
    color: #1c2333;
}

.single-product-hero--brochure.home-self-code {
    max-width: none;
    background: linear-gradient(180deg, #f6f3ee 0%, #fff 280px);
}

.single-product-hero--brochure .br4-pdp-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px 8px;
}

.single-product-hero--brochure .br4-pdp-grid.row {
    align-items: start;
}

@media (min-width: 992px) {
    .single-product-hero--brochure .br4-pdp-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
        gap: 28px;
        align-items: start;
    }

    .single-product-hero--brochure .br4-pdp-gallery-col,
    .single-product-hero--brochure .br4-order-source {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        display: block !important;
    }
}

.single-product-hero--brochure .br4-pdp-gallery,
.br4-pdp-gallery {
    display: block !important;
    padding: 8px 12px 16px;
}

.single-product-hero--brochure .br4-pdp-gallery__stage,
.br4-pdp-gallery__stage {
    position: relative !important;
    display: block !important;
    min-height: 520px !important;
    height: auto !important;
    background:
        radial-gradient(circle at 18% 20%, rgba(176, 141, 62, 0.16), transparent 36%),
        linear-gradient(160deg, #1c2333 0%, #2c2418 58%, #3d3426 100%) !important;
    border-radius: 20px;
    padding: 24px 22px 20px;
    overflow: visible;
}

.br4-pdp-gallery__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.br4-pdp-gallery__badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f6f3ee;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.br4-pdp-gallery__photo {
    margin: 0;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.br4-pdp-gallery__photo[hidden],
.br4-pdp-gallery__visual[hidden] {
    display: none !important;
}

.br4-pdp-gallery__photo img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
    background: #fffdf9;
}

.br4-pdp-gallery__photo figcaption,
.br4-pdp-gallery__caption {
    margin: 12px 0 0;
    color: rgba(246, 243, 238, 0.78);
    font-size: 0.88rem;
    text-align: center;
}

.br4-pdp-gallery__svg {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 18px;
}

.single-product-hero--brochure .br4-open-brochure,
.br4-open-brochure {
    display: grid !important;
    grid-template-columns: 1fr 10px 1fr;
    min-height: 280px;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.35));
}

.br4-open-brochure__page {
    background: #fffdf8;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.br4-open-brochure__page--left {
    border-radius: 6px 0 0 6px;
    background:
        linear-gradient(90deg, #f3eee4, #fffdf8 18%);
}

.br4-open-brochure__page--right {
    border-radius: 0 6px 6px 0;
    background:
        linear-gradient(270deg, #f3eee4, #fffdf8 18%);
}

.br4-open-brochure__spine {
    background: linear-gradient(90deg, #c9b48a, #efe6d2 40%, #c9b48a);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.12);
}

.br4-open-brochure__kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #8a6d12;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.br4-open-brochure__page strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    color: #1c2333;
}

.br4-open-brochure__page p {
    margin: 8px 0 0;
    color: #5c564e;
    line-height: 1.55;
}

.br4-pdp-gallery__dims {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.br4-pdp-gallery__dims div {
    background: #fffdf9;
    border: 1px solid rgba(28, 35, 51, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.br4-pdp-gallery__dims span {
    display: block;
    font-size: 0.72rem;
    color: #5c564e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.br4-pdp-gallery__dims strong {
    display: block;
    margin-top: 4px;
    color: #1c2333;
}

.br4-pdp-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.br4-pdp-gallery__thumb {
    width: 88px;
    height: 66px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #efe8d8;
    cursor: pointer;
}

.br4-pdp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.br4-pdp-gallery__thumb span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.68rem;
    font-weight: 700;
    color: #1c2333;
}

.br4-pdp-gallery__thumb.is-active {
    border-color: #b08d3e;
}

.single-product-hero--brochure .br4-pdp-gallery-col {
    padding-right: 12px;
}

@media (max-width: 991.98px) {
    .single-product-hero--brochure .br4-pdp-gallery-col {
        display: none;
    }
}

.br4-pdp-eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a6d12;
}

.br4-pdp-subhead {
    margin: 6px 0 0;
    color: #1c2333;
    font-weight: 600;
    line-height: 1.5;
}

.br4-pdp-price {
    margin: 8px 0 0;
    color: #1c2333;
    font-size: 1.15rem;
    font-weight: 700;
}

.br4-pdp-specs {
    margin: 4px 0 10px;
    color: #5c564e;
    font-size: 0.88rem;
    line-height: 1.45;
}

.br4-pdp-design-link {
    display: inline-block;
    margin-left: 4px;
    color: #1c2333;
    font-size: 0.9rem;
    text-decoration: underline;
}

.br4-art-diagram {
    margin: 0 0 22px;
    padding: 18px 16px 14px;
    background: #fffdf9;
    border: 1px solid rgba(28, 35, 51, 0.08);
    border-radius: 16px;
}

.br4-art-diagram__title {
    margin: 0 0 12px;
    font-weight: 700;
    color: #1c2333;
}

.br4-art-diagram__svg {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
}

.br4-art-diagram__key {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: #5c564e;
    font-size: 0.85rem;
}

.br4-art-diagram__key li {
    font-weight: 600;
}

.br4-template-page__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
}

.br4-template-page__specs li {
    padding: 6px 10px;
    background: #efe8d8;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1c2333;
}

.br4-config-paths {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

body:has(.br4-sticky) {
    padding-bottom: 72px;
}

@media (max-width: 720px) {
    .br4-table thead { display: none; }
    .br4-table tr { display: block; margin-bottom: 12px; }
    .br4-table th,
    .br4-table td {
        display: block;
        border-bottom: 0;
    }
    .br4-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--br4-navy);
    }
}
