/*
 * Product cards (.bs-product): the JetEngine "Product card" listing and the
 * fallback cards share these classes. Colours and fonts read Elementor's
 * Global Colors and Global Fonts.
 */

/* Card fills its grid cell; body grows; buttons sit at the bottom. ------- */

.jet-listing-grid__item > .elementor,
.jet-listing-grid__item > .elementor > .e-con,
.jet-listing-grid__item .bs-product {
	height: 100%;
}

.bs-product {
	display: flex !important;
	flex-direction: column !important;
}

.bs-product__body {
	flex: 1 1 auto !important;
	--flex-grow: 1;
}

.bs-product__actions {
	margin-top: auto !important;
	--margin-top: auto;
	flex-wrap: nowrap !important;
}

/* Two equal, full-width buttons. */
.bs-product__actions > .elementor-element {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0;
}

.bs-product__actions .elementor-button,
.bs-product__actions .jet-listing-dynamic-link__link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

/* "View details" (JetEngine Dynamic Link) styled as the green button. */
.bs-product__details .jet-listing-dynamic-link__link {
	padding: 13px 8px;
	border-radius: 6px;
	background: var(--e-global-color-primary, #2F4034);
	color: var(--e-global-color-bs_white, #FFFFFF);
	font-family: var(--e-global-typography-bs_button_sm-font-family, "Open Sans"), sans-serif;
	font-weight: var(--e-global-typography-bs_button_sm-font-weight, 700);
	font-size: var(--e-global-typography-bs_button_sm-font-size, 13.5px);
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease;
}

.bs-product__details .jet-listing-dynamic-link__link:hover {
	background: var(--e-global-color-bs_green_hover, #24332A);
	color: var(--e-global-color-bs_white, #FFFFFF);
}

/* Photo: fixed height, cropped to fill. ---------------------------------- */

.bs-product__photo,
.bs-product__photo .jet-listing-dynamic-image,
.bs-product__photo a {
	display: block;
	width: 100%;
	margin: 0;
}

.bs-product__photo img {
	display: block;
	width: 100%;
	height: 215px;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

@media (max-width: 1024px) {
	.bs-product__photo img {
		height: 260px;
	}
}

@media (max-width: 767px) {
	.bs-product__photo img {
		height: 220px;
	}
}

/* Text (JetEngine Dynamic Fields). --------------------------------------- */

.bs-product__name .jet-listing-dynamic-field__content,
.bs-product__name .jet-listing-dynamic-field__content a {
	margin: 0;
	font-family: var(--e-global-typography-bs_card_lg-font-family, "Open Sans"), sans-serif;
	font-weight: var(--e-global-typography-bs_card_lg-font-weight, 700);
	font-size: var(--e-global-typography-bs_card_lg-font-size, 18px);
	line-height: var(--e-global-typography-bs_card_lg-line-height, 1.3);
	color: var(--e-global-color-bs_ink, #201C17);
}

.bs-product__desc .jet-listing-dynamic-field__content {
	margin: 0;
	font-family: var(--e-global-typography-bs_card_text-font-family, "Open Sans"), sans-serif;
	font-weight: var(--e-global-typography-bs_card_text-font-weight, 400);
	font-size: var(--e-global-typography-bs_card_text-font-size, 14px);
	line-height: var(--e-global-typography-bs_card_text-line-height, 1.6);
	color: var(--e-global-color-text, #4D463B);
}

.bs-product__best-value .jet-listing-dynamic-field__content {
	margin: 0;
	font-family: var(--e-global-typography-bs_meta-font-family, "Open Sans"), sans-serif;
	font-weight: var(--e-global-typography-bs_meta-font-weight, 600);
	font-size: var(--e-global-typography-bs_meta-font-size, 13px);
	line-height: var(--e-global-typography-bs_meta-line-height, 1.45);
	color: var(--e-global-color-secondary, #8A5A3B);
}

.bs-product .jet-listing-dynamic-field {
	display: block;
}

/* "Sold as" pills (JetEngine Dynamic Terms, or the fallback .bs-pill). -- */

.bs-product__pills {
	margin-top: 4px;
}

.bs-product__pills .jet-listing-dynamic-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bs-product__pills .jet-listing-dynamic-terms__link,
.bs-product__pills .bs-pill .elementor-heading-title {
	display: inline-block;
	padding: 7px 9px;
	border-radius: 100px;
	background: var(--e-global-color-bs_green_tint, #EEF4EA);
	color: var(--e-global-color-primary, #2F4034);
	font-family: var(--e-global-typography-bs_pill-font-family, "Open Sans"), sans-serif;
	font-weight: var(--e-global-typography-bs_pill-font-weight, 700);
	font-size: var(--e-global-typography-bs_pill-font-size, 12px);
	line-height: 1;
	text-decoration: none;
}

.bs-product__pills .jet-listing-dynamic-terms__link::before,
.bs-product__pills .bs-pill .elementor-heading-title::before {
	content: "✓ ";
}

/* The delimiter JetEngine may print between terms. */
.bs-product__pills .jet-listing-dynamic-terms__delimiter {
	display: none;
}

/*
 * Product page (Theme Builder Single template, .bs-product-page__…).
 * ---------------------------------------------------------------------- */

/* Photo: rounded, cropped to fill. */
.bs-product-page__photo img {
	display: block;
	width: 100%;
	height: 440px;
	max-width: none;
	object-fit: cover;
	border-radius: 14px;
}

@media (max-width: 1024px) {
	.bs-product-page__photo img {
		height: 360px;
	}
}

@media (max-width: 767px) {
	.bs-product-page__photo img {
		height: 260px;
	}
}

/* No photo yet: a placeholder panel the same size. */
.bs-product-page__photo .elementor-widget-container:empty,
.bs-product-page__photo:not(:has(img)) .elementor-widget-container {
	min-height: 440px;
	border-radius: 14px;
	background: var(--e-global-color-bs_photo_dark, #3A4C3E);
}

/* "Sold as" pills ([bs_product_sold_as]). */
.bs-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bs-tag {
	display: inline-block;
	padding: 7px 9px;
	border-radius: 100px;
	background: var(--e-global-color-bs_green_tint, #EEF4EA);
	color: var(--e-global-color-primary, #2F4034);
	font-family: var(--e-global-typography-bs_pill-font-family, "Open Sans"), sans-serif;
	font-weight: var(--e-global-typography-bs_pill-font-weight, 700);
	font-size: var(--e-global-typography-bs_pill-font-size, 12px);
	line-height: 1;
}

.bs-tag::before {
	content: "✓ ";
}

/* The write-up (Post Content): headings and spacing. */
.bs-product-page__content h2,
.bs-product-page__content h3 {
	margin: 1.4em 0 .4em;
	color: var(--e-global-color-bs_ink, #201C17);
	font-family: var(--e-global-typography-bs_card_lg-font-family, "Open Sans"), sans-serif;
	font-weight: var(--e-global-typography-bs_card_lg-font-weight, 700);
	font-size: 20px;
	line-height: 1.3;
}

.bs-product-page__content > :first-child,
.bs-product-page__content .elementor-widget-container > :first-child {
	margin-top: 0;
}

.bs-product-page__content p {
	margin: 0 0 1em;
}

.bs-product-page__content ul {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

/*
 * Bali Imports page (design 14a).
 * ---------------------------------------------------------------------- */

/* Category cards: body fills the card, "Shop now →" at the bottom, deeper shadow on hover. */
.bs-imports-card {
	display: flex !important;
	flex-direction: column !important;
}

.bs-imports-card__body {
	flex: 1 1 auto !important;
}

.bs-imports-card__more {
	margin-top: auto !important;
	padding-top: 16px;
}

.bs-imports-card:hover {
	box-shadow: 0 14px 30px rgba(32, 28, 23, .14) !important;
}

.bs-imports-card__title .elementor-heading-title {
	font-weight: 800;
	font-size: 20px;
}

/* New arrivals ([bs_new_arrivals]): square photo with a tag, name, "Enquire →". */
.bs-arrivals {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 1024px) {
	.bs-arrivals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bs-arrival,
.bs-arrival:hover {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--e-global-color-bs_line, #ECE6DA);
	border-radius: 12px;
	background: var(--e-global-color-bs_sand, #FAF6EE);
	color: var(--e-global-color-bs_ink, #201C17);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.bs-arrival:hover {
	border-color: var(--e-global-color-primary, #2F4034);
	box-shadow: 0 10px 24px rgba(32, 28, 23, .10);
}

.bs-arrival__photo {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--e-global-color-bs_photo_light, #E6DCCB);
}

.bs-arrival__photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

.bs-arrival__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 7px 10px;
	border-radius: 100px;
	background: var(--e-global-color-accent, #E2A63B);
	color: var(--e-global-color-bs_ink, #201C17);
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1;
}

.bs-arrival__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 13px 15px 15px;
}

.bs-arrival__name {
	font-family: var(--e-global-typography-bs_card-font-family, "Open Sans"), sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.3;
}

.bs-arrival__cta {
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	color: var(--e-global-color-primary, #2F4034);
}

.bs-arrivals__none {
	margin: 0;
	color: var(--e-global-color-bs_muted, #6B6355);
}
