/* ============================================================
   boy or girl — Shop Page UI
   Hero · Prefilled Boxes · Custom Box Builder
   ============================================================ */

/* ── Reset inherit from global ──────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* ── Shop body ──────────────────────────────────────────────── */

body.has-box-builder {
	background: #0D0914 !important;
	overflow-x: hidden;
}

/* ── Strip GeneratePress / WC chrome ────────────────────────── */

.has-box-builder .inside-article,
.has-box-builder .entry-content {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

.has-box-builder .content-area,
.has-box-builder .site-main {
	padding: 0 !important;
}

.has-box-builder .site-main,
.has-box-builder .inside-article,
.has-box-builder .entry-content,
.has-box-builder article.page,
.has-box-builder .woocommerce {
	overflow: visible !important;
}

.has-box-builder .entry-header,
.has-box-builder .woocommerce-breadcrumb,
.has-box-builder .breadcrumb-trail,
.has-box-builder .page-header,
.has-box-builder ul.products,
.has-box-builder .woocommerce-result-count,
.has-box-builder .woocommerce-ordering,
.has-box-builder .woocommerce-info,
.has-box-builder .woocommerce-notices-wrapper + nav.woocommerce-pagination {
	display: none !important;
}

/* ── Full-width breakout (escapes GP container) ─────────────── */

#bb-prefilled-section,
#box-builder-app {
	position: relative;
	width: 100vw;
	left: 50%;
	transform: translateX(-50%);
}

/* ── IntersectionObserver entrance animation ─────────────────── */

.bog-will-animate {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.bog-will-animate.bog-in-view {
	opacity: 1;
	transform: translateY(0);
}




/* ================================================================
   PREFILLED BOXES SECTION
   ================================================================ */

#bb-prefilled-section {
	background: #FDF4E7;
	padding: 0 0 0;
}

.bbp-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: calc(var(--bog-header-h, 68px) + 2.5rem) 1.5rem 3rem;
}

/* ── Section header ─────────────────────────────────────────── */

.bbp-header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.bbp-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #C8956C;
	background: rgba(200, 149, 108, 0.10);
	border: 1px solid rgba(200, 149, 108, 0.22);
	border-radius: 100px;
	padding: 0.42rem 1.1rem;
	margin-bottom: 1.1rem;
	font-family: var(--bog-font, system-ui, sans-serif);
}

.bbp-title {
	font-size: clamp(1.9rem, 5vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	color: #3A3A3A;
	margin: 0 0 0.85rem;
	line-height: 1.1;
	font-family: var(--bog-font, system-ui, sans-serif);
}

.bbp-sub {
	font-size: 1rem;
	color: #8a7f74;
	line-height: 1.65;
	max-width: 520px;
	margin: 0 auto;
	font-family: var(--bog-font, system-ui, sans-serif);
}

/* ── Grid ───────────────────────────────────────────────────── */

.bbp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

/* ── Product card ───────────────────────────────────────────── */

.bbp-card {
	background: rgba(255, 255, 255, 0.70);
	border: 1px solid rgba(255, 255, 255, 0.90);
	border-radius: 24px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px rgba(58, 58, 58, 0.07);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
	/* staggered entrance via CSS var --card-delay */
	transition-delay: var(--card-delay, 0ms);
}

.bbp-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 42px rgba(58, 58, 58, 0.14);
}

/* ── Card image ─────────────────────────────────────────────── */

.bbp-card-image-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(135deg, #f7efe1 0%, #efe0cc 100%);
}

.bbp-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.bbp-card:hover .bbp-card-img {
	transform: scale(1.04);
}

.bbp-card-no-img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 4rem;
}

/* ── Badge ──────────────────────────────────────────────────── */

.bbp-card-badge {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	padding: 0.28rem 0.75rem;
	background: rgba(13, 9, 20, 0.68);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 100px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(253, 244, 231, 0.90);
}

/* ── Card body ──────────────────────────────────────────────── */

.bbp-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.3rem 1.4rem 1.4rem;
	flex: 1;
}

.bbp-card-name {
	font-size: 1.05rem;
	font-weight: 700;
	color: #3A3A3A;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.015em;
	font-family: var(--bog-font, system-ui, sans-serif);
}

.bbp-card-desc {
	font-size: 0.84rem;
	color: #8a7f74;
	line-height: 1.55;
	margin: 0;
	font-family: var(--bog-font, system-ui, sans-serif);
	flex: 1;
}

/* ── Card included-items strip ──────────────────────────────── */

.bbp-card-includes {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.bbp-card-includes-label {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a8998c;
	font-family: var(--bog-font, system-ui, sans-serif);
}

.bbp-card-includes-list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.bbp-card-includes-item {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient(135deg, #f7efe1 0%, #e8d4b0 100%);
	border: 1.5px solid rgba(255,255,255,0.8);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	box-shadow: 0 1px 4px rgba(58,58,58,0.10);
}

.bbp-card-includes-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bbp-card-includes-more {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(200, 149, 108, 0.12);
	border: 1.5px solid rgba(200, 149, 108, 0.25);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.68rem;
	font-weight: 700;
	color: #C8956C;
	font-family: var(--bog-font, system-ui, sans-serif);
}

/* ── Card footer ────────────────────────────────────────────── */

.bbp-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.4rem;
}

.bbp-card-price {
	font-size: 1.35rem;
	font-weight: 800;
	color: #3A3A3A;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	font-family: var(--bog-font, system-ui, sans-serif);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
}

.bbp-card-price.is-sale .bbp-card-price-current {
	color: #e03131;
}

.bbp-card-price-regular {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(58, 58, 58, 0.42);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	letter-spacing: 0;
}

.bbp-card-price-current {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

/* Sale badge on card image */
.bbp-card-sale-badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 2;
	background: #e03131;
	color: #fff;
	font-family: var(--bog-font, system-ui, sans-serif);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.28rem 0.65rem;
	border-radius: 100px;
	box-shadow: 0 2px 8px rgba(224, 49, 49, 0.35);
	pointer-events: none;
}

.bbp-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.62rem 1.15rem;
	background: #3A3A3A;
	color: #FDF4E7;
	font-family: var(--bog-font, system-ui, sans-serif);
	font-size: 0.85rem;
	font-weight: 700;
	border-radius: 100px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
	flex-shrink: 0;
}

.bbp-card-btn:hover,
.bbp-card-btn:focus-visible {
	background: #C8956C;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(200, 149, 108, 0.40);
}

.bbp-btn-details {
	background: #0D0914;
	color: #FDF4E7;
	flex: 1;
	justify-content: center;
}

.bbp-btn-details:hover,
.bbp-btn-details:focus-visible {
	background: #3A3A3A;
	color: #FDF4E7;
}

.bbp-btn-order {
	background: #0a7cff;
	color: #fff;
	padding: 10px 14px;
	flex-shrink: 0;
}

.bbp-btn-order:hover,
.bbp-btn-order:focus-visible {
	background: #0062cc;
	color: #fff;
}

/* ── Card actions row ──────────────────────────────────────── */

.bbp-card-actions {
	display: flex;
	gap: 0.5rem;
	max-width: 100%;
	flex: 1;
}

/* ── Card image link & overlay ─────────────────────────────── */

.bbp-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.bbp-card-image-wrap {
	position: relative;
	overflow: hidden;
}

.bbp-card-overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 9, 20, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.bbp-card-link:hover .bbp-card-overlay,
.bbp-card-link:focus-visible .bbp-card-overlay {
	opacity: 1;
}

.bbp-card-overlay-label {
	color: #FDF4E7;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-family: var(--bog-font, system-ui, sans-serif);
}

/* ── Card name link ─────────────────────────────────────────── */

.bbp-card-name-link {
	text-decoration: none;
	color: inherit;
}

.bbp-card-name-link:hover .bbp-card-name,
.bbp-card-name-link:focus-visible .bbp-card-name {
	color: #C8956C;
}

/* ── Divider between prefilled & builder ────────────────────── */

.bbp-divider {
	padding: 0 1.5rem 0;
	background: #FDF4E7;
}

.bbp-divider-inner {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1.2rem;
	padding: 2.5rem 0;
}

.bbp-divider-line {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(58, 58, 58, 0.15), transparent);
}

.bbp-divider-text {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(58, 58, 58, 0.40);
	white-space: nowrap;
	font-family: var(--bog-font, system-ui, sans-serif);
}

/* ================================================================
   CUSTOM BOX BUILDER
   ================================================================ */

#box-builder-app {
	background: #FDF4E7;
	padding: 3.5rem 1.5rem 6rem;
}

.bb-container {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 2rem;
	align-items: start;
	max-width: 1160px;
	margin: 0 auto;
	font-family: var(--bog-font, 'Segoe UI', system-ui, sans-serif);
	color: #3A3A3A;
}

/* ── LEFT: Summary panel ────────────────────────────────────── */

.bb-summary {
	position: sticky;
	top: calc(var(--bog-header-h, 68px) + 1rem);
}

.bb-summary-inner {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.90);
	border-radius: 24px;
	padding: 2rem 1.75rem;
	box-shadow: 0 8px 32px rgba(58, 58, 58, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.bb-box-icon {
	font-size: 3.5rem;
	text-align: center;
	display: block;
	margin-bottom: 0.4rem;
	animation: bb-float 3.4s ease-in-out infinite;
}

@keyframes bb-float {
	0%, 100% { transform: translateY(0);    }
	50%       { transform: translateY(-8px); }
}

.bb-summary-title {
	font-size: 1.3rem;
	font-weight: 700;
	text-align: center;
	margin: 0 0 1.5rem;
	color: #3A3A3A;
	letter-spacing: -0.025em;
}

.bb-summary-items {
	min-height: 108px;
	margin-bottom: 1rem;
}

.bb-empty-msg {
	color: #b8b0a4;
	font-size: 0.875rem;
	text-align: center;
	padding: 2rem 0 1.5rem;
	margin: 0;
}

.bb-summary-item {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(58, 58, 58, 0.06);
	font-size: 0.875rem;
	animation: bb-fade-in 0.28s ease both;
}

@keyframes bb-fade-in {
	from { opacity: 0; transform: translateY(5px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Inline +/− controls inside summary row */
.bb-si-controls {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	background: rgba(58, 58, 58, 0.06);
	border-radius: 100px;
	padding: 0.1rem 0.25rem;
	flex-shrink: 0;
}

.bb-si-btn {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3A3A3A;
	transition: background 0.15s ease, color 0.15s ease;
}

.bb-si-btn:hover {
	background: rgba(200, 149, 108, 0.18);
	color: #C8956C;
}

.bb-si-qty {
	font-weight: 700;
	color: #C8956C;
	min-width: 18px;
	text-align: center;
	flex-shrink: 0;
	font-size: 0.8rem;
}

.bb-si-name     { flex: 1; color: #3A3A3A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-si-subtotal { font-weight: 600; color: #3A3A3A; flex-shrink: 0; font-size: 0.8rem; }

/* Remove (×) button */
.bb-si-remove {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 0.7rem;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(58, 58, 58, 0.30);
	transition: background 0.15s ease, color 0.15s ease;
	flex-shrink: 0;
}

.bb-si-remove:hover {
	background: rgba(224, 49, 49, 0.10);
	color: #e03131;
}

.bb-total-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.9rem 0 0.5rem;
	border-top: 2px solid rgba(58, 58, 58, 0.08);
	font-weight: 700;
	font-size: 1rem;
}

.bb-total-amount {
	color: #C8956C;
	font-size: 1.35rem;
	transition: color 0.3s ease;
	font-variant-numeric: tabular-nums;
}

.bb-min-note {
	font-size: 0.75rem;
	color: #b8b0a4;
	text-align: center;
	margin: 0.5rem 0 0.2rem;
	transition: opacity 0.4s ease;
	min-height: 1.1em;
}

/* ── Order button ───────────────────────────────────────────── */

.bb-order-btn {
	width: 100%;
	padding: 1rem 1.5rem;
	border: none;
	border-radius: 16px;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: not-allowed;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 1rem;
	transition: filter 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
	background: linear-gradient(135deg, #d5cec7, #c4bdb5);
	color: #fff;
	filter: grayscale(1);
	font-family: inherit;
}

.bb-order-btn.bb-btn-active {
	cursor: pointer;
	background: linear-gradient(135deg, #C8956C 0%, #e8b07a 100%);
	filter: grayscale(0);
	box-shadow: 0 4px 24px rgba(200, 149, 108, 0.45);
	animation: bb-pulse 2.4s ease-in-out infinite;
}

@keyframes bb-pulse {
	0%, 100% { box-shadow: 0 4px 24px rgba(200, 149, 108, 0.45); transform: scale(1);     }
	50%       { box-shadow: 0 8px 34px rgba(200, 149, 108, 0.70); transform: scale(1.027); }
}

.bb-btn-icon { font-size: 1.1rem; }

/* ── RIGHT: Item list ───────────────────────────────────────── */

.bb-items-panel { min-width: 0; }

.bb-panel-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 1.2rem;
	color: #3A3A3A;
	letter-spacing: -0.02em;
}

.bb-items-grid {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

/* ── Item card ──────────────────────────────────────────────── */

.bb-item-card {
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.90);
	border-radius: 20px;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	box-shadow: 0 2px 14px rgba(58, 58, 58, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-item-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(58, 58, 58, 0.10);
}

.bb-item-info         { display: flex; flex-direction: column; gap: 0.18rem; flex: 1; min-width: 0; }

/* ── Item image ─────────────────────────────────────────────── */

.bb-item-img {
	width: 52px;
	height: 52px;
	min-width: 52px;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(135deg, #f7efe1 0%, #e8d4b0 100%);
	flex-shrink: 0;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.bb-item-img:hover {
	opacity: 0.85;
	transform: scale(1.05);
}

.bb-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bb-item-img-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
}
.bb-item-name         { font-weight: 600; font-size: 0.95rem; color: #3A3A3A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-item-price        { font-size: 0.82rem; color: #C8956C; font-weight: 600; }

/* Sale styles for builder item cards */
.bb-item-price.is-sale { display: flex; flex-direction: column; gap: 0.05rem; }
.bb-item-price-regular { font-size: 0.68rem; color: rgba(58,58,58,0.38); font-weight: 500; text-decoration: line-through; text-decoration-thickness: 1px; }
.bb-item-price-current { font-size: 0.82rem; color: #e03131; font-weight: 700; }

/* Small red dot indicator on item image when on sale */
.bb-item-sale-dot {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e03131;
	border: 1.5px solid #fff;
	box-shadow: 0 1px 4px rgba(224, 49, 49, 0.5);
	pointer-events: none;
}

.bb-item-img { position: relative; }

/* ── Counter pill ───────────────────────────────────────────── */

.bb-item-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.80);
	border-radius: 100px;
	padding: 0.22rem 0.65rem;
	border: 1px solid rgba(58, 58, 58, 0.08);
	flex-shrink: 0;
}

.bb-btn-minus,
.bb-btn-plus {
	width: 34px; height: 34px;
	min-width: 34px; min-height: 34px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3A3A3A;
	transition: background 0.18s ease, transform 0.1s ease;
}

.bb-btn-minus:hover, .bb-btn-plus:hover  { background: rgba(200, 149, 108, 0.15); }
.bb-btn-minus:active, .bb-btn-plus:active { transform: scale(0.85); }

.bb-item-count {
	font-size: 1rem;
	font-weight: 700;
	min-width: 24px;
	text-align: center;
	color: #3A3A3A;
	transition: transform 0.15s ease;
	font-variant-numeric: tabular-nums;
}

.bb-item-count.bb-count-bump { transform: scale(1.4); }

/* ── Fly-to-cart ────────────────────────────────────────────── */

.bb-fly-particle {
	position: fixed;
	width: 14px; height: 14px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #e8b99a, #C8956C);
	pointer-events: none;
	z-index: 9999;
	box-shadow: 0 0 12px rgba(200, 149, 108, 0.70);
}

/* ── Saved state notification ────────────────────────────────── */

.bb-saved-notification {
	position: fixed;
	top: calc(var(--bog-header-h, 68px) + 1rem);
	right: 1rem;
	z-index: 10000;
	pointer-events: none;
	transform: translateX(100%);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.34, 1.26, 0.64, 1);
}

.bb-saved-notification.bb-saved-show {
	transform: translateX(0);
	opacity: 1;
}

.bb-saved-notification.bb-saved-hide {
	transform: translateX(100%);
	opacity: 0;
}

.bb-saved-content {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(200, 149, 108, 0.95);
	color: #1a1228;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	font-family: var(--bog-font, system-ui, sans-serif);
	white-space: nowrap;
}

.bb-saved-content svg {
	flex-shrink: 0;
}

/* ================================================================
   RESPONSIVE — TABLET  ≤ 900px
   ================================================================ */

@media (max-width: 900px) {
	.bbp-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.2rem;
	}

	.bb-container {
		grid-template-columns: 1fr;
	}

	.bb-items-panel { order: -1; }
	.bb-summary     { position: static; order: 1; }
}

/* ================================================================
   RESPONSIVE — MOBILE  ≤ 640px
   ================================================================ */

@media (max-width: 640px) {
	#bb-shop-hero {
		padding: calc(var(--bog-header-h, 68px) + 2.5rem) 1.25rem 4.5rem;
		align-items: flex-end;
		min-height: 88vh;
	}

	.bbh-content {
		text-align: left;
	}

	.bbh-hero-ctas {
		justify-content: flex-start;
	}

	.bbh-cta-primary,
	.bbh-cta-secondary {
		flex: 1;
		justify-content: center;
		min-width: 130px;
	}

	.bbh-glow-blue  { width: 300px; height: 300px; top: -80px;  left: -60px;  }
	.bbh-glow-pink  { width: 260px; height: 260px; bottom: -50px; right: -40px; }

	.bbp-inner {
		padding: calc(var(--bog-header-h, 60px) + 2rem) 1rem 2rem;
	}

	/* Allow item names to wrap on mobile instead of overflowing */
	.bb-item-name {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.bbp-grid {
		grid-template-columns: 1fr;
	}

	.bbp-card-actions { 
		justify-content: flex-start; 
	}

	.bbp-btn-order {
		padding: 0;
		width: 52px;
		height: 40px;
		flex-shrink: 0;
		justify-content: center;
		flex: none;
	}

	.bbp-card-image-wrap {
		aspect-ratio: 16 / 9;
	}

	#box-builder-app {
		padding: 2.5rem 1rem 5rem;
	}

	.bb-container {
		gap: 1.5rem;
	}

	.bb-summary-inner {
		padding: 1.5rem 1.25rem;
		border-radius: 20px;
		max-width: 100% !important;
		overflow-x: hidden;
	}

	.bb-summary {
		max-width: 100% !important;
		overflow-x: hidden;
	}

	.bb-item-card   { border-radius: 18px; padding: 0.9rem 1rem; }

	.bb-btn-minus,
	.bb-btn-plus    { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 1.4rem; }

	.bb-order-btn   { padding: 1.05rem 1.5rem; font-size: 1rem; }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE  ≤ 380px
   ================================================================ */

@media (max-width: 380px) {
	.bbh-title      { letter-spacing: -0.03em; }

	.bbh-hero-ctas  { flex-direction: column; }

	.bbh-cta-primary,
	.bbh-cta-secondary { width: 100%; justify-content: center; }

	.bb-item-card   { flex-wrap: wrap; }

	.bb-item-controls {
		width: 100%;
		justify-content: center;
	}

	.bbp-card-footer { flex-wrap: wrap; }
	.bbp-card-btn    { width: auto; justify-content: center; }
	.bbp-btn-details,
	.bbp-btn-order   { width: 52px !important; }
	.bbp-card-actions { justify-content: flex-start; }
}
/* ================================================================
   SEARCH BAR
   ================================================================ */

.bb-panel-header {
	margin-bottom: 1.5rem;
}

.bb-panel-header .bb-panel-title {
	margin-bottom: 1rem;
}

/* Outer wrapper: frosted card look */
.bb-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1.5px solid rgba(200, 149, 108, 0.28);
	border-radius: 16px;
	padding: 0.2rem 0.2rem 0.2rem 1rem;
	gap: 0.5rem;
	box-shadow:
		0 2px 8px rgba(200, 149, 108, 0.08),
		0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.bb-search-wrap:focus-within {
	border-color: rgba(200, 149, 108, 0.70);
	box-shadow:
		0 0 0 3px rgba(200, 149, 108, 0.13),
		0 4px 16px rgba(200, 149, 108, 0.12);
}

/* Magnifier icon */
.bb-search-icon {
	flex-shrink: 0;
	color: #C8956C;
	opacity: 0.80;
	pointer-events: none;
}

/* Input */
.bb-search-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-size: 0.92rem;
	font-family: var(--bog-font, system-ui, sans-serif);
	color: #3A3A3A;
	outline: none;
	box-shadow: none;
	padding: 0.6rem 0;
	-webkit-appearance: none;
	appearance: none;
	border: none !important;
	background: none !important;
}

.bb-search-input:focus,
.bb-search-input:focus-visible {
	border: none;
	outline: none;
	box-shadow: none;
}

/* Hide browser-native × */
.bb-search-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.bb-search-input::-webkit-search-decoration    { -webkit-appearance: none; display: none; }

.bb-search-input::placeholder { color: rgba(58, 58, 58, 0.38); }

/* Pill clear button — sits inside the card */
.bb-search-clear {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	border: none;
	background: rgba(200, 149, 108, 0.12);
	color: #C8956C;
	cursor: pointer;
	font-size: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.bb-search-clear:hover {
	background: rgba(200, 149, 108, 0.28);
	color: #a0714e;
}

/* No-results message */
.bb-no-results {
	text-align: center;
	padding: 2.5rem 1rem;
	color: rgba(58, 58, 58, 0.45);
	font-size: 0.92rem;
	font-family: var(--bog-font, system-ui, sans-serif);
}

/* ================================================================
   CATEGORY GROUPS
   ================================================================ */

.bb-cat-group + .bb-cat-group {
	margin-top: 0.5rem;
}

.bb-cat-header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.65rem;
	padding: 0 0.25rem;
}

.bb-cat-header::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(200, 149, 108, 0.22);
}

.bb-cat-header-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #C8956C;
	white-space: nowrap;
	font-family: var(--bog-font, system-ui, sans-serif);
}

.bb-cat-items {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}