/*
 * Sonali Bites section blocks.
 * Ported from the original Sonali Bites styles.css. Uses the design tokens (--green, --gold …)
 * from Design Settings, with fallbacks so blocks still look right under another theme.
 * Logical properties throughout, so Arabic (RTL) mirrors automatically.
 */
.sb-section {
	--_bg: var(--bg, #fbf5e8);
	--_surface: var(--surface, #fffdf7);
	--_surface2: var(--surface2, #efe4cc);
	--_ink: var(--ink, #202a21);
	--_muted: var(--muted, #5f665b);
	--_green: var(--green, #092b1e);
	--_gold: var(--gold, #e3b94f);
	--_line: var(--line, #ddcfad);
	--_radius: var(--sb-radius, 18px);
	--_radius-btn: var(--sb-radius-btn, 999px);
	--_shadow: var(--shadow, 0 14px 36px #0b2c1b15);
	position: relative;
	color: var(--_ink);
}
.sb-section :where(.container) { width: min(var(--sb-container, 1200px), 92%); margin-inline: auto; }
.sb-section :where(img) { max-width: 100%; display: block; height: auto; }

/* Spacing + backgrounds */
/* Doubled class: wins over the theme's generic .section padding whatever order the stylesheets load in (Elementor loads widget CSS early). */
.sb-space-none.sb-space-none { padding-block: 0; }
.sb-space-sm.sb-space-sm { padding-block: 36px; }
.sb-space-md.sb-space-md { padding-block: 72px; }
.sb-space-lg.sb-space-lg { padding-block: 104px; }
.sb-landing-space-sm .sb-space-md.sb-space-md { padding-block: 48px; }
.sb-landing-space-lg .sb-space-md.sb-space-md { padding-block: 96px; }
.sb-bg-surface { background: var(--_surface); }
.sb-bg-alt { background: var(--_surface2); }
.sb-bg-green { background: var(--_green); color: #f6e6bb; }
[data-theme=dark] .sb-bg-green { background: #072318; }
.sb-bg-green :where(h2, h3, .eyebrow) { color: #f4d276; }
.sb-hero .eyebrow, .sb-slider .eyebrow, .featurebar .eyebrow, .sb-cta--image .eyebrow { color: var(--_gold); }
.sb-bg-green :where(p) { color: #eadfc2; }
.sb-bg-gold { background: var(--_gold); color: #1a2418; }
.sb-bg-gold :where(h2, h3, p, .eyebrow) { color: #1a2418; }
.sb-text-center { text-align: center; }
@media (max-width: 720px) { .sb-only-desktop { display: none !important; } .sb-space-md.sb-space-md { padding-block: 52px; } .sb-space-lg.sb-space-lg { padding-block: 68px; } }
@media (min-width: 721px) { .sb-only-mobile { display: none !important; } }

/* Shared atoms (low specificity — the theme may restyle) */
.sb-section :where(.eyebrow) { color: var(--eyebrow, #7d5a00); font-weight: 800; letter-spacing: .04em; font-family: var(--sb-font-heading, inherit); }
.sb-section :where(.btn) { border: 1px solid transparent; border-radius: var(--_radius-btn); padding: 12px 20px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; cursor: pointer; font-family: var(--sb-font-heading, inherit); }
.sb-section :where(.btn:hover) { transform: translateY(-2px); }
.sb-section :where(.btn:focus-visible) { outline: 3px solid var(--_gold); outline-offset: 3px; }
.sb-section :where(.primary) { background: var(--_gold); color: var(--sb-button-text, #1a2418); }
.sb-section :where(.secondary) { background: transparent; border-color: var(--_gold); color: var(--_gold); }
.sb-section :where(.greenbtn) { background: var(--_green); color: #fff0c6; }
[data-theme=dark] .sb-section :where(.greenbtn) { color: #10180f; }
.sb-section :where(.smallbtn) { padding: 9px 13px; font-size: .85rem; }
.sb-section :where(.section-head) { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.sb-section :where(.section-head h2) { color: var(--_green); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.2; margin: 7px 0 12px; font-family: var(--sb-font-heading, inherit); }
.sb-section :where(.section-head p) { color: var(--_muted); margin: 0; }
.sb-more { text-align: center; margin-top: 28px; }

/* Hero (also used by the slider) */
.sb-hero, .sb-slider { min-height: var(--sb-hero-min, 560px); color: #fff5df; display: flex; align-items: center; position: relative; overflow: hidden; background-color: #061b12; }
.sb-hero { background-image: linear-gradient(90deg, rgba(3,24,14,.94) 0%, rgba(4,29,17,.82) 34%, rgba(4,25,15,.28) 70%, rgba(4,25,15,.08) 100%), var(--hero-image, none); background-size: cover; background-position: center; }
[dir=rtl] .sb-hero { background-image: linear-gradient(270deg, rgba(3,24,14,.94) 0%, rgba(4,29,17,.82) 34%, rgba(4,25,15,.28) 70%, rgba(4,25,15,.08) 100%), var(--hero-image, none); }
.sb-hero .copy, .sb-slider .copy { max-width: 590px; padding-block: 52px 34px; position: relative; z-index: 2; }
.sb-hero h1, .sb-slider h1, .sb-slider .h1 { font-family: var(--sb-font-heading, inherit); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1.13; margin: 12px 0 20px; color: #ffe29a; letter-spacing: -.02em; }
.sb-hero p, .sb-slider p { font-size: 1.06rem; color: #f0e8d5; max-width: 540px; }
.sb-section .actions, .sb-slider .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.sb-slider .trust, .sb-section .trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: .88rem; color: #f2e5c4; }
.sb-slider .trust span::before, .sb-section .trust span::before { content: '✦'; color: var(--_gold); margin-inline-end: 7px; }

/* Slider */
.sb-slider-section { padding: 0; }
.sb-slider { display: block; padding-bottom: 104px; }
.sb-slider__slides { position: relative; }
.sb-slide { position: relative; min-height: calc(var(--sb-hero-min, 560px) - 104px); display: flex; align-items: center; }
.sb-slide:not(.is-active) { display: none; }
.sb-slider.is-ready.sb-slider--fade .sb-slide { display: flex; position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.sb-slider.is-ready.sb-slider--fade .sb-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.sb-slider.is-ready.sb-slider--slide .sb-slide.is-active { animation: sb-slide-in .5s ease; }
@keyframes sb-slide-in { from { transform: translateX(4%); opacity: .3; } to { transform: none; opacity: 1; } }
[dir=rtl] .sb-slider.is-ready.sb-slider--slide .sb-slide.is-active { animation-name: sb-slide-in-rtl; }
@keyframes sb-slide-in-rtl { from { transform: translateX(-4%); opacity: .3; } to { transform: none; opacity: 1; } }
.sb-slide__media, .sb-slide__bg { position: absolute; inset: 0 0 -104px 0; z-index: 0; }
.sb-slide__img { width: 100%; height: 100%; object-fit: cover; }
.sb-slide__bg { background: radial-gradient(circle at 70% 40%, #154833, #061b12); }
.sb-slide__shade { position: absolute; inset: 0 0 -104px 0; z-index: 1; background: linear-gradient(90deg, rgba(3,24,14,.94) 0%, rgba(4,29,17,.82) 34%, rgba(4,25,15,.28) 70%, rgba(4,25,15,.08) 100%); }
[dir=rtl] .sb-slide__shade { background: linear-gradient(270deg, rgba(3,24,14,.94) 0%, rgba(4,29,17,.82) 34%, rgba(4,25,15,.28) 70%, rgba(4,25,15,.08) 100%); }
.sb-slide .container { position: relative; z-index: 2; width: min(var(--sb-container, 1200px), 92%); margin-inline: auto; }
.hero-carousel-controls { position: absolute; inset-inline: 0; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; z-index: 5; }
.hero-thumbnails { display: flex; gap: 8px; justify-content: center; max-width: 540px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.hero-thumb { position: relative; flex: 0 1 112px; width: 112px; height: 58px; border: 1px solid #e5bd53; border-radius: 9px; overflow: hidden; background: #092b1e; padding: 0; cursor: pointer; opacity: .78; color: #fff0c6; }
.hero-thumb.active { outline: 2px solid #f4cb58; opacity: 1; transform: translateY(-1px); }
.hero-thumb:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb span { position: absolute; inset: auto 0 0; background: #061b12c9; color: #fff0c6; font-size: .7rem; padding: 2px 4px; }
.carousel-arrow { border: 1px solid #e3b94f; border-radius: 50%; width: 34px; height: 34px; background: #061b12cc; color: #fff4d0; font-size: 1.45rem; line-height: 1; cursor: pointer; flex-shrink: 0; display: inline-grid; place-items: center; }
.carousel-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sb-slider__pause span { font-size: .7rem; }
[dir=rtl] [data-sb-prev] span, [dir=rtl] [data-sb-next] span, [dir=rtl] .sb-carousel__prev, [dir=rtl] .sb-carousel__next { display: inline-block; transform: scaleX(-1); }
@media (max-width: 720px) {
	.sb-slider { padding-bottom: 112px; }
	.sb-slide .copy, .sb-hero .copy { padding-block: 40px 24px; }
	.sb-hero h1, .sb-slider h1, .sb-slider .h1 { font-size: clamp(2.1rem, 9vw, 3.1rem); line-height: 1.16; }
	.hero-carousel-controls { bottom: 12px; gap: 5px; padding: 0 7px; }
	.hero-thumbnails { gap: 5px; max-width: calc(100vw - 120px); }
	.hero-thumb { flex: 0 1 75px; width: 75px; max-width: 75px; height: 48px; }
	.hero-thumb span { font-size: .65rem; }
	.carousel-arrow { width: 29px; height: 29px; font-size: 1.25rem; }
}

/* Product cards & grids */
.sb-section .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sb-section .grid.sb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-section .grid.sb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-section .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sb-section :where(.card) { background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_radius); overflow: hidden; box-shadow: var(--_shadow); display: flex; flex-direction: column; }
.sb-cards-bordered .sb-section :where(.card) { box-shadow: none; }
.sb-cards-flat .sb-section :where(.card) { box-shadow: none; border-color: transparent; }
.sb-product-card[hidden] { display: none !important; }
.sb-product-card__media { position: relative; display: block; }
.sb-product-card__media img, .sb-post-card img { width: 100%; height: 230px; object-fit: cover; background: var(--_surface2); }
.sb-section :where(.cardbody) { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.sb-section :where(.pill) { font-size: .78rem; font-weight: 800; color: var(--_green); background: var(--_surface2); padding: 5px 10px; border-radius: 99px; align-self: flex-start; }
.sb-section :where(.card h3) { margin: 10px 0 5px; color: var(--_green); font-size: 1.18rem; font-family: var(--sb-font-heading, inherit); }
.sb-section :where(.card h3 a) { color: inherit; text-decoration: none; }
.sb-section :where(.card h3 a:focus-visible) { outline: 2px solid var(--_gold); outline-offset: 2px; }
.sb-section :where(.card p) { color: var(--_muted); margin: 0 0 12px; }
.sb-section :where(.cardfoot) { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.sb-section :where(.price) { font-weight: 800; color: #b17b13; }
.sb-section .price del { opacity: .6; font-weight: 400; margin-inline-end: 4px; }
.sb-section .price ins { text-decoration: none; }
.sb-stock { font-size: .85rem; margin: 0 0 10px !important; }
.sb-stock--instock { color: #2b7a3d !important; }
[data-theme=dark] .sb-stock--instock { color: #8fd19e !important; }
.sb-stock--outofstock { color: #b3261e !important; }
[data-theme=dark] .sb-stock--outofstock { color: #ff9c94 !important; }
.sb-badge { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; background: var(--_gold); color: #1a2418; font-weight: 800; font-size: .78rem; padding: 4px 10px; border-radius: 99px; }
.sb-section .star-rating { margin-bottom: 8px; }
.sb-section .filterbar { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.sb-section .filterbar button { border: 1px solid var(--_line); border-radius: 99px; background: var(--_surface); color: var(--_ink); padding: 8px 15px; cursor: pointer; font: inherit; }
.sb-section .filterbar button.active { background: var(--_green); color: #fff0c6; border-color: var(--_green); }
[data-theme=dark] .sb-section .filterbar button.active { color: #10180f; }
.sb-section .filterbar button:focus-visible { outline: 3px solid var(--_gold); outline-offset: 2px; }
.sb-section .added_to_cart { font-size: .85rem; margin-inline-start: 6px; }

/* Carousel */
.sb-carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.sb-carousel__track.grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 44px) / 3)); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; flex: 1; }
.sb-carousel__track .card { scroll-snap-align: start; }
.sb-carousel__track:focus-visible { outline: 3px solid var(--_gold); outline-offset: 4px; border-radius: 8px; }
.sb-carousel .carousel-arrow { background: var(--_green); }

/* Image + text */
.sb-section .split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.sb-section .split--reverse .split__media, .sb-section .productlayout.split--reverse .sb-featured__media { order: 2; }
.sb-section .split img, .sb-image-text__img { width: 100%; height: 410px; object-fit: cover; border-radius: 22px; box-shadow: var(--_shadow); }
.sb-section .split h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.2; color: var(--_green); margin: 8px 0 16px; font-family: var(--sb-font-heading, inherit); }
.sb-section .split p { color: var(--_muted); }
.sb-section .checklist { padding: 0; list-style: none; }
.sb-section .checklist li { margin: 9px 0; }
.sb-section .checklist li::before { content: '✓'; color: var(--eyebrow, #7d5a00); font-weight: 900; margin-inline-end: 10px; }

/* Featured product */
.sb-section .productlayout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sb-featured__media { position: relative; }
.sb-section .productmain { width: 100%; height: 480px; object-fit: cover; border-radius: 20px; }
.sb-featured__title { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--_green); line-height: 1.2; font-family: var(--sb-font-heading, inherit); margin: 6px 0 10px; }
.sb-featured__title a { color: inherit; text-decoration: none; }
.sb-featured-product .price { font-size: 1.3rem; }
.sb-featured__cart .quantity input { width: 70px; padding: 10px; border: 1px solid var(--_line); border-radius: 10px; background: var(--_surface); color: var(--_ink); }
.sb-featured__cart .single_add_to_cart_button { background: var(--_gold); color: #1a2418; border: 0; border-radius: var(--_radius-btn); padding: 12px 22px; font-weight: 800; cursor: pointer; }
.sb-featured__cart table.variations select { padding: 10px; border-radius: 10px; border: 1px solid var(--_line); background: var(--_surface); color: var(--_ink); }

/* Category tiles / chips */
.sb-cat-tile { position: relative; text-decoration: none; min-height: 160px; justify-content: flex-end; background: var(--_green) !important; }
.sb-cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.sb-cat-tile__name { position: relative; padding: 16px; color: #ffe29a; font-weight: 800; font-size: 1.1rem; }
.category-strip { background: var(--_surface); border-bottom: 1px solid var(--_line); }
.category-scroll { display: flex; gap: 10px; align-items: center; overflow-x: auto; white-space: nowrap; padding: 11px 0; scrollbar-width: none; }
.category-scroll a { font-size: .88rem; font-weight: 700; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--_line); color: var(--_green); background: var(--_bg); flex-shrink: 0; text-decoration: none; }
.category-scroll a:focus-visible { outline: 3px solid var(--_gold); outline-offset: 2px; }

/* Offer */
.sb-offer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.sb-offer:not(.sb-offer--image) .sb-offer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sb-offer h2 { color: var(--_green); font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 8px 0; font-family: var(--sb-font-heading, inherit); }
.sb-offer__img { border-radius: var(--_radius); width: 100%; height: 340px; object-fit: cover; }
.sb-coupon__code { font-size: 1.1rem; padding: 4px 12px; border: 2px dashed var(--_gold); border-radius: 8px; background: var(--_surface); }
.sb-countdown { font-weight: 800; color: var(--_green); }
.sb-countdown__live { display: block; font-size: 1.6rem; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.sb-offer.is-ended .sb-countdown__live { opacity: .5; }

/* Benefits */
.sb-section .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.sb-section :where(.feature) { padding: 24px; border: 1px solid var(--_line); background: var(--_surface); border-radius: 16px; }
.sb-section :where(.feature .icon) { font-size: 1.7rem; color: var(--eyebrow, #7d5a00); }
.sb-section :where(.feature h3) { margin: 8px 0; color: var(--_green); }
.sb-section :where(.feature p) { color: var(--_muted); margin: 0; }
.featurebar { background: var(--_green); color: #f6e6bb; padding: 28px 0; }
[data-theme=dark] .featurebar { background: #072318; }
.featurebar .featuregrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; }
.featurebar .featuregrid div { padding: 10px; border-inline-end: 1px solid #d2b45a55; }
.featurebar .featuregrid div:last-child { border-inline-end: 0; }
.featurebar .featuregrid b { display: block; color: #f4d276; }

/* Testimonials, CTA, FAQ, contact, newsletter */
.sb-quote blockquote { margin: 0; font-size: 1.05rem; }
.sb-quote figcaption { margin-top: 12px; color: var(--_muted); }
.sb-cta { text-align: center; }
.sb-cta--image { background-image: linear-gradient(rgba(6,27,18,.82), rgba(6,27,18,.82)), var(--sb-cta-image); background-size: cover; background-position: center; color: #fff5df; }
.sb-cta--image h2 { color: #ffe29a; }
.sb-cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 12px; font-family: var(--sb-font-heading, inherit); color: var(--_green); }
.sb-cta.sb-bg-green h2 { color: #ffe29a; }
.sb-faq__inner { max-width: 820px; }
.sb-faq__item { border: 1px solid var(--_line); border-radius: 12px; background: var(--_surface); margin-bottom: 10px; }
.sb-faq__item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; color: var(--_green); }
.sb-faq__item summary:focus-visible { outline: 3px solid var(--_gold); outline-offset: 2px; border-radius: 12px; }
.sb-faq__a { padding: 0 20px 14px; color: var(--_muted); }
.sb-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; background: var(--_surface); border: 1px solid var(--_line); padding: 26px; border-radius: 20px; max-width: 900px; margin: 0 auto; }
.sb-contact dt { font-weight: 800; color: var(--_green); }
.sb-contact dd { margin: 4px 0 0; }
.sb-newsletter .formbox { max-width: 720px; background: var(--_surface); border: 1px solid var(--_line); padding: 26px; border-radius: 20px; }
.sb-editor-empty { padding: 24px; border: 2px dashed #c3c4c7; border-radius: 8px; text-align: center; color: #50575e; background: #f6f7f7; }

@media (max-width: 1000px) {
	.sb-section .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-section .grid.sb-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sb-section .grid, .sb-section .grid.sb-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-carousel__track.grid { grid-auto-columns: minmax(240px, 70%); }
}
@media (max-width: 720px) {
	.sb-section .grid, .sb-section .grid4, .sb-section .grid.sb-cols-2, .sb-section .grid.sb-cols-4 { grid-template-columns: 1fr; }
	.sb-section .split, .sb-section .productlayout, .sb-offer__inner { grid-template-columns: 1fr; }
	.sb-section .split--reverse .split__media, .sb-section .productlayout.split--reverse .sb-featured__media { order: 0; }
	.sb-section .split img, .sb-image-text__img { height: 300px; }
	.sb-section .productmain { height: 330px; }
	.sb-carousel__track.grid { grid-auto-columns: 82%; }
	.sb-carousel .carousel-arrow { display: none; }
	.featurebar .featuregrid div { border-inline-end: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sb-section *, .sb-slider * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Add to cart + Buy now (product cards) */
/* Product cards: compact, left-aligned (right in Arabic), same everywhere — homepage, shop, related, search.
   Strong selectors because WooCommerce's own loop CSS centres text and resets image height/margins. */
.sb-product-card.card { text-align: start; min-width: 0; }
.sb-product-card .sb-product-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--_surface2, #f3ead2); }
.sb-product-card .sb-product-card__media img,
.woocommerce ul.products li.product .sb-product-card .sb-product-card__media img { width: 100% !important; height: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 !important; display: block; box-shadow: none; }
.sb-product-card .cardbody { padding: 14px 16px 16px; gap: 0; }
.sb-product-card h3, .woocommerce ul.products li.product .sb-product-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 8px 0 4px; padding: 0; }
.sb-product-card .cardbody > p { font-size: .9rem; line-height: 1.45; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-product-card .pill { font-size: .72rem; padding: 4px 9px; }
.sb-product-card .cardfoot { gap: 10px; }
.sb-product-card .cardfoot .price, .woocommerce ul.products li.product .sb-product-card .price { width: 100%; margin: 0; font-size: 1.05rem; font-weight: 800; color: #b17b13; }
.sb-card-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.sb-card-actions > a, .woocommerce ul.products li.product .sb-card-actions > a.button { flex: 1 1 110px; min-width: 0; margin: 0 !important; padding: 9px 10px !important; font-size: .85rem !important; line-height: 1.2; text-align: center; white-space: normal; }
.sb-card-actions .added_to_cart { flex-basis: 100%; text-align: center; margin: 0; }

/* Desktop: 4 product columns in wide containers keeps cards a comfortable size. */
.sb-section .grid.sb-cols-4 .sb-product-card h3 { font-size: 1rem; }

/* Tablet & phone: always two cards per row, compact text, buttons stacked full-width. */
@media (max-width: 720px) {
	.sb-section .grid.sb-cols-2, .sb-section .grid.sb-cols-3, .sb-section .grid.sb-cols-4, .sb-section .grid:has(> .sb-product-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sb-product-card .cardbody { padding: 10px 10px 12px; }
	.sb-product-card h3, .woocommerce ul.products li.product .sb-product-card h3 { font-size: .92rem; margin: 6px 0 2px; }
	.sb-product-card .cardbody > p, .sb-product-card .star-rating, .sb-product-card .pill { display: none; }
	.sb-product-card .sb-stock { font-size: .75rem; margin-bottom: 6px !important; }
	.sb-product-card .cardfoot .price { font-size: .95rem; }
	.sb-card-actions { flex-direction: column; gap: 6px; }
	.sb-card-actions > a, .woocommerce ul.products li.product .sb-card-actions > a.button { flex: 0 0 auto; width: 100%; padding: 8px 6px !important; font-size: .8rem !important; }
	.sb-product-card .sb-badge { font-size: .68rem; padding: 3px 8px; inset-block-start: 8px; inset-inline-start: 8px; }
}
@media (max-width: 340px) {
	.sb-section .grid:has(> .sb-product-card) { grid-template-columns: 1fr; }
}
.sb-featured__cart .single_add_to_cart_button:not(.sb-buy-now) { background: var(--_green); color: #fff0c6; }
.sb-featured__cart form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }

/* Page banner */
.sb-page-banner { overflow: hidden; isolation: isolate; }
.sb-page-banner.sb-space-md { padding-block: 64px; }
.sb-page-banner--green { background: radial-gradient(circle at 85% 20%, #c69e3d33, transparent 45%), linear-gradient(135deg, var(--_green), #12422e); color: #f6e6bb; }
.sb-page-banner--cream { background: radial-gradient(circle at 90% 10%, #e3b94f33, transparent 40%), var(--_surface2); }
.sb-page-banner.has-image { background: linear-gradient(90deg, #092b1ef2 0%, #092b1ecc 50%, #092b1e66 100%), var(--sb-banner-image) center / cover no-repeat; color: #f6e6bb; }
[dir=rtl] .sb-page-banner.has-image { background: linear-gradient(270deg, #092b1ef2 0%, #092b1ecc 50%, #092b1e66 100%), var(--sb-banner-image) center / cover no-repeat; }
.sb-page-banner h1 { margin: 6px 0 10px; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.15; font-family: var(--sb-font-heading, inherit); color: var(--_green); max-width: 820px; }
.sb-page-banner--green h1, .sb-page-banner.has-image h1 { color: #ffe39a; }
.sb-page-banner p { margin: 0; max-width: 680px; font-size: 1.08rem; color: var(--_muted); }
.sb-page-banner--green p, .sb-page-banner.has-image p { color: #eadfc2; }
.sb-page-banner--green .eyebrow, .sb-page-banner.has-image .eyebrow { color: var(--_gold); }
.sb-page-banner.sb-text-center h1, .sb-page-banner.sb-text-center p { margin-inline: auto; }

/* Contact form */
.sb-contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 760px; margin-inline: auto; }
.sb-contact-form--with-info .sb-contact-layout { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); max-width: 1100px; align-items: start; }
.sb-contact-card { background: linear-gradient(160deg, var(--_green), #12422e); color: #f6e6bb; border-radius: var(--_radius); padding: 28px; box-shadow: var(--_shadow); position: relative; overflow: hidden; }
.sb-contact-card::after { content: "❋"; position: absolute; inset-inline-end: -10px; bottom: -40px; font-size: 9rem; color: #ffffff0d; line-height: 1; pointer-events: none; }
.sb-contact-card h3 { margin: 0 0 18px; color: #ffe39a; font-size: 1.35rem; font-family: var(--sb-font-heading, inherit); }
.sb-contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.sb-contact-card li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.sb-contact-card strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--_gold); margin-bottom: 2px; }
.sb-contact-card a { color: #fff5d8; text-decoration-color: #e3b94f88; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sb-contact-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #ffffff14; color: var(--_gold); }
.sb-contact-formcard { background: var(--_surface); border: 1px solid var(--_line); border-radius: var(--_radius); padding: clamp(20px, 3vw, 34px); box-shadow: var(--_shadow); scroll-margin-top: 110px; }
.sb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.sb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sb-field--wide { grid-column: 1 / -1; }
.sb-field label { font-weight: 700; color: var(--_green); font-size: .93rem; }
.sb-req { color: #b3261e; }
.sb-section .sb-field input, .sb-section .sb-field textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--_ink); background: var(--_bg); border: 1.5px solid var(--_line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.sb-field textarea { resize: vertical; min-height: 140px; }
.sb-section .sb-field input:focus, .sb-section .sb-field textarea:focus { outline: none; border-color: var(--_gold); box-shadow: 0 0 0 4px #e3b94f33; }
.sb-section .sb-field.has-error input, .sb-section .sb-field.has-error textarea { border-color: #b3261e; }
.sb-field-error { margin: 0; min-height: 0; color: #b3261e; font-size: .85rem; }
.sb-field-error:empty { display: none; }
[data-theme=dark] .sb-field-error, [data-theme=dark] .sb-req { color: #ff9c94; }
.sb-contact-submit { margin-top: 20px; min-width: 200px; font-family: var(--sb-font-heading, inherit); font-weight: 800; font-size: 1rem; }
.sb-contact-submit.is-busy { opacity: .7; cursor: progress; }
.sb-form-privacy { margin: 12px 0 0; font-size: .85rem; color: var(--_muted); }
.sb-form-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; border-inline-start: 4px solid; }
.sb-form-notice--ok { background: #e3f3e6; color: #1e5b2c; border-color: #2b7a3d; }
.sb-form-notice--error { background: #fbe6e4; color: #8c1d18; border-color: #b3261e; }
.sb-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sb-contact-formcard .wpcf7 input:not([type=submit]), .sb-contact-formcard .wpcf7 textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--_line); border-radius: 12px; padding: 12px 14px; background: var(--_bg); color: var(--_ink); font: inherit; }
.sb-contact-formcard .wpcf7 input[type=submit] { background: var(--_gold); color: #1a2418; border: 0; border-radius: var(--_radius-btn); padding: 12px 26px; font-weight: 800; cursor: pointer; }
@media (max-width: 860px) {
	.sb-contact-form--with-info .sb-contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.sb-form-grid { grid-template-columns: 1fr; }
	.sb-contact-submit { width: 100%; }
	.sb-contact-card { padding: 22px; }
	.sb-page-banner.sb-space-md { padding-block: 44px; }
}

/* Product quick view */
.sb-product-card[data-product-id] { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.sb-product-card[data-product-id]:hover { transform: translateY(-3px); box-shadow: 0 20px 44px #0b2c1b22; }
.sb-product-card .sb-product-card__media img { transition: transform .35s ease; }
.sb-product-card[data-product-id]:hover .sb-product-card__media img { transform: scale(1.04); }
html.sb-qv-open, html.sb-qv-open body { overflow: hidden; }
.sb-qv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.sb-qv[hidden] { display: none; }
.sb-qv__backdrop { position: absolute; inset: 0; background: #071a1199; backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; }
.sb-qv__dialog { position: relative; width: min(980px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; background: var(--surface, #fffdf7); color: var(--ink, #202a21); border-radius: 22px; box-shadow: 0 30px 80px #0006; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .22s ease, transform .22s ease; outline: none; }
.sb-qv.is-open .sb-qv__backdrop { opacity: 1; }
.sb-qv.is-open .sb-qv__dialog { opacity: 1; transform: none; }
.sb-qv__close span[aria-hidden] { font-size: 1.7rem; line-height: 1; }
.sb-qv__close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line, #ddcfad); background: var(--surface, #fffdf7); color: var(--green, #092b1e); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px #0002; }
.sb-qv__close:hover { background: var(--green, #092b1e); color: #ffe39a; }
.sb-qv__close:focus-visible, .sb-qv__thumb:focus-visible, .sb-qv__more:focus-visible { outline: 3px solid var(--gold, #e3b94f); outline-offset: 2px; }
.sb-qv__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sb-qv__gallery { padding: 22px; background: var(--surface2, #efe4cc); border-start-start-radius: 22px; border-end-start-radius: 22px; }
.sb-qv__main img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; }
.sb-qv__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.sb-qv__thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.sb-qv__thumb.is-active, .sb-qv__thumb:hover { opacity: 1; border-color: var(--gold, #e3b94f); }
.sb-qv__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sb-qv__summary { padding: 30px 30px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.sb-qv__summary > * { max-width: 100%; }
.sb-qv__summary .pill { font-size: .75rem; font-weight: 800; color: var(--green, #092b1e); background: var(--surface2, #efe4cc); padding: 5px 10px; border-radius: 99px; }
.sb-qv__title { margin: 0; padding-inline-end: 40px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; color: var(--green, #092b1e); font-family: var(--sb-font-heading, inherit); outline: none; }
.sb-qv__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; width: 100%; padding: 14px 16px; margin-top: 4px; border: 1px solid var(--line, #ddcfad); border-radius: 14px; background: var(--bg, #fbf5e8); color: var(--muted, #5f665b); font-size: .92rem; }
.sb-rating__avg { color: var(--ink, #202a21); font-size: 1rem; }
.sb-rating__count { color: var(--muted, #5f665b); }
a.sb-rating__count { color: var(--green, #092b1e); font-weight: 700; text-underline-offset: 3px; }
[data-theme=dark] a.sb-rating__count { color: #ffe39a; }
.sb-qv__title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.sb-qv__title a:hover, .sb-qv__title a:focus-visible { background-size: 100% 2px; }
/* Gentle dark overlay on the popup photo (depth + keeps light photos from glaring). */
.sb-qv__main { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px #0b2c1b33; }
.sb-qv__main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, #0000 55%, #071a1166 100%), radial-gradient(circle at 50% 40%, #0000 60%, #071a1126 100%); }
.sb-qv__main img { transition: opacity .25s ease; }
.sb-qv__price { font-size: 1.5rem; font-weight: 800; color: #b17b13; margin: 0; }
.sb-qv__desc { color: var(--muted, #5f665b); line-height: 1.65; }
.sb-qv__desc p { margin: 0 0 6px; }
.sb-qv__cart { width: 100%; margin-top: 6px; }
.sb-qv .sb-qv__cart form.cart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin: 0; }
.sb-qv .sb-qv__cart form.variations_form { display: block; }
.sb-qv__cart table.variations { width: 100%; border: 0; margin: 0 0 10px; }
.sb-qv__cart table.variations th, .sb-qv__cart table.variations td { display: block; padding: 3px 0; text-align: start; border: 0; }
.sb-qv__cart table.variations select { width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line, #ddcfad); padding: 0 10px; background: var(--bg, #fbf5e8); }
.sb-qv .sb-qv__cart .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Quantity on its own line, then Add to cart · Buy now · WhatsApp order in one row. */
.sb-qv__cart form.cart > .quantity, .sb-qv__cart .woocommerce-variation-add-to-cart > .quantity { grid-column: 1 / -1; justify-self: start; }
.sb-qv__cart form.cart > :not(.quantity):not(button):not(.sb-wa-hint), .sb-qv__cart .woocommerce-variation-add-to-cart > :not(.quantity):not(button):not(.sb-wa-hint) { grid-column: 1 / -1; }
.sb-qv__cart .single_add_to_cart_button, .sb-qv__cart .sb-wa-order { min-height: 50px; width: 100%; padding-inline: 10px !important; font-size: .95rem !important; line-height: 1.15; white-space: normal; margin: 0 !important; }
.sb-qv__cart .single_add_to_cart_button:not(.sb-buy-now) { background: var(--green, #092b1e) !important; color: #fff0c6 !important; }
.sb-qv__cart .single_add_to_cart_button.loading { opacity: .6; cursor: progress; }
.sb-qv__cart .stock { margin: 0 0 8px; font-weight: 700; }
.sb-qv__notice:empty { display: none; }
.sb-qv__notice { width: 100%; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.sb-qv__notice.is-ok { background: #e3f3e6; color: #1e5b2c; }
.sb-qv__notice.is-error { background: #fbe6e4; color: #8c1d18; }
.sb-qv__more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--green, #092b1e); text-decoration-color: var(--gold, #e3b94f); text-underline-offset: 4px; }
[data-theme=dark] .sb-qv__title, [data-theme=dark] .sb-qv__more { color: #ffe39a; }
.sb-qv__loading, .sb-qv__error { padding: 80px 30px; text-align: center; color: var(--muted, #5f665b); display: flex; gap: 12px; justify-content: center; align-items: center; }
.sb-qv__spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line, #ddcfad); border-top-color: var(--gold, #e3b94f); animation: sb-spin .8s linear infinite; }
@keyframes sb-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
	.sb-qv { padding: 0; align-items: end; }
	.sb-qv__dialog { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(40px); }
	.sb-qv__grid { grid-template-columns: 1fr; }
	.sb-qv__gallery { padding: 14px 14px 10px; border-radius: 22px 22px 0 0; }
	.sb-qv__main img { aspect-ratio: 4 / 3; }
	.sb-qv__summary { padding: 18px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.sb-qv__backdrop, .sb-qv__dialog, .sb-product-card[data-product-id], .sb-product-card .sb-product-card__media img { transition: none; }
	.sb-product-card[data-product-id]:hover, .sb-product-card[data-product-id]:hover .sb-product-card__media img { transform: none; }
}

/* Star rating (Sonali Bites): grey stars filled in gold to --sb-rating. */
.sb-stars { --sb-star-size: 1.05rem; position: relative; display: inline-block; font-size: var(--sb-star-size); line-height: 1; letter-spacing: 2px; color: #d9cfb8; font-family: Arial, sans-serif; }
.sb-stars::before { content: "★★★★★"; }
.sb-stars::after { content: "★★★★★"; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: var(--sb-rating, 0%); overflow: hidden; color: #e0a92a; white-space: nowrap; }
[dir=rtl] .sb-stars::after { direction: rtl; }

/* WhatsApp order button (same shape and type as the other buttons). */
.sb-wa-order, .woocommerce .sb-wa-order.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #12823b !important; color: #fff !important; border: 0; border-radius: var(--sb-radius-btn, 999px); font-family: var(--sb-font-heading, inherit); font-weight: 800; cursor: pointer; text-decoration: none; transition: filter .15s, transform .15s; }
.sb-wa-order:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sb-wa-order:focus-visible { outline: 3px solid var(--gold, #e3b94f); outline-offset: 2px; }
.sb-wa-order svg { flex: 0 0 auto; }
.sb-wa-hint { grid-column: 1 / -1; color: #b3261e; font-size: .88rem; font-weight: 600; }
.sb-wa-hint:empty { display: none; }
[data-theme=dark] .sb-wa-hint { color: #ff9c94; }
@media (max-width: 420px) {
	.sb-qv .sb-qv__cart form.cart:not(.variations_form), .sb-qv .sb-qv__cart .woocommerce-variation-add-to-cart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-qv__cart .sb-wa-order { grid-column: 1 / -1; }
}

/* WhatsApp order button position (Sonali Bites → Product display): order inside the add-to-cart row. */
:is(form.cart, .woocommerce-variation-add-to-cart):has(> .sb-wa-order) > .quantity { order: 0; }
:is(form.cart, .woocommerce-variation-add-to-cart):has(> .sb-wa-order) > .single_add_to_cart_button:not(.sb-buy-now) { order: 2; }
:is(form.cart, .woocommerce-variation-add-to-cart):has(> .sb-wa-order) > .sb-buy-now { order: 4; }
:is(form.cart, .woocommerce-variation-add-to-cart) > .sb-wa-order--before_cart { order: 1; }
:is(form.cart, .woocommerce-variation-add-to-cart) > .sb-wa-order--after_cart { order: 3; }
:is(form.cart, .woocommerce-variation-add-to-cart) > .sb-wa-order--after_buy { order: 5; }
:is(form.cart, .woocommerce-variation-add-to-cart) > .sb-wa-order--below { order: 7; grid-column: 1 / -1; flex-basis: 100%; }
:is(form.cart, .woocommerce-variation-add-to-cart):has(> .sb-wa-order) > .sb-wa-hint { order: 8; }
/* WooCommerce's clearfix ::before/::after would take grid cells once the buttons are re-ordered. */
:is(form.cart, .woocommerce-variation-add-to-cart):has(> .sb-wa-order)::before, :is(form.cart, .woocommerce-variation-add-to-cart):has(> .sb-wa-order)::after { display: none !important; }

/* Homepage popup: sizes / choices as buttons (the dropdown stays for WooCommerce, hidden). */
.sb-qv .sb-qv-chips__select { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); padding: 0 !important; border: 0 !important; }
.sb-qv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.sb-qv-chip { min-height: 42px; min-width: 64px; padding: 8px 16px; border: 1.5px solid var(--line, #ddcfad); border-radius: 12px; background: var(--bg, #fbf5e8); color: var(--ink, #202a21); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.sb-qv-chip:hover:not([disabled]) { border-color: var(--gold, #e3b94f); }
.sb-qv-chip[aria-checked="true"] { background: var(--green, #092b1e); border-color: var(--green, #092b1e); color: #fff0c6; }
[data-theme=dark] .sb-qv-chip[aria-checked="true"] { background: var(--gold, #e3b94f); border-color: var(--gold, #e3b94f); color: #1a2418; }
.sb-qv-chip[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.sb-qv-chip:focus-visible { outline: 3px solid var(--gold, #e3b94f); outline-offset: 2px; }
.sb-qv__cart table.variations td.value { position: relative; }
.sb-qv__cart .reset_variations { display: none !important; }
.sb-qv__cart .woocommerce-variation-price { display: none; } /* The popup's main price shows the chosen size's price. */
