/* BrandShelf Catalog: product cards, comparison tables, disclosures.
   Neutral defaults; the BrandShelf theme restyles these through its own tokens. */

.bsc-heading { margin-bottom: 0.7em; }

/* ---------- Grid ---------- */
.bsc-grid {
	--bsc-cols: 3;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(240px, calc((100% - (var(--bsc-cols) - 1) * 22px) / var(--bsc-cols)))), 1fr));
	gap: 22px;
	margin: 0 0 1.8em;
	align-items: stretch;
}

/* ---------- Card ---------- */
.bsc-card {
	display: flex;
	flex-direction: column;
	background: var(--bs-surface, #fff);
	color: var(--bs-text, #1f2330);
	border: 1px solid #dcdce3;
	border-radius: var(--bs-radius, 10px);
	overflow: hidden;
	min-width: 0;
}
.bsc-card__media {
	aspect-ratio: 4 / 3;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
}
.bsc-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bsc-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--bs-surface-2, #f2f2f5);
}
.bsc-ph svg { width: 44px; height: auto; opacity: 0.6; }
.bsc-cmp__img--ph, .bsc-card__media--ph { background: var(--bs-surface-2, #f2f2f5); }
.bsc-cmp__img--ph .bsc-ph, .bsc-card__media--ph .bsc-ph { background: transparent; }

.bsc-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.bsc-card__body > * { margin: 0; }
.bsc-card__title { font-size: 1.2rem; line-height: 1.2; margin: 0; }
.bsc-badge {
	align-self: flex-start;
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--bs-brand, #ffc93c);
	color: var(--bs-accent-ink, #1c1a26);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.5;
}
.bsc-bestfor { font-size: 0.95rem; }
.bsc-summary { font-size: 0.98rem; }
.bsc-features { padding-left: 1.1em; font-size: 0.95rem; }
.bsc-features li + li { margin-top: 4px; }

/* Pros and cons */
.bsc-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bsc-pc__h { margin: 0 0 4px; font-weight: 700; font-size: 0.9rem; }
.bsc-pc ul, .bsc-cmp__list { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.bsc-pc li, .bsc-cmp__list li { position: relative; padding-left: 1.1em; }
.bsc-pc li + li, .bsc-cmp__list li + li { margin-top: 4px; }
.bsc-pc li::marker, .bsc-cmp__list li::marker { content: none; }
.bsc-pros li::before, .bsc-cons li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.bsc-pros li::before { content: "+"; color: #1f7a33; }
.bsc-cons li::before { content: "\2013"; color: #b32d2e; }

/* Specs */
.bsc-specs { margin: 0; font-size: 0.92rem; }
.bsc-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #cfd3dc; }
.bsc-specs dt { color: var(--bs-muted, #55555c); }
.bsc-specs dd { margin: 0; text-align: right; font-weight: 600; }

/* Buy block */
.bsc-buy { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 8px; }
a.bsc-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0.6em 1em;
	background: var(--bs-accent, #5cc94f);
	color: var(--bs-accent-ink, #1c1a26);
	border-radius: var(--bs-radius, 8px);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}
a.bsc-cta:hover { filter: brightness(1.06); }

/* Price */
.bsc-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	font-size: 0.85rem;
	color: var(--bs-muted, #55555c);
}
.bsc-price__amount { font-size: 1.15rem; font-weight: 700; color: var(--bs-text, #1f2330); }
.bsc-price--na { font-weight: 600; }
.bsc-price__details summary { cursor: pointer; text-decoration: underline; list-style: none; }
.bsc-price__details summary::-webkit-details-marker { display: none; }
.bsc-price__details[open] { flex-basis: 100%; }
.bsc-price__details[open] .bsc-price__text { display: block; margin-top: 6px; font-size: 0.8rem; line-height: 1.45; }

/* Single wide card */
.bsc-card--wide { flex-direction: row; margin: 0 0 1.8em; }
.bsc-card--wide .bsc-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
@media (max-width: 640px) {
	.bsc-card--wide { flex-direction: column; }
	.bsc-card--wide .bsc-card__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Comparison table ---------- */
.bsc-cmp {
	position: relative;
	overflow-x: auto;
	margin: 0 0 1.8em;
	border: 1px solid #dcdce3;
	border-radius: var(--bs-radius, 10px);
	background: var(--bs-surface, #fff);
	-webkit-overflow-scrolling: touch;
}
.bsc-cmp:focus-visible { outline: 3px solid var(--bs-ink, #1c1a26); outline-offset: 3px; }
.bsc-cmp__table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 0.92rem; }
.bsc-cmp__table th, .bsc-cmp__table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e6e6ec; }
.bsc-cmp__table thead th { vertical-align: top; min-width: 150px; }
.bsc-cmp__table tbody th, .bsc-cmp__corner {
	position: sticky;
	left: 0;
	z-index: 1;
	background: var(--bs-surface-2, #f6f6f9);
	min-width: 110px;
	max-width: 160px;
	font-weight: 600;
}
.bsc-cmp__img { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #fff; margin-bottom: 8px; }
.bsc-cmp__img img { width: 100%; height: 100%; object-fit: contain; }
.bsc-cmp .bsc-badge { margin-bottom: 6px; }
.bsc-cmp__name { display: block; font-weight: 700; line-height: 1.25; }
.bsc-cmp a.bsc-cta { font-size: 0.88rem; line-height: 1.25; padding: 0.6em 0.9em; text-align: center; }
.bsc-cmp .bsc-price { margin-bottom: 8px; }
.bsc-cmp__buy td { border-bottom: 0; }

/* ---------- Disclosures ---------- */
.bsc-disclosure {
	margin: 0 0 1.6em;
	padding: 10px 14px;
	border: 1px dashed #c9b27a;
	border-radius: var(--bs-radius, 8px);
	background: #fffaf0;
	font-size: 0.9rem;
	line-height: 1.5;
}
.bsc-disclosure p { margin: 0; }
.bsc-statement, .bsc-amazon-notice { margin: 0; font-size: 0.85rem; }
.bsc-amazon-notice { font-size: 0.75rem; opacity: 0.85; }
.bsc-footer-notices { max-width: 1120px; margin: 0 auto; padding: 16px; display: grid; gap: 6px; color: #55555c; }

/* ---------- Editors only ---------- */
.bsc-empty {
	padding: 10px 14px;
	border: 2px dashed #d97b00;
	border-radius: 8px;
	background: #fff6e8;
	color: #6b3f00;
	font-size: 0.9rem;
}
