/* Bisawti Sites — shared layout and icons. Each style's personality lives in its theme.json "css". */

/* Hero: words and a framed picture side by side; stacked on phones (picture after the words). */
.bs-hero .bs-hero-cols { align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.bs-hero .bs-hero-cols > .wp-block-column:first-child { flex-basis: 56% !important; }
.bs-hero .bs-hero-cols > .wp-block-column:last-child { flex-basis: 44% !important; }
.bs-frame, .wp-block-image.bs-frame { margin: 0; position: relative; width: 100%; }
.bs-frame img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 9; object-fit: cover; }

/* Chips under the hero buttons. */
.bs-chips { gap: .6rem !important; }
.bs-chip { display: inline-flex; align-items: center; gap: .45em; }

/* Icons: one SVG per icon, painted in the text colour so they follow every style. */
[class*="bs-ic-"]::before {
	content: ""; display: inline-block; flex: none; width: 1.2em; height: 1.2em;
	background: currentColor; vertical-align: -.22em; margin-inline-end: .45em;
	-webkit-mask: var(--bs-ic) center / contain no-repeat; mask: var(--bs-ic) center / contain no-repeat;
}
h3[class*="bs-ic-"]::before { display: block; width: 2.25rem; height: 2.25rem; margin: 0 0 1rem; color: var(--wp--preset--color--primary); }
.bs-ic-bag { --bs-ic: url(../icons/bag.svg); }
.bs-ic-chat { --bs-ic: url(../icons/chat.svg); }
.bs-ic-cash { --bs-ic: url(../icons/cash.svg); }
.bs-ic-pin { --bs-ic: url(../icons/pin.svg); }
.bs-ic-form { --bs-ic: url(../icons/form.svg); }
.bs-ic-check { --bs-ic: url(../icons/check.svg); }
.bs-ic-spark { --bs-ic: url(../icons/spark.svg); }
.bs-ic-heart { --bs-ic: url(../icons/heart.svg); }
.bs-ic-camera { --bs-ic: url(../icons/camera.svg); }
.bs-ic-truck { --bs-ic: url(../icons/truck.svg); }
.bs-ic-clock { --bs-ic: url(../icons/clock.svg); }

/* Steps: a big number that shows the order. */
.bs-step-n { font-family: var(--wp--preset--font-family--heading); font-size: 3rem; line-height: 1; margin: 0 0 .75rem; color: var(--wp--preset--color--primary); }

/* Closing band. */
.bs-band { text-align: center; }
.bs-band .wp-block-buttons { justify-content: center; }
.bs-band p { max-width: 36rem; margin-inline: auto; }

/* Products from WooCommerce: picture-led cards. */
.bs-products .wc-block-product { text-align: start; }
.bs-products .wc-block-components-product-image img { aspect-ratio: 1; object-fit: cover; }

@media (max-width: 781px) {
	.bs-hero .bs-hero-cols > .wp-block-column:first-child,
	.bs-hero .bs-hero-cols > .wp-block-column:last-child { flex-basis: 100% !important; }
	.bs-frame img { aspect-ratio: 4 / 3; }
}
