/* =========================================================
   SD Block Builder — Frontend rendered block styles
   ========================================================= */
.sdbb-root { width: 100%; }
.sdbb-root *, .sdbb-root *::before, .sdbb-root *::after { box-sizing: border-box; }

.sdbb-section { position: relative; }
.sdbb-container-boxed  .sdbb-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.sdbb-container-narrow .sdbb-inner { max-width: 820px;  margin: 0 auto; padding: 0 15px; }
.sdbb-container-full   .sdbb-inner { width: 100%; }

.sdbb-row { display: flex; flex-wrap: wrap; }
.sdbb-col { flex: 1 1 0%; min-width: 0; }
.sdbb-col-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
.sdbb-col-2  { flex: 0 0 16.666%; max-width: 16.666%; }
.sdbb-col-3  { flex: 0 0 25%;     max-width: 25%; }
.sdbb-col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.sdbb-col-5  { flex: 0 0 41.666%; max-width: 41.666%; }
.sdbb-col-6  { flex: 0 0 50%;     max-width: 50%; }
.sdbb-col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.sdbb-col-8  { flex: 0 0 66.666%; max-width: 66.666%; }
.sdbb-col-9  { flex: 0 0 75%;     max-width: 75%; }
.sdbb-col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.sdbb-col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.sdbb-col-12 { flex: 0 0 100%;    max-width: 100%; }

@media (max-width: 768px) {
    .sdbb-col { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Alignment helpers */
.sdbb-align-left   { text-align: left; }
.sdbb-align-center { text-align: center; }
.sdbb-align-right  { text-align: right; }

/* Heading */
.sdbb-heading { margin: 0 0 0.6em; line-height: 1.2; }

/* Text */
.sdbb-text { line-height: 1.6; }
.sdbb-text p:last-child { margin-bottom: 0; }

/* Image */
.sdbb-image img { max-width: 100%; height: auto; display: inline-block; }

/* Button */
.sdbb-button-wrap { margin: 6px 0; }
.sdbb-button {
    display: inline-block; padding: 12px 28px; border-radius: 4px;
    background: #1976d2; color: #fff; text-decoration: none; font-weight: 600;
    border: 2px solid #1976d2; transition: all .15s ease; line-height: 1.2;
}
.sdbb-button:hover { opacity: .9; transform: translateY(-1px); }
.sdbb-button-secondary { background: #6b7280; border-color: #6b7280; }
.sdbb-button-outline { background: transparent; color: #1976d2; }
.sdbb-button-ghost { background: transparent; border-color: transparent; color: #1976d2; }
.sdbb-button-small { padding: 8px 18px; font-size: 13px; }
.sdbb-button-large { padding: 16px 36px; font-size: 16px; }
.sdbb-button-full { display: block; width: 100%; text-align: center; }

/* Spacer / divider */
.sdbb-spacer { width: 100%; }
.sdbb-divider { border: 0; border-top: 1px solid #e5e5e5; }

/* Video */
.sdbb-video { position: relative; width: 100%; overflow: hidden; }
.sdbb-aspect-16\:9 { aspect-ratio: 16 / 9; }
.sdbb-aspect-4\:3  { aspect-ratio: 4 / 3; }
.sdbb-aspect-1\:1  { aspect-ratio: 1 / 1; }
.sdbb-aspect-21\:9 { aspect-ratio: 21 / 9; }
.sdbb-video iframe, .sdbb-video video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Icon box */
.sdbb-iconbox { padding: 20px 0; }
.sdbb-iconbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 14px;
    font-size: 42px;
    min-width: 1em;
    min-height: 1em;
}
.sdbb-iconbox-icon.sdbb-iconbox-shape-circle,
.sdbb-iconbox-icon.sdbb-iconbox-shape-square,
.sdbb-iconbox-icon.sdbb-iconbox-shape-rounded {
    width: 1.8em;
    height: 1.8em;
    background: rgba(25, 118, 210, 0.1);
}
.sdbb-iconbox-icon.sdbb-iconbox-shape-circle  { border-radius: 50%; }
.sdbb-iconbox-icon.sdbb-iconbox-shape-square  { border-radius: 0; }
.sdbb-iconbox-icon.sdbb-iconbox-shape-rounded { border-radius: 22%; }
.sdbb-iconbox-icon i { display: inline-block; }
.sdbb-iconbox-title { margin: 0 0 8px; font-size: 20px; }
.sdbb-iconbox-text  { margin: 0; color: #6b7280; line-height: 1.6; }

/* Button icons */
.sdbb-button-has-icon { display: inline-flex; align-items: center; gap: 8px; }
.sdbb-button-has-icon span { display: inline-block; }
.sdbb-button-ico { font-size: 0.9em; line-height: 1; }
.sdbb-button.sdbb-button-full.sdbb-button-has-icon { display: flex; justify-content: center; }

/* Testimonial */
.sdbb-testimonial { margin: 0; padding: 24px; background: #fafbfd; border-radius: 8px; }
.sdbb-testimonial-stars { color: #fbbf24; font-size: 20px; letter-spacing: 2px; margin-bottom: 10px; }
.sdbb-testimonial-quote { font-size: 18px; font-style: italic; line-height: 1.5; margin: 0 0 14px; }
.sdbb-testimonial-author { display: flex; align-items: center; gap: 12px; }
.sdbb-testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sdbb-testimonial-author strong { display: block; }
.sdbb-testimonial-author span { font-size: 13px; color: #6b7280; }

/* Countdown */
.sdbb-countdown-label { font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.sdbb-countdown-values { display: flex; gap: 12px; justify-content: center; }
.sdbb-align-left .sdbb-countdown-values { justify-content: flex-start; }
.sdbb-align-right .sdbb-countdown-values { justify-content: flex-end; }
.sdbb-countdown-values span {
    display: flex; flex-direction: column; align-items: center; min-width: 64px;
    padding: 10px; background: #1b2230; color: #fff; border-radius: 6px;
}
.sdbb-countdown-values b { font-size: 28px; line-height: 1; font-family: monospace; }
.sdbb-countdown-values i { font-size: 10px; font-style: normal; text-transform: uppercase; opacity: .7; margin-top: 4px; }

/* Product / category grid */
.sdbb-product-grid, .sdbb-category-grid { display: grid; gap: 16px; }
.sdbb-product-grid.sdbb-cols-2, .sdbb-category-grid.sdbb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sdbb-product-grid.sdbb-cols-3, .sdbb-category-grid.sdbb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sdbb-product-grid.sdbb-cols-4, .sdbb-category-grid.sdbb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sdbb-product-grid.sdbb-cols-5, .sdbb-category-grid.sdbb-cols-5 { grid-template-columns: repeat(5, 1fr); }
.sdbb-product-grid.sdbb-cols-6, .sdbb-category-grid.sdbb-cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 768px) {
    .sdbb-product-grid, .sdbb-category-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
.sdbb-product-card, .sdbb-category-card { display: block; text-decoration: none; color: inherit; text-align: center; }
.sdbb-product-card img, .sdbb-category-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.sdbb-product-name, .sdbb-category-name { margin-top: 8px; font-weight: 500; font-size: 14px; }
.sdbb-product-price { color: #1976d2; font-weight: 700; font-size: 16px; margin-top: 4px; }

/* Accordion */
.sdbb-accordion-item { border: 1px solid #e5e5e5; border-radius: 4px; margin-bottom: 6px; overflow: hidden; }
.sdbb-accordion-head {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; background: #fff; border: 0; text-align: left; cursor: pointer;
    font-size: 15px; font-weight: 600;
}
.sdbb-accordion-head:hover { background: #fafbfd; }
.sdbb-accordion-caret::before { content: '+'; font-size: 20px; }
.sdbb-accordion-item.is-open .sdbb-accordion-caret::before { content: '−'; }
.sdbb-accordion-body { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.sdbb-accordion-item.is-open .sdbb-accordion-body { padding: 14px 18px; max-height: 500px; }

/* Tabs */
.sdbb-tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid #e5e5e5; }
.sdbb-tab-btn { padding: 10px 18px; background: transparent; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: #6b7280; }
.sdbb-tab-btn.is-active { color: #1976d2; border-bottom: 2px solid #1976d2; margin-bottom: -2px; }
.sdbb-tab-panel { display: none; padding: 20px 0; }
.sdbb-tab-panel.is-active { display: block; }

/* Gallery */
.sdbb-gallery { display: grid; }
.sdbb-gallery.sdbb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sdbb-gallery.sdbb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sdbb-gallery.sdbb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sdbb-gallery.sdbb-cols-5 { grid-template-columns: repeat(5, 1fr); }
.sdbb-gallery.sdbb-cols-6 { grid-template-columns: repeat(6, 1fr); }
.sdbb-gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; aspect-ratio: 1; }

/* CTA banner */
.sdbb-cta { padding: 60px 30px; border-radius: 8px; }
.sdbb-cta-title { margin: 0 0 10px; font-size: 32px; }
.sdbb-cta-subtitle { margin: 0 0 24px; opacity: .9; font-size: 18px; }
.sdbb-cta-btn { display: inline-block; padding: 14px 32px; background: rgba(255,255,255,.2); color: inherit; border: 2px solid currentColor; border-radius: 4px; text-decoration: none; font-weight: 600; }
.sdbb-cta-btn:hover { background: rgba(255,255,255,.3); }

/* ═════════════════════════════════════════════
   COMMERCE BLOCKS
   ═════════════════════════════════════════════ */

/* Add to cart */
.sdbb-atc-form { display: inline-block; }
.sdbb-atc-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}
.sdbb-atc-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.sdbb-atc-qty-btn {
    width: 36px;
    background: #f7f8fb;
    border: 0;
    color: #0b1020;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.sdbb-atc-qty-btn:hover { background: #eef2ff; color: #4f46e5; }
.sdbb-atc-qty-input {
    width: 54px;
    border: 0;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    -moz-appearance: textfield;
}
.sdbb-atc-qty-input::-webkit-outer-spin-button,
.sdbb-atc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sdbb-atc-btn { display: inline-flex; align-items: center; gap: 8px; }
.sdbb-atc-unavailable .sdbb-button[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Product price */
.sdbb-pprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sdbb-pprice.sdbb-align-center { justify-content: center; }
.sdbb-pprice.sdbb-align-right  { justify-content: flex-end; }
.sdbb-pprice-current { font-weight: 800; color: #1976d2; line-height: 1.1; }
.sdbb-pprice-small  .sdbb-pprice-current { font-size: 16px; }
.sdbb-pprice-medium .sdbb-pprice-current { font-size: 22px; }
.sdbb-pprice-large  .sdbb-pprice-current { font-size: 30px; }
.sdbb-pprice-xlarge .sdbb-pprice-current { font-size: 42px; }
.sdbb-pprice-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.65em;
}
.sdbb-pprice-saved {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(180deg, #10b981, #059669);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sdbb-pprice-tax { font-size: 11px; color: #6b7280; }

/* Customer greeting */
.sdbb-greeting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    color: #1e293b;
    font-weight: 600;
}
.sdbb-greeting i { color: #4f46e5; font-size: 18px; }
.sdbb-greeting.sdbb-greeting-small  { padding: 7px 12px; font-size: 12px; }
.sdbb-greeting.sdbb-greeting-medium { padding: 10px 14px; font-size: 14px; }
.sdbb-greeting.sdbb-greeting-large  { padding: 14px 20px; font-size: 18px; }

/* Stock indicator */
.sdbb-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}
.sdbb-stock-in    { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.sdbb-stock-low   { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sdbb-stock-out   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.sdbb-stock.sdbb-stock-small  { font-size: 11px; padding: 5px 11px; }
.sdbb-stock.sdbb-stock-large  { font-size: 15px; padding: 10px 18px; }

/* ═════════════════════════════════════════════
   NEW BLOCKS — frontend styles
   ═════════════════════════════════════════════ */

/* Alert / notification bars */
.sdbb-alert-bar, .sdbb-notification-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 10px 20px;
    font-size: 14px; font-weight: 500;
    text-align: center;
}
.sdbb-alert-bar a, .sdbb-notification-bar a {
    color: inherit; text-decoration: underline; font-weight: 600;
}
.sdbb-alert-bar-close, .sdbb-notification-bar-close {
    background: transparent; border: 0; color: inherit;
    cursor: pointer; padding: 4px 8px; opacity: 0.8;
    font-size: 16px; line-height: 1;
}
.sdbb-alert-bar-close:hover, .sdbb-notification-bar-close:hover { opacity: 1; }

/* Author bio card */
.sdbb-author-bio {
    display: flex; gap: 20px; padding: 24px;
    background: #fafbfe; border: 1px solid #eceff6; border-radius: 12px;
    align-items: flex-start;
}
.sdbb-author-bio-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background-size: cover; background-position: center; flex-shrink: 0;
    border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sdbb-author-bio-name { font-size: 18px; font-weight: 700; margin: 0 0 2px; }
.sdbb-author-bio-role { font-size: 13px; color: #6b7280; margin: 0 0 10px; }
.sdbb-author-bio-text { font-size: 14px; line-height: 1.6; color: #475569; margin: 0 0 12px; }
.sdbb-author-bio-socials { display: flex; gap: 10px; }
.sdbb-author-bio-socials a {
    width: 32px; height: 32px; border-radius: 8px;
    background: #eef2ff; color: #4f46e5;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all .15s;
}
.sdbb-author-bio-socials a:hover { background: #4f46e5; color: #fff; }

/* Badge */
.sdbb-badge {
    display: inline-block; padding: 4px 12px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    line-height: 1.6;
}
.sdbb-badge-pill { border-radius: 999px; }
.sdbb-badge-rounded { border-radius: 6px; }
.sdbb-badge-square { border-radius: 0; }
.sdbb-badge-small { font-size: 10px; padding: 3px 9px; }
.sdbb-badge-large { font-size: 13px; padding: 6px 16px; }

/* Banner */
.sdbb-banner {
    position: relative; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    padding: 60px 40px;
}
.sdbb-banner-overlay { position: absolute; inset: 0; }
.sdbb-banner-content { position: relative; text-align: center; max-width: 800px; }
.sdbb-banner-title { font-size: 42px; font-weight: 800; margin: 0 0 12px; color: inherit; }
.sdbb-banner-subtitle { font-size: 17px; margin: 0 0 24px; opacity: 0.9; }
.sdbb-banner-btn {
    display: inline-block; padding: 14px 32px;
    background: #fff; color: #0b1020; border-radius: 6px;
    font-weight: 700; text-decoration: none;
}

/* Code block */
.sdbb-code-block {
    background: #0f172a; color: #e2e8f0;
    padding: 16px 20px; border-radius: 8px;
    font-family: 'JetBrains Mono', Consolas, monospace; font-size: 13px;
    line-height: 1.6; overflow-x: auto;
}
.sdbb-code-block.theme-light { background: #f7f8fb; color: #0f172a; border: 1px solid #e5e5e5; }

/* Contact info */
.sdbb-contact-info { padding: 20px 0; }
.sdbb-contact-info h3 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.sdbb-contact-info-row {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 10px; font-size: 14px; color: #475569;
}
.sdbb-contact-info-row i { color: #6366f1; margin-top: 3px; font-size: 14px; flex-shrink: 0; }

/* Expandable text */
.sdbb-expand { font-size: 15px; line-height: 1.6; color: #1f2937; }
.sdbb-expand-full { display: none; margin-top: 12px; }
.sdbb-expand.is-open .sdbb-expand-full { display: block; }
.sdbb-expand-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 0; padding: 8px 0; margin-top: 8px;
    color: #6366f1; font-weight: 600; cursor: pointer; font-size: 14px;
}

/* FAQ */
.sdbb-faq-title { font-size: 28px; font-weight: 800; margin: 0 0 20px; }
.sdbb-faq-item {
    border: 1px solid #e5e5e5; border-radius: 8px;
    margin-bottom: 8px; overflow: hidden; background: #fff;
}
.sdbb-faq-q {
    width: 100%; text-align: left; padding: 16px 20px;
    background: transparent; border: 0; cursor: pointer;
    font-size: 15px; font-weight: 600; color: #0b1020;
    display: flex; justify-content: space-between; align-items: center;
}
.sdbb-faq-q::after { content: '+'; font-size: 20px; transition: transform .2s; }
.sdbb-faq-item.is-open .sdbb-faq-q::after { content: '−'; }
.sdbb-faq-a { max-height: 0; overflow: hidden; padding: 0 20px; transition: all .3s; color: #475569; }
.sdbb-faq-item.is-open .sdbb-faq-a { max-height: 500px; padding: 0 20px 16px; }

/* Feature list */
.sdbb-feature-list {
    display: grid; gap: 30px;
}
.sdbb-feature-list[data-cols="1"] { grid-template-columns: 1fr; }
.sdbb-feature-list[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.sdbb-feature-list[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.sdbb-feature-list[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .sdbb-feature-list { grid-template-columns: 1fr !important; } }
.sdbb-feature-item-icon {
    font-size: 36px; color: #6366f1; margin-bottom: 10px;
}
.sdbb-feature-item h3 { font-size: 17px; margin: 0 0 6px; }
.sdbb-feature-item p { margin: 0; color: #6b7280; line-height: 1.6; }

/* Icon list */
.sdbb-icon-list { list-style: none; margin: 0; padding: 0; }
.sdbb-icon-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; font-size: 15px; color: #1f2937;
}
.sdbb-icon-list i { flex-shrink: 0; margin-top: 4px; font-size: 14px; }

/* Logo */
.sdbb-logo { display: inline-block; }
.sdbb-logo img { display: block; max-width: 100%; height: auto; }

/* Metric / stat card */
.sdbb-metric { padding: 20px; text-align: center; }
.sdbb-metric i { font-size: 28px; margin-bottom: 10px; display: block; }
.sdbb-metric-number { font-size: 48px; font-weight: 800; line-height: 1; margin: 6px 0; }
.sdbb-metric-label { font-size: 14px; color: #6b7280; font-weight: 500; }

/* Progress bar */
.sdbb-pbar { margin: 12px 0; }
.sdbb-pbar-label {
    display: flex; justify-content: space-between;
    margin-bottom: 6px; font-size: 13px; font-weight: 600;
}
.sdbb-pbar-track {
    height: 10px; background: #eceff6; border-radius: 999px; overflow: hidden;
}
.sdbb-pbar-fill {
    height: 100%; background: #6366f1; border-radius: 999px;
    transition: width .6s ease;
}

/* Quote */
.sdbb-quote {
    padding: 30px 40px; position: relative;
    border-left: 4px solid #6366f1; background: #fafbfe;
    font-style: italic;
}
.sdbb-quote-text { font-size: 20px; line-height: 1.5; margin: 0 0 16px; color: #0b1020; }
.sdbb-quote-author { font-size: 14px; font-weight: 600; font-style: normal; color: #1f2937; }
.sdbb-quote-source { font-size: 13px; color: #6b7280; font-style: normal; }

/* Team grid */
.sdbb-team-grid { display: grid; gap: 24px; }
.sdbb-team-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.sdbb-team-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.sdbb-team-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .sdbb-team-grid { grid-template-columns: 1fr !important; } }
.sdbb-team-card {
    text-align: center; background: #fafbfe;
    padding: 24px; border-radius: 12px; border: 1px solid #eceff6;
}
.sdbb-team-photo {
    width: 110px; height: 110px; border-radius: 50%;
    margin: 0 auto 14px; background-size: cover; background-position: center;
    background-color: #eceff6;
}
.sdbb-team-name { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.sdbb-team-role { font-size: 13px; color: #6366f1; font-weight: 600; margin: 0 0 10px; }
.sdbb-team-bio { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.6; }

/* Text + image split */
.sdbb-textimg {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    align-items: center;
}
.sdbb-textimg.position-right { grid-template-columns: 1fr 1fr; }
.sdbb-textimg.position-left  { direction: rtl; }
.sdbb-textimg.position-left > * { direction: ltr; }
@media (max-width: 768px) { .sdbb-textimg { grid-template-columns: 1fr; } }
.sdbb-textimg-img img { width: 100%; height: auto; border-radius: 8px; display: block; }
.sdbb-textimg h2 { font-size: 32px; margin: 0 0 14px; }

/* Timeline */
.sdbb-timeline { position: relative; padding: 20px 0; }
.sdbb-timeline::before {
    content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
    width: 2px; background: #c7d2fe;
}
.sdbb-timeline-item {
    position: relative; padding: 0 0 30px 50px;
}
.sdbb-timeline-item::before {
    content: ''; position: absolute; left: 8px; top: 4px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #6366f1; border: 3px solid #fff;
    box-shadow: 0 0 0 2px #c7d2fe;
}
.sdbb-timeline-date { font-size: 12px; color: #6366f1; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.sdbb-timeline-title { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.sdbb-timeline-text { color: #6b7280; margin: 0; line-height: 1.6; }

/* Hero */
.sdbb-hero {
    position: relative; background-size: cover; background-position: center;
    display: flex; align-items: center; min-height: 560px; padding: 60px 30px;
}
.sdbb-hero-overlay { position: absolute; inset: 0; }
.sdbb-hero-content { position: relative; max-width: 900px; margin: 0 auto; }
.sdbb-hero-title { font-size: clamp(30px, 5vw, 56px); font-weight: 800; margin: 0 0 16px; line-height: 1.1; }
.sdbb-hero-subtitle { font-size: 18px; opacity: 0.92; margin: 0 0 30px; line-height: 1.5; }
.sdbb-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sdbb-hero-actions.center { justify-content: center; }
.sdbb-hero-actions.right { justify-content: flex-end; }
.sdbb-hero-btn, .sdbb-hero-btn-outline {
    display: inline-block; padding: 14px 32px;
    border-radius: 6px; font-weight: 700; text-decoration: none;
    font-size: 15px;
}
.sdbb-hero-btn { background: #fff; color: #0b1020; }
.sdbb-hero-btn-outline { background: transparent; color: inherit; border: 2px solid currentColor; padding: 12px 30px; }

/* Pricing table */
.sdbb-price-table { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sdbb-price-plan {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 12px;
    padding: 28px 24px; text-align: center; transition: transform .2s;
}
.sdbb-price-plan.is-highlight {
    border-color: #6366f1; transform: scale(1.03);
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.3);
}
.sdbb-price-plan-name { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.sdbb-price-plan-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 0 0 20px; }
.sdbb-price-plan-amount { font-size: 44px; font-weight: 800; line-height: 1; color: #6366f1; }
.sdbb-price-plan-period { color: #6b7280; font-size: 14px; }
.sdbb-price-plan-features { list-style: none; margin: 0 0 24px; padding: 0; text-align: left; }
.sdbb-price-plan-features li { padding: 6px 0; font-size: 14px; color: #475569; border-bottom: 1px solid #f1f5f9; }
.sdbb-price-plan-btn {
    display: block; padding: 12px; background: #6366f1; color: #fff;
    border-radius: 6px; text-decoration: none; font-weight: 600; text-align: center;
}

/* Responsive visibility (common block settings) */
[data-sdbb-anim] {
    opacity: 0;
    will-change: opacity, transform;
    transition-property: opacity, transform;
    transition-duration: var(--sdbb-anim-duration, 600ms);
    transition-delay: var(--sdbb-anim-delay, 0ms);
    transition-timing-function: var(--sdbb-anim-easing, ease-out);
}
[data-sdbb-anim="fade"]        { }
[data-sdbb-anim="fade-up"]     { transform: translateY(40px); }
[data-sdbb-anim="fade-down"]   { transform: translateY(-40px); }
[data-sdbb-anim="fade-left"]   { transform: translateX(40px); }
[data-sdbb-anim="fade-right"]  { transform: translateX(-40px); }
[data-sdbb-anim="slide-up"]    { transform: translateY(60px); }
[data-sdbb-anim="zoom-in"]     { transform: scale(0.85); }
[data-sdbb-anim="zoom-out"]    { transform: scale(1.15); }
[data-sdbb-anim="flip-up"]     { transform: perspective(600px) rotateX(-30deg); transform-origin: center bottom; }
[data-sdbb-anim="flip-down"]   { transform: perspective(600px) rotateX(30deg);  transform-origin: center top; }
[data-sdbb-anim="rotate-in"]   { transform: rotate(-8deg) scale(0.9); }

[data-sdbb-anim].sdbb-anim-in {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    [data-sdbb-anim] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ═════════════════════════════════════════════
   ADVANCED BLOCKS — frontend styles
   ═════════════════════════════════════════════ */

/* Mega Menu */
.sdbb-megamenu { position: relative; display: inline-block; }
.sdbb-megamenu-trigger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; background: transparent; border: 0; cursor: pointer;
    font-size: 14px; font-weight: 600; color: inherit;
}
.sdbb-megamenu-panel {
    position: absolute; top: 100%; left: 0; z-index: 1000;
    padding: 0; display: none;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(11,16,32,0.25);
}
.sdbb-megamenu.is-open .sdbb-megamenu-panel { display: block; }
.sdbb-megamenu-full .sdbb-megamenu-panel { left: 0; right: 0; width: 100vw; }
.sdbb-megamenu-boxed .sdbb-megamenu-panel { width: 1200px; max-width: 96vw; }
.sdbb-megamenu-narrow .sdbb-megamenu-panel { width: 800px; max-width: 96vw; }
.sdbb-megamenu-inner {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px; padding: 28px;
    max-width: 1200px; margin: 0 auto;
}
@media (max-width: 768px) { .sdbb-megamenu-inner { grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; } }
.sdbb-megamenu-col-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px; }
.sdbb-megamenu-col ul { list-style: none; padding: 0; margin: 0; }
.sdbb-megamenu-col li { padding: 5px 0; font-size: 14px; }
.sdbb-megamenu-col li a { color: inherit; text-decoration: none; opacity: 0.85; }
.sdbb-megamenu-col li a:hover { opacity: 1; text-decoration: underline; }
.sdbb-megamenu-col-img { aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 6px; margin-bottom: 10px; }
.sdbb-megamenu-col-featured {
    position: relative; background: linear-gradient(135deg, #6366f1, #8b5cf6);
    background-size: cover; background-position: center;
    min-height: 180px; border-radius: 10px; overflow: hidden;
    display: flex; align-items: flex-end;
}
.sdbb-megamenu-col-featured::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(11,16,32,0.6) 100%);
}
.sdbb-megamenu-featured-body { position: relative; padding: 20px; color: #fff; }
.sdbb-megamenu-featured-body h4 { font-size: 18px; margin: 0 0 4px; color: #fff; }
.sdbb-megamenu-featured-body p { font-size: 14px; opacity: 0.95; margin: 0 0 12px; }
.sdbb-megamenu-cta {
    display: inline-block; padding: 8px 16px;
    background: #fff; color: #0b1020; border-radius: 4px;
    font-size: 13px; font-weight: 700; text-decoration: none;
}

/* Animated Counter */
.sdbb-counters { display: grid; gap: 30px; padding: 20px 0; }
.sdbb-counters-cols-1 { grid-template-columns: 1fr; }
.sdbb-counters-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sdbb-counters-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sdbb-counters-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sdbb-counters-cols-5 { grid-template-columns: repeat(5, 1fr); }
.sdbb-counters-cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 768px) { .sdbb-counters { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .sdbb-counters { grid-template-columns: 1fr !important; } }
.sdbb-counter { padding: 10px; }
.sdbb-counter > i { font-size: 32px; margin-bottom: 10px; display: block; }
.sdbb-counter-num {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
    display: flex; align-items: baseline; gap: 2px;
}
.sdbb-counters.sdbb-align-center .sdbb-counter-num { justify-content: center; }
.sdbb-counters.sdbb-align-right  .sdbb-counter-num { justify-content: flex-end; }
.sdbb-counter-label { font-size: 14px; color: #6b7280; font-weight: 500; }

/* Sticky Scroll Reveal */
.sdbb-sticky-reveal {
    display: grid; gap: 40px;
    padding: 60px 30px; position: relative;
}
.sdbb-sticky-reveal-left  { grid-template-columns: 1fr 1.5fr; }
.sdbb-sticky-reveal-right { grid-template-columns: 1.5fr 1fr; }
.sdbb-sticky-reveal-right .sdbb-sticky-reveal-sticky { order: 2; }
@media (max-width: 900px) {
    .sdbb-sticky-reveal { grid-template-columns: 1fr !important; }
    .sdbb-sticky-reveal-right .sdbb-sticky-reveal-sticky { order: 0; }
}
.sdbb-sticky-reveal-sticky {
    position: sticky; top: 80px; align-self: flex-start;
    min-height: 40vh; display: flex; align-items: center;
}
.sdbb-sticky-reveal-sticky-inner { width: 100%; }
.sdbb-sticky-reveal-sticky h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 16px; color: inherit; line-height: 1.1; }
.sdbb-sticky-reveal-sticky p { font-size: 16px; opacity: 0.85; line-height: 1.6; margin: 0 0 24px; }
.sdbb-sticky-reveal-progress {
    height: 4px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden;
}
.sdbb-sticky-reveal-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 999px;
    transition: width .3s ease;
}
.sdbb-sticky-reveal-scroll { display: flex; flex-direction: column; gap: 24px; }
.sdbb-sticky-panel {
    padding: 40px; border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    min-height: 60vh; display: flex; flex-direction: column; justify-content: center;
    transition: all .5s cubic-bezier(.4, 0, .2, 1);
    opacity: 0.55;
}
.sdbb-sticky-panel.is-active {
    opacity: 1; transform: scale(1.01);
    background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.3);
}
.sdbb-sticky-panel-image {
    aspect-ratio: 16/10; background-size: cover; background-position: center;
    border-radius: 10px; margin-bottom: 20px;
    background-color: rgba(255,255,255,0.08);
}
.sdbb-sticky-panel h3 { font-size: 24px; margin: 0 0 10px; color: inherit; }
.sdbb-sticky-panel p { font-size: 15px; opacity: 0.85; margin: 0; line-height: 1.6; }

/* Quick View */
.sdbb-qv-grid { display: grid; gap: 20px; padding: 20px 0; }
.sdbb-qv-cols-1 { grid-template-columns: 1fr; }
.sdbb-qv-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sdbb-qv-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sdbb-qv-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .sdbb-qv-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .sdbb-qv-grid { grid-template-columns: 1fr !important; } }
.sdbb-qv-card {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 12px;
    overflow: hidden; transition: all .2s;
}
.sdbb-qv-card:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -10px rgba(11, 16, 32, 0.15); }
.sdbb-qv-card-img { display: block; aspect-ratio: 1; background: #eef2f7; }
.sdbb-qv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sdbb-qv-card-body { padding: 14px; text-align: center; }
.sdbb-qv-card-body h4 { font-size: 14px; margin: 0 0 6px; font-weight: 600; }
.sdbb-qv-card-body h4 a { color: inherit; text-decoration: none; }
.sdbb-qv-card-price { font-size: 18px; font-weight: 800; color: #6366f1; margin-bottom: 10px; }
.sdbb-qv-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.sdbb-qv-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.sdbb-qv-modal.is-open { display: flex; animation: sdbb-qv-fade .25s ease; }
@keyframes sdbb-qv-fade { from { opacity: 0; } to { opacity: 1; } }
.sdbb-qv-backdrop {
    position: absolute; inset: 0;
    background: rgba(11,16,32,0.75); backdrop-filter: blur(6px);
}
.sdbb-qv-dialog {
    position: relative;
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 900px; max-height: 92vh;
    overflow: hidden;
    display: flex; flex-direction: column;
    animation: sdbb-qv-scale .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 30px 80px -16px rgba(0,0,0,0.4);
}
@keyframes sdbb-qv-scale { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.sdbb-qv-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(11,16,32,0.1); border: 0; color: #0b1020;
    font-size: 20px; cursor: pointer; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.sdbb-qv-close:hover { background: #dc2626; color: #fff; }
.sdbb-qv-body { padding: 30px; overflow-y: auto; }
.sdbb-qv-loading { padding: 80px; text-align: center; font-size: 32px; color: #6366f1; }
.sdbb-qv-body .sdbb-qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 0; }
@media (max-width: 700px) { .sdbb-qv-body .sdbb-qv-grid { grid-template-columns: 1fr; gap: 20px; } }
.sdbb-qv-image img { width: 100%; border-radius: 10px; display: block; }
.sdbb-qv-info h2 { font-size: 26px; margin: 0 0 10px; line-height: 1.2; }
.sdbb-qv-price { font-size: 30px; font-weight: 800; color: #6366f1; margin-bottom: 18px; }
.sdbb-qv-desc { color: #475569; font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.sdbb-qv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sdbb-qv-empty { padding: 60px; text-align: center; color: #6b7280; }

/* Store Locator */
.sdbb-storeloc { padding: 20px 0; }
.sdbb-storeloc-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin: 0 0 20px; }
.sdbb-storeloc-search {
    position: relative; margin-bottom: 16px;
}
.sdbb-storeloc-search > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #6b7280; pointer-events: none;
}
.sdbb-storeloc-search input {
    width: 100%; padding: 12px 16px 12px 40px;
    border: 1px solid #e5e5e5; border-radius: 10px;
    font-size: 14px; outline: none; background: #fff;
}
.sdbb-storeloc-search input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); }
.sdbb-storeloc-layout {
    display: grid; grid-template-columns: 360px 1fr;
    border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden;
}
@media (max-width: 768px) { .sdbb-storeloc-layout { grid-template-columns: 1fr; height: auto !important; } }
.sdbb-storeloc-list {
    background: #fafbfe; overflow-y: auto; padding: 10px;
    display: flex; flex-direction: column; gap: 8px;
    max-height: 100%;
}
.sdbb-storeloc-item {
    display: flex; flex-direction: column; gap: 5px;
    padding: 14px 16px; background: #fff; border: 1px solid #eceff6;
    border-radius: 10px; cursor: pointer; text-align: left;
    font-family: inherit; transition: all .15s;
}
.sdbb-storeloc-item:hover { border-color: #c7d2fe; transform: translateX(2px); }
.sdbb-storeloc-item.is-active {
    border-color: #6366f1; background: #eef2ff;
    box-shadow: 0 4px 12px -4px rgba(99, 102, 241, 0.3);
}
.sdbb-storeloc-item strong { font-size: 14px; color: #0b1020; }
.sdbb-storeloc-item span {
    font-size: 12px; color: #6b7280;
    display: flex; align-items: flex-start; gap: 6px;
}
.sdbb-storeloc-item span i { font-size: 11px; margin-top: 3px; color: #94a3b8; flex-shrink: 0; }
.sdbb-storeloc-map { position: relative; background: #eef2f7; }
.sdbb-storeloc-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.sdbb-storeloc-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; color: #94a3b8; font-size: 14px; gap: 10px;
}
.sdbb-storeloc-placeholder i { font-size: 48px; color: #cbd5e1; }
.sdbb-storeloc-empty { padding: 40px 20px; text-align: center; color: #94a3b8; font-size: 13px; font-style: italic; }

/* Responsive visibility (common block settings) */
@media (min-width: 1025px) { .sdbb-hide-desktop { display: none !important; } }
@media (min-width: 641px) and (max-width: 1024px) { .sdbb-hide-tablet { display: none !important; } }
@media (max-width: 640px) { .sdbb-hide-mobile { display: none !important; } }

/* Lightbox */
.sdbb-lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sdbb-lightbox-overlay img { max-width: 92%; max-height: 92%; object-fit: contain; }
.sdbb-lightbox-close { position: absolute; top: 20px; right: 20px; background: transparent; border: 0; color: #fff; font-size: 32px; cursor: pointer; }
