/* Página Produtos (catálogo) — usa só os tokens da marca. */
.chb-catbanner { background: linear-gradient(100deg, color-mix(in srgb, var(--chb-primary) 16%, #fff) 0%, color-mix(in srgb, var(--chb-primary) 6%, #fff) 60%, #fff 100%); color: var(--chb-ink); overflow: hidden; }
.chb-catbanner__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px 26px; }
.chb-catbanner__crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--chb-ink-soft); margin-bottom: 8px; }
.chb-catbanner__crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--chb-ink); text-decoration: none; }
.chb-catbanner h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 5vw, 52px); font-weight: 600; line-height: 1.1; color: var(--chb-ink); }
.chb-catbanner p { margin: 8px 0 0; font-size: clamp(15px, 1.6vw, 19px); color: var(--chb-ink-soft); }
.chb-catbanner__art { flex: none; width: clamp(110px, 16vw, 190px); height: auto; color: var(--chb-primary); }

.chb-main > .chb-catalog { background: #fff !important; }
.chb-catalog__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; padding-block: 28px 40px; align-items: start; }

/* ── Filtros ── */
.chb-catalog__filters { background: #fff; border: 1px solid var(--chb-line, #ece6dd); border-radius: 16px; padding: 18px 18px 20px; box-shadow: 0 4px 18px rgba(40, 20, 30, .04); }
.chb-filters__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--chb-line, #ece6dd); }
.chb-filters__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; font-weight: 700; color: var(--chb-ink); }
.chb-filters__close { display: none; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--chb-primary); cursor: pointer; }
.chb-filters__group { padding: 14px 0; border-bottom: 1px solid var(--chb-line, #ece6dd); }
.chb-filters__group summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--chb-ink); margin-bottom: 4px; }
.chb-filters__group summary::-webkit-details-marker { display: none; }
.chb-filters__group summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--chb-ink); border-bottom: 2px solid var(--chb-ink); transform: rotate(-135deg) translate(-2px, -2px); transition: transform .2s; }
.chb-filters__group:not([open]) summary::after { transform: rotate(45deg); }
.chb-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--chb-ink); cursor: pointer; }
.chb-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #b7aeb3; border-radius: 5px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.chb-check input:checked { background: var(--chb-primary); border-color: var(--chb-primary); }
.chb-check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.chb-check em { font-style: normal; color: var(--chb-ink-soft); }

.chb-range { position: relative; height: 28px; margin: 12px 4px 4px; }
.chb-range__track { position: absolute; left: 0; right: 0; top: 12px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--chb-primary) 22%, #fff); }
.chb-range__track i { position: absolute; top: 0; bottom: 0; background: var(--chb-primary); border-radius: 99px; }
.chb-range input[type="range"] { position: absolute; left: -4px; right: -4px; width: calc(100% + 8px); top: 4px; height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.chb-range input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 20px; }
.chb-range input[type="range"]::-moz-range-track { background: transparent; }
.chb-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--chb-primary); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); cursor: pointer; }
.chb-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--chb-primary); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); cursor: pointer; }
.chb-range__vals { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--chb-ink-soft); }
.chb-range__vals label { display: flex; align-items: center; gap: 5px; min-width: 0; }
.chb-range__vals input { width: 74px; min-width: 0; height: 36px; padding: 0 4px; border: 1px solid var(--chb-line, #dcd3d8); border-radius: 8px; font: inherit; font-size: 14px; color: var(--chb-ink); text-align: center; }

.chb-filters__actions { display: grid; gap: 10px; margin-top: 18px; }
.chb-btn-fill, .chb-btn-line { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.chb-btn-fill { border: 0; background: var(--chb-primary); color: #fff; }
.chb-btn-line { border: 1.5px solid var(--chb-primary); background: #fff; color: var(--chb-primary); }

/* ── Barra: contagem, ordenação, visualização ── */
.chb-catalog__bar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.chb-catalog__filterbtn { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--chb-line, #e3dde0); border-radius: 999px; background: #f7f6f8; color: var(--chb-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.chb-catalog__filterbtn b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--chb-primary); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.chb-catalog__filterbtn b[hidden] { display: none; }
.chb-catalog__count { flex: 1; margin: 0; font-size: 16px; color: var(--chb-ink-soft); }
.chb-catalog__sort { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px 0 18px; border: 1px solid var(--chb-line, #e3dde0); border-radius: 999px; background: #f7f6f8; font-size: 15px; font-weight: 600; color: var(--chb-ink); }
.chb-catalog__sort select { border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--chb-ink); padding: 0 4px; cursor: pointer; max-width: 150px; }
.chb-catalog__view { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--chb-line, #e3dde0); border-radius: 999px; background: #f7f6f8; }
.chb-catalog__view button { width: 42px; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--chb-ink); display: grid; place-items: center; cursor: pointer; }
.chb-catalog__view button.is-on { background: color-mix(in srgb, var(--chb-primary) 14%, #fff); color: var(--chb-primary); }

/* ── Cards ── */
.chb-catalog__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#catalogo .chb-product-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 3px 16px rgba(40, 20, 30, .08); overflow: hidden; cursor: pointer; }
#catalogo .chb-product-card[hidden] { display: none; }
#catalogo .chb-cat-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
#catalogo .chb-product-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--chb-secondary, #f3eee8); }
#catalogo .chb-product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
#catalogo .chb-product-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 8px; flex: 1; }
#catalogo .chb-product-card__title { font-size: 16px; font-weight: 700; color: var(--chb-ink); line-height: 1.25; }
#catalogo .chb-product-card__desc { font-size: 13px; line-height: 1.4; color: var(--chb-ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#catalogo .chb-product-card__price { margin-top: auto; padding-top: 4px; font-size: 16px; font-weight: 800; color: var(--chb-ink); }
#catalogo .chb-product-card__quote { font-size: 15px; font-weight: 700; color: var(--chb-ink-soft); }
.chb-cat-card__actions { display: flex; gap: 8px; padding: 6px 12px 12px; }
.chb-cat-card__actions button { flex: 1 1 0; min-width: 0; height: 38px; padding: 0 8px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.chb-cat-card__actions .chb-cat-buy { border: 0; background: var(--chb-primary); color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); }
.chb-cat-card__actions .chb-cat-buy::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat; }
.chb-cat-card__actions .chb-cat-buy.is-added { background: #2e9e5b; }
.chb-cat-card__actions .chb-cat-custom { border: 1.5px solid var(--chb-primary); background: #fff; color: var(--chb-primary); }
.chb-cat-card__actions .chb-cat-custom:hover { background: var(--chb-primary); color: #fff; }

/* Lista */
.chb-catalog__grid.is-list { grid-template-columns: 1fr; }
.chb-catalog__grid.is-list .chb-product-card { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; }
.chb-catalog__grid.is-list .chb-cat-card__link { display: contents; }
.chb-catalog__grid.is-list .chb-product-card__media { aspect-ratio: 1; height: 100%; }
.chb-catalog__grid.is-list .chb-cat-card__actions { flex-direction: column; padding: 12px 16px; min-width: 150px; }

.chb-catalog__empty { text-align: center; padding: 40px 0; color: var(--chb-ink-soft); }
.chb-catalog__pages { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.chb-catalog__pages button { width: 40px; height: 40px; border: 1px solid var(--chb-line, #e3dde0); border-radius: 50%; background: #fff; color: var(--chb-ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.chb-catalog__pages button.is-on { background: var(--chb-primary); border-color: var(--chb-primary); color: #fff; }
.chb-catalog__backdrop { display: none; }

@media (max-width: 1100px) { .chb-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	.chb-catalog__layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 18px 30px; }
	.chb-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

	/* filtros viram uma gaveta de baixo para cima */
	.chb-catalog__filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 310; max-height: 88vh; overflow-y: auto; border: 0; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .28s ease; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
	html.chb-filters-open .chb-catalog__filters { transform: none; }
	.chb-catalog__backdrop { position: fixed; inset: 0; z-index: 305; background: rgba(20, 12, 18, .5); }
	html.chb-filters-open .chb-catalog__backdrop { display: block; }
	html.chb-filters-open { overflow: hidden; }
	.chb-filters__close { display: block; }

	.chb-catalog__bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 14px; }
	.chb-catalog__filterbtn { display: inline-flex; grid-column: 1; grid-row: 1; }
	.chb-catalog__sort { grid-column: 2; grid-row: 1; justify-self: stretch; justify-content: space-between; padding: 0 12px 0 16px; height: 44px; font-size: 14px; }
	.chb-catalog__sort select { max-width: 130px; }
	.chb-catalog__count { grid-column: 1; grid-row: 2; font-size: 15px; white-space: nowrap; }
	.chb-catalog__view { grid-column: 2; grid-row: 2; justify-self: end; }
	.chb-catbanner__inner { padding-block: 16px 18px; }

	.chb-catalog__grid.is-list .chb-product-card { grid-template-columns: 110px minmax(0, 1fr); }
	.chb-catalog__grid.is-list .chb-cat-card__actions { grid-column: 1 / -1; flex-direction: row; padding: 0 12px 12px; }
	.chb-catalog__grid.is-list .chb-product-card__media { aspect-ratio: 1; }
	#catalogo .chb-product-card__title { font-size: 15px; }
	.chb-cat-card__actions { padding: 4px 8px 10px; gap: 6px; }
	.chb-cat-card__actions button { font-size: 12px; padding: 0 4px; gap: 4px; }
}


@media (max-width: 900px) {
	.chb-catalog__sort { white-space: nowrap; font-size: 13px; gap: 4px; padding: 0 8px 0 14px; }
	.chb-catalog__sort select { flex: 1; min-width: 0; max-width: none; font-size: 13px; }
}

@media (max-width: 900px) {
	.chb-catalog__bar { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
	.chb-catalog__filterbtn { padding: 0 14px; }
	.chb-catalog__sort { font-size: 12px; padding: 0 6px 0 12px; }
	.chb-catalog__sort select { font-size: 12px; padding: 0; }
}

@media (max-width: 900px) {
	.chb-catalog__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
	.chb-catalog__filterbtn { grid-column: 1; grid-row: 1; }
	.chb-catalog__sort { grid-column: 2 / 4; grid-row: 1; }
	.chb-catalog__count { grid-column: 1 / 3; grid-row: 2; }
	.chb-catalog__view { grid-column: 3; grid-row: 2; }
}

/* Busca na página Produtos */
.chb-catalog__search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; margin-bottom: 14px; border: 1px solid var(--chb-line, #e3dde0); border-radius: 999px; background: #f7f6f8; color: var(--chb-ink-soft); }
.chb-catalog__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--chb-ink); padding: 0; }
.chb-catalog__search:focus-within { border-color: var(--chb-primary); background: #fff; }