.cbb-catalogue,
.cbb-shop-banner {
    --cbb-accent: #111111;
    --cbb-border: #e5e5e5;
    --cbb-muted: #6b6b6b;
    --cbb-soft: #f7f7f5;
    --cbb-radius: 18px;
    color: #151515;
    font: inherit;
}

.cbb-catalogue * { box-sizing: border-box; }
.cbb-catalogue { width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 0 64px; }
.cbb-hero { padding: clamp(30px, 5vw, 72px); background: #f4f0e7; border-radius: 26px; margin-bottom: 48px; overflow: hidden; position: relative; }
.cbb-hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -70px; top: -85px; border: 1px solid rgba(0,0,0,.11); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.18), 0 0 0 64px rgba(255,255,255,.12); }
.cbb-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; position: relative; z-index: 1; }
.cbb-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; max-width: 900px; position: relative; z-index: 1; }
.cbb-intro { max-width: 820px; margin: 24px 0 0; font-size: clamp(16px, 2vw, 20px); line-height: 1.65; color: #454545; position: relative; z-index: 1; }
.cbb-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; position: relative; z-index: 1; }
.cbb-hero-stats span { background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.08); border-radius: 999px; padding: 9px 14px; font-size: 13px; }
.cbb-hero-stats strong { font-weight: 800; margin-right: 4px; }

.cbb-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.cbb-section-head h2 { margin: 6px 0 6px; font-size: clamp(27px, 4vw, 42px); line-height: 1.06; letter-spacing: -.025em; }
.cbb-section-head p { margin: 0; color: var(--cbb-muted); }
.cbb-step { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #111; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cbb-search-wrap { width: min(330px, 100%); }
.cbb-search-wrap input { width: 100%; min-height: 46px; border: 1px solid var(--cbb-border); border-radius: 999px; padding: 10px 18px; background: #fff; color: #111; font: inherit; outline: none; }
.cbb-search-wrap input:focus { border-color: #777; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }

.cbb-collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.cbb-collection-card { appearance: none; width: 100%; min-width: 0; border: 1px solid var(--cbb-border); border-radius: var(--cbb-radius); background: #fff; padding: 0; text-align: left; cursor: pointer; overflow: hidden; position: relative; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; color: inherit; font: inherit; }
.cbb-collection-card:hover { transform: translateY(-2px); border-color: #c7c7c7; box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.cbb-collection-card.is-selected { border-color: var(--cbb-accent); box-shadow: 0 0 0 2px var(--cbb-accent); }
.cbb-collection-card[hidden] { display: none !important; }
.cbb-collection-media { height: 116px; display: grid; place-items: center; background: var(--cbb-soft); }
.cbb-collection-media.has-image { background: #eee; }
.cbb-collection-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbb-book-icon { width: 54px; height: 54px; color: #262626; }
.cbb-book-icon svg { width: 100%; height: 100%; fill: currentColor; }
.cbb-collection-body { display: block; padding: 18px 18px 20px; min-height: 122px; }
.cbb-collection-body strong { display: block; font-size: 16px; line-height: 1.25; margin-bottom: 8px; }
.cbb-collection-body small { display: block; color: var(--cbb-muted); font-size: 12px; line-height: 1.45; }
.cbb-check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cbb-accent); color: #fff; font-size: 14px; opacity: 0; transform: scale(.7); transition: .18s ease; }
.cbb-collection-card.is-selected .cbb-check { opacity: 1; transform: scale(1); }
.cbb-no-results { padding: 20px; border: 1px dashed #c8c8c8; border-radius: 14px; color: var(--cbb-muted); }

.cbb-selected-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 28px 0 54px; padding: 16px 20px; border-radius: 14px; background: #111; color: #fff; }
.cbb-selected-bar span { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.cbb-selected-name { font-size: 16px; text-align: right; }
.cbb-packs-head { margin-top: 0; }
.cbb-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cbb-pack-card { border: 1px solid var(--cbb-border); border-radius: var(--cbb-radius); padding: 0; background: #fff; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .2s ease, box-shadow .2s ease; }
.cbb-pack-content { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.cbb-pack-media { height: 190px; position: relative; overflow: hidden; background: linear-gradient(135deg, #f7f4ed, #ece7dc); border-bottom: 1px solid var(--cbb-border); }
.cbb-pack-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s ease; }
.cbb-pack-card:hover .cbb-pack-media img { transform: scale(1.025); }
.cbb-pack-media-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; min-height: 28px; padding: 6px 10px; border-radius: 999px; background: rgba(17,17,17,.88); color: #fff; font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; backdrop-filter: blur(8px); }
.cbb-pack-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.cbb-pack-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--cbb-muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; }
.cbb-popular { color: #111; background: #f0eadb; border-radius: 999px; padding: 5px 8px; letter-spacing: .04em; }
.cbb-pack-card h3 { font-size: 17px; line-height: 1.3; margin: 18px 0 16px; min-height: 44px; }
.cbb-price { font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 2px; }
.cbb-price .woocommerce-Price-currencySymbol { font-size: .68em; vertical-align: .18em; margin-right: 2px; }
.cbb-per-book { margin: 0 0 20px; color: var(--cbb-muted); font-size: 12px; }
.cbb-pack-content .cbb-add-button { margin-top: auto; }
.cbb-add-button { width: 100%; min-height: 46px; padding: 11px 16px; border: 1px solid #111; border-radius: 999px; background: #111; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; transition: .18s ease; }
.cbb-add-button:hover:not(:disabled) { transform: translateY(-1px); background: #333; }
.cbb-add-button:disabled { opacity: .35; cursor: not-allowed; }
.cbb-add-button.is-loading { opacity: .62; cursor: wait; }
.cbb-add-button.is-added { background: #207245; border-color: #207245; }

.cbb-help-note { margin-top: 28px; border: 1px solid var(--cbb-border); border-radius: 16px; padding: 18px 20px; display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--cbb-soft); }
.cbb-help-note strong { white-space: nowrap; }
.cbb-help-note span { color: var(--cbb-muted); line-height: 1.5; }
.cbb-empty { padding: 30px; border: 1px dashed #ccc; border-radius: 16px; text-align: center; }

.cbb-shop-banner { width: 100%; clear: both; margin: 0 0 28px; padding: 20px 22px; border: 1px solid #dedede; border-radius: 16px; background: #f7f7f5; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cbb-shop-banner > div { min-width: 0; }
.cbb-shop-banner span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b6b6b; margin-bottom: 4px; }
.cbb-shop-banner strong { display: block; font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
.cbb-shop-banner p { margin: 0; color: #676767; font-size: 13px; line-height: 1.45; }
.cbb-shop-banner a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 17px; border-radius: 999px; background: var(--cbb-accent); color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 700; }
.cbb-shop-banner a span { margin: 0; color: inherit; font-size: inherit; letter-spacing: 0; }

@media (max-width: 1050px) {
    .cbb-collections, .cbb-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
    .cbb-catalogue { padding-top: 12px; }
    .cbb-hero { border-radius: 20px; margin-bottom: 36px; }
    .cbb-section-head { align-items: stretch; flex-direction: column; }
    .cbb-search-wrap { width: 100%; }
    .cbb-collections, .cbb-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cbb-selected-bar { align-items: flex-start; flex-direction: column; margin-bottom: 42px; }
    .cbb-selected-name { text-align: left; }
    .cbb-help-note, .cbb-shop-banner { align-items: flex-start; flex-direction: column; }
    .cbb-help-note strong { white-space: normal; }
}
@media (max-width: 520px) {
    .cbb-collections, .cbb-packs { grid-template-columns: 1fr; }
    .cbb-collection-card { display: grid; grid-template-columns: 96px 1fr; min-height: 110px; }
    .cbb-collection-media { height: 100%; min-height: 110px; }
    .cbb-collection-body { min-height: 0; padding: 15px; align-self: center; }
    .cbb-pack-card h3 { min-height: 0; }
    .cbb-pack-media { height: 220px; }
}
