/**
 * Baby Nola — home page.
 *
 * Adapted from a supplied mockup (tiny-teddys-e-commerce-interface). Layout and
 * spacing kept as designed; colour swapped to the site's own brand blue
 * (--brand, #3097fd — see baby-star-suit.css) instead of the mockup's #2f7ff5,
 * so the home page and the product page read as one site. Everything is
 * scoped under .bss-home so it cannot leak onto any other template.
 *
 * @package BabyChild
 */

.bss-home {
	--home-blue: #3097fd;
	--home-blue-dark: #1d7fce;
	--home-light-blue: #f1f8ff;
	--home-light-blue-bundle: #e0efff;
	--home-red: #ec2b2b;
	--home-yellow: #ffc107;
	--home-ink: #1f2530;
	--home-ink-soft: #2a3340;
	--home-gray: #8a94a3;
	--home-gray-line: #ececf0;
	--home-price-old: #9aa2ad;
	--home-card-bg: #f6f7f9;
	--home-radius-card: 16px;

	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--home-ink);
	background: #fff;
	max-width: 480px;
	margin: 0 auto;
	padding-bottom: 24px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.bss-home img { display: block; max-width: 100%; }
.bss-home button { font-family: inherit; cursor: pointer; border: none; background: none; }
.bss-home a { color: inherit; }

/* ===== Promo bar ===== */
.bss-home .home-promo {
	background: var(--home-blue);
	color: #fff;
	text-align: center;
	font-weight: 800;
	font-size: 14.5px;
	padding: 11px 16px;
	letter-spacing: .2px;
}

/* ===== Header ===== */
.bss-home .home-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: #fff;
}
.bss-home .home-icon-btn {
	color: var(--home-ink-soft);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.bss-home .home-brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.bss-home .home-brand-logo { width: 40px; height: 40px; object-fit: contain; }
.bss-home .home-brand-name { font-size: 19px; color: var(--home-ink-soft); font-weight: 800; }
.bss-home .home-cart-badge {
	position: absolute;
	top: -7px;
	right: -8px;
	background: var(--home-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

/* ===== Hero ===== */
.bss-home .home-hero {
	position: relative;
	margin: 8px 16px 0;
	background: var(--home-blue);
	border-radius: 20px;
	padding: 26px 22px;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 360px;
}
.bss-home .home-hero-text { position: relative; z-index: 3; max-width: 58%; }
.bss-home .home-hero-text h1 {
	color: #fff;
	font-size: 28px;
	line-height: 1.15;
	font-weight: 800;
	text-wrap: balance;
}
.bss-home .home-hero-text p {
	color: rgba(255,255,255,.92);
	font-size: 15px;
	margin-top: 14px;
	line-height: 1.35;
	font-weight: 600;
}
.bss-home .home-hero-cta {
	display: inline-block;
	margin-top: 22px;
	background: #fff;
	color: var(--home-blue-dark);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .5px;
	padding: 15px 26px;
	border-radius: 12px;
	text-decoration: none;
}
.bss-home .home-hero-media {
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	width: 58%;
	z-index: 2;
}
.bss-home .home-hero-media img { width: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.18)); }
.bss-home .home-hero-badge {
	position: absolute;
	top: 2px;
	right: 4px;
	z-index: 4;
	background: #fff;
	border-radius: 16px;
	width: 70px;
	height: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 6px 14px rgba(0,0,0,.15);
}
.bss-home .home-hero-badge small { color: var(--home-blue-dark); font-size: 10px; font-weight: 800; }
.bss-home .home-hero-badge strong { color: var(--home-blue-dark); font-size: 24px; font-weight: 900; margin-top: 2px; }

/* ===== Trust bar ===== */
.bss-home .home-trust-bar {
	margin: 18px 16px 0;
	border: 1px solid var(--home-gray-line);
	border-radius: 14px;
	padding: 18px 8px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.bss-home .home-trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	color: var(--home-blue);
	border-right: 1px solid var(--home-gray-line);
}
.bss-home .home-trust-item:last-child { border-right: none; }
.bss-home .home-trust-item span { color: var(--home-ink); font-size: 11px; font-weight: 700; line-height: 1.3; }

/* ===== Section ===== */
.bss-home .home-section { margin-top: 28px; padding: 0 16px; }
.bss-home .home-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.bss-home .home-section-head h2 { font-size: 20px; font-weight: 800; color: var(--home-ink); }

/* ===== Product cards ===== */
.bss-home .home-products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}
.bss-home .home-card {
	background: var(--home-card-bg);
	border-radius: var(--home-radius-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.bss-home .home-card-media { position: relative; padding: 14px 10px 6px; aspect-ratio: 1/1; }
.bss-home .home-card-media img { width: 100%; height: 100%; object-fit: contain; }
.bss-home .home-discount-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--home-red);
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 8px;
	z-index: 2;
}
.bss-home .home-card-body { padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.bss-home .home-card-title { font-size: 14px; font-weight: 800; color: var(--home-ink); line-height: 1.25; }
.bss-home .home-rating { display: flex; align-items: center; gap: 4px; }
.bss-home .home-stars { color: var(--home-yellow); font-size: 12px; letter-spacing: -1px; }
.bss-home .home-review-count { color: var(--home-gray); font-size: 11px; font-weight: 600; }
.bss-home .home-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bss-home .home-price-now { color: var(--home-blue); font-size: 18px; font-weight: 900; }
.bss-home .home-price-old { color: var(--home-price-old); font-size: 12.5px; text-decoration: line-through; font-weight: 600; }
.bss-home .home-save-badge {
	align-self: flex-start;
	border: 1px solid var(--home-blue);
	color: var(--home-blue);
	font-size: 10px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
	letter-spacing: .3px;
}
.bss-home .home-add-btn {
	margin-top: 6px;
	background: var(--home-blue);
	color: #fff;
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: .4px;
	padding: 12px 6px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background .15s ease, transform .05s ease;
}
.bss-home a.home-add-btn:hover { background: var(--home-blue-dark); }
.bss-home a.home-add-btn:active { transform: scale(.97); }

/* ===== Bundle callout ===== */
.bss-home .home-bundle {
	position: relative;
	margin: 26px 16px 0;
	background: var(--home-light-blue-bundle);
	border-radius: 18px;
	padding: 24px 22px;
	overflow: hidden;
	min-height: 120px;
}
.bss-home .home-bundle-text { position: relative; z-index: 2; max-width: 62%; }
.bss-home .home-bundle-text h3 { color: var(--home-blue-dark); font-size: 21px; font-weight: 800; }
.bss-home .home-bundle-text p { color: var(--home-ink-soft); font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.bss-home .home-bundle-cta {
	display: inline-block;
	margin-top: 16px;
	background: var(--home-blue);
	color: #fff;
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: .4px;
	padding: 12px 18px;
	border-radius: 12px;
	text-decoration: none;
}
.bss-home .home-bundle-badge {
	position: absolute;
	z-index: 3;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	background: #fff;
	width: 58px;
	height: 58px;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 5px 12px rgba(0,0,0,.12);
}
.bss-home .home-bundle-badge small { color: var(--home-blue-dark); font-size: 9px; font-weight: 800; }
.bss-home .home-bundle-badge strong { color: var(--home-blue-dark); font-size: 19px; font-weight: 900; margin-top: 2px; }

/* ===== Categories ===== */
.bss-home .home-categories { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.bss-home .home-categories::-webkit-scrollbar { display: none; }
.bss-home .home-category { flex: 0 0 auto; width: 86px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.bss-home .home-category-img { width: 86px; height: 86px; border-radius: 999px; overflow: hidden; background: var(--home-card-bg); }
.bss-home .home-category-img img { width: 100%; height: 100%; object-fit: cover; }
.bss-home .home-category span { font-size: 12.5px; font-weight: 700; color: var(--home-ink); text-align: center; }

/* ===== Satisfaction ===== */
.bss-home .home-satisfaction {
	margin: 26px 16px 0;
	border: 1px solid var(--home-gray-line);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.bss-home .home-satisfaction-stars { color: var(--home-yellow); font-size: 20px; letter-spacing: -1px; }
.bss-home .home-satisfaction-text { display: flex; flex-direction: column; gap: 2px; }
.bss-home .home-satisfaction-text strong { font-size: 15px; font-weight: 800; color: var(--home-ink); }
.bss-home .home-satisfaction-text span { font-size: 13px; color: var(--home-gray); font-weight: 600; }

@media (max-width: 360px) {
	.bss-home .home-hero-text h1 { font-size: 24px; }
	.bss-home .home-section-head h2 { font-size: 18px; }
	.bss-home .home-card-title { font-size: 13px; }
}
