/* Bybsa home page, v3: label showcase + gallery, label solution cards, tabbed products, industry photo bento. */

/* Custom-label showcase */
.bh-showcase-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; background: #fff; border: 1px solid var(--bh-line); border-radius: 12px; padding: 22px; box-shadow: var(--bh-shadow); }
.bh-gallery-main { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.bh-gallery-main img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: opacity .25s ease; }
.bh-gallery-main img.is-swapping { opacity: .2; }
.bh-gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.bybsa-home .bh-gallery-thumbs button { padding: 0 !important; margin: 0 !important; border: 2px solid transparent !important; border-radius: 6px !important; overflow: hidden; aspect-ratio: 1 / 1; background: #f1f5f9 !important; min-height: 0 !important; cursor: pointer; opacity: .75; transition: opacity .15s ease, border-color .15s ease; }
.bybsa-home .bh-gallery-thumbs button[aria-selected="true"] { border-color: var(--bh-blue) !important; opacity: 1; }
.bybsa-home .bh-gallery-thumbs button:hover { opacity: 1; }
.bh-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bybsa-home .bh-showcase-text h2 { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 2px 0 12px; }
.bh-showcase-text p { color: var(--bh-text); font-size: 15.5px; line-height: 1.7; margin: 0 0 10px; }
.bh-check { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.bh-check li { position: relative; padding-left: 26px; margin: 0; font-weight: 600; color: var(--bh-ink); font-size: 14.5px; }
.bh-check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; }
.bh-check li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 7px; height: 4px; border-left: 2px solid #16a34a; border-bottom: 2px solid #16a34a; transform: rotate(-45deg); }

/* Label solution cards */
.bh-solutions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bh-solution { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bh-line); border-radius: var(--bh-r); overflow: hidden; box-shadow: var(--bh-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bh-solution:hover { transform: translateY(-3px); border-color: #b9d8ff; box-shadow: var(--bh-shadow-h); }
.bh-solution-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f1f5f9; }
.bh-solution-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bh-solution:hover .bh-solution-img img { transform: scale(1.05); }
.bh-solution-img.is-tile img { height: 113%; object-position: top; }
.bh-solution-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.bh-solution-body strong { font-family: var(--wd-title-font); font-size: 15.5px; color: var(--bh-ink); line-height: 1.3; }
.bh-solution-body small { color: var(--bh-muted); font-size: 13px; line-height: 1.45; }
.bh-solution-body em { font-style: normal; font-weight: 700; color: var(--bh-blue); font-size: 13.5px; margin-top: auto; padding-top: 6px; }

/* Tabbed products */
.bh-tabs-head { align-items: center; flex-wrap: wrap; }
.bh-tablist { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--bh-line); border-radius: 8px; padding: 4px; }
.bybsa-home .bh-tablist button { border: 0 !important; background: none !important; color: var(--bh-text) !important; font-weight: 700 !important; font-size: 14px !important; padding: 9px 16px !important; border-radius: 6px !important; min-height: 0 !important; text-transform: none !important; cursor: pointer; }
.bybsa-home .bh-tablist button[aria-selected="true"] { background: var(--bh-blue) !important; color: #fff !important; }
.bh-grid8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
/* POS / Label / 2 in 1 filters in the printer tabs */
.bh-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.bybsa-home .bh-kinds button { min-height: 0 !important; height: 34px; padding: 0 14px !important; border: 1px solid var(--bh-line) !important; border-radius: 6px !important; background: #fff !important; color: var(--bh-text) !important; font-size: 13.5px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer; }
.bybsa-home .bh-kinds button:hover { border-color: var(--bh-blue) !important; color: var(--bh-blue) !important; }
.bybsa-home .bh-kinds button[aria-pressed="true"] { border-color: var(--bh-blue) !important; background: var(--bh-blue-soft) !important; color: var(--bh-blue) !important; box-shadow: inset 0 0 0 1px var(--bh-blue) !important; }
.bh-kcard:not([hidden]) { display: contents; }
.bh-kcard[hidden] { display: none !important; }
.bh-tab-more { text-align: center; margin: 16px 0 0; }
.bh-tab-more a { display: inline-block; font-weight: 700; color: var(--bh-blue); border: 1px solid #bfd7f7; border-radius: 6px; padding: 9px 22px; background: #fff; }
.bh-tab-more a:hover { background: var(--bh-blue-soft); }

/* Industries: photo bento */
.bh-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 250px 250px; grid-auto-rows: 230px; grid-template-areas: "g r l p" "f r h h"; gap: 14px; }
.bh-bento:has(.bh-area-b) { grid-template-areas: "g r l p" "f r h h" "b t t k"; }
.bh-area-b { grid-area: b; } .bh-area-t { grid-area: t; } .bh-area-k { grid-area: k; }
.bh-area-x { grid-area: x; }
.bh-bento:has(.bh-area-x) { grid-template-areas: "g r l p" "f r h x" "b t t k"; }
.bh-tile { position: relative; display: block; border-radius: 12px; overflow: hidden; color: #fff !important; box-shadow: var(--bh-shadow); background: #0f1f3d; }
.bh-area-g { grid-area: g; } .bh-area-r { grid-area: r; } .bh-area-l { grid-area: l; } .bh-area-p { grid-area: p; } .bh-area-f { grid-area: f; } .bh-area-h { grid-area: h; }
.bh-tile-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.bh-tile:hover .bh-tile-img { transform: scale(1.05); }
.bh-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, .82) 100%); }
.bh-tile-text { position: absolute; z-index: 1; left: 18px; right: 64px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.bh-tile-text strong { font-family: var(--wd-title-font); font-size: 21px; font-weight: 800; line-height: 1.2; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.bh-tile-text small { font-size: 13.5px; line-height: 1.45; color: #e2e8f0; }
.bh-area-r .bh-tile-text strong { font-size: 26px; }
.bh-tile-go { position: absolute; z-index: 1; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #f97316; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.bh-tile:hover .bh-tile-go { transform: rotate(45deg); }

@media (max-width: 1100px) {
	.bh-showcase-grid { grid-template-columns: 1fr; }
	.bh-solutions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bh-grid8 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bh-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 220px 220px 220px; grid-template-areas: "r g" "r l" "p f" "h h"; grid-auto-rows: 220px; }
	.bh-bento:has(.bh-area-b) { grid-template-areas: "r g" "r l" "p f" "h h" "b k" "t t"; }
	.bh-bento:has(.bh-area-x) { grid-template-areas: "r g" "r l" "p f" "h x" "b k" "t t"; }
}
@media (max-width: 767px) {
	.bh-showcase-grid { padding: 12px; gap: 16px; border-radius: 8px; }
	.bybsa-home .bh-showcase-text h2 { font-size: 22px; }
	.bh-showcase-text p { font-size: 14.5px; }
	.bh-showcase-text p + p { display: none; }
	.bh-check { grid-template-columns: 1fr; }
	.bh-gallery-thumbs { grid-template-columns: repeat(6, 1fr); gap: 5px; }
	.bh-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.bh-solution-body { padding: 10px; }
	.bh-solution-body strong { font-size: 14px; }
	.bh-solution-body small { display: none; }
	.bh-tablist { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.bybsa-home .bh-tablist button { flex: 0 0 auto; padding: 8px 12px !important; font-size: 13.5px !important; }
	.bh-grid8 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.bh-bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 170px; grid-template-areas: "r r" "g l" "p f" "h h"; gap: 10px; }
	.bh-bento:has(.bh-area-b) { grid-template-areas: "r r" "g l" "p f" "h h" "b k" "t t"; }
	.bh-bento:has(.bh-area-x) { grid-template-areas: "r r" "g l" "p f" "h x" "b k" "t t"; }
	.bh-tile-text { left: 12px; right: 12px; bottom: 12px; }
	.bh-tile-text strong, .bh-area-r .bh-tile-text strong { font-size: 16px; }
	.bh-tile-text small, .bh-tile-go { display: none; }
	.bh-area-r .bh-tile-text small { display: block; font-size: 12.5px; }
	.bh-bento:not(:has(.bh-area-x)) .bh-area-h .bh-tile-text small { display: block; font-size: 12.5px; }
}
