.bsb-store {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 50px;
	box-sizing: border-box;
}
.bsb-store * {
	box-sizing: border-box;
}

/* ---------- Brand banner (dynamic, from the brand's own image) ---------- */
.bsb-brand-banner {
	margin: 0 0 20px;
	width: 100%;
	overflow: hidden;
	background: #f5f5f7;
}
.bsb-brand-banner img {
	display: block;
	width: 100%;
	height: 670px;
	object-fit: cover;
	object-position: center;
}
@media (max-width: 900px) {
	.bsb-brand-banner img { height: 280px; }
}
@media (max-width: 640px) {
	.bsb-brand-banner img { height: 158px; }
}

/* ---------- Search box ---------- */
.bsb-search-wrap {
	position: relative;
	margin: 20px 0 28px;
}
.bsb-search-form {
	display: flex;
	align-items: center;
	background: #f2f2f4;
	border-radius: 999px;
	padding: 10px 18px;
	max-width: 520px;
	margin: 0 auto;
}
.bsb-search-icon {
	display: inline-flex;
	color: #6b6b6f;
	margin-right: 8px;
}
.bsb-search-input {
	border: 0;
	background: transparent;
	outline: none;
	width: 100%;
	font-size: 15px;
	color: #1d1d1f;
}
.bsb-search-results {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 100%;
	width: 100%;
	max-width: 520px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0,0,0,.14);
	border-radius: 14px;
	z-index: 40;
	max-height: 420px;
	overflow-y: auto;
	padding: 6px;
}
.bsb-search-results a.bsb-search-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
}
.bsb-search-results a.bsb-search-row:hover {
	background: #f5f5f7;
}
.bsb-search-results img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	background: #fafafa;
	border-radius: 8px;
}
.bsb-search-row-title {
	font-size: 14px;
	color: #1d1d1f;
}
.bsb-search-row-price {
	font-size: 13px;
	color: #6b6b6f;
}
.bsb-search-empty,
.bsb-search-loading {
	padding: 14px;
	font-size: 13px;
	color: #6b6b6f;
	text-align: center;
}

/* ---------- Tabs ---------- */
.bsb-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 24px;
}
.bsb-tab-btn {
	border: 1px solid #d9d9de;
	background: #fff;
	color: #1d1d1f;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s ease;
}
.bsb-tab-btn:hover {
	border-color: #1d1d1f;
}
.bsb-tab-btn.is-active {
	background: #1d1d1f;
	border-color: #1d1d1f;
	color: #fff;
}
.bsb-tab-panel {
	display: none;
}
.bsb-tab-panel.is-active {
	display: block;
}


/* ---------- Catalog PDF tab (rendered as stacked page images) ---------- */
.bsb-catalog-panel {
	width: 100%;
}
.bsb-catalog-images {
	width: 100%;
	display: flex;
	flex-direction: column;
	background: #f5f5f7;
	border: 1px solid #e3e3e7;
	border-radius: 16px;
	overflow: hidden;
}
.bsb-catalog-images .bsb-catalog-page {
	display: block;
	width: 100%;
	height: auto;
}
.bsb-catalog-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 90px 20px;
	color: #6e6e73;
	font-size: 14px;
}
.bsb-catalog-spinner {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid #d9d9de;
	border-top-color: #1d1d1f;
	animation: bsb-catalog-spin .8s linear infinite;
}
@keyframes bsb-catalog-spin {
	to { transform: rotate( 360deg ); }
}
.bsb-catalog-error {
	padding: 60px 20px;
	text-align: center;
	color: #6e6e73;
	font-size: 14px;
}
.bsb-catalog-error a {
	display: inline-block;
	margin-top: 10px;
	color: #1d1d1f;
	font-weight: 600;
}
/* Automatic fallback if the page-image rendering doesn't succeed in time
   (e.g. the pdf.js CDN is blocked on this network) — same rounded frame,
   just a native embedded PDF viewer instead of stacked images. */
.bsb-catalog-viewer {
	width: 100%;
	background: #f5f5f7;
	border: 1px solid #e3e3e7;
	border-radius: 16px;
	overflow: hidden;
}
.bsb-catalog-viewer iframe {
	display: block;
	width: 100%;
	height: 1100px;
	min-height: 700px;
	border: 0;
	background: #fff;
}
@media (max-width: 640px) {
	.bsb-catalog-viewer iframe {
		height: 760px;
		min-height: 560px;
	}
}
.bsb-catalog-actions {
	display: flex;
	justify-content: center;
	margin: 14px 0 0;
}
.bsb-catalog-open {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #d9d9de;
	background: #fff;
	color: #1d1d1f;
}
.bsb-catalog-open:hover {
	border-color: #1d1d1f;
	color: #1d1d1f;
}

/* ---------- Section spacing ---------- */
.bsb-section {
	margin-bottom: 10px;
}
.bsb-slot-link {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
}
.bsb-slot-link img {
	width: 100%;
	height: 85%;
	display: block;
	object-fit: cover;
}
.bsb-slot-caption {
	position: absolute;
	left: 24px;
	top: 24px;
	right: 24px;
	color: #1d1d1f;
	pointer-events: none;
}
.bsb-slot-caption h3 {
	margin: 0 0 4px;
	font-size: 22px;
}
.bsb-slot-caption p {
	margin: 0 0 10px;
	font-size: 14px;
	opacity: .85;
}
.bsb-btn {
	display: inline-block;
	background: #fff;
	color: #1d1d1f;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}
.bsb-badge {
	position: absolute;
	right: 16px;
	top: 16px;
	background: rgba(0,0,0,.65);
	color: #fff;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 999px;
}

/* ---------- Banner layouts ---------- */
.bsb-l-banner-full .bsb-slot,
.bsb-l-video .bsb-slot { width: 100%; }
.bsb-l-video .bsb-slot-link { min-height: 220px; }

.bsb-l-split-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.bsb-l-split-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.bsb-l-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.bsb-l-1l2s { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 16px; }
.bsb-l-1l2s .bsb-slot-0 { grid-row: 1 / span 2; }
.bsb-l-1l2s .bsb-slot-link { height: 100%; }

.bsb-l-1l3s { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 16px; }
.bsb-l-1l3s .bsb-slot-0 { grid-row: 1 / span 2; }
.bsb-l-1l3s .bsb-slot-link { height: 100%; }

/* ---------- Feature rows ---------- */
.bsb-l-feat-3, .bsb-l-feat-6 {
	display: grid;
	gap: 20px;
	text-align: center;
}
.bsb-l-feat-3 { grid-template-columns: repeat(3, 1fr); }
.bsb-l-feat-6 { grid-template-columns: repeat(6, 1fr); }
.bsb-l-feat-3 .bsb-slot-link, .bsb-l-feat-6 .bsb-slot-link {
	border-radius: 0;
	aspect-ratio: auto;
}
.bsb-l-feat-3 img, .bsb-l-feat-6 img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	margin: 0 auto 10px;
}
.bsb-l-feat-3 .bsb-slot-caption, .bsb-l-feat-6 .bsb-slot-caption {
	position: static;
}
.bsb-l-feat-3 .bsb-slot-caption h3, .bsb-l-feat-6 .bsb-slot-caption h3 {
	font-size: 15px;
}

/* ---------- Text block ---------- */
.bsb-l-text { text-align: center; }
.bsb-align-left { text-align: left; }
.bsb-align-right { text-align: right; }

/* ---------- Video ---------- */
.bsb-video, .bsb-video-embed {
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	background: #000;
}
.bsb-video-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Products: strict N-per-row grid ---------- */
.bsb-products-heading {
	text-align: center;
	font-size: 22px;
	margin-bottom: 16px;
}
.bsb-product-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--bsb-cols, 4), 1fr);
	gap: 18px;
}
.bsb-product-card {
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 14px;
	text-align: center;
	transition: box-shadow .15s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.bsb-product-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.bsb-product-thumb {
	display: block;
	margin-bottom: 10px;
}
.bsb-product-thumb img {
	width: 100%;
	height: auto;
	object-fit: contain;
	aspect-ratio: 1 / 1;
}
.bsb-product-info {
	text-align: left;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.bsb-product-title {
	display: block;
	font-size: 14px;
	color: #1d1d1f;
	text-decoration: none;
	margin-bottom: 6px;
	min-height: 2.6em;
}
.bsb-product-price {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}
.bsb-add-to-cart {
	display: inline-block;
	border: 1px solid #1d1d1f;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 13px;
	text-decoration: none;
	color: #1d1d1f;
	margin-top: auto;
}
.bsb-add-to-cart:hover {
	background: #1d1d1f;
	color: #fff;
}
/* Fallback styling for the Buy Now button in case the theme's own
   .jr-buy-now-btn styles aren't loaded on this page — centered,
   icon + label inline. If the theme's CSS IS present, its rules apply
   on top of (or instead of) these since the theme's own .jr-buy-now-btn
   selector carries the same specificity and loads after this stylesheet
   on most setups. */
.bsb-buy-now-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	margin: auto auto 0;
	width: fit-content;
	border: 1px solid #1d1d1f;
	border-radius: 999px;
	padding: 6px 40px;
	font-size: 13px;
	text-decoration: none;
	color: #1d1d1f;
}
.bsb-buy-now-btn:hover {
	background: #1d1d1f;
	color: #fff;
}

/* When responsive is disabled the column count never changes; on narrow
   screens the row simply scrolls horizontally instead of breaking. */
@media (max-width: 900px) {
	.bsb-store[data-bsb-responsive="0"] .bsb-product-grid,
	.bsb-store[data-bsb-responsive="0"] .bsb-l-split-2,
	.bsb-store[data-bsb-responsive="0"] .bsb-l-split-3,
	.bsb-store[data-bsb-responsive="0"] .bsb-l-2x2,
	.bsb-store[data-bsb-responsive="0"] .bsb-l-feat-3,
	.bsb-store[data-bsb-responsive="0"] .bsb-l-feat-6 {
		overflow-x: auto;
		grid-auto-flow: column;
		grid-auto-columns: minmax(200px, 1fr);
	}
}

/* Responsive: still readable on smaller screens.
   Set data-bsb-responsive="0" on .bsb-store to disable and force the
   configured column count (horizontal scroll) at every width instead. */
@media (max-width: 900px) {
	.bsb-store[data-bsb-responsive="1"] .bsb-product-grid { grid-template-columns: repeat(3, 1fr); }
	.bsb-store[data-bsb-responsive="1"] .bsb-l-split-3,
	.bsb-store[data-bsb-responsive="1"] .bsb-l-feat-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.bsb-store[data-bsb-responsive="1"] .bsb-product-grid { grid-template-columns: repeat(2, 1fr); }
	.bsb-store[data-bsb-responsive="1"] .bsb-l-split-2,
	.bsb-store[data-bsb-responsive="1"] .bsb-l-split-3,
	.bsb-store[data-bsb-responsive="1"] .bsb-l-2x2,
	.bsb-store[data-bsb-responsive="1"] .bsb-l-feat-3,
	.bsb-store[data-bsb-responsive="1"] .bsb-l-feat-6 { grid-template-columns: repeat(2, 1fr); }
	.bsb-store[data-bsb-responsive="1"] .bsb-l-1l2s,
	.bsb-store[data-bsb-responsive="1"] .bsb-l-1l3s { grid-template-columns: 1fr; grid-template-rows: none; }
	.bsb-store[data-bsb-responsive="1"] .bsb-l-1l2s .bsb-slot-0,
	.bsb-store[data-bsb-responsive="1"] .bsb-l-1l3s .bsb-slot-0 { grid-row: auto; }
	.bsb-tabs-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}

/* ---------- Elementor column padding override ---------- */
/* FIX (see readme "Frontend CSS scoping fix" note below): these two rules were
   originally unscoped, so they matched EVERY Elementor column wrap on any page
   this stylesheet loaded on (e.g. unrelated marquees/sections on the same
   template) and forced their padding to 0. Scoped with :has(.bsb-store) so the
   override only ever applies to the column that actually wraps this plugin's
   own .bsb-store output — original declarations, selector list, and specificity
   (including the body-prefixed duplicate) are otherwise untouched. */
.elementor-column-gap-default > .elementor-column > .elementor-element-populated:has(.bsb-store) {
	padding: 0px !important;
}
body .elementor-column-gap-default > .elementor-column > .elementor-element-populated:has(.bsb-store) {
	padding: 0px !important;
}
.bsb-store {
	max-width: none !important;
	padding: 0 !important;
}
body .bsb-store,
html body .bsb-store {
	max-width: none !important;
	padding: 0 !important;
}
.bsb-tabs-panels {
	padding: 0 20px;
}
body .bsb-tabs-panels,
html body .bsb-tabs-panels {
	padding: 0 20px !important;
}
