/* =========================================================================
   Sabeny — Homepage component styles.
   Loaded sitewide; only renders where the corresponding shortcode is used.
   Reuses --sbn-* CSS variables defined in custom.css.
   ========================================================================= */

/* ========== 1. Announcement bar =========================================
   Single-row rotating ticker. Always shows ONE message; never stacks. */
.sbn-announce {
	background: var(--sbn-teal, #0E6B6B);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	overflow: hidden;
}
.sbn-announce__viewport {
	position: relative;
	height: 36px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sbn-announce__msg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .35s ease, transform .35s ease;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 12px;
}
.sbn-announce__msg.is-active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.sbn-announce__icon { font-size: 15px; flex-shrink: 0; }
.sbn-announce__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

@media (max-width: 480px) {
	.sbn-announce { font-size: 12px; }
	.sbn-announce__viewport { height: 32px; padding: 0 8px; }
}

/* ========== 2. Weekly offers grid =======================================
 * Now a 2-up grid of horizontal panels: image left, headline + CTA right.
 * Stacks to a single column on mobile. The tonal `--teal/--cream/--amber/
 * --ink` modifiers still drive background/text colour like before; image
 * panels work over any tone (the image fills the left half).
 * ===================================================================== */
.sbn-offers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
/* If only one panel is configured, let it span full width. */
.sbn-offers[data-count="1"] { grid-template-columns: 1fr; }

.sbn-offers__tile {
	display: grid;
	grid-template-columns: 45% 1fr;
	align-items: stretch;
	min-height: 220px;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sbn-offers__tile.no-image { grid-template-columns: 1fr; }
.sbn-offers__tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(15,23,42,0.12);
}

/* Left-side image panel */
.sbn-offers__media {
	display: block;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 100%;
}

/* Right-side body */
.sbn-offers__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: clamp(20px, 3vw, 32px);
}
.sbn-offers__title {
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.2;
}
.sbn-offers__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .01em;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
	transition: gap .15s ease;
}
.sbn-offers__tile:hover .sbn-offers__cta { gap: 12px; }

/* Tonal colour modifiers. Lock both the tile and ALL inner text/CTA
 * states so Elementor's global link-hover colour can't bleed through —
 * without these forces, the title + Shop CTA flip to the theme's
 * default purple/dark navy on hover, which is unreadable on teal/ink. */
.sbn-offers__tile--teal,
.sbn-offers__tile--teal:hover,
.sbn-offers__tile--teal:focus,
.sbn-offers__tile--teal:active,
.sbn-offers__tile--teal *,
.sbn-offers__tile--teal:hover *,
.sbn-offers__tile--teal:focus * {
	color: #FFF5E0 !important;
}
.sbn-offers__tile--cream,
.sbn-offers__tile--cream:hover,
.sbn-offers__tile--cream:focus,
.sbn-offers__tile--cream:active,
.sbn-offers__tile--cream *,
.sbn-offers__tile--cream:hover *,
.sbn-offers__tile--cream:focus * {
	color: var(--sbn-ink, #0F172A) !important;
}
.sbn-offers__tile--amber,
.sbn-offers__tile--amber:hover,
.sbn-offers__tile--amber:focus,
.sbn-offers__tile--amber:active,
.sbn-offers__tile--amber *,
.sbn-offers__tile--amber:hover *,
.sbn-offers__tile--amber:focus * {
	color: #fff !important;
}
.sbn-offers__tile--ink,
.sbn-offers__tile--ink:hover,
.sbn-offers__tile--ink:focus,
.sbn-offers__tile--ink:active,
.sbn-offers__tile--ink *,
.sbn-offers__tile--ink:hover *,
.sbn-offers__tile--ink:focus * {
	color: #FFF5E0 !important;
}

.sbn-offers__tile--teal   { background: var(--sbn-teal,   #0E6B6B); }
.sbn-offers__tile--cream  { background: #FFF5E0; border: 1px solid #F4E5C0; }
.sbn-offers__tile--amber  { background: var(--sbn-orange, #F59E0B); }
.sbn-offers__tile--ink    { background: var(--sbn-ink,    #0F172A); }

/* Tablet + below — drop to 1 column of panels, stack image on top of text.
 * This was previously a 40/60 split at <=900 + only stacking at <=560,
 * but the side-by-side split on phones squashed the image into a corner. */
@media (max-width: 900px) {
	.sbn-offers { grid-template-columns: 1fr; gap: 16px; }
	.sbn-offers__tile,
	.sbn-offers__tile.has-image {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		min-height: 0;
	}
	.sbn-offers__media {
		width: 100%;
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
	.sbn-offers__body  { padding: 22px 24px 26px; gap: 12px; }
}

/* ========== 3. Promo cards (3-card "Bakery / Gifts / Events") =========== */
.sbn-promo {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.sbn-promo__card {
	display: block;
	position: relative;
	min-height: 280px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--sbn-teal, #0E6B6B);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sbn-promo__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(15,23,42,0.15);
}
.sbn-promo__card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.55) 100%);
}
.sbn-promo__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: 280px;
	padding: 28px;
}
.sbn-promo__title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #fff;
}
.sbn-promo__copy {
	font-size: 14px;
	opacity: 0.95;
	margin: 0 0 14px;
}
.sbn-promo__cta {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	background: #fff;
	color: var(--sbn-teal, #0E6B6B);
	padding: 10px 18px;
	border-radius: 999px;
	align-self: flex-start;
}

@media (max-width: 1024px) { .sbn-promo { grid-template-columns: 1fr; gap: 16px; } }

/* ========== 4. FAQs ===================================================== */
.sbn-faqs { max-width: 880px; margin: 0 auto; }
.sbn-faqs__head {
	text-align: center;
	margin-bottom: 32px;
}
.sbn-faqs__title {
	font-size: 32px;
	color: var(--sbn-teal, #0E6B6B);
	margin: 0 0 8px;
}
.sbn-faqs__intro {
	color: var(--sbn-mute, #6B7280);
	font-size: 15px;
	margin: 0;
}
.sbn-faqs__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--sbn-line, #E5E7EB);
}
.sbn-faqs__item {
	border-bottom: 1px solid var(--sbn-line, #E5E7EB);
}
.sbn-faqs__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 4px;
	font-size: 16px;
	font-weight: 600;
	color: var(--sbn-ink, #0F172A);
	cursor: pointer;
	list-style: none;
	transition: color .15s ease;
}
.sbn-faqs__q::-webkit-details-marker { display: none; }
.sbn-faqs__q:hover { color: var(--sbn-teal, #0E6B6B); }
.sbn-faqs__icon {
	font-size: 22px;
	font-weight: 300;
	color: var(--sbn-teal, #0E6B6B);
	transition: transform .2s ease;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.sbn-faqs__item[open] .sbn-faqs__icon {
	transform: rotate(45deg);
}
.sbn-faqs__a {
	padding: 0 4px 20px;
	color: var(--sbn-mute, #6B7280);
	font-size: 14px;
	line-height: 1.65;
}
.sbn-faqs__a p:last-child { margin-bottom: 0; }

/* ========== 5. Customer reviews ========================================= */
.sbn-reviews { max-width: 1200px; margin: 0 auto; }
.sbn-reviews__head {
	text-align: center;
	margin-bottom: 36px;
}
.sbn-reviews__title {
	font-size: 32px;
	color: var(--sbn-teal, #0E6B6B);
	margin: 0 0 12px;
}
.sbn-reviews__subtitle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sbn-mute, #6B7280);
	font-size: 14px;
	margin: 0;
}
.sbn-reviews__stars {
	color: #F59E0B;
	font-size: 16px;
	letter-spacing: 1px;
}
.sbn-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.sbn-reviews__card {
	background: #fff;
	border: 1px solid var(--sbn-line, #E5E7EB);
	border-radius: 14px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.sbn-reviews__rating {
	color: #F59E0B;
	font-size: 16px;
	letter-spacing: 1px;
}
.sbn-reviews__text {
	color: var(--sbn-ink, #0F172A);
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
	flex-grow: 1;
}
.sbn-reviews__byline {
	font-size: 13px;
	color: var(--sbn-mute, #6B7280);
	display: flex;
	align-items: center;
	gap: 6px;
}
.sbn-reviews__name { font-weight: 600; color: var(--sbn-ink, #0F172A); }
.sbn-reviews__sep  { opacity: 0.5; }

@media (max-width: 1024px) { .sbn-reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .sbn-reviews__grid { grid-template-columns: 1fr; } }

/* ========== 6. Latest articles ========================================== */
.sbn-articles { max-width: 1200px; margin: 0 auto; }
.sbn-articles__head {
	text-align: center;
	margin-bottom: 36px;
}
.sbn-articles__title {
	font-size: 32px;
	color: var(--sbn-teal, #0E6B6B);
	margin: 0 0 12px;
}
.sbn-articles__intro {
	color: var(--sbn-mute, #6B7280);
	font-size: 15px;
	max-width: 680px;
	margin: 0 auto;
	line-height: 1.55;
}
.sbn-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.sbn-articles__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--sbn-line, #E5E7EB);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sbn-articles__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(15,23,42,0.10);
}
.sbn-articles__media {
	aspect-ratio: 16 / 10;
	background: var(--sbn-soft, #F3F4F6);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sbn-articles__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sbn-articles__card--placeholder .sbn-articles__media {
	background: linear-gradient(135deg, #FFF5E0 0%, #F4E5C0 100%);
}
.sbn-articles__body { padding: 22px 24px 24px; flex-grow: 1; display: flex; flex-direction: column; }
/* Articles headline — Tuckers script per brand kit. !important is
 * required because Elementor's global .elementor-kit-NN h3 rule wins on
 * specificity otherwise. Capped via clamp on mobile so 40px doesn't
 * cause overflow on small screens. */
.sbn-articles__card h3.sbn-articles__heading,
h3.sbn-articles__heading {
	font-family: "Tuckers", sans-serif !important;
	font-size: clamp(28px, 4vw, 40px) !important;
	line-height: 1.12 !important;     /* 45px on the 40px max — ratio preserved */
	font-weight: 400 !important;      /* "normal" per the kit */
	color: var(--sbn-ink, #0F172A);
	margin: 0 0 8px;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.sbn-articles__excerpt {
	font-size: 14px;
	color: var(--sbn-mute, #6B7280);
	line-height: 1.55;
	margin: 0 0 16px;
	flex-grow: 1;
}
.sbn-articles__more {
	color: var(--sbn-teal, #0E6B6B);
	font-size: 14px;
	font-weight: 600;
	margin-top: auto;
}

@media (max-width: 1024px) { .sbn-articles__grid { grid-template-columns: 1fr; } }

/* ========== 7. USP grid ================================================= */
.sbn-usp {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 0;
}
.sbn-usp__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding: 16px;
}
.sbn-usp__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sbn-soft, #F3F4F6);
	color: var(--sbn-teal, #0E6B6B);
}
.sbn-usp__icon svg { width: 24px; height: 24px; }
.sbn-usp__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--sbn-ink, #0F172A);
	line-height: 1.4;
}

@media (max-width: 768px) { .sbn-usp { grid-template-columns: repeat(2, 1fr); } }

/* ========== 8. SEO block ================================================ */
.sbn-seo {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
	padding: 48px 24px;
}
.sbn-seo__title {
	font-size: 30px;
	color: var(--sbn-teal, #0E6B6B);
	margin: 0 0 16px;
	line-height: 1.25;
}
.sbn-seo__lede {
	font-size: 17px;
	color: var(--sbn-ink, #0F172A);
	font-weight: 500;
	margin: 0 0 16px;
	line-height: 1.5;
}
.sbn-seo__body {
	font-size: 14px;
	color: var(--sbn-mute, #6B7280);
	line-height: 1.7;
	margin: 0;
}

/* =========================================================================
 * Category grid — [sabeny_category_grid]
 *
 * 4-up grid of category tiles on desktop. Each tile has a small left-side
 * image, the category name + auto product count on the right. The "wide"
 * tile spans the full row (used for the Kosher Deli call-out). The
 * "special" tile is a solid teal block (used for Sale / Special Offers).
 * ========================================================================= */
.sbn-catgrid { padding: 24px 0; }

.sbn-catgrid__head { margin: 0 0 24px; }
.sbn-catgrid__title {
	font-family: "Tuckers", "Brush Script MT", cursive !important;
	font-size: clamp(36px, 4.5vw, 56px) !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: var(--sbn-teal, #0E6B6B) !important;
	margin: 0 0 6px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.sbn-catgrid__sub {
	color: var(--sbn-mute, #6B7280);
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
}

.sbn-catgrid__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

/* Generic card */
.sbn-catgrid__card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--sbn-line, #E5E7EB);
	border-radius: 18px;
	padding: 14px;
	text-decoration: none !important;
	color: var(--sbn-ink, #0F172A);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	min-height: 96px;
}
.sbn-catgrid__card:hover {
	transform: translateY(-2px);
	border-color: var(--sbn-teal, #0E6B6B);
	box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.sbn-catgrid__img {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	background-color: var(--sbn-soft, #F8FAFC);
}

.sbn-catgrid__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.sbn-catgrid__name {
	font-size: 17px;
	font-weight: 700;
	color: var(--sbn-ink, #0F172A);
	line-height: 1.2;
}
.sbn-catgrid__count {
	font-size: 13px;
	color: var(--sbn-mute, #6B7280);
}

/* Special tile (Sale block) */
.sbn-catgrid__card--special {
	background: var(--sbn-teal, #0E6B6B);
	border-color: var(--sbn-teal, #0E6B6B);
}
.sbn-catgrid__card--special:hover {
	background: #0A5454;
	border-color: #0A5454;
}
.sbn-catgrid__card--special .sbn-catgrid__name  { color: #FF6B57; }   /* matches the design's red */
.sbn-catgrid__card--special .sbn-catgrid__count { color: rgba(255, 245, 224, 0.85); }
.sbn-catgrid__badge {
	flex: 0 0 auto;
	width: 72px; height: 72px;
	border-radius: 14px;
	background: #0A5454;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Tuckers", "Brush Script MT", cursive !important;
	font-size: 26px;
	font-weight: 400;
	color: #FFF5E0;
	line-height: 1;
}

/* Wide tile (Kosher Deli call-out) */
.sbn-catgrid__card--wide {
	grid-column: 1 / -1;        /* span all columns */
	padding: 18px 22px 18px 18px;
}
.sbn-catgrid__card--wide .sbn-catgrid__img {
	width: 84px; height: 84px;
}
.sbn-catgrid__body--wide { gap: 6px; }
.sbn-catgrid__name-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.sbn-catgrid__kicker {
	display: inline-block;
	background: #ECFDF5;
	color: #047857;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}
.sbn-catgrid__desc {
	font-size: 13px;
	color: var(--sbn-mute, #6B7280);
	line-height: 1.4;
}
.sbn-catgrid__cta {
	flex: 0 0 auto;
	margin-left: auto;
	color: var(--sbn-teal, #0E6B6B);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	transition: gap .15s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.sbn-catgrid__card--wide:hover .sbn-catgrid__cta { gap: 10px; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
	.sbn-catgrid__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
	.sbn-catgrid__list { grid-template-columns: repeat(2, 1fr); }
	.sbn-catgrid__card--wide { flex-wrap: wrap; }
	.sbn-catgrid__card--wide .sbn-catgrid__cta { margin-left: 0; padding-top: 4px; }
}
@media (max-width: 480px) {
	.sbn-catgrid__list { grid-template-columns: 1fr; }
	.sbn-catgrid__img,
	.sbn-catgrid__badge { width: 60px; height: 60px; }
	.sbn-catgrid__name { font-size: 16px; }
}
