/* Alborz page builder — the same stylesheet on the storefront and in the back-office canvas.
   Responsiveness follows the width of the page container (container queries), not the window,
   so the editor's mobile/tablet preview is exact. */

.sb-page {
    --sb-brand: var(--primary, #0b7a56);
    --sb-brand-deep: var(--primary-deep, #0a3d2e);
    --sb-tint: var(--tint, #e7f5ef);
    --sb-text: var(--text, #14241e);
    --sb-muted: var(--muted, #5f7068);
    --sb-border: var(--border, #e2ebe7);
    --sb-max: 1280px;
    container: sbpage / inline-size;
    color: var(--sb-text);
    line-height: 1.8;
}
.sb-page *, .sb-page *::before, .sb-page *::after { box-sizing: border-box; }
.sb-page img { max-width: 100%; height: auto; }
.sb-page h1, .sb-page h2, .sb-page h3, .sb-page h4 { margin: 0 0 .5em; line-height: 1.5; color: inherit; }
.sb-page p { margin: 0 0 1em; }
.sb-page p:last-child { margin-bottom: 0; }
.sb-icon { flex: none; vertical-align: middle; }

/* Storefront: builder pages may run edge to edge inside the usual content container. */
main.container:has(> .sb-bleed) { max-width: none; padding: 0; }

/* ── Sections and columns ─────────────────────────────── */
.sb-section { position: relative; background-size: cover; background-position: center; }
.sb-inner { max-width: var(--sb-max); margin-inline: auto; padding-inline: 16px; }
.sb-full > .sb-inner { max-width: none; }
.sb-section.sb-rounded { border-radius: 28px; margin-inline: 16px; overflow: hidden; }
.sb-pad-none { padding-block: 0; }
.sb-pad-s { padding-block: 16px; }
.sb-pad-m { padding-block: 40px; }
.sb-pad-l { padding-block: 72px; }
.sb-pad-xl { padding-block: 112px; }

.sb-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.sb-gap-none { gap: 0; }
.sb-gap-s { gap: 12px; }
.sb-gap-m { gap: 24px; }
.sb-gap-l { gap: 40px; }
.sb-valign-start { align-items: start; }
.sb-valign-center { align-items: center; }
.sb-valign-end { align-items: end; }
.sb-col { grid-column: span var(--sb-span, 12); min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ── Shared helpers ───────────────────────────────────── */
.sb-align-start { text-align: start; }
.sb-align-center { text-align: center; }
.sb-align-end { text-align: end; }
.sb-align-justify { text-align: justify; }
.sb-rounded { border-radius: 18px; }
.sb-placeholder {
    display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 88px; padding: 1rem;
    border: 2px dashed var(--sb-border); border-radius: 14px; color: var(--sb-muted); font-size: .9rem; text-align: center;
}

/* ── Widgets ──────────────────────────────────────────── */
.sb-heading.sb-size-s > * { font-size: 1.05rem; }
.sb-heading.sb-size-m > * { font-size: 1.3rem; }
.sb-heading.sb-size-l > * { font-size: 1.75rem; }
.sb-heading.sb-size-xl > * { font-size: 2.4rem; font-weight: 800; }
.sb-heading > * { margin: 0; }

.sb-text.sb-size-s { font-size: .9rem; }
.sb-text.sb-size-l { font-size: 1.15rem; }

.sb-image { margin: 0; }
.sb-image img { display: inline-block; }
.sb-image a { display: contents; }
.sb-image figcaption, .sb-video figcaption { color: var(--sb-muted); font-size: .85rem; margin-top: .4rem; text-align: center; }

.sb-btn-wrap.sb-align-stretch .sb-btn { display: flex; justify-content: center; }
.sb-btn {
    display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; font-weight: 700; text-decoration: none;
    border: 2px solid var(--sb-brand); transition: background .15s ease, color .15s ease; cursor: pointer;
}
.sb-btn-s { padding: .35rem 1rem; font-size: .85rem; }
.sb-btn-m { padding: .6rem 1.4rem; }
.sb-btn-l { padding: .8rem 1.9rem; font-size: 1.05rem; }
.sb-btn-primary { background: var(--sb-brand); color: #fff; }
.sb-btn-primary:hover { background: var(--sb-brand-deep); border-color: var(--sb-brand-deep); }
.sb-btn-outline { background: transparent; color: var(--sb-brand); }
.sb-btn-outline:hover { background: var(--sb-tint); }
.sb-btn-light { background: #fff; color: var(--sb-brand-deep); border-color: #fff; }
.sb-btn-light:hover { background: var(--sb-tint); }

.sb-hero {
    display: flex; align-items: center; border-radius: 28px; overflow: hidden; padding: 48px 40px;
    background-color: var(--sb-brand-deep); background-size: cover; background-position: center; color: #fff;
}
.sb-hero-s { min-height: 260px; }
.sb-hero-m { min-height: 400px; }
.sb-hero-l { min-height: 560px; }
.sb-hero-body { max-width: 640px; }
.sb-hero.sb-align-center { justify-content: center; }
.sb-hero.sb-align-center .sb-hero-body { margin-inline: auto; }
.sb-hero.sb-align-end { justify-content: flex-end; }
.sb-hero-title { font-size: 2.4rem; font-weight: 800; }
.sb-hero-sub { font-size: 1.1rem; opacity: .92; margin-bottom: 1.5rem; }

.sb-iconbox h3 { font-size: 1.1rem; margin: .6rem 0 .3rem; }
.sb-iconbox h3 a { color: inherit; text-decoration: none; }
.sb-iconbox p { color: var(--sb-muted); }
.sb-iconbox-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
    border-radius: 20px; background: var(--sb-tint); color: var(--sb-brand);
}

.sb-products-grid { display: grid; grid-template-columns: repeat(var(--sb-cols, 4), minmax(0, 1fr)); gap: 16px; }
.sb-products-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.sb-products-rail .sb-card { scroll-snap-align: start; }
.sb-card { display: flex; flex-direction: column; gap: .5rem; padding: 12px; border: 1px solid var(--sb-border); border-radius: 18px; background: #fff; color: var(--sb-text); }
.sb-card-img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f5f8f6; }
.sb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sb-card-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--sb-brand); opacity: .5; }
.sb-card-name { color: var(--sb-text); font-weight: 500; text-decoration: none; line-height: 1.6; min-height: 3.2em; }
.sb-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.sb-price { white-space: nowrap; }
.sb-price { font-weight: 700; color: var(--sb-brand-deep); }
.sb-oos { color: var(--sb-muted); font-size: .85rem; }

.sb-cats { display: flex; flex-wrap: wrap; gap: .6rem; }
.sb-cats.sb-align-center { justify-content: center; }
.sb-cats.sb-align-end { justify-content: flex-end; }
.sb-cats a { text-decoration: none; color: var(--sb-text); }
.sb-cats-chips a { padding: .45rem 1.1rem; border: 1px solid var(--sb-border); border-radius: 999px; background: #fff; }
.sb-cats-chips a:hover { border-color: var(--sb-brand); color: var(--sb-brand); }
.sb-cats-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sb-cats-tiles a { padding: 1.4rem 1rem; border-radius: 18px; background: var(--sb-tint); font-weight: 700; text-align: center; }
.sb-cats-tiles a:hover { background: var(--sb-brand); color: #fff; }

.sb-faq details { border: 1px solid var(--sb-border); border-radius: 14px; padding: .8rem 1.1rem; background: #fff; }
.sb-faq details + details { margin-top: .6rem; }
.sb-faq summary { cursor: pointer; font-weight: 700; }
.sb-faq details p { margin: .6rem 0 0; color: var(--sb-muted); }

.sb-quote { margin: 0; padding: 1.5rem; border-radius: 20px; background: var(--sb-tint); }
.sb-quote blockquote { margin: 0 0 .8rem; font-size: 1.1rem; }
.sb-quote blockquote::before { content: "«"; }
.sb-quote blockquote::after { content: "»"; }
.sb-quote figcaption { color: var(--sb-muted); font-size: .9rem; }

.sb-video { margin: 0; }
.sb-video iframe, .sb-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #000; }

.sb-divider { margin: 8px auto; border: 0; border-top: 1px solid var(--sb-border); }
.sb-divider-dashed { border-top-style: dashed; }
.sb-divider-dotted { border-top-style: dotted; border-top-width: 2px; }

/* ── Narrow containers: phones, and the editor's mobile preview ── */
@container sbpage (max-width: 767px) {
    .sb-row { grid-template-columns: minmax(0, 1fr); }
    .sb-col { grid-column: 1 / -1; }
    .sb-pad-l { padding-block: 48px; }
    .sb-pad-xl { padding-block: 72px; }
    .sb-hero { padding: 32px 20px; border-radius: 20px; }
    .sb-hero-title { font-size: 1.7rem; }
    .sb-hero-l { min-height: 440px; }
    .sb-heading.sb-size-xl > * { font-size: 1.8rem; }
    .sb-heading.sb-size-l > * { font-size: 1.45rem; }
    .sb-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sb-products-rail { grid-auto-columns: 46%; }
    .sb-section.sb-rounded { margin-inline: 8px; }
    .sb-hide-mobile { display: none !important; }
}
@container sbpage (min-width: 768px) and (max-width: 1023px) {
    .sb-products-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@container sbpage (min-width: 768px) {
    .sb-hide-desktop { display: none !important; }
}

/* ══ Advanced tab: spacing, shadows, hover, entrance animations ══ */
.sb-shadow-s { box-shadow: 0 2px 8px rgba(20, 36, 30, .08); }
.sb-shadow-m { box-shadow: 0 8px 24px rgba(20, 36, 30, .12); }
.sb-shadow-l { box-shadow: 0 18px 48px rgba(20, 36, 30, .18); }
.sb-hover-lift, .sb-hover-grow, .sb-hover-shadow { transition: transform .25s ease, box-shadow .25s ease; }
.sb-hover-lift:hover { transform: translateY(-6px); }
.sb-hover-grow:hover { transform: scale(1.03); }
.sb-hover-shadow:hover { box-shadow: 0 16px 40px rgba(20, 36, 30, .18); }

/* Hidden only once the script has marked the page, so nothing stays invisible without it. */
.sb-page.sb-js .sb-anim { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--sb-delay, 0ms); }
.sb-page.sb-js .sb-anim-fade-up { transform: translateY(40px); }
.sb-page.sb-js .sb-anim-fade-down { transform: translateY(-40px); }
.sb-page.sb-js .sb-anim-slide-start { transform: translateX(60px); }
.sb-page.sb-js .sb-anim-slide-end { transform: translateX(-60px); }
.sb-page.sb-js .sb-anim-zoom { transform: scale(.85); }
.sb-page.sb-js .sb-anim-flip { transform: perspective(800px) rotateX(35deg); }
.sb-page.sb-js .sb-anim.sb-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sb-page.sb-js .sb-anim { opacity: 1; transform: none; transition: none; } }

.sb-section.sb-minh-s { min-height: 300px; }
.sb-section.sb-minh-m { min-height: 500px; }
.sb-section.sb-minh-l { min-height: 700px; }
.sb-section.sb-minh-screen { min-height: 100vh; }
.sb-section[class*="sb-minh-"] { display: flex; flex-direction: column; justify-content: center; }
.sb-section[class*="sb-minh-"] > .sb-inner { width: 100%; }
.sb-fixed-bg { background-attachment: fixed; }
@media (hover: none) { .sb-fixed-bg { background-attachment: scroll; } }

/* ── Icon, image box, icon list, alert ── */
.sb-icon-wrap.sb-align-center { display: flex; justify-content: center; }
.sb-icon-wrap.sb-align-end { display: flex; justify-content: flex-end; }
.sb-icon-box { display: inline-flex; align-items: center; justify-content: center; color: var(--sb-brand); text-decoration: none; line-height: 1; }
.sb-icon-circle, .sb-icon-square { padding: .55em; background: var(--sb-tint); }
.sb-icon-circle { border-radius: 50%; }
.sb-icon-square { border-radius: 22%; }

.sb-imagebox { display: flex; flex-direction: column; gap: 1rem; }
.sb-imagebox-start { flex-direction: row; }
.sb-imagebox-end { flex-direction: row-reverse; }
.sb-imagebox-start .sb-imagebox-img, .sb-imagebox-end .sb-imagebox-img { flex: 0 0 38%; }
.sb-imagebox-img { display: block; border-radius: 18px; overflow: hidden; }
.sb-imagebox-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.sb-imagebox-img:hover img { transform: scale(1.05); }
.sb-imagebox h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.sb-imagebox h3 a { color: inherit; text-decoration: none; }
.sb-imagebox p { color: var(--sb-muted); }

.sb-iconlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.sb-iconlist-inline { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.5rem; }
.sb-iconlist li { display: flex; align-items: center; gap: .6rem; }
.sb-iconlist a { color: inherit; text-decoration: none; }
.sb-iconlist a:hover { color: var(--sb-brand); }
.sb-iconlist-icon { display: inline-flex; color: var(--sb-brand); }
.sb-iconlist-divided:not(.sb-iconlist-inline) li + li { padding-top: .55rem; border-top: 1px solid var(--sb-border); }

.sb-alert { position: relative; display: flex; gap: .8rem; padding: 1rem 1.2rem; border-radius: 14px; border-inline-start: 4px solid; }
.sb-alert-info { background: #e5f8fb; border-color: #00bad1; color: #0b5e6b; }
.sb-alert-success { background: #e6f5eb; border-color: #208d44; color: #145c2c; }
.sb-alert-warning { background: #fff4e5; border-color: #ff9f43; color: #8a4d0f; }
.sb-alert-danger { background: #fdeaea; border-color: #ff4c51; color: #8f1d20; }
.sb-alert-body p { margin: .2rem 0 0; }
.sb-alert-close { position: absolute; inset-inline-end: .6rem; top: .5rem; border: 0; background: none; color: inherit; cursor: pointer; opacity: .6; font-size: 1rem; }
.sb-alert-close:hover { opacity: 1; }

/* ── Animated headline ── */
.sb-animhead > * { margin: 0; }
.sb-animhead.sb-size-m > * { font-size: 1.4rem; }
.sb-animhead.sb-size-l > * { font-size: 1.9rem; }
.sb-animhead.sb-size-xl > * { font-size: 2.6rem; font-weight: 800; }
.sb-animhead-words { display: inline-block; margin-inline: .25em; color: var(--sb-accent, var(--sb-brand)); transition: opacity .35s ease, transform .35s ease; }
.sb-animhead-words.sb-out { opacity: 0; transform: translateY(-.4em); }
.sb-animhead-slide.sb-out { transform: translateX(-1em); }
.sb-animhead-highlight { position: relative; z-index: 0; }
.sb-animhead-highlight::after {
    content: ""; position: absolute; inset-inline: -2px; bottom: .08em; height: .35em; z-index: -1;
    background: var(--sb-accent, var(--sb-brand)); opacity: .22; border-radius: 4px;
}
.sb-animhead-typing::after { content: "|"; margin-inline-start: 2px; animation: sb-blink 1s steps(1) infinite; color: var(--sb-text); font-weight: 400; }
@keyframes sb-blink { 50% { opacity: 0; } }

/* ── Sliders (slides, testimonial carousel) ── */
.sb-slider { position: relative; overflow: hidden; border-radius: 24px; }
.sb-slider-track { display: flex; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sb-slider-track > * { flex: 0 0 100%; min-width: 0; }
.sb-slide { display: flex; align-items: center; padding: 48px 72px; background: var(--sb-brand-deep) center / cover; color: #fff; }
.sb-slider-s .sb-slide { min-height: 300px; }
.sb-slider-m .sb-slide { min-height: 440px; }
.sb-slider-l .sb-slide { min-height: 600px; }
.sb-slider-full { border-radius: 0; }
.sb-slider-full .sb-slide { min-height: 100vh; }
.sb-slide-body { max-width: 640px; }
.sb-slider.sb-align-center .sb-slide { justify-content: center; text-align: center; }
.sb-slider.sb-align-end .sb-slide { justify-content: flex-end; }
.sb-slide h2 { font-size: 2.3rem; font-weight: 800; }
.sb-slide p { font-size: 1.1rem; opacity: .92; margin-bottom: 1.4rem; }
.sb-slider-prev, .sb-slider-next {
    position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--sb-text); cursor: pointer;
}
.sb-slider-prev { inset-inline-start: 14px; }
.sb-slider-next { inset-inline-end: 14px; }
.sb-slider-dots { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.sb-slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .25s ease; }
.sb-slider-dots button.on { width: 28px; background: #fff; }

/* ── Gallery and lightbox ── */
.sb-gallery { display: grid; grid-template-columns: repeat(var(--sb-cols, 3), minmax(0, 1fr)); gap: var(--sb-gap, 10px); }
.sb-gallery-item { display: block; margin: 0; overflow: hidden; border-radius: 12px; }
.sb-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sb-ratio-square .sb-gallery-item { aspect-ratio: 1; }
.sb-ratio-landscape .sb-gallery-item { aspect-ratio: 4 / 3; }
.sb-ratio-portrait .sb-gallery-item { aspect-ratio: 3 / 4; }
a.sb-gallery-item:hover img { transform: scale(1.07); }
.sb-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 24px; background: rgba(10, 15, 13, .92); color: #fff; }
.sb-lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; }
.sb-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.sb-lightbox .sb-lb-close { top: 16px; inset-inline-end: 16px; }
.sb-lightbox .sb-lb-prev { inset-inline-start: 16px; top: 50%; }
.sb-lightbox .sb-lb-next { inset-inline-end: 16px; top: 50%; }

/* ── Testimonials ── */
.sb-testimonials-grid { display: grid; grid-template-columns: repeat(var(--sb-cols, 3), minmax(0, 1fr)); gap: 20px; }
.sb-testimonials-carousel { position: relative; overflow: hidden; }
.sb-testimonials-carousel .sb-slider-track { gap: 20px; }
.sb-testimonials-carousel .sb-slider-track > * { flex: 0 0 calc((100% - (var(--sb-cols, 3) - 1) * 20px) / var(--sb-cols, 3)); }
.sb-testimonial { margin: 0; display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; border: 1px solid var(--sb-border); border-radius: 20px; background: #fff; color: var(--sb-text); }
.sb-testimonial blockquote { margin: 0; flex: 1; }
.sb-testimonial figcaption { display: flex; align-items: center; gap: .7rem; }
.sb-testimonial figcaption img, .sb-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.sb-avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--sb-tint); color: var(--sb-brand); font-weight: 800; }
.sb-testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.5; }
.sb-testimonial small { color: var(--sb-muted); }
.sb-stars { color: #d9dee3; letter-spacing: 2px; }
.sb-stars .on { color: #ffb400; }

/* ── Tabs (pure CSS, radio driven) ── */
.sb-tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--sb-border); border-radius: 18px; background: #fff; color: var(--sb-text); overflow: hidden; }
.sb-tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.sb-tab-label { padding: .8rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--sb-muted); border-bottom: 2px solid transparent; }
.sb-tab-label:hover { color: var(--sb-brand); }
.sb-tab-panel { order: 99; width: 100%; display: none; padding: 1.2rem 1.4rem; border-top: 1px solid var(--sb-border); }
.sb-tab-radio:checked + .sb-tab-label { color: var(--sb-brand); border-bottom-color: var(--sb-brand); }
.sb-tab-radio:checked + .sb-tab-label + .sb-tab-panel { display: block; }
.sb-tab-radio:focus-visible + .sb-tab-label { outline: 2px solid var(--sb-brand); outline-offset: -2px; }
.sb-tabs-vertical { display: grid; grid-template-columns: minmax(140px, 28%) 1fr; align-content: start; }
.sb-tabs-vertical .sb-tab-label { grid-column: 1; border-bottom: 0; border-inline-start: 3px solid transparent; }
.sb-tabs-vertical .sb-tab-radio:checked + .sb-tab-label { border-inline-start-color: var(--sb-brand); background: var(--sb-tint); }
.sb-tabs-vertical .sb-tab-panel { grid-column: 2; grid-row: 1 / span 12; border-top: 0; border-inline-start: 1px solid var(--sb-border); }

/* ── Counter, progress, rating ── */
.sb-counter-icon { display: inline-flex; color: var(--sb-brand); margin-bottom: .3rem; }
.sb-counter-number { font-size: 2.6rem; font-weight: 800; line-height: 1.3; color: var(--sb-brand-deep); }
.sb-counter-number span { unicode-bidi: isolate; }
.sb-counter-title { color: var(--sb-muted); font-weight: 600; }
.sb-progress-list { display: flex; flex-direction: column; gap: 1rem; }
.sb-progress-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: .35rem; }
.sb-progress-track { height: 10px; border-radius: 999px; background: var(--sb-tint); overflow: hidden; }
.sb-progress-s .sb-progress-track { height: 6px; }
.sb-progress-l .sb-progress-track { height: 16px; }
.sb-progress-fill { height: 100%; border-radius: inherit; background: var(--sb-brand); transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.sb-page.sb-js .sb-progress:not(.sb-in) .sb-progress-fill { width: 0 !important; }
.sb-rating { display: flex; align-items: center; gap: .6rem; }
.sb-rating.sb-align-center { justify-content: center; }
.sb-rating.sb-align-end { justify-content: flex-end; }
.sb-rating-stars {
    display: inline-block; line-height: 1; letter-spacing: 3px; direction: ltr;
    background: linear-gradient(to right, var(--sb-star, #ffb400) var(--sb-rating, 100%), #d9dee3 var(--sb-rating, 100%));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sb-rating-title { color: var(--sb-muted); font-weight: 600; }

/* ── Call to action, price table, price list ── */
.sb-ribbon { position: absolute; top: 22px; inset-inline-end: -46px; width: 170px; text-align: center; transform: rotate(45deg); padding: .2rem 0; white-space: nowrap; background: #ff9f43; color: #fff; font-size: .8rem; font-weight: 800; z-index: 2; }
[dir="rtl"] .sb-ribbon { transform: rotate(-45deg); }
.sb-cta { position: relative; display: flex; overflow: hidden; border-radius: 24px; background: var(--sb-tint); }
.sb-cta-img { flex: 0 0 42%; min-height: 260px; background: center / cover; }
.sb-cta-end { flex-direction: row-reverse; }
.sb-cta-body { flex: 1; padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sb-cta-cover { min-height: 320px; background: var(--sb-brand-deep) center / cover; color: #fff; justify-content: center; text-align: center; }
.sb-cta-cover .sb-cta-body { align-items: center; max-width: 700px; }
.sb-cta h3 { font-size: 1.6rem; font-weight: 800; }

.sb-pricetable { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 2rem 1.6rem; border: 1px solid var(--sb-border); border-radius: 24px; background: #fff; color: var(--sb-text); text-align: center; }
.sb-pricetable.sb-featured { border: 2px solid var(--sb-brand); box-shadow: 0 18px 44px rgba(32, 141, 68, .18); }
.sb-pricetable-head h3 { font-size: 1.3rem; margin: 0; }
.sb-pricetable-head p { color: var(--sb-muted); margin: .2rem 0 0; }
.sb-pricetable-price strong { font-size: 2.4rem; font-weight: 800; color: var(--sb-brand-deep); }
.sb-pricetable-price s { display: block; color: var(--sb-muted); }
.sb-pricetable-price small { color: var(--sb-muted); }
.sb-pricetable-features { list-style: none; margin: 0; padding: 0; text-align: start; flex: 1; }
.sb-pricetable-features li { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px dashed var(--sb-border); }
.sb-pricetable-features li .sb-icon { color: var(--sb-brand); }
.sb-pricetable-features li.off { color: var(--sb-muted); text-decoration: line-through; }
.sb-pricetable-features li.off .sb-icon { color: #ff4c51; }
.sb-btn-block { display: flex; justify-content: center; width: 100%; }

.sb-pricelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.sb-pricelist li { display: flex; gap: .9rem; align-items: flex-start; }
.sb-pricelist img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.sb-pricelist-body { flex: 1; min-width: 0; }
.sb-pricelist-head { display: flex; align-items: baseline; gap: .5rem; font-weight: 700; }
.sb-pricelist-head a { color: inherit; text-decoration: none; }
.sb-pricelist-sep { flex: 1; }
.sb-pricelist-dotted .sb-pricelist-sep { border-bottom: 2px dotted var(--sb-border); }
.sb-pricelist-price { color: var(--sb-brand); white-space: nowrap; }
.sb-pricelist-body p { margin: .2rem 0 0; color: var(--sb-muted); font-size: .92rem; }

/* ── Flip box ── */
.sb-flipbox { perspective: 1200px; }
.sb-flipbox-inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.sb-flipbox-front, .sb-flipbox-back {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    padding: 1.6rem; border-radius: 22px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.sb-flipbox-front { background: var(--sb-tint); color: var(--sb-text); }
.sb-flipbox-front .sb-icon { color: var(--sb-brand); }
.sb-flipbox-back { background: var(--sb-brand); color: #fff; }
.sb-flip-horizontal .sb-flipbox-back { transform: rotateY(180deg); }
.sb-flip-vertical .sb-flipbox-back { transform: rotateX(180deg); }
.sb-flip-horizontal:is(:hover, :focus-within) .sb-flipbox-inner { transform: rotateY(180deg); }
.sb-flip-vertical:is(:hover, :focus-within) .sb-flipbox-inner { transform: rotateX(180deg); }

/* ── Countdown ── */
.sb-countdown-title { font-weight: 700; margin-bottom: .6rem; }
.sb-countdown-boxes { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.sb-countdown-boxes span { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: .7rem .5rem; border-radius: 16px; background: var(--sb-box, var(--sb-brand)); color: #fff; }
.sb-countdown-boxes b { font-size: 2rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sb-countdown-boxes small { opacity: .85; }
.sb-countdown-done { font-size: 1.2rem; font-weight: 700; }

/* ── Hotspots ── */
.sb-hotspot { position: relative; }
.sb-hotspot > img { display: block; width: 100%; border-radius: 18px; }
.sb-spot { position: absolute; transform: translate(-50%, -50%); z-index: 1; }
.sb-spot-dot { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--sb-spot, var(--sb-brand)); border: 3px solid #fff; cursor: pointer; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: sb-pulse 2s infinite; }
@keyframes sb-pulse { 70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }
.sb-spot-tip {
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 220px; padding: .8rem 1rem;
    border-radius: 14px; background: #fff; color: var(--sb-text); box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    opacity: 0; visibility: hidden; transition: opacity .2s ease; font-size: .9rem;
}
.sb-spot-tip.sb-tip-end { left: auto; right: -10px; transform: none; }
.sb-spot-tip p { margin: .2rem 0; color: var(--sb-muted); }
.sb-spot-tip a { color: var(--sb-brand); font-weight: 700; text-decoration: none; }
.sb-spot:is(:hover, :focus-within) { z-index: 3; }
.sb-spot:is(:hover, :focus-within) .sb-spot-tip { opacity: 1; visibility: visible; }

/* ── Social icons, share buttons (--sb-net is each network's colour) ── */
.sb-social, .sb-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sb-social.sb-align-center, .sb-share.sb-align-center { justify-content: center; }
.sb-social.sb-align-end, .sb-share.sb-align-end { justify-content: flex-end; }
.sb-social a, .sb-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.sb-social-s a { width: 34px; height: 34px; }
.sb-social-l a { width: 52px; height: 52px; }
.sb-social-circle a, .sb-share-btn { border-radius: 50%; }
.sb-social-rounded a { border-radius: 12px; }
.sb-social-square a { border-radius: 0; }
.sb-social-brand a, .sb-share-btn { background: var(--sb-net, var(--sb-brand)); color: #fff; border: 0; cursor: pointer; }
.sb-social-theme a { background: var(--sb-brand); color: #fff; }
.sb-social-light a { background: var(--sb-tint); color: var(--sb-net, var(--sb-brand)); }
.sb-social-light a:hover { background: var(--sb-net, var(--sb-brand)); color: #fff; }
.sb-social a:hover, .sb-share-btn:hover { transform: translateY(-3px); }
.sb-share-label { font-weight: 700; margin-inline-end: .3rem; }
.sb-share-btn.sb-copied { outline: 3px solid rgba(32, 141, 68, .35); }

/* ── Table of contents ── */
.sb-toc { border: 1px solid var(--sb-border); border-radius: 16px; background: #fff; color: var(--sb-text); padding: .8rem 1.1rem; }
.sb-toc summary { cursor: pointer; font-weight: 800; }
.sb-toc-list { margin: .6rem 0 0; padding-inline-start: 1.2rem; }
.sb-toc-list li { padding: .15rem 0; }
.sb-toc-list li.sb-toc-h3 { margin-inline-start: 1rem; list-style-type: circle; font-size: .93rem; }
.sb-toc-list a { color: var(--sb-text); text-decoration: none; }
.sb-toc-list a:hover { color: var(--sb-brand); }

/* ── Map ── */
.sb-map { margin: 0; }
.sb-map iframe { display: block; width: 100%; border: 0; border-radius: 18px; background: var(--sb-tint); }
.sb-map figcaption { display: flex; align-items: center; gap: .35rem; margin-top: .5rem; color: var(--sb-muted); font-size: .9rem; }

/* ── Form ── */
.sb-form { display: flex; flex-direction: column; gap: 1rem; }
.sb-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem 1rem; }
.sb-form-cols-2 .sb-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-form-cols-2 .sb-form-wide { grid-column: 1 / -1; }
.sb-form-field { display: flex; flex-direction: column; gap: .3rem; }
.sb-form-field > label { font-weight: 600; font-size: .92rem; }
.sb-req { color: #ff4c51; }
.sb-form input:not([type="checkbox"]):not([type="radio"]), .sb-form select, .sb-form textarea {
    width: 100%; padding: .6rem .9rem; border: 1px solid #d1d0d4; border-radius: 10px; background: #fff;
    font: inherit; color: var(--sb-text); transition: border-color .15s ease, box-shadow .15s ease;
}
.sb-form input:focus, .sb-form select:focus, .sb-form textarea:focus { outline: 0; border-color: var(--sb-brand); box-shadow: 0 0 0 3px rgba(32, 141, 68, .16); }
.sb-form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.sb-form-check input { width: 18px; height: 18px; accent-color: var(--sb-brand); }
.sb-form-choices { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.sb-form-choices > legend { width: 100%; margin-bottom: .1rem; font-weight: 600; font-size: .92rem; float: none; }
.sb-form-choices .sb-form-check { font-weight: 400; }
.sb-form-suffix { position: relative; }
.sb-form-suffix > span { position: absolute; inset-inline-end: .9rem; top: 50%; transform: translateY(-50%); color: #8a8d93; font-size: .85rem; pointer-events: none; }
.sb-form .sb-form-suffix > input { padding-inline-end: 3.2rem; }
.sb-form .jdp-wrap > .jdp-input { padding-inline-end: 2.6rem; }
.sb-form input[type="file"] { padding: .45rem .6rem; }
.sb-form-hint { color: #8a8d93; font-size: .8rem; }
.sb-form .sb-btn { align-self: flex-start; }
.sb-form .sb-btn[disabled] { opacity: .65; cursor: default; }
/* Hidden from people without moving it off-page (an offset would scroll RTL pages sideways). */
.sb-form input.sb-hp { position: absolute !important; width: 1px !important; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.sb-form { position: relative; }
.sb-form-done { padding: 1rem 1.2rem; border-radius: 14px; background: #e6f5eb; color: #145c2c; font-weight: 600; }
.sb-form-error { padding: .8rem 1.1rem; border-radius: 12px; background: #fdeaea; color: #8f1d20; }

/* ── Tablet and phone adjustments for the new widgets ── */
@container sbpage (min-width: 768px) and (max-width: 1023px) {
    .sb-hide-tablet { display: none !important; }
    .sb-testimonials-grid, .sb-gallery { grid-template-columns: repeat(min(var(--sb-cols, 3), 3), minmax(0, 1fr)); }
    .sb-testimonials-carousel .sb-slider-track > * { flex-basis: calc((100% - 20px) / 2); }
}
@container sbpage (max-width: 767px) {
    .sb-gallery { grid-template-columns: repeat(min(var(--sb-cols, 3), 2), minmax(0, 1fr)); }
    .sb-testimonials-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-testimonials-carousel .sb-slider-track > * { flex-basis: 100%; }
    .sb-slider { border-radius: 18px; }
    .sb-slide { padding: 32px 22px 52px; }
    .sb-slide h2 { font-size: 1.6rem; }
    .sb-slider-l .sb-slide { min-height: 460px; }
    .sb-slider-prev, .sb-slider-next { display: none; }
    .sb-imagebox-start, .sb-imagebox-end, .sb-cta, .sb-cta-end { flex-direction: column; }
    .sb-cta-img { min-height: 200px; }
    .sb-cta-body { padding: 1.5rem; }
    .sb-tabs-vertical { display: flex; }
    .sb-tabs-vertical .sb-tab-panel { border-inline-start: 0; border-top: 1px solid var(--sb-border); }
    .sb-tab-label { flex: 1 1 auto; text-align: center; }
    .sb-form-cols-2 .sb-form-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-form .sb-btn { align-self: stretch; justify-content: center; }
    .sb-counter-number { font-size: 2.1rem; }
    .sb-countdown-boxes span { min-width: 62px; }
    .sb-countdown-boxes b { font-size: 1.5rem; }
    .sb-animhead.sb-size-xl > * { font-size: 1.9rem; }
    .sb-animhead.sb-size-l > * { font-size: 1.5rem; }
    .sb-section.sb-minh-l { min-height: 520px; }
}

/* A widget given its own box background reads as a card: its text uses the page's text colour,
   not the colour of a dark section around it (a white form on a green banner). */
.sb-w[style*="background-color"] { color: var(--sb-text); }
.sb-counter-number span:last-child:not(:empty) { margin-inline-start: .12em; }
.sb-counter-number span:first-child:not(:empty) { margin-inline-end: .12em; }
@container sbpage (max-width: 767px) {
    .sb-ribbon { top: 14px; inset-inline-end: -48px; width: 150px; font-size: .7rem; }
    .sb-cta .sb-cta-body { padding-top: 2.4rem; }
}

/* Product carousels: the arrows (sitebuilder.js) replace the raw scrollbar; phones swipe. */
.sb-products-rail { scrollbar-width: none; }
.sb-products-rail::-webkit-scrollbar { display: none; }
.sb-rail-wrap { position: relative; }
.sb-rail-btn { position: absolute; top: 38%; transform: translateY(-50%); z-index: 2; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 1px solid var(--sb-border); border-radius: 50%; background: #fff; color: var(--sb-text);
    font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); cursor: pointer; transition: color .15s, border-color .15s; }
.sb-rail-btn:hover { color: var(--sb-brand); border-color: var(--sb-brand); }
.sb-rail-btn[hidden] { display: none; }
.sb-rail-prev { inset-inline-start: -12px; }
.sb-rail-next { inset-inline-end: -12px; }
@media (max-width: 767.98px) { .sb-rail-btn { display: none; } }