/* ==========================================================================
   SAVIONIT CONFIGURATOR — Premium product-page skin
   Visual language matches the previous VPC + vpc-premium.css design.
   ========================================================================== */

body.svc-is-configurable {
    --svc-green: #6fb32c;
    --svc-green-d: #558f1f;
    --svc-ink: #171a16;
    --svc-text: #343833;
    --svc-muted: #7b8178;
    --svc-line: #e7eae4;
    --svc-soft: #f6f8f4;
    --svc-card: #ffffff;
    --svc-radius: 22px;
    --svc-r: 12px;
    overflow-x: clip;
}

/* --------------------------------------------------------------------------
   0. ANTI-FLASH — hide native WooCommerce product markup instantly
   -------------------------------------------------------------------------- */
body.svc-is-configurable .woocommerce-product-gallery,
body.svc-is-configurable .woocommerce-breadcrumb,
body.svc-is-configurable .summary > p.price,
body.svc-is-configurable .summary > span.price,
body.svc-is-configurable .summary > .product_meta,
body.svc-is-configurable .summary > h1.product_title,
body.svc-is-configurable .summary > form.cart,
body.svc-is-configurable div.product > form.cart {
    display: none !important;
}

body.svc-is-configurable .svc-wrap {
    animation: svcFadeIn .25s ease both;
}
@keyframes svcFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   0b. ISOLATION FROM THE THEME'S NATIVE PRODUCT GRID
   premium-style.css forces div.product into its own 2-column CSS grid
   (gallery / .summary), each with padding, background and shadow. Our
   configurator lives inside .summary and lays itself out full-width, so
   that outer grid has to be neutralized here — otherwise the configurator
   gets squeezed into just the summary's half of the page. Selectors and
   breakpoints deliberately mirror premium-style.css's own so this keeps
   winning on specificity even if that file changes column widths later.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    body.svc-is-configurable.woocommerce div.product,
    body.svc-is-configurable .elementor-widget-woocommerce-product-data .product {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
body.svc-is-configurable.woocommerce div.product .summary,
body.svc-is-configurable .elementor-widget-woocommerce-product-data .summary {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    order: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    z-index: auto !important;
}
@media (max-width: 991px) {
    body.svc-is-configurable.woocommerce div.product,
    body.svc-is-configurable .elementor-widget-woocommerce-product-data .product {
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    body.svc-is-configurable.woocommerce div.product .summary,
    body.svc-is-configurable .elementor-widget-woocommerce-product-data .summary {
        display: block !important;
    }
}

/* --------------------------------------------------------------------------
   1. SHELL
   -------------------------------------------------------------------------- */
.svc-wrap,
.svc-wrap * ,
.svc-wrap *::before,
.svc-wrap *::after { box-sizing: border-box; }

.svc-wrap {
    /* Grid mechanics use LTR so column order is deterministic regardless of
       page/theme direction: column 1 (preview) = physical LEFT, column 2
       (panel) = physical RIGHT. Text inside each column is re-declared RTL
       below so content still reads correctly right-to-left. */
    direction: ltr;
    width: min(1453px, calc(100% - 48px));
    max-width: 1453px;
    margin: 34px auto 70px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
    font-family: "Assistant", sans-serif;
    color: var(--svc-text);
}

.svc-preview-wrap,
.svc-panel {
    direction: rtl;
    text-align: right;
}

@media (max-width: 1024px) {
    .svc-wrap { width: calc(100% - 28px); margin-top: 24px; grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   2. PREVIEW / STAGE
   -------------------------------------------------------------------------- */
.svc-preview-wrap { min-width: 0; }

.svc-canvas-card {
    position: relative;
    overflow: hidden;
    background: var(--svc-card);
    border: 1px solid var(--svc-line);
    border-radius: var(--svc-radius);
    box-shadow: 0 16px 50px rgba(23, 26, 22, .055);
}

/* Layer stacking: matches the technique the old VPC plugin used (verified by
 * reading its own CSS), NOT a fixed aspect-ratio box with object-fit. VPC never
 * forces an aspect ratio or scales each image to "contain" independently —
 * doing that assumes every layer PNG shares an identical aspect ratio, and any
 * tiny mismatch between the base photo and an overlay render makes the overlay
 * scale/center differently, which is exactly the "layers don't sit right"
 * mess that was reported. Instead: the BASE image is a normal, non-absolute
 * element that sets the canvas's real size (this is what VPC's own
 * "img:first-child { position: relative }" rule does); every other layer is
 * absolutely stacked on top of it at width:100%, so as long as the layer PNGs
 * share the base's pixel dimensions (they're rendered from the same pipeline),
 * they land in exactly the same place, at exactly the same scale, every time. */
.svc-canvas {
    position: relative;
    width: 100%;
    background: #fbfbf9;
}
.svc-layer {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity .18s ease;
}
.svc-layer.loaded { opacity: 1; }
.svc-layer.svc-base {
    position: relative;
    opacity: 1;
}
.svc-layer:not(.svc-base) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.svc-zoom-btn {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.85) !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important;
}
.svc-zoom-btn svg { width: 19px !important; height: 19px !important; display: block !important; }
.svc-zoom-btn:hover { background: #fff !important; }

/* Price tag now lives as its own card, clearly separated below the image
 * rather than sitting inside .svc-canvas-card and touching the photo. */
.svc-price-tag {
    position: absolute;
    right: 0px;
    left: 0px;
    bottom: -2px;
    z-index: 4;
    margin: 0;
    padding: 10px 10px;
    background: rgba(255,255,255,.92);
    border: 0px solid var(--svc-line);
    border-radius: 0px 0px 8px 8px;
    box-shadow: 0 10px 30px rgba(23, 26, 22, .12);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 15px;
}
.svc-price-tag .svc-pt-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--svc-muted); font-weight: 700; }
.svc-price-tag .svc-pt-row b { color: var(--svc-ink); font-weight: 800; }

@media (min-width: 992px) {
    .svc-price-tag {
        padding: 18px 22px;
        gap: 10px 26px;
        border-radius: 0 0 14px 14px;
    }
    .svc-price-tag .svc-pt-row {
        font-size: 16px;
        gap: 10px;
    }
}

/* Gallery — fixed 4-tile grid; the 4th tile carries a "+N" badge when there
 * are more images than that (server only renders the first 4 + the count). */
.svc-gallery {
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.svc-gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--svc-line);
    border-radius: 14px;
    background: var(--svc-soft);
    opacity: .76;
    cursor: pointer;
    transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.svc-gallery-item:hover { opacity: 1; border-color: var(--svc-green); box-shadow: 0 5px 16px rgba(0,0,0,.06); transform: translateY(-1px); }
.svc-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.svc-gallery-item:hover img { transform: scale(1.05); }
.svc-gallery-more-badge {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(23, 26, 22, .62);
    color: #fff;
    text-align: center;
    line-height: 1.15;
    transition: background .2s ease;
    border-radius: inherit;
}
.svc-gallery-item.svc-gallery-more:hover .svc-gallery-more-badge { background: rgba(23, 26, 22, .74); }
.svc-gallery-more-count { font-size: 27px; font-weight: 850; }
.svc-gallery-more-label { font-size: 12px; font-weight: 700; margin-top: 2px; }
.svc-gallery-item.svc-gallery-more { opacity: 1; }
@media (max-width: 600px) {
    .svc-gallery-more-count { font-size: 20px; }
    .svc-gallery-more-label { font-size: 10.5px; }
}

@media (max-width: 991px) {
    .svc-preview-wrap { position: sticky; top: 0; z-index: 999999; margin-bottom: 12px; }
    .svc-gallery { display: none; }
    .svc-zoom-btn { display: none !important; }

    /* An open row's own head sticks right under the sticky preview image
     * instead of scrolling away with the page. Without this: a row with a
     * long option list (e.g. a "length 150–240cm" selector) can be taller
     * than what's left of the viewport below the image, so the customer has
     * to scroll the page — not just the drawer's own internal scroll — to
     * see the rest of it, and since .svc-row-head sits BEFORE the drawer in
     * normal flow, that scroll carries it up and under the image (z-index
     * 999999 always wins), so the label/close-tap target just disappears.
     * --svc-preview-h is measured live by configurator.js (image height
     * varies per product and isn't known ahead of time) and kept in sync on
     * load/resize; the 12px matches .svc-preview-wrap's own margin-bottom
     * above so the stuck head sits at the same gap it had unstuck. */
    .svc-row.open .svc-row-head {
        position: sticky;
        top: calc(var(--svc-preview-h, 0px) + 12px);
        z-index: 999990;
    }
}

/* --------------------------------------------------------------------------
   3. PANEL
   -------------------------------------------------------------------------- */
.svc-panel {
    background: var(--svc-card);
    border: 1px solid var(--svc-line);
    border-radius: var(--svc-radius);
    padding: 24px;
    box-shadow: 0 16px 50px rgba(23, 26, 22, .055);
    min-width: 0;
}

.svc-product-title {
    margin: 0 0 18px;
    color: var(--svc-ink);
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   4. ACCORDION ROWS (fabric layers + extras)
   -------------------------------------------------------------------------- */
.svc-row {
    border-top: 1px solid var(--svc-line);
}
.svc-row:last-of-type { border-bottom: 1px solid var(--svc-line); }

.svc-row-head {
    display: flex;
    flex-direction: row;   /* physical left→right, independent of RTL semantics */
    direction: ltr;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 62px;
    padding: 10px 2px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: right;
    transition: background .18s ease;
}
.svc-row-head:hover { background: #fbfcfa; }
.svc-row.open .svc-row-head { background: var(--svc-soft); }

.svc-row-arrow {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f3ed;
    border: 1px solid #e7ece3;
    transition: transform .2s ease;
}
.svc-row-arrow::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid #566666;
    border-bottom: 2px solid #566666;
    transform: rotate(45deg);
    display: block;
}
.svc-row.open .svc-row-arrow::before { margin-top: 3px; transform: rotate(225deg); }

.svc-row-value {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 48%;
}
.svc-row-value-text {
    max-width: 105px;
    color: var(--svc-muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.svc-row-value-name {
    max-width: 95px;
    color: #70766e;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.svc-row-swatch {
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #dfe5db, 0 2px 7px rgba(0,0,0,.06);
}

.svc-row-info,
.svc-row-video {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--svc-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 800 14px/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    position: relative;
}

.svc-row-title {
    flex: 1 1 auto;
    min-width: 0;
    direction: rtl;
    text-align: right;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--svc-text);
}

/* Tooltip bubble for extras info */
.svc-tip {
    position: absolute;
    z-index: 40;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 240px;
    background: var(--svc-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    padding: 9px 12px;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    display: none;
}
.svc-tip.show { display: block; }
.svc-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--svc-ink);
}

/* --------------------------------------------------------------------------
   5. DRAWER (open row content)
   -------------------------------------------------------------------------- */
.svc-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(.22,1,.36,1);
}
.svc-row.open .svc-drawer { max-height: 460px; overflow-y: auto; }

.svc-drawer-inner {
    padding: 14px 4px 18px;
    background: #fafbf9;
    border-top: 1px solid #eef0eb;
}

/* Filter trigger — opens the drawer below. !important throughout because a
 * plain <button> here otherwise inherits the theme/WooCommerce default
 * button skin (a red-ish CTA style) instead of this design — the same
 * reason the buy-strip buttons further down need it. */
.svc-filter-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 12px !important;
    padding: 7px 14px !important;
    background: #fff !important;
    border: 1px solid var(--svc-line) !important;
    border-radius: 999px !important;
    font-family: "Assistant", sans-serif !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: var(--svc-text) !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: border-color .18s ease, color .18s ease;
}
.svc-filter-trigger:hover,
.svc-filter-trigger:focus,
.svc-filter-trigger:active { border-color: var(--svc-green) !important; color: var(--svc-green-d) !important; background: #fff !important; }

/* Filter dropdown — a compact card anchored right under the "סינון" button,
 * not a full-screen takeover. .svc-filter-overlay is an invisible,
 * full-viewport click-catcher (position:fixed so it isn't hijacked by any
 * transformed ancestor elsewhere on the page — a sticky header, an animation
 * wrapper — but with no background of its own) that exists only to close the
 * dropdown on an outside click; the visible thing is .svc-filter-sidebar,
 * which configurator.js positions in JS (top/right in px, computed from the
 * trigger button's own on-screen position) so it always opens directly
 * beneath whichever button opened it, as a normal contained dropdown rather
 * than a page-covering modal. Every button in here needs !important — a
 * plain <button> otherwise inherits the theme/WooCommerce default button
 * skin instead of this design, same as the buy-strip buttons further down. */
.svc-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    direction: rtl;
    text-align: right;
    font-family: "Assistant", sans-serif;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.svc-filter-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.svc-filter-sidebar {
    position: fixed;
    /* top/right set inline by JS, anchored to the trigger button */
    width: min(320px, 90vw);
    max-height: min(70vh, 480px);
    background: #fff !important;
    border: 1px solid var(--svc-line);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(0,0,0,.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.svc-filter-level { display: none; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.svc-filter-level.active { display: flex; }

.svc-filter-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--svc-line);
}
.svc-filter-close {
    width: 30px !important;
    height: 30px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--svc-line) !important;
    background: #fff !important;
    color: var(--svc-text) !important;
    font-size: 17px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}
.svc-filter-clearall,
.svc-filter-selectall {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    border: 1px solid var(--svc-line) !important;
    background: #fff !important;
    font-family: "Assistant", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--svc-text) !important;
    box-shadow: none !important;
    cursor: pointer !important;
}
.svc-filter-clearall:hover,
.svc-filter-selectall:hover { border-color: var(--svc-green) !important; color: var(--svc-green-d) !important; background: #fff !important; }
.svc-filter-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px 2px !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    font-family: "Assistant", sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--svc-text) !important;
    cursor: pointer !important;
}

.svc-filter-facet-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 0; margin: 0; list-style: none; }
.svc-filter-facet-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    background: none !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f2ed !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: "Assistant", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--svc-text) !important;
    text-align: right !important;
    cursor: pointer !important;
}
.svc-filter-facet-btn:hover { background: var(--svc-soft) !important; }
.svc-filter-facet-arrow { color: var(--svc-muted); font-size: 11px; margin-inline-end: auto; }
.svc-filter-chosen-count { color: var(--svc-green-d); font-weight: 800; font-size: 12.5px; }

.svc-filter-facet-title { flex: 0 0 auto; padding: 12px 14px 2px; font-size: 12px; font-weight: 800; color: var(--svc-muted); }
.svc-filter-options-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding: 0 6px; list-style: none; }
.svc-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 8px;
    border-bottom: 1px solid #f0f2ed;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--svc-text);
    cursor: pointer;
}
.svc-filter-checkbox { width: 17px; height: 17px; accent-color: var(--svc-green); flex: 0 0 17px; cursor: pointer; }
.svc-filter-option-swatch {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.10);
    flex: 0 0 17px;
}
.svc-filter-option-name { flex: 1 1 auto; }
.svc-filter-option-count { color: var(--svc-muted); font-weight: 700; font-size: 12px; }

.svc-filter-footer { flex: 0 0 auto; padding: 12px 14px; border-top: 1px solid var(--svc-line); }
.svc-filter-apply {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    background: #20231f !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 11px !important;
    box-shadow: none !important;
    font-family: "Assistant", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
.svc-filter-apply:hover { background: #303530 !important; }

.svc-group { margin-bottom: 14px; }
.svc-group-title { margin: 0 0 10px; color: #61665d; font-size: 13px; font-weight: 800; }

.svc-swatch-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 6px;
}
.svc-swatch {
    text-align: center;
    cursor: pointer;
}
.svc-sw-circle {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 auto 5px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dfe5db, 0 2px 7px rgba(0,0,0,.07);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.svc-sw-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-swatch:hover .svc-sw-circle { box-shadow: 0 0 0 2px rgba(111,179,44,.42); }
.svc-swatch.sel .svc-sw-circle { box-shadow: 0 0 0 2px var(--svc-green), 0 3px 9px rgba(0,0,0,.10); }
.svc-swatch.sel .svc-sw-circle::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,50,20,.30);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}
.svc-sw-label {
    font-size: 11px;
    line-height: 1.25;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.svc-sw-price { font-size: 10.5px; font-weight: 700; color: var(--svc-green-d); }
.svc-row-value-price { font-size: 10.5px; font-weight: 700; color: var(--svc-green-d); margin-inline-end: 2px; }
/* Simple two-option drawer used for extras (ללא / הבחירה) */
.svc-choice-list { display: flex; flex-direction: column; gap: 8px; }
.svc-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--svc-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
}
.svc-choice:hover { border-color: var(--svc-green); }
.svc-choice.sel { border-color: var(--svc-green); background: var(--svc-soft); box-shadow: 0 0 0 1px var(--svc-green) inset; }
.svc-choice-price { color: var(--svc-green-d); font-weight: 800; font-size: 12px; }

/* --------------------------------------------------------------------------
   6. BUY STRIP
   -------------------------------------------------------------------------- */
.svc-buy-strip { margin-top: 18px; }

.svc-price-breakdown {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    margin: 0 0 12px;
    background: var(--svc-soft);
    border: 1px solid #e9ede6;
    border-radius: 14px;
}
.svc-price-lines { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.svc-price-lines span { font-size: 12.5px; color: var(--svc-muted); font-weight: 700; }
.svc-price-total { font-size: 30px; line-height: 1; font-weight: 850; color: var(--svc-ink); }

/* Exact values pulled from vpc-premium.css's own final cascade (the design
 * you asked to match precisely, not a redesign): pill-shaped info/WhatsApp
 * buttons, and add-to-cart + qty stepper fused into one continuous bar
 * (rounded only on the outer corners) instead of two separate boxes. */
.svc-actions {
    display: flex;
    gap: 10px;
    margin: 0 0 10px;
}
/* .svc-btn-info is a <button>, .svc-btn-wa is an <a> — the theme's default
 * WordPress button skin only targets real <button>/<input type=button>
 * elements, so without !important on every box-model property here (not
 * just color) the info button silently drifts from the WhatsApp button's
 * shape/size once the theme's own button rules win the cascade. Same
 * !important pattern as the rest of the plugin's buttons. */
.svc-btn-info,
.svc-btn-wa {
    flex: 1 1 calc(50% - 5px) !important;
    height: 37px !important;
    min-height: 37px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 13px !important;
    margin: 0 !important;
    border-radius: 24px !important;
    font-family: "Assistant", sans-serif !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}
.svc-btn-info { color: #fff !important; background: #20231f !important; border-color: #20231f !important; }
.svc-btn-wa { color: #fff !important; background: var(--svc-green) !important; border-color: var(--svc-green) !important; }
.svc-btn-info:hover, .svc-btn-wa:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(0,0,0,.09) !important; }
.svc-btn-info:visited, .svc-btn-wa:visited,
.svc-btn-info:focus, .svc-btn-wa:focus,
.svc-btn-info:active, .svc-btn-wa:active { color: #fff !important; }

.svc-cart-row { display: flex; gap: 0; }
.svc-add-btn {
    flex: 0 0 50% !important;
    width: 50% !important;
    height: 64px !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 0 12px !important;
    color: #fff !important;
    background: var(--svc-green) !important;
    border: 0 !important;
    border-radius: 16px 0 0 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.svc-add-btn:hover { background: var(--svc-green-d) !important; color: #fff !important; }
.svc-add-btn:focus, .svc-add-btn:active { color: #fff !important; }
.svc-add-btn:disabled { opacity: .65; cursor: wait; }

.svc-qty {
    flex: 0 0 50%;
    width: 50%;
    height: 64px;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    background: #fff !important;
    border: 1px solid #dedede !important;
    border-left: 0 !important;
    border-radius: 0 16px 16px 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
}
.svc-qty-btn,
.svc-qty-input {
    flex: 1 1 33.333% !important;
    width: 33.333% !important;
    height: 62px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #1f272c !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-family: "Assistant", sans-serif !important;
}
.svc-qty-btn {
    font-size: 20px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}
.svc-qty-input {
    font-size: 17px !important;
    font-weight: 700 !important;
}

@media (max-width: 480px) {
    .svc-actions { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   7. MODAL — fabric info popup
   -------------------------------------------------------------------------- */
.svc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,17,15,.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    z-index: 2147483647;
}
.svc-modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.svc-modal {
    position: relative;
    width: min(880px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.svc-modal h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--svc-ink); }
.svc-modal p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--svc-text); }
.svc-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--svc-soft);
    border: 1px solid var(--svc-line);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.svc-modal-videos {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.svc-modal-videos iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 12px;
}
@media (max-width: 720px) {
    .svc-modal-videos { grid-template-columns: 1fr; }
}
.svc-modal-videos-single { grid-template-columns: 1fr; }
.svc-modal-video-only { width: min(720px, 100%); padding: 16px; }

/* --------------------------------------------------------------------------
   8. LIGHTBOX — image zoom
   -------------------------------------------------------------------------- */
.svc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15,17,15,.90);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
    z-index: 2147483647;
}
.svc-lightbox.active { opacity: 1; visibility: visible; pointer-events: auto; }
.svc-lightbox img {
    max-width: min(1240px, 100%);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 14px;
    background: #f7f8f5;
}
.svc-lightbox-close {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 24px !important;
    left: 24px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid #e5e9e2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important;
}
.svc-lightbox-close svg { width: 18px !important; height: 18px !important; display: block !important; }
.svc-lightbox-close:hover { background: #fff !important; }
.svc-lightbox-nav {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid #e5e9e2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important;
}
.svc-lightbox-prev { left: 24px !important; }
.svc-lightbox-next { right: 24px !important; }
.svc-lightbox-nav svg { width: 22px !important; height: 22px !important; display: block !important; }
.svc-lightbox-nav:hover { background: #fff !important; }
.svc-lightbox:not(.svc-lightbox-has-nav) .svc-lightbox-nav { display: none !important; }
@media (max-width: 600px) {
    .svc-lightbox-prev { left: 10px !important; }
    .svc-lightbox-next { right: 10px !important; }
    .svc-lightbox-nav { width: 40px !important; height: 40px !important; }
}

/* --------------------------------------------------------------------------
   9. MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .svc-wrap { width: calc(100% - 16px); margin: 14px auto 38px; }
    .svc-panel { padding: 15px 13px; border-radius: 16px; box-shadow: 0 8px 28px rgba(23,26,22,.045); }
    .svc-product-title { font-size: 19px; margin-bottom: 12px; }
    .svc-canvas-card, .svc-canvas { border-radius: 16px; }
    .svc-row-head { min-height: 56px; padding: 7px 2px; gap: 8px; }
    .svc-row-title { font-size: 13.5px; }
    .svc-row-value-text, .svc-row-value-name { max-width: 58px; font-size: 10.5px; }
    .svc-row-swatch { width: 30px; height: 30px; }
    .svc-price-total { font-size: 27px; }
    .svc-sw-circle { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
    .svc-wrap { width: calc(100% - 12px); }
    .svc-panel { padding: 13px 11px; }
    .svc-product-title { font-size: 24px; }
    
    body.svc-is-configurable .savionit-header {
    position: relative !important;
    top: auto !important;
}
}

.svc-cart-row {
    display: flex;
    flex-direction: row-reverse !important;
    gap: 0;
}