/**
 * Bloom Basket — base layout, header, footer, blog, utilities.
 */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--bb-text, #2c3e35);
	background: var(--bb-body-bg, #faf8f5);
}

body.bb-nav-locked {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--bb-forest, #1a3d2e);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--bb-accent, #c9a227);
}

h1,
h2,
h3,
h4,
.bb-site-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 600;
	line-height: 1.2;
	color: var(--bb-forest, #1a3d2e);
}

.bb-container {
	width: 100%;
	max-width: var(--bb-container, 1200px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.bb-content-wrap {
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}

/* Announcement ticker */
.bb-ticker {
	overflow: hidden;
	background: var(--bb-ticker-bg, #132a22);
	color: var(--bb-ticker-fg, #f5f2eb);
	font-size: 0.875rem;
	letter-spacing: 0.02em;
}

.bb-ticker__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	animation: bb-ticker-scroll var(--bb-ticker-duration, 45s) linear infinite;
}

.bb-ticker__item {
	white-space: nowrap;
	padding: 0.55rem 0;
}

.bb-ticker__sep {
	color: var(--bb-ticker-accent, #c9a227);
	padding: 0 0.75rem;
}

@keyframes bb-ticker-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Header */
.bb-header {
	background: var(--bb-header-bg, #faf8f5);
	border-bottom: 1px solid rgba(26, 61, 46, 0.08);
	position: relative;
	z-index: 200;
}

.bb-sticky-header .bb-header {
	position: sticky;
	top: 0;
}

.bb-header-inner {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.bb-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.bb-logo-wrap .custom-logo-link img {
	max-height: 52px;
	width: auto;
}

.bb-site-title {
	font-size: 1.5rem;
	text-decoration: none;
	color: inherit;
}

.bb-nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(26, 61, 46, 0.2);
	border-radius: var(--bb-radius, 6px);
	padding: 0.5rem 0.65rem;
	cursor: pointer;
	color: var(--bb-forest, #1a3d2e);
}

.bb-nav-toggle__bars {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.bb-nav-toggle__bars span {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

.bb-header-panel {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex: 1;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.bb-header-search {
	flex: 1 1 200px;
	max-width: 360px;
}

.bb-header-search .woocommerce-product-search,
.bb-header-search .search-form {
	display: flex;
	gap: 0;
	margin: 0;
}

.bb-header-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.85rem;
	border: 1px solid rgba(26, 61, 46, 0.18);
	border-radius: var(--bb-radius, 6px) 0 0 var(--bb-radius, 6px);
	background: #fff;
	font: inherit;
}

.bb-header-search button,
.bb-header-search input[type="submit"] {
	padding: 0.55rem 1rem;
	border: none;
	background: var(--bb-forest, #1a3d2e);
	color: #fff;
	border-radius: 0 var(--bb-radius, 6px) var(--bb-radius, 6px) 0;
	cursor: pointer;
	font-weight: 600;
}

.bb-primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-primary-menu a {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.bb-header-tools {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.bb-header-account-links {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.bb-header-tool-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.65rem;
	border-radius: var(--bb-radius, 6px);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	border: 1px solid rgba(26, 61, 46, 0.15);
	background: rgba(255, 255, 255, 0.68);
	color: var(--bb-forest, #1a3d2e);
}

.bb-header-tool-link:hover {
	border-color: var(--bb-accent, #c9a227);
}

.bb-header-tool-link--signup {
	background: var(--bb-forest, #1a3d2e);
	border-color: transparent;
	color: #fff;
}

.bb-header-tool-link--signup:hover {
	color: #fff;
	background: #244d3c;
}

.bb-header-cart__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	text-decoration: none;
	color: var(--bb-forest, #1a3d2e);
	font-weight: 700;
	padding: 0.35rem 0.5rem;
	border-radius: var(--bb-radius, 6px);
	border: 1px solid rgba(26, 61, 46, 0.15);
	background: rgba(255, 255, 255, 0.6);
}

.bb-header-cart__link:hover {
	border-color: var(--bb-accent, #c9a227);
	color: var(--bb-forest, #1a3d2e);
}

.bb-header-cart__icon {
	display: flex;
	line-height: 0;
}

.bb-cart-count {
	min-width: 1.25rem;
	text-align: center;
	font-size: 0.85rem;
}

@media (max-width: 960px) {
	.bb-nav-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.bb-header-panel {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 0 0;
		border-top: 1px solid rgba(26, 61, 46, 0.1);
		margin-top: 0.75rem;
	}

	.bb-header.is-nav-open .bb-header-panel {
		display: flex;
	}

	.bb-primary-menu {
		flex-direction: column;
		gap: 0;
	}

	.bb-primary-menu li {
		border-bottom: 1px solid rgba(26, 61, 46, 0.06);
	}

	.bb-primary-menu a {
		display: block;
		padding: 0.65rem 0;
	}
}

@media (min-width: 961px) {
	/* Hard desktop lock: prevent mobile header behavior on large screens. */
	.bb-nav-toggle {
		display: none !important;
	}

	.bb-header-panel {
		display: flex !important;
	}
}

/* Footer */
.bb-footer {
	background: var(--bb-footer-bg, #132a22);
	color: var(--bb-footer-text, #e8ebe4);
	padding: 0;
	margin-top: auto;
}

.bb-footer a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(232, 235, 228, 0.45);
}

.bb-footer a:hover {
	color: var(--bb-accent, #c9a227);
}

.bb-footer-trust {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.15);
}

.bb-footer-trust__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	padding-top: 0.95rem;
	padding-bottom: 0.95rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.bb-footer-newsletter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.2rem;
	padding-top: 2rem;
	padding-bottom: 1.8rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bb-footer-newsletter__copy h3 {
	margin: 0 0 0.5rem;
	color: #fff;
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.bb-footer-newsletter__copy p {
	margin: 0;
	opacity: 0.9;
}

.bb-footer-newsletter__form .search-form {
	display: flex;
	margin: 0;
}

.bb-footer-newsletter__form .search-field {
	flex: 1;
	padding: 0.72rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-radius: var(--bb-radius, 6px) 0 0 var(--bb-radius, 6px);
}

.bb-footer-newsletter__form .search-submit {
	padding: 0.72rem 1rem;
	border: 0;
	border-radius: 0 var(--bb-radius, 6px) var(--bb-radius, 6px) 0;
	background: var(--bb-accent, #c9a227);
	color: #1a1305;
	font-weight: 700;
}

.bb-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
	gap: 2rem;
	padding-top: 2.2rem;
	padding-bottom: 2.2rem;
}

@media (max-width: 900px) {
	.bb-footer-trust__inner,
	.bb-footer-newsletter,
	.bb-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.bb-footer-trust__inner,
	.bb-footer-newsletter,
	.bb-footer-grid {
		grid-template-columns: 1fr;
	}
}

.bb-footer-site-title {
	font-size: 1.75rem;
	margin: 0 0 0.75rem;
	color: #fff;
}

.bb-footer-tagline {
	margin: 0 0 1rem;
	opacity: 0.92;
}

.bb-footer-contact {
	margin: 0;
	line-height: 1.7;
	font-size: 0.95rem;
}

.bb-footer-apps {
	margin-top: 1rem;
}

.bb-footer-apps__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.bb-footer-apps__buttons a {
	display: inline-flex;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--bb-radius, 6px);
	text-decoration: none;
	font-size: 0.83rem;
	font-weight: 700;
}

.bb-footer-widget__title {
	font-size: 1.1rem;
	margin: 0 0 1rem;
	color: #fff;
}

.bb-footer-menu,
.bb-footer-fallback {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-footer-menu a,
.bb-footer-fallback a {
	text-decoration: none;
}

.bb-footer-menu li,
.bb-footer-fallback li {
	margin-bottom: 0.5rem;
}

.bb-social-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-footer-support__text {
	margin: 0 0 0.8rem;
	opacity: 0.9;
}

.bb-footer-support__btn {
	display: inline-flex;
	padding: 0.48rem 0.85rem;
	border-radius: var(--bb-radius, 6px);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-weight: 700;
}

.bb-footer-meta-strip {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.14);
}

.bb-footer-meta-strip__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
	font-size: 0.86rem;
}

.bb-footer-meta-strip__inner p {
	margin: 0;
}

.bb-footer-bottom {
	border-top: 0;
	padding: 1.25rem 0;
}

.bb-footer-bottom-inner {
	text-align: center;
}

.bb-copyright {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.85;
}

/* Blog layout */
.bb-layout {
	display: grid;
	gap: 2.5rem;
}

.bb-layout--right-sidebar {
	grid-template-columns: minmax(0, 1fr) 300px;
}

.bb-layout--left-sidebar {
	grid-template-columns: 300px minmax(0, 1fr);
}

.bb-layout--left-sidebar .bb-layout__sidebar {
	grid-column: 1;
	grid-row: 1;
}

.bb-layout--left-sidebar .bb-layout__main {
	grid-column: 2;
	grid-row: 1;
}

.bb-layout--full-width {
	grid-template-columns: 1fr;
}

@media (max-width: 900px) {
	.bb-layout--right-sidebar,
	.bb-layout--left-sidebar {
		grid-template-columns: 1fr;
	}
}

.bb-layout__sidebar .widget {
	margin-bottom: 1.5rem;
}

.bb-page-header {
	margin-bottom: 2rem;
}

.bb-page-header .page-title {
	margin: 0;
}

.bb-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.85rem;
	margin-bottom: 1.25rem;
	color: rgba(26, 61, 46, 0.75);
}

.bb-breadcrumbs a {
	text-decoration: none;
	color: inherit;
}

.bb-breadcrumbs__sep {
	opacity: 0.55;
}

.bb-blog-intro {
	padding: clamp(1.2rem, 2vw, 1.6rem);
	margin-bottom: 2rem;
	border: 1px solid rgba(26, 61, 46, 0.1);
	border-radius: calc(var(--bb-radius, 6px) + 4px);
	background: linear-gradient(130deg, rgba(255, 255, 255, 0.86) 0%, rgba(241, 238, 231, 0.9) 100%);
}

.bb-blog-intro__eyebrow {
	display: inline-flex;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(26, 61, 46, 0.09);
	margin-bottom: 0.6rem;
}

.bb-blog-intro__text {
	max-width: 68ch;
	margin: 0.75rem 0 0;
	color: rgba(26, 61, 46, 0.88);
}

.bb-blog-intro__search {
	margin-top: 1rem;
	max-width: 620px;
}

.bb-blog-intro__search .search-form {
	display: flex;
	gap: 0;
}

.bb-blog-intro__search .search-field {
	flex: 1;
	padding: 0.7rem 0.9rem;
	border: 1px solid rgba(26, 61, 46, 0.2);
	border-radius: var(--bb-radius, 6px) 0 0 var(--bb-radius, 6px);
}

.bb-blog-intro__search .search-submit {
	padding: 0.7rem 1rem;
	border: 0;
	background: var(--bb-forest, #1a3d2e);
	color: #fff;
	font-weight: 700;
	border-radius: 0 var(--bb-radius, 6px) var(--bb-radius, 6px) 0;
}

/* Post cards */
.bb-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.2rem;
}

@media (max-width: 960px) {
	.bb-post-grid {
		grid-template-columns: 1fr;
	}
}

.bb-post-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(26, 61, 46, 0.1);
	border-radius: calc(var(--bb-radius, 6px) + 4px);
	background: #fff;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(19, 42, 34, 0.05);
}

.bb-post-card__thumb {
	position: relative;
	overflow: hidden;
}

.bb-post-card__thumb img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.bb-post-card:hover .bb-post-card__thumb img {
	transform: scale(1.03);
}

.bb-post-card__cat {
	position: absolute;
	z-index: 1;
	left: 0.7rem;
	top: 0.7rem;
	padding: 0.22rem 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 999px;
	background: rgba(20, 45, 35, 0.9);
	color: #fff;
}

.bb-post-card__body {
	padding: 1rem 1.05rem 1.2rem;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.bb-post-card .entry-title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.bb-post-card .entry-title a {
	text-decoration: none;
}

.bb-entry-meta {
	font-size: 0.875rem;
	opacity: 0.8;
}

.bb-read-more {
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	padding-top: 0.65rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--bb-forest, #1a3d2e);
}

/* Single post */
.bb-single-post {
	background: #fff;
	border: 1px solid rgba(26, 61, 46, 0.1);
	border-radius: calc(var(--bb-radius, 6px) + 4px);
	padding: clamp(1.1rem, 2vw, 1.8rem);
}

.bb-single-header__cats {
	margin-bottom: 0.45rem;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bb-single-header__cats a {
	text-decoration: none;
}

.bb-single-header .entry-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 0.75rem;
}

.bb-single-featured {
	margin: 1.5rem 0 2rem;
	border-radius: var(--bb-radius, 6px);
	overflow: hidden;
}

.bb-entry-content > *:first-child {
	margin-top: 0;
}

.bb-entry-content {
	max-width: 72ch;
}

.bb-post-summary {
	margin: 0 0 1.3rem;
	padding: 0.9rem 1rem;
	border-left: 4px solid var(--bb-accent, #c9a227);
	background: rgba(201, 162, 39, 0.09);
	font-size: 1.05rem;
	line-height: 1.7;
}

.bb-author-box {
	margin-top: 2rem;
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid rgba(26, 61, 46, 0.14);
	border-radius: var(--bb-radius, 6px);
	background: rgba(250, 248, 245, 0.7);
}

.bb-author-box__avatar img {
	border-radius: 50%;
}

.bb-author-box__name {
	margin: 0;
	font-size: 1.25rem;
}

.bb-author-box__bio {
	margin: 0.45rem 0 0;
}

.bb-related-posts {
	margin-top: 2rem;
}

.bb-related-posts__title {
	margin: 0 0 1rem;
	font-size: 1.45rem;
}

.bb-no-results {
	padding: 2rem 0;
}

/* Comments */
.bb-comments {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(26, 61, 46, 0.12);
}

.bb-comments .comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-comments .comment-list .children {
	list-style: none;
	margin: 1rem 0 0 1.25rem;
	padding: 0;
}

.bb-comments .comment-body {
	margin-bottom: 1.5rem;
	padding: 1rem 1.15rem;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(26, 61, 46, 0.08);
	border-radius: var(--bb-radius, 6px);
}

.bb-comments .comment-meta {
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

.bb-404 .page-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

/* Pagination */
.navigation.pagination,
.bb-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.navigation.pagination a,
.navigation.pagination span,
.bb-pagination a,
.bb-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.4rem 0.65rem;
	border-radius: var(--bb-radius, 6px);
	border: 1px solid rgba(26, 61, 46, 0.15);
	text-decoration: none;
	font-weight: 600;
}

.navigation.pagination .current,
.bb-pagination .current {
	background: var(--bb-forest, #1a3d2e);
	color: #fff;
	border-color: transparent;
}

/* Utilities */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.bb-skip-link:focus {
	clip: auto !important;
	height: auto;
	width: auto;
	left: 0.5rem;
	top: 0.5rem;
	z-index: 99999;
	padding: 0.5rem 1rem;
	background: #000;
	color: #fff;
}

/* Elementor full-width pages */
.elementor-page .bb-container.bb-content-wrap,
.elementor-page .bb-front-page .bb-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.elementor-page .bb-content-wrap {
	padding-top: 0;
	padding-bottom: 0;
}

.elementor-page .bb-page-title-wrap {
	display: none;
}

/* Bloom Basket Elementor widget helpers */
.bb-el-section {
	position: relative;
}
