/* ============================================================
   Business Grow Hub — Frontend Styles
   ============================================================ */

/* ---- Broadcast Bar ---- */
#bgh-broadcast-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #0073aa;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 48px 10px 16px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.4;
	box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.bgh-broadcast-msg   { flex: 1; text-align: center; }
.bgh-broadcast-code  { background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 4px; letter-spacing: 0.05em; }
.bgh-broadcast-dismiss {
	position: absolute; right: 12px;
	background: none; border: none; color: #fff;
	font-size: 20px; cursor: pointer; line-height: 1;
	opacity: 0.8;
}
.bgh-broadcast-dismiss:hover { opacity: 1; }

/* Offset body content when bar is visible */
body.has-bgh-broadcast { padding-top: 44px; }

/* ---- Discount Popup ---- */
#bgh-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(0,0,0,0.55);
	align-items: center;
	justify-content: center;
}
#bgh-discount-popup {
	background: #fff;
	border-radius: 10px;
	padding: 32px 36px;
	max-width: 380px;
	width: 90%;
	text-align: center;
	position: relative;
	box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
#bgh-popup-close {
	position: absolute; top: 12px; right: 14px;
	background: none; border: none;
	font-size: 22px; cursor: pointer; color: #888; line-height: 1;
}
#bgh-popup-close:hover { color: #333; }
#bgh-discount-popup h3 { margin: 0 0 12px; font-size: 20px; }
#bgh-discount-popup p  { font-size: 15px; margin: 0 0 10px; color: #444; }
.bgh-popup-code {
	display: inline-block;
	background: #f0f7ff;
	border: 1.5px dashed #0073aa;
	color: #0073aa;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 18px;
	letter-spacing: 0.1em;
	font-weight: 700;
	margin: 8px 0;
}
.bgh-popup-copy-btn {
	display: block;
	width: 100%;
	margin-top: 14px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 11px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}
.bgh-popup-copy-btn:hover { background: #005a87; }

/* ---- Storewide Welcome / First-Order Popup ---- */
#bgh-welcome-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(0,0,0,0.55);
	align-items: center;
	justify-content: center;
}
#bgh-welcome-popup {
	background: #fff;
	border-radius: 10px;
	padding: 32px 36px;
	max-width: 380px;
	width: 90%;
	text-align: center;
	position: relative;
	box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
#bgh-welcome-popup-close {
	position: absolute; top: 12px; right: 14px;
	background: none; border: none;
	font-size: 22px; cursor: pointer; color: #888; line-height: 1;
}
#bgh-welcome-popup-close:hover { color: #333; }
#bgh-welcome-popup h3 { margin: 0 0 12px; font-size: 20px; }
#bgh-welcome-popup p  { font-size: 15px; margin: 0 0 10px; color: #444; }

/* ---- Personalized Products Grid ---- */
.bgh-personalized-section { margin: 2em 0; }
.bgh-personalized-section h2 {
	font-size: 22px;
	margin-bottom: 1em;
	color: #333;
}
.bgh-products-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
	gap: 20px;
}
.bgh-product-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: box-shadow 0.15s, transform 0.15s;
}
.bgh-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); }
.bgh-product-card img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.bgh-product-card-body { padding: 10px 12px; }
.bgh-product-name { font-size: 13px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.bgh-product-price { font-size: 14px; color: #77a464; font-weight: 700; }

@media ( max-width: 600px ) {
	.bgh-products-grid { grid-template-columns: 1fr 1fr; }
	#bgh-broadcast-bar { font-size: 12px; padding: 8px 44px 8px 12px; }
}
