/**
 * Bloom Basket Elementor widgets — layout & polish.
 */

.bb-el-cat-grid {
	display: grid;
	grid-template-columns: repeat(var(--bb-el-cat-cols, 4), minmax(0, 1fr));
	gap: 1.25rem;
}

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

.bb-el-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: calc(var(--bb-radius, 6px) + 2px);
	overflow: hidden;
	border: 1px solid rgba(26, 61, 46, 0.08);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 8px 24px rgba(19, 42, 34, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-el-cat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(19, 42, 34, 0.1);
}

.bb-el-cat-card img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}

@media (max-width: 560px) {
	.bb-el-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.9rem;
	}
}

.bb-el-cat-card__placeholder {
	display: block;
	min-height: 160px;
	width: 100%;
	background: linear-gradient(145deg, #e8e6e0 0%, #f0ede6 100%);
}

.bb-el-cat-card__title {
	padding: 1rem 1.1rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--bb-forest, #1a3d2e);
}

.bb-el-cat-card__count {
	font-size: 0.85rem;
	opacity: 0.75;
	padding: 0 1.1rem 1rem;
}

.bb-el-product-grid {
	display: grid;
	gap: 1.25rem;
}

.bb-el-product-grid--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-el-product-grid--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-el-product-grid--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.bb-el-product-grid--cols-3,
	.bb-el-product-grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.bb-el-product-grid--cols-2,
	.bb-el-product-grid--cols-3,
	.bb-el-product-grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bb-el-product-card {
	background: #fff;
	border: 1px solid rgba(26, 61, 46, 0.08);
	border-radius: calc(var(--bb-radius, 6px) + 2px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 8px 24px rgba(19, 42, 34, 0.06);
}

.bb-el-product-card__media {
	position: relative;
	background: #f4f1ea;
}

.bb-el-product-card__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
	display: block;
}

.bb-el-product-card__badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	background: var(--bb-accent, #c9a227);
	color: #1a1305;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	z-index: 1;
}

.bb-el-product-card__body {
	padding: 1rem 1.1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.bb-el-product-card__title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.1rem;
	line-height: 1.3;
}

.bb-el-product-card__title a {
	text-decoration: none;
	color: inherit;
}

.bb-el-product-card .button {
	margin-top: auto;
	align-self: flex-start;
	padding: 0.45rem 0.9rem !important;
	border-radius: var(--bb-radius, 6px) !important;
	background: var(--bb-forest, #1a3d2e) !important;
	color: #fff !important;
	font-weight: 600 !important;
}

@media (max-width: 767px) {
	.bb-el-product-grid {
		gap: 0.9rem;
	}

	.bb-el-product-card__body {
		padding: 0.85rem 0.9rem 1rem;
	}

	.bb-el-product-card__title {
		font-size: 1rem;
	}

	.bb-el-product-card .button {
		width: 100%;
		justify-content: center;
	}

	.bb-splide-root .splide__arrows {
		display: none;
	}
}

.bb-splide-root .splide__arrow {
	background: var(--bb-forest, #1a3d2e);
	opacity: 0.95;
}

.bb-splide-root .splide__arrow svg {
	fill: #fff;
}

.bb-splide-root .splide__pagination__page.is-active {
	background: var(--bb-accent, #c9a227);
}

.bb-splide-root .splide__pagination {
	display: none !important;
}

.bb-el-carousel-slide-inner {
	height: 100%;
	padding: 0.35rem;
}

/* Hero */
.bb-el-hero {
	position: relative;
	overflow: hidden;
	border-radius: calc(var(--bb-radius, 6px) + 4px);
	min-height: clamp(460px, 72vh, 760px);
	display: grid;
	align-items: center;
	padding: clamp(2.5rem, 6vw, 5.5rem);
	background-size: cover;
	background-position: center;
	isolation: isolate;
}

.bb-el-hero__video-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #000;
}

.bb-el-hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 180%;
	min-height: 180%;
	max-width: none !important;
	transform: translate(-50%, -50%) scale(1.18);
	pointer-events: none;
	border: 0;
	filter: saturate(1.05) contrast(1.02);
}

@media (max-aspect-ratio: 16/9) {
	.bb-el-hero__video {
		width: 177.78vh;
		height: 100vh;
		max-height: none !important;
	}
}

.bb-el-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(95deg, rgba(10, 24, 19, 0.84) 0%, rgba(10, 24, 19, 0.55) 52%, rgba(10, 24, 19, 0.32) 100%);
	pointer-events: none;
	z-index: 1;
}

.bb-el-hero__overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 18, 14, 0.55) 0%, transparent 22%, transparent 78%, rgba(8, 18, 14, 0.6) 100%);
}

.bb-el-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 680px;
}

.bb-el-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2.25rem, 5vw, 4rem);
	color: #fff;
}

.bb-el-hero__text {
	margin: 0 0 1.25rem;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.35vw, 1.2rem);
	line-height: 1.65;
}

.bb-el-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.bb-el-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	border-radius: var(--bb-radius, 6px);
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
}

.bb-el-hero__btn--primary {
	background: var(--bb-accent, #c9a227);
	color: #1a1305;
}

.bb-el-hero__btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.65);
	color: #fff;
}

@media (max-width: 767px) {
	.bb-el-hero {
		min-height: 420px;
		padding: 2rem 1.25rem;
	}

	.bb-el-hero__inner {
		max-width: 100%;
	}
}

/* Trust row */
.bb-el-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	padding: 1.5rem 0;
}

.bb-el-trust__item {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
}

.bb-el-trust__icon {
	font-size: 1.75rem;
	line-height: 1;
	flex-shrink: 0;
}

.bb-el-trust__title {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.bb-el-trust__text {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.88;
	line-height: 1.5;
}

/* Newsletter */
.bb-el-newsletter {
	padding: 2rem;
	border-radius: calc(var(--bb-radius, 6px) + 4px);
	background: linear-gradient(135deg, rgba(26, 61, 46, 0.06) 0%, rgba(201, 162, 39, 0.12) 100%);
	border: 1px solid rgba(26, 61, 46, 0.1);
	text-align: center;
}

.bb-el-newsletter__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.bb-el-newsletter__sub {
	margin: 0 auto 1rem;
	max-width: 42ch;
	opacity: 0.9;
	line-height: 1.55;
}

.bb-el-newsletter__shortcode {
	margin-top: 1rem;
}

/* Testimonials */
.bb-el-testimonials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
}

.bb-el-testimonial {
	background: #fff;
	border: 1px solid rgba(26, 61, 46, 0.08);
	border-radius: var(--bb-radius, 6px);
	padding: 1.35rem;
	box-shadow: 0 8px 24px rgba(19, 42, 34, 0.05);
}

.bb-el-testimonial__quote {
	margin: 0 0 1rem;
	font-style: italic;
	line-height: 1.65;
}

.bb-el-testimonial__footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.bb-el-testimonial__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.bb-el-testimonial__name {
	margin: 0;
	font-weight: 700;
}

.bb-el-testimonial__role {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.8;
}

/* FAQ */
.bb-faq-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.bb-faq-item {
	border: 1px solid rgba(26, 61, 46, 0.12);
	border-radius: var(--bb-radius, 6px);
	background: #fff;
	overflow: hidden;
}

.bb-faq-item summary {
	cursor: pointer;
	padding: 1rem 1.15rem;
	font-weight: 600;
	list-style: none;
}

.bb-faq-item summary::-webkit-details-marker {
	display: none;
}

.bb-faq-item details[open] summary {
	border-bottom: 1px solid rgba(26, 61, 46, 0.08);
}

.bb-faq-item p {
	margin: 0;
	padding: 0.85rem 1.15rem 1.1rem;
	line-height: 1.65;
}
