﻿.single-product .product {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.single-product .woocommerce-product-gallery,
.single-product .entry-summary,
body.single-product main#wp--skip-link--target {
    display: none !important;
}

.leo-product {
    --fabric: #b7aa98;
    --fabric-dark: #8f8476;
    --fabric-image: none;
    --photo-filter: sepia(0.15) saturate(0.9) hue-rotate(0deg);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.72fr);
    gap: 42px;
    align-items: start;
    color: #181816;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.leo-theme-landscape-7 { --fabric: #777e6b; --fabric-dark: #59604f; --photo-filter: sepia(.18) saturate(.7) hue-rotate(45deg); }
.leo-theme-raven-12 { --fabric: #5c6166; --fabric-dark: #3f454a; --photo-filter: grayscale(.75) brightness(.72) contrast(1.08); }
.leo-theme-moss-4 { --fabric: #8f9679; --fabric-dark: #6c735c; --photo-filter: sepia(.12) saturate(.75) hue-rotate(58deg); }
.leo-theme-shell-1 { --fabric: #d8d0c4; --fabric-dark: #b9afa1; --photo-filter: sepia(.12) saturate(.55) brightness(1.08); }
.leo-theme-terra-8 { --fabric: #9d6e5b; --fabric-dark: #794c3d; --photo-filter: sepia(.36) saturate(.95) hue-rotate(-18deg); }

.leo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.leo-shot {
    min-height: 390px;
    margin: 0;
    border-radius: 6px;
    background: #f3f0ea;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leo-photo-shot {
    min-height: 390px;
    background: #fff;
}

.leo-shot-1 {
    grid-column: span 2;
    min-height: 560px;
}

.leo-photo-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--photo-filter);
    transform: scale(1.015);
    transition: filter 220ms ease, transform 220ms ease, object-position 220ms ease;
}

.leo-shot-2 img { object-position: 50% 45%; }
.leo-shot-3 img { object-position: 42% 52%; transform: scale(1.18); }
.leo-shot-4 img { object-position: 58% 48%; transform: scale(1.28); }

.leo-layout-left .leo-photo-shot img {
    transform: scaleX(-1) scale(1.015);
}

.leo-layout-left .leo-shot-3 img {
    transform: scaleX(-1) scale(1.18);
}

.leo-layout-left .leo-shot-4 img {
    transform: scaleX(-1) scale(1.28);
}

.leo-width-235 .leo-photo-shot img {
    object-position: 56% 50%;
    transform: scale(1.18);
}

.leo-width-235.leo-layout-left .leo-photo-shot img {
    object-position: 44% 50%;
    transform: scaleX(-1) scale(1.18);
}

.leo-width-235 .leo-shot-1 img {
    transform: scale(1.1);
}

.leo-width-235.leo-layout-left .leo-shot-1 img {
    transform: scaleX(-1) scale(1.1);
}

.leo-width-235 .leo-shot::before {
    content: "235 cm";
    position: absolute;
    left: 18px;
    top: 16px;
    z-index: 3;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: #37342e;
    font-size: 12px;
}

.leo-photo-tint {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--fabric) 86%, #fff), color-mix(in srgb, var(--fabric-dark) 82%, #000)),
        var(--fabric-image);
    background-color: var(--fabric);
    background-position: center;
    background-size: cover;
    mix-blend-mode: color;
    opacity: .62;
    pointer-events: none;
    z-index: 2;
}

.leo-photo-tint::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--fabric-image) center / cover no-repeat;
    mix-blend-mode: multiply;
    opacity: .32;
    filter: contrast(1.22) saturate(1.18);
}

.leo-has-fabric-image .leo-photo-tint {
    opacity: .76;
}

.leo-has-fabric-image .leo-photo-shot img {
    filter: grayscale(.72) contrast(1.12) brightness(1.05);
}

.leo-shot figcaption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #37342e;
    font-size: 13px;
    z-index: 3;
}

.leo-layout-preview {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 52px;
    height: 38px;
    color: #191816;
    background: rgba(255,255,255,.82);
    border-radius: 4px;
    padding: 5px;
    z-index: 3;
}

.leo-layout-left .leo-layout-preview svg {
    transform: scaleX(-1);
}

.leo-sofa {
    width: min(82%, 520px);
    aspect-ratio: 1.55;
    position: relative;
    transform: perspective(950px) rotateX(52deg) rotateZ(-28deg);
    filter: drop-shadow(24px 26px 22px rgba(42, 38, 32, 0.22));
}

.leo-sofa span {
    display: block;
    position: absolute;
    background: var(--fabric);
    border: 1px solid rgba(42, 36, 30, 0.12);
    transition: background 180ms ease;
}

.leo-sofa-back { width: 88%; height: 28%; left: 6%; top: 5%; border-radius: 18px 18px 8px 8px; }
.leo-sofa-seat { width: 62%; height: 42%; left: 6%; top: 32%; border-radius: 10px; }
.leo-sofa-chaise { width: 36%; height: 70%; right: 6%; top: 32%; border-radius: 10px; background: var(--fabric-dark) !important; }
.leo-sofa-arm { width: 10%; height: 48%; top: 26%; border-radius: 12px; background: var(--fabric-dark) !important; }
.leo-sofa-arm-left { left: 0; }
.leo-sofa-arm-right { right: 0; height: 76%; }
.leo-sofa-leg { width: 4%; height: 9%; bottom: -2%; background: #2c2924 !important; border-radius: 2px; }
.leo-leg-1 { left: 12%; }
.leo-leg-2 { left: 56%; }
.leo-leg-3 { right: 12%; }
.leo-layout-left .leo-sofa { transform: perspective(950px) rotateX(52deg) rotateZ(28deg) scaleX(-1); }

.leo-texture-shot {
    background:
        radial-gradient(circle at 24% 18%, rgba(255,255,255,.45), transparent 24%),
        repeating-linear-gradient(135deg, color-mix(in srgb, var(--fabric) 82%, #fff), var(--fabric) 9px, var(--fabric-dark) 12px);
}

.leo-summary {
    position: sticky;
    top: 32px;
    padding: 28px 16px 24px;
    background: #fff;
}

.leo-kicker { margin: 0 0 8px; color: #716b60; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.leo-summary h1 { margin: 0; font-size: clamp(31px, 4vw, 52px); line-height: 1.02; font-weight: 560; letter-spacing: 0; }
.leo-rating { display: flex; gap: 14px; align-items: center; margin-top: 14px; font-size: 14px; }
.leo-rating span { font-weight: 650; }
.leo-rating a, .leo-link-button { color: #555149; text-decoration: underline; text-underline-offset: 3px; }
.leo-price { margin: 22px 0 4px; font-size: 24px; font-weight: 620; }
.leo-tax { margin: 0 0 20px; color: #6e695f; font-size: 14px; }

.leo-option-block {
    padding: 18px 0;
}

.leo-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 650;
}

.leo-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.leo-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.leo-option-block--sleepType .leo-choice-grid {
    grid-template-columns: 1fr;
}

.leo-option-block--sleepType .leo-choice {
    min-height: 66px;
    grid-template-columns: 48px minmax(0, 1fr);
}

.leo-option-block--sleepType .leo-choice-copy strong {
    line-height: 1.25;
}

.leo-choice {
    min-height: 52px;
    padding: 9px 12px;
    border: 1px solid #d8d4ce;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    position: relative;
    color: #403d37;
}

.leo-choice-icon {
    width: 48px;
    height: 30px;
    display: grid;
    place-items: center;
}

.leo-choice-icon svg {
    width: 48px;
    height: 30px;
}

.leo-choice-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.leo-choice-copy strong {
    font-size: 14px;
    font-weight: 540;
}

.leo-choice-copy small {
    color: #79736a;
    font-size: 12px;
}

.leo-choice.is-active,
.leo-swatch.is-active {
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
}

.leo-choice.is-active::after,
.leo-swatch.is-active::after {
    content: "\2713";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    background: #050505;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.leo-swatches {
    display: grid;
    grid-template-columns: repeat(7, minmax(54px, 1fr));
    gap: 10px;
}

.leo-fabric-library {
    display: grid;
    gap: 14px;
    align-items: start;
}

.leo-fabric-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    border-radius: 8px;
    background: #eee8dc;
    scroll-snap-type: x mandatory;
}

.leo-fabric-tab {
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #fff;
    color: #393631;
    font-size: 12px;
    font-weight: 620;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.leo-fabric-tab small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    margin-left: 6px;
    border-radius: 999px;
    background: #eee8dc;
    color: #776f63;
    font-size: 11px;
}

.leo-fabric-tab.is-active {
    border-color: #151411;
    background: #151411;
    color: #fff;
}

.leo-fabric-tab.is-active small {
    background: #fff;
    color: #151411;
}

.leo-fabric-panel[hidden] {
    display: none;
}

.leo-fabric-panel {
    max-height: 342px;
    overflow: auto;
    padding-right: 4px;
}

.leo-swatch,
.leo-more-swatches {
    aspect-ratio: 1;
    height: auto;
    min-height: 74px;
    border: 1px solid #d1cac0;
    border-radius: 8px;
    background: var(--swatch);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.leo-swatch::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.65), transparent 18%),
        radial-gradient(circle at 70% 60%, rgba(0,0,0,.16), transparent 24%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 4px, rgba(0,0,0,.07) 5px 9px),
        var(--swatch);
    filter: saturate(.9);
}

.leo-texture-raven::before { filter: grayscale(.7) contrast(1.15); }
.leo-texture-terra::before { filter: sepia(.28) saturate(1.15); }
.leo-texture-shell::before { filter: brightness(1.12) saturate(.7); }
.leo-texture-fabric::before {
    background:
        radial-gradient(circle at 24% 22%, color-mix(in srgb, var(--swatch) 65%, #fff), transparent 18%),
        radial-gradient(circle at 72% 68%, color-mix(in srgb, var(--swatch-dark) 70%, #000), transparent 24%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.28) 0 4px, rgba(0,0,0,.08) 5px 9px),
        linear-gradient(145deg, color-mix(in srgb, var(--swatch) 88%, #fff), var(--swatch-dark));
}

.leo-swatch.has-image::before {
    background: var(--swatch-image) center / cover no-repeat;
    filter: none;
}

.leo-swatch-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.leo-swatch-code {
    position: absolute;
    left: 7px;
    bottom: 7px;
    z-index: 2;
    display: inline-flex;
    min-width: 27px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(20, 18, 15, .9);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.leo-more-swatches {
    background: #fff;
    color: #615b53;
    font-size: 14px;
}

.leo-fabric-current {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    color: #5f594f;
    font-size: 14px;
}

.leo-fabric-price-note {
    color: #171613;
    font-weight: 620;
}

.leo-delivery {
    border-top: 1px solid #ddd7cc;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #615b51;
}

.leo-delivery strong { color: #181816; }
.leo-actions { display: grid; grid-template-columns: .9fr 1.2fr; gap: 10px; }
.leo-save, .leo-cart-button, .leo-custom-start { min-height: 52px; border-radius: 4px !important; font-size: 15px !important; font-weight: 620 !important; }
.leo-save { border: 1px solid #171613; background: #fff; cursor: pointer; }
.leo-cart-button { background: #171613 !important; color: #fff !important; }
.leo-custom-start {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #171613;
    background: #f4f0ea;
    color: #171613;
    text-decoration: none;
}

.leo-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    color: #4d493f;
    font-size: 14px;
}

.leo-benefits span { border-top: 1px solid #ddd7cc; padding-top: 12px; }

.leo-builder,
.leo-details, .leo-related {
    max-width: 1040px;
    margin: 42px auto 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.leo-builder {
    max-width: 1440px;
    padding: clamp(38px, 6vw, 72px) 24px;
    border-top: 1px solid #ded8cf;
}

.leo-builder-hidden,
.leo-builder[hidden] {
    display: none !important;
}

.leo-builder-head {
    display: grid;
    gap: 12px;
    max-width: 900px;
    margin-bottom: 28px;
}

.leo-builder-head p {
    margin: 0;
    color: #716b60;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.leo-builder-head h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1;
    font-weight: 540;
    letter-spacing: 0;
}

.leo-builder-head span {
    max-width: 760px;
    color: #5f594f;
    line-height: 1.7;
}

.leo-builder-shell {
    display: grid;
    grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr) minmax(280px, .42fr);
    gap: 18px;
    align-items: stretch;
}

.leo-builder-tools,
.leo-builder-summary {
    border: 1px solid #ded8cf;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.leo-builder-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leo-builder-tools strong {
    margin-bottom: 6px;
}

.leo-builder-tools button,
.leo-builder-form button {
    min-height: 44px;
    border: 1px solid #d8d2c8;
    border-radius: 4px;
    background: #fff;
    color: #171613;
    font: inherit;
    cursor: pointer;
}

.leo-builder-tools button:hover {
    border-color: #171613;
}

.leo-builder-tools .leo-builder-clear {
    margin-top: auto;
    background: #f4f0ea;
}

.leo-builder-stage-wrap {
    min-height: 580px;
    border-radius: 8px;
    background: #f4f0ea;
    padding: 16px;
}

.leo-builder-stage {
    height: 100%;
    min-height: 548px;
    border: 1px solid #d6cec1;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(25,24,22,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25,24,22,.06) 1px, transparent 1px),
        #fffdf9;
    background-size: 24px 24px;
    touch-action: none;
}

.leo-builder-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #80786c;
    text-align: center;
    pointer-events: none;
}

.leo-builder-placeholder[hidden] {
    display: none;
}

.leo-builder-item {
    position: absolute;
    border: 2px solid rgba(25,24,22,.68);
    border-radius: 8px;
    background: #c8bbab;
    color: #25211c;
    box-shadow: 0 12px 22px rgba(42, 36, 30, .12);
    cursor: grab;
    user-select: none;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    text-align: center;
    padding: 8px;
}

.leo-builder-item.is-dragging {
    cursor: grabbing;
    z-index: 8;
    box-shadow: 0 18px 34px rgba(42, 36, 30, .2);
}

.leo-builder-item.is-rotated {
    transform: rotate(90deg);
}

.leo-builder-item span {
    font-size: 12px;
    font-weight: 700;
}

.leo-builder-item small {
    font-size: 11px;
}

.leo-builder-item button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: #171613;
    color: #fff;
    position: absolute;
    top: -9px;
    display: grid;
    place-items: center;
    cursor: pointer;
    line-height: 1;
}

.leo-builder-item [data-builder-rotate] {
    left: -9px;
}

.leo-builder-item [data-builder-remove] {
    right: -9px;
}

.leo-module-corner {
    background: linear-gradient(135deg, #c8bbab 0 48%, #a89d8f 49% 100%);
}

.leo-module-chaise {
    background: #b9ad9d;
}

.leo-module-arm {
    background: #93897d;
    color: #fff;
}

.leo-module-pouf {
    border-radius: 14px;
    background: #d2c7b8;
}

.leo-builder-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leo-builder-summary > p {
    margin: 0;
    color: #716b60;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.leo-builder-summary > strong {
    font-size: 30px;
    line-height: 1;
}

.leo-builder-summary > span {
    color: #5f594f;
}

.leo-builder-form {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.leo-builder-form label {
    display: grid;
    gap: 6px;
    color: #514b43;
    font-size: 13px;
}

.leo-builder-form input,
.leo-builder-form textarea {
    width: 100%;
    border: 1px solid #d8d2c8;
    border-radius: 4px;
    padding: 11px 12px;
    background: #fff;
    color: #171613;
    font: inherit;
}

.leo-builder-form button {
    min-height: 50px;
    border-color: #171613;
    background: #171613;
    color: #fff;
    font-weight: 700;
}

.leo-builder-form em {
    min-height: 20px;
    color: #35704c;
    font-style: normal;
    line-height: 1.45;
}

.leo-builder-pro {
    max-width: 1460px;
    padding: clamp(34px, 5vw, 64px) clamp(12px, 3vw, 28px);
}

.leo-builder-tabs {
    display: flex;
    justify-content: center;
    gap: clamp(22px, 4vw, 48px);
    border-bottom: 1px solid #ded8cf;
    margin: -6px 0 0;
}

.leo-builder-tabs a {
    color: #26231f;
    text-decoration: none;
    padding: 14px 0 12px;
    border-bottom: 3px solid transparent;
    font-weight: 620;
}

.leo-builder-tabs a.is-active { border-color: #171613; }

.leo-builder-pro .leo-builder-shell {
    grid-template-columns: 176px minmax(540px, 1fr) 326px;
    gap: 0;
    min-height: 760px;
    border: 1px solid #ded8cf;
    border-top: 0;
    background: #fff;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.leo-builder-pro .leo-builder-tools,
.leo-builder-pro .leo-builder-summary {
    border: 0;
    border-radius: 0;
}

.leo-builder-pro .leo-builder-tools {
    max-height: 760px;
    overflow-y: auto;
    padding: 18px 12px;
    border-right: 1px solid #ded8cf;
    background: #fff;
}

.leo-builder-pro .leo-builder-tools strong {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #625c52;
}

.leo-module-card {
    min-height: 132px;
    display: grid;
    place-items: center;
    gap: 6px;
    position: relative;
    padding: 12px 8px 10px;
    border: 1px solid #ded8cf;
    border-radius: 6px;
    background: #fff;
    text-align: center;
}

.leo-module-card:hover,
.leo-module-card.is-active {
    border-color: #171613;
    background: #f6f4ef;
}

.leo-module-card span:not(.leo-module-thumb) {
    font-size: 13px;
    line-height: 1.2;
}

.leo-module-card small {
    color: #5e574d;
    font-size: 11px;
}

.leo-module-card b {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: #171613;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(0,0,0,.24);
}

.leo-module-thumb {
    width: 74px;
    height: 58px;
    position: relative;
    display: block;
}

.leo-module-thumb::before,
.leo-module-thumb::after,
.leo-module-thumb i {
    content: "";
    position: absolute;
    border: 2px solid #55514b;
    background: rgba(255,255,255,.55);
}

.leo-thumb-seat::before { inset: 8px 18px; }
.leo-thumb-seat i { left: 18px; right: 18px; top: 27px; height: 0; }
.leo-thumb-corner::before { left: 8px; top: 8px; width: 44px; height: 34px; }
.leo-thumb-corner::after { left: 8px; top: 8px; width: 28px; height: 48px; }
.leo-thumb-chaise-left::before { left: 10px; top: 12px; width: 48px; height: 24px; }
.leo-thumb-chaise-left::after { left: 10px; top: 12px; width: 28px; height: 42px; }
.leo-thumb-sleep::before { left: 8px; top: 12px; width: 56px; height: 32px; }
.leo-thumb-sleep i { left: 8px; right: 10px; top: 28px; height: 0; }
.leo-thumb-chaise-right::before { left: 12px; top: 12px; width: 48px; height: 24px; }
.leo-thumb-chaise-right::after { right: 12px; top: 12px; width: 28px; height: 42px; }
.leo-thumb-arm-left::before { left: 7px; top: 14px; width: 60px; height: 24px; }
.leo-thumb-arm-left::after { left: 7px; top: 14px; width: 24px; height: 42px; }
.leo-thumb-arm-right::before { left: 7px; top: 14px; width: 60px; height: 24px; }
.leo-thumb-arm-right::after { right: 7px; top: 14px; width: 24px; height: 42px; }

.leo-builder-pro .leo-builder-stage-wrap {
    min-width: 540px;
    min-height: 760px;
    padding: 26px 24px 18px;
    border-radius: 0;
    background: #f4f4ef;
    display: grid;
    grid-template-rows: 1fr auto auto auto;
    gap: 12px;
}

.leo-builder-pro .leo-builder-stage {
    min-height: 590px;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 25% 18%, rgba(255,255,255,.82), transparent 24%),
        linear-gradient(rgba(42,39,34,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42,39,34,.045) 1px, transparent 1px),
        #f2f2ed;
    background-size: auto, 22px 22px, 22px 22px, auto;
}

.leo-builder-pro .leo-builder-placeholder {
    max-width: 300px;
    margin: auto;
    color: #756f65;
    line-height: 1.55;
}

.leo-builder-item {
    border: 2px solid rgba(58,54,48,.62);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,0) 48%), #d6cebd;
    box-shadow: inset 0 0 0 10px rgba(255,255,255,.16), 0 14px 24px rgba(54,49,42,.12);
    padding: 14px 12px;
    overflow: visible;
}

.leo-builder-item::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-top: 2px solid rgba(75,70,62,.34);
    border-left: 2px solid rgba(75,70,62,.24);
    border-radius: 10px;
    pointer-events: none;
}

.leo-builder-item.is-selected {
    border-color: #171613;
    box-shadow: inset 0 0 0 10px rgba(255,255,255,.18), 0 16px 28px rgba(30,28,24,.18);
}

.leo-builder-item span {
    max-width: 100%;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.2;
    z-index: 1;
}

.leo-builder-item small {
    color: #514b43;
    font-size: 11px;
    z-index: 1;
}

.leo-builder-item .leo-measure {
    position: absolute;
    color: #34312c;
    font-size: 10px;
    font-style: normal;
    line-height: 1;
    pointer-events: none;
}

.leo-measure-top {
    left: 8px;
    right: 8px;
    top: -22px;
    border-top: 1px solid #34312c;
    padding-top: 4px;
}

.leo-measure-side {
    top: 8px;
    bottom: 8px;
    right: -34px;
    writing-mode: vertical-rl;
    border-right: 1px solid #34312c;
    padding-right: 4px;
}

.leo-module-corner { background: linear-gradient(135deg, #d8d0bf 0 58%, #c5bbaa 59% 100%); }
.leo-module-chaise { background: #d2c8b8; }
.leo-module-sleep { background: #cfc5b4; }
.leo-module-arm { background: #c7bbaa; color: #25211c; }

.leo-builder-toast {
    position: absolute;
    right: 18px;
    bottom: 18px;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    border-radius: 6px;
    background: #3e9a57;
    color: #fff;
    padding: 14px 18px;
    box-shadow: 0 14px 30px rgba(35,80,48,.22);
    transition: opacity .2s ease, transform .2s ease;
}

.leo-builder-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.leo-builder-accept,
.leo-builder-pdf {
    min-height: 54px;
    border: 1px solid #171613;
    border-radius: 6px;
    font: inherit;
    font-weight: 720;
    cursor: pointer;
}

.leo-builder-accept {
    background: #171613;
    color: #fff;
}

.leo-builder-pdf {
    background: #fff;
    color: #171613;
}

.leo-builder-delivery {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid #ded8cf;
    border-radius: 8px;
    background: #fff;
    color: #4d473f;
}

.leo-builder-delivery strong { color: #171613; }

.leo-builder-pro .leo-builder-summary {
    min-width: 326px;
    max-height: 760px;
    overflow-y: auto;
    padding: 26px 18px;
    border-left: 1px solid #ded8cf;
    background: #fff;
}

.leo-builder-field {
    display: grid;
    gap: 8px;
    color: #3d3933;
    font-weight: 650;
}

.leo-builder-field input {
    min-height: 46px;
    border: 1px solid #cfc8bc;
    border-radius: 5px;
    padding: 10px 12px;
    font: inherit;
}

.leo-builder-switch {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    gap: 14px;
    font-weight: 650;
}

.leo-builder-switch input {
    position: absolute;
    opacity: 0;
}

.leo-builder-switch i {
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #171613;
    position: relative;
}

.leo-builder-switch i::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 999px;
    background: #fff;
    transition: transform .18s ease;
}

.leo-builder-switch input:checked + i::after { transform: translateX(22px); }

.leo-builder-addon {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px;
    border: 1px solid #cfc8bc;
    border-radius: 6px;
    background: #f8f6f2;
}

.leo-mini-layout {
    width: 34px;
    height: 22px;
    position: relative;
    display: inline-block;
}

.leo-mini-layout::before,
.leo-mini-layout::after {
    content: "";
    position: absolute;
    border: 2px solid #69645d;
    background: rgba(255,255,255,.55);
}

.leo-mini-layout::before { left: 0; top: 4px; width: 28px; height: 12px; }
.leo-mini-layout::after { right: 0; top: 4px; width: 12px; height: 18px; }
.leo-mini-layout.left::after { left: 0; right: auto; }
.leo-mini-layout.left::before { left: 6px; }

.leo-builder-swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.leo-builder-swatches button {
    aspect-ratio: 1;
    border: 1px solid #d8d2c8;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,.5), transparent 42%), repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 6px, rgba(0,0,0,.1) 6px 10px), var(--swatch);
    cursor: pointer;
}

.leo-builder-swatches button.has-image {
    background: var(--swatch-image) center / cover no-repeat;
}

.leo-builder-swatches button.is-active {
    border: 2px solid #171613;
    box-shadow: inset 0 0 0 2px #fff;
}

.leo-builder-fabric-label {
    color: #5f594f;
    font-size: 13px;
}

.leo-builder-orientation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.leo-builder-orientation button {
    min-height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8d2c8;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.leo-builder-orientation button.is-active { border: 2px solid #171613; }

.leo-builder-pro .leo-builder-form { padding-top: 4px; }

.leo-builder-pro .leo-builder-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    padding: 12px;
    isolation: isolate;
}

.leo-builder-pro .leo-builder-item::before {
    display: none;
}

.leo-builder-plan {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.leo-builder-plan .piece {
    position: absolute;
    border: 2px solid rgba(58,54,48,.68);
    background:
        linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,0) 48%),
        #d6cebd;
    border-radius: 16px;
    box-shadow: inset 0 0 0 10px rgba(255,255,255,.16), 0 14px 24px rgba(54,49,42,.1);
}

.leo-builder-plan .piece.main {
    inset: 0;
}

.leo-builder-plan .piece.top {
    left: 0;
    right: 0;
    top: 0;
    height: 48%;
}

.leo-builder-plan .piece.left {
    left: 0;
    top: 0;
    width: 48%;
    height: 74%;
}

.leo-builder-plan .piece.left.tall {
    height: 100%;
}

.leo-builder-plan .piece.right {
    right: 0;
    top: 0;
    width: 48%;
    height: 74%;
}

.leo-builder-plan .piece.right.tall {
    height: 100%;
}

.leo-builder-plan .seam {
    position: absolute;
    z-index: 1;
    background: rgba(75,70,62,.45);
}

.leo-builder-plan .seam-h {
    left: 12%;
    right: 12%;
    top: 50%;
    height: 1px;
}

.leo-builder-plan .seam-h2 {
    top: 32%;
}

.leo-builder-plan .seam-v {
    top: 12%;
    bottom: 12%;
    left: 50%;
    width: 1px;
}

.leo-builder-pro .leo-builder-item.is-selected .piece {
    border-color: #171613;
    box-shadow: inset 0 0 0 10px rgba(255,255,255,.18), 0 16px 28px rgba(30,28,24,.18);
}

.leo-builder-pro .leo-builder-item-label,
.leo-builder-pro .leo-builder-item small {
    position: relative;
    z-index: 2;
    border-radius: 8px;
    background: rgba(214, 206, 189, .74);
    padding: 2px 4px;
}

.leo-builder-pro .leo-builder-item button {
    z-index: 4;
}

.leo-details details { border-top: 1px solid #d9d2c7; padding: 18px 0; }
.leo-details details:last-child { border-bottom: 1px solid #d9d2c7; }
.leo-details summary { cursor: pointer; font-size: 18px; font-weight: 610; }
.leo-details p { color: #5f594f; line-height: 1.65; }
.leo-related h2 { margin: 0 0 18px; font-size: 24px; font-weight: 560; }
.leo-related > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.leo-related article { min-height: 118px; padding: 18px; border: 1px solid #d9d2c7; border-radius: 6px; display: flex; flex-direction: column; justify-content: flex-end; background: #faf8f4; }
.leo-related span { margin-top: 8px; color: #5f594f; }

.leo-modal[hidden] {
    display: none;
}

.leo-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(18, 17, 15, .44);
    display: grid;
    place-items: center;
    padding: 22px;
}

.leo-modal-card {
    width: min(620px, 100%);
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    position: relative;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.leo-modal-close {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1eee9;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.leo-modal-card h2 {
    margin: 0 42px 14px 0;
    font-size: 24px;
}

.leo-modal-card p,
.leo-modal-card li {
    color: #575149;
    line-height: 1.6;
}

.leo-modal-card ul {
    padding-left: 20px;
}

@media (max-width: 980px) {
    .single-product .product { padding: 16px 14px 42px; }
    .leo-product { grid-template-columns: 1fr; gap: 24px; }
    .leo-summary { position: static; padding-inline: 0; }
    .leo-gallery { grid-template-columns: 1fr; }
    .leo-photo-shot { grid-column: auto; min-height: 380px; }
    .leo-shot { min-height: 320px; }
    .leo-builder-shell { grid-template-columns: 1fr; }
    .leo-builder-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .leo-builder-tools strong,
    .leo-builder-tools .leo-builder-clear { grid-column: 1 / -1; }
    .leo-builder-stage-wrap { min-height: 520px; }
    .leo-builder-stage { min-height: 488px; }
}

@media (max-width: 560px) {
    .leo-summary h1 { font-size: 34px; }
    .leo-choice-grid, .leo-actions, .leo-benefits, .leo-related > div { grid-template-columns: 1fr; }
    .leo-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .leo-fabric-library { grid-template-columns: 1fr; }
    .leo-fabric-tabs {
        display: flex;
        max-height: none;
        overflow-x: auto;
        padding: 0 0 4px;
        scroll-snap-type: x mandatory;
    }
    .leo-fabric-tab {
        flex: 0 0 auto;
        min-width: 118px;
        text-align: center;
        scroll-snap-align: start;
    }
    .leo-builder { padding-left: 14px; padding-right: 14px; }
    .leo-builder-tools { grid-template-columns: 1fr; }
    .leo-builder-stage-wrap { min-height: 460px; padding: 10px; }
    .leo-builder-stage { min-height: 438px; }
    .leo-builder-item { transform: scale(.9); transform-origin: top left; }
    .leo-builder-item.is-rotated { transform: rotate(90deg) scale(.9); }
}

@media (max-width: 980px) {
    .leo-builder-pro {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .leo-builder-pro .leo-builder-head {
        padding: 0 16px;
    }

    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 150px 520px 290px;
        min-height: 720px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leo-builder-pro .leo-builder-tools {
        display: flex;
        max-height: 720px;
        padding-inline: 10px;
    }

    .leo-builder-pro .leo-builder-tools strong,
    .leo-builder-pro .leo-builder-tools .leo-builder-clear {
        grid-column: auto;
    }

    .leo-builder-pro .leo-builder-stage-wrap {
        min-width: 520px;
        min-height: 720px;
        padding: 20px 18px 16px;
    }

    .leo-builder-pro .leo-builder-stage {
        min-height: 540px;
    }

    .leo-builder-pro .leo-builder-summary {
        min-width: 290px;
        max-height: 720px;
        padding: 20px 14px;
    }

    .leo-module-card {
        min-height: 124px;
    }
}

/* Premium builder polish */
.leo-builder-pro {
    max-width: 1500px;
    margin-top: 70px;
    padding: clamp(36px, 5vw, 66px) clamp(16px, 3vw, 32px);
    color: #1c1a17;
}

.leo-builder-pro .leo-builder-head {
    max-width: 880px;
    margin: 0 auto 28px;
    text-align: center;
}

.leo-builder-pro .leo-builder-head p {
    color: #8b806f;
    letter-spacing: .14em;
}

.leo-builder-pro .leo-builder-head h2 {
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.02;
}

.leo-builder-pro .leo-builder-head span {
    margin-inline: auto;
    color: #625b51;
}

.leo-builder-pro .leo-builder-tabs {
    width: min(100%, 1180px);
    margin: 0 auto;
    border: 0;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f3f0eb;
}

.leo-builder-pro .leo-builder-tabs a {
    min-width: 124px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    color: #565047;
    text-align: center;
    font-size: 15px;
}

.leo-builder-pro .leo-builder-tabs a.is-active {
    color: #171613;
    background: #fff;
    box-shadow: 0 6px 18px rgba(38, 34, 28, .08);
}

.leo-builder-pro .leo-builder-shell {
    width: min(100%, 1180px);
    margin: 18px auto 0;
    grid-template-columns: 220px minmax(540px, 1fr) 350px;
    gap: 0;
    min-height: 780px;
    border: 1px solid #e2dcd2;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(42, 36, 30, .08);
}

.leo-builder-pro .leo-builder-tools,
.leo-builder-pro .leo-builder-summary {
    scrollbar-width: thin;
    scrollbar-color: #c8bdaa #f4f0ea;
}

.leo-builder-pro .leo-builder-tools {
    max-height: 780px;
    gap: 14px;
    padding: 22px 18px 18px;
    border-right: 1px solid #ebe5dc;
    background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}

.leo-builder-pro .leo-builder-tools strong,
.leo-builder-pro .leo-builder-summary > p {
    color: #8a7f6f;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .16em;
}

.leo-module-card {
    min-height: 154px;
    padding: 16px 14px 14px;
    gap: 8px;
    border-color: #e1dbd1;
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.leo-module-card:hover,
.leo-module-card.is-active {
    border-color: #171613;
    background: #fffdfa;
    box-shadow: 0 12px 26px rgba(45, 39, 32, .1);
    transform: translateY(-1px);
}

.leo-module-card span:not(.leo-module-thumb) {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #292621;
    font-size: 13px;
    font-weight: 620;
}

.leo-module-card small {
    color: #756d61;
    font-size: 11px;
    line-height: 1.2;
}

.leo-module-card b {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(23,22,19,.18);
}

.leo-module-thumb {
    width: 86px;
    height: 66px;
    margin-top: 4px;
}

.leo-module-thumb::before,
.leo-module-thumb::after,
.leo-module-thumb i {
    border-color: #625d55;
    border-radius: 2px;
}

.leo-builder-pro .leo-builder-clear {
    min-height: 48px;
    margin-top: 2px;
    border: 1px solid #171613;
    border-radius: 999px;
    background: #171613;
    color: #fff;
    font-weight: 700;
}

.leo-builder-pro .leo-builder-stage-wrap {
    min-width: 0;
    min-height: 780px;
    padding: 28px;
    background: #f6f4ef;
    gap: 14px;
}

.leo-builder-pro .leo-builder-stage {
    min-height: 572px;
    border-radius: 18px;
    background:
        linear-gradient(rgba(255,255,255,.68), rgba(255,255,255,.68)),
        linear-gradient(rgba(53,49,42,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53,49,42,.045) 1px, transparent 1px),
        #f2f0eb;
    background-size: auto, 22px 22px, 22px 22px, auto;
    box-shadow: inset 0 0 0 1px rgba(216,210,200,.8);
}

.leo-builder-plan .piece {
    border-color: rgba(64, 59, 51, .62);
    background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,0) 52%), #d7cdbc;
    box-shadow: inset 0 0 0 9px rgba(255,255,255,.13), 0 14px 34px rgba(42,36,30,.12);
}

.leo-builder-pro .leo-builder-item-label,
.leo-builder-pro .leo-builder-item small {
    background: rgba(246, 241, 232, .76);
    color: #2c2924;
    backdrop-filter: blur(2px);
}

.leo-builder-pro .leo-builder-item button {
    width: 26px;
    height: 26px;
    top: -12px;
    border: 1px solid rgba(255,255,255,.42);
    box-shadow: 0 8px 18px rgba(23,22,19,.2);
}

.leo-builder-pro .leo-builder-item [data-builder-rotate] {
    left: -12px;
}

.leo-builder-pro .leo-builder-item [data-builder-remove] {
    right: -12px;
}

.leo-builder-accept,
.leo-builder-pdf {
    min-height: 58px;
    border-radius: 12px;
    font-size: 16px;
}

.leo-builder-accept {
    box-shadow: 0 14px 30px rgba(23,22,19,.16);
}

.leo-builder-pdf {
    background: #fff;
    border-color: #d8d2c8;
}

.leo-builder-delivery {
    border-color: #e2dcd2;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 22px rgba(42,36,30,.04);
}

.leo-builder-pro .leo-builder-summary {
    min-width: 0;
    max-height: 780px;
    gap: 16px;
    padding: 28px 24px;
    border-left: 1px solid #ebe5dc;
    background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}

.leo-builder-field {
    gap: 10px;
    font-size: 15px;
}

.leo-builder-field input,
.leo-builder-form input,
.leo-builder-form textarea {
    border-color: #ddd6ca;
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.leo-builder-field input:focus,
.leo-builder-form input:focus,
.leo-builder-form textarea:focus {
    outline: 0;
    border-color: #171613;
    box-shadow: 0 0 0 3px rgba(23,22,19,.08);
}

.leo-builder-switch {
    padding-top: 4px;
}

.leo-builder-addon {
    border-color: #e0d9cf;
    border-radius: 12px;
    background: #fff;
}

.leo-builder-swatches {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.leo-builder-swatches button {
    border-radius: 10px;
}

.leo-builder-orientation {
    gap: 12px;
}

.leo-builder-orientation button {
    min-height: 58px;
    border-color: #ded8cf;
    border-radius: 12px;
    font-weight: 650;
}

.leo-builder-summary > strong {
    font-size: 32px;
    font-weight: 520;
    letter-spacing: 0;
}

.leo-builder-summary > span {
    margin-top: -8px;
    color: #6c6458;
    font-size: 15px;
}

.leo-builder-pro .leo-builder-form {
    gap: 14px;
}

.leo-builder-pro .leo-builder-form button {
    border-radius: 12px;
    font-size: 16px;
}

.leo-builder-form em {
    font-size: 14px;
}

@media (max-width: 1180px) {
    .leo-builder-pro .leo-builder-shell {
        width: 100%;
        grid-template-columns: 200px minmax(440px, 1fr) 320px;
    }
}

@media (max-width: 900px) {
    .leo-builder-pro {
        margin-top: 44px;
        padding: 32px 14px;
    }

    .leo-builder-pro .leo-builder-head {
        text-align: left;
        padding: 0;
    }

    .leo-builder-pro .leo-builder-tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        border-radius: 16px;
    }

    .leo-builder-pro .leo-builder-tabs a {
        min-width: max-content;
        white-space: nowrap;
    }

    .leo-builder-pro .leo-builder-shell {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 18px;
        overflow: visible;
    }

    .leo-builder-pro .leo-builder-tools {
        display: grid;
        grid-template-columns: repeat(7, minmax(138px, 1fr));
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid #ebe5dc;
        scroll-snap-type: x mandatory;
    }

    .leo-builder-pro .leo-builder-tools strong {
        position: sticky;
        left: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        min-width: 92px;
        padding-right: 8px;
        background: #fff;
    }

    .leo-module-card {
        min-height: 136px;
        scroll-snap-align: start;
    }

    .leo-builder-pro .leo-builder-clear {
        min-width: 138px;
        min-height: 136px;
        border-radius: 14px;
        white-space: normal;
    }

    .leo-builder-pro .leo-builder-stage-wrap {
        min-width: 0;
        min-height: 0;
        padding: 16px;
    }

    .leo-builder-pro .leo-builder-stage {
        min-height: 440px;
        overflow: auto;
    }

    .leo-builder-pro .leo-builder-summary {
        max-height: none;
        padding: 20px 16px 22px;
        border-left: 0;
        border-top: 1px solid #ebe5dc;
    }
}

@media (max-width: 560px) {
    .leo-builder-pro {
        padding-inline: 10px;
    }

    .leo-builder-pro .leo-builder-head h2 {
        font-size: 32px;
    }

    .leo-builder-pro .leo-builder-head span {
        font-size: 14px;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: repeat(7, minmax(124px, 1fr));
        padding: 12px;
        gap: 10px;
    }

    .leo-builder-pro .leo-builder-tools strong {
        min-width: 76px;
        font-size: 11px;
    }

    .leo-module-card {
        min-height: 126px;
        padding: 12px 10px;
    }

    .leo-module-thumb {
        width: 72px;
        height: 56px;
    }

    .leo-module-card span:not(.leo-module-thumb) {
        min-height: 28px;
        font-size: 12px;
    }

    .leo-builder-pro .leo-builder-clear {
        min-width: 124px;
        min-height: 126px;
    }

    .leo-builder-pro .leo-builder-stage-wrap {
        padding: 12px;
    }

    .leo-builder-pro .leo-builder-stage {
        min-height: 390px;
        border-radius: 14px;
    }

    .leo-builder-accept,
    .leo-builder-pdf {
        min-height: 52px;
        font-size: 15px;
    }

    .leo-builder-delivery {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px;
    }

    .leo-builder-orientation {
        grid-template-columns: 1fr;
    }

    .leo-builder-summary > strong {
        font-size: 28px;
    }
}

/* Builder visual cleanup */
.leo-builder-pro .leo-builder-shell {
    grid-template-columns: 238px minmax(560px, 1fr) 360px;
}

.leo-builder-pro .leo-builder-tools {
    gap: 12px;
    padding: 24px 18px 22px;
}

.leo-builder-pro .leo-builder-tools strong {
    margin: 0 0 2px;
}

.leo-module-card {
    width: 100%;
    min-height: 158px;
    display: grid;
    grid-template-rows: 76px minmax(34px, auto) 18px;
    align-items: center;
    justify-items: center;
    place-items: unset;
    gap: 8px;
    padding: 18px 42px 14px 16px;
    overflow: hidden;
}

.leo-module-card .leo-module-thumb {
    grid-row: 1;
    align-self: center;
    justify-self: center;
    margin: 0;
    transform: translateX(10px);
}

.leo-module-card span:not(.leo-module-thumb) {
    grid-row: 2;
    width: 100%;
    min-height: 0;
    display: block;
    color: #24211d;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.22;
    text-align: center;
    overflow-wrap: anywhere;
}

.leo-module-card small {
    grid-row: 3;
    display: block;
    color: #746b60;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.leo-module-card b {
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 18px;
    font-weight: 760;
    line-height: 1;
}

.leo-module-thumb::before,
.leo-module-thumb::after,
.leo-module-thumb i {
    box-sizing: border-box;
}

.leo-builder-pro .leo-builder-clear {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    padding: 0 18px;
    display: grid;
    place-items: center;
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
}

.leo-builder-pro .leo-builder-stage-wrap {
    padding: 30px 28px 24px;
}

.leo-builder-pro .leo-builder-stage {
    min-height: 600px;
}

.leo-builder-pro .leo-builder-summary {
    gap: 18px;
    padding: 30px 26px;
}

.leo-builder-switch {
    min-height: 40px;
    padding: 0;
}

.leo-builder-switch span {
    font-size: 19px;
    font-weight: 720;
    line-height: 1.15;
}

.leo-builder-switch i {
    justify-self: end;
    width: 54px;
    height: 30px;
}

.leo-builder-switch i::after {
    width: 24px;
    height: 24px;
}

.leo-builder-switch input:checked + i::after {
    transform: translateX(24px);
}

.leo-builder-addon {
    min-height: 70px;
    grid-template-columns: 58px 1fr;
    padding: 12px 16px;
}

.leo-builder-addon .leo-mini-layout,
.leo-builder-orientation .leo-mini-layout {
    justify-self: center;
    flex: 0 0 auto;
}

.leo-builder-addon > span:last-child {
    display: block;
    font-size: 16px;
    line-height: 1.25;
    text-align: left;
}

.leo-builder-addon small {
    color: #1d1b18;
}

.leo-builder-orientation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leo-builder-orientation button {
    min-width: 0;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    line-height: 1;
    white-space: nowrap;
}

.leo-builder-swatches button {
    min-width: 0;
}

.leo-mini-layout {
    transform: translateY(1px);
}

@media (max-width: 1180px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 218px minmax(460px, 1fr) 330px;
    }

    .leo-module-card {
        padding-right: 40px;
    }
}

@media (max-width: 900px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: repeat(7, 148px) 148px;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .leo-builder-pro .leo-builder-tools strong {
        position: static;
        grid-column: 1 / -1;
        min-width: 0;
        padding: 0;
        background: transparent;
    }

    .leo-module-card {
        min-height: 144px;
        padding: 14px 36px 12px 12px;
        grid-template-rows: 66px minmax(32px, auto) 16px;
    }

    .leo-module-card .leo-module-thumb {
        width: 76px;
        height: 58px;
        transform: translateX(8px);
    }

    .leo-module-card b {
        top: 12px;
        right: 10px;
        width: 28px;
        height: 28px;
    }

    .leo-builder-pro .leo-builder-clear {
        min-width: 148px;
        min-height: 144px;
        border-radius: 14px;
    }

    .leo-builder-pro .leo-builder-stage-wrap {
        padding: 14px;
    }

    .leo-builder-pro .leo-builder-stage {
        min-height: 430px;
    }

    .leo-builder-pro .leo-builder-summary {
        padding: 22px 16px 24px;
    }
}

@media (max-width: 560px) {
    .leo-builder-pro .leo-builder-tabs {
        padding: 5px;
    }

    .leo-builder-pro .leo-builder-tabs a {
        min-width: auto;
        padding: 10px 16px;
        font-size: 14px;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: repeat(7, 132px) 132px;
        padding: 12px;
    }

    .leo-module-card {
        min-height: 132px;
        padding: 12px 34px 10px 10px;
        grid-template-rows: 58px minmax(30px, auto) 16px;
    }

    .leo-module-card .leo-module-thumb {
        width: 68px;
        height: 52px;
        transform: translateX(7px);
    }

    .leo-module-card span:not(.leo-module-thumb) {
        font-size: 12px;
    }

    .leo-module-card small {
        font-size: 10px;
    }

    .leo-module-card b {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .leo-builder-pro .leo-builder-clear {
        min-width: 132px;
        min-height: 132px;
        font-size: 14px;
    }

    .leo-builder-pro .leo-builder-stage {
        min-height: 360px;
    }

    .leo-builder-switch span {
        font-size: 18px;
    }

    .leo-builder-addon {
        grid-template-columns: 52px 1fr;
    }

    .leo-builder-orientation {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .leo-builder-orientation button {
        min-height: 54px;
        padding: 0 10px;
        font-size: 15px;
    }
}

/* Mahali-style modular builder */
.leo-builder-pro {
    padding-top: 34px;
}

.leo-builder-pro .leo-builder-head {
    max-width: 1440px;
    margin: 0 auto 18px;
    padding-top: 22px;
    border-top: 1px solid #ded8cf;
}

.leo-builder-pro .leo-builder-head h2 {
    max-width: 1120px;
    margin-inline: auto;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    text-transform: uppercase;
}

.leo-builder-pro .leo-builder-head span {
    max-width: 920px;
    display: block;
    margin-inline: auto;
    font-size: clamp(17px, 1.55vw, 23px);
    font-weight: 700;
}

.leo-builder-pro .leo-builder-shell {
    grid-template-columns: 310px minmax(620px, 1fr) 330px;
    gap: 18px;
}

.leo-builder-pro .leo-builder-tabs {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-inline: auto;
}

.leo-builder-pro .leo-builder-tools,
.leo-builder-pro .leo-builder-summary,
.leo-builder-pro .leo-builder-stage-wrap {
    border: 1px solid #e2ded6;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(42,36,28,.08);
}

.leo-builder-pro .leo-builder-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    padding: 16px;
}

.leo-builder-pro .leo-builder-tools strong {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    color: #111;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.15;
    text-transform: uppercase;
}

.leo-module-card {
    min-height: 164px;
    grid-template-rows: 82px minmax(34px, auto) 18px 16px;
    gap: 5px;
    padding: 12px 10px 10px;
    border-color: #ded9d1;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff, #faf9f6);
    box-shadow: none;
}

.leo-module-card:hover,
.leo-module-card.is-active {
    border-color: #151515;
    box-shadow: 0 10px 24px rgba(32,28,22,.1);
}

.leo-module-card .leo-module-thumb {
    width: 100px;
    height: 76px;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 9px 10px rgba(35,31,25,.2));
}

.leo-module-thumb::before,
.leo-module-thumb::after,
.leo-module-thumb i {
    content: "";
    position: absolute;
    display: block;
    border: 1px solid rgba(56,52,46,.2);
    background:
        radial-gradient(circle at 35% 22%, rgba(255,255,255,.7), transparent 24%),
        linear-gradient(135deg, #ddd9d1, #aaa397);
    box-shadow: inset 0 2px 8px rgba(255,255,255,.4), inset 0 -8px 16px rgba(65,58,49,.16);
}

.leo-thumb-seat::before {
    left: 24px;
    top: 13px;
    width: 52px;
    height: 58px;
    border-radius: 5px;
}

.leo-thumb-seat::after {
    left: 24px;
    top: 8px;
    width: 52px;
    height: 12px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(135deg, #c8c3ba, #918a7f);
}

.leo-thumb-corner::before {
    left: 18px;
    top: 12px;
    width: 58px;
    height: 58px;
    border-radius: 6px;
}

.leo-thumb-corner::after {
    left: 18px;
    top: 8px;
    width: 64px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, #c8c3ba, #918a7f);
}

.leo-thumb-corner i {
    right: 14px;
    top: 14px;
    width: 18px;
    height: 54px;
    border-radius: 4px;
    background: linear-gradient(135deg, #b5aea3, #7d756a);
}

.leo-thumb-chaise-left::before,
.leo-thumb-chaise-right::before {
    left: 18px;
    top: 18px;
    width: 70px;
    height: 42px;
    border-radius: 7px;
}

.leo-thumb-chaise-left::after,
.leo-thumb-chaise-right::after {
    top: 8px;
    width: 18px;
    height: 58px;
    border-radius: 5px;
    background: linear-gradient(135deg, #b8b1a6, #81786d);
}

.leo-thumb-chaise-left::after { left: 12px; }
.leo-thumb-chaise-right::after { right: 8px; }

.leo-thumb-sleep::before,
.leo-thumb-arm-left::before,
.leo-thumb-arm-right::before {
    left: 12px;
    top: 22px;
    width: 76px;
    height: 42px;
    border-radius: 6px;
}

.leo-thumb-sleep::after,
.leo-thumb-arm-left::after,
.leo-thumb-arm-right::after {
    left: 12px;
    top: 12px;
    width: 76px;
    height: 14px;
    border-radius: 5px;
    background: linear-gradient(135deg, #b8b1a6, #81786d);
}

.leo-thumb-sleep i {
    left: 18px;
    top: 42px;
    width: 64px;
    height: 1px;
    background: rgba(72,65,56,.45);
    border: 0;
    box-shadow: 0 9px 0 rgba(72,65,56,.32);
}

.leo-module-card span:not(.leo-module-thumb) {
    color: #0e0e0d;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.08;
}

.leo-module-card small {
    color: #0e0e0d;
    font-size: 13px;
    font-weight: 850;
}

.leo-module-card::after {
    content: "Przeciągnij i upuść";
    grid-row: 4;
    color: #222;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.leo-module-card b {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #111;
    box-shadow: 0 4px 10px rgba(0,0,0,.22);
}

.leo-builder-pro .leo-builder-clear {
    grid-column: 1 / -1;
    min-height: 48px;
    border-color: #111;
    background: #111;
    color: #fff;
    font-weight: 800;
}

.leo-builder-stage-price {
    margin: 0 0 20px;
    color: #111;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.leo-builder-stage-price strong {
    font: inherit;
}

.leo-builder-pro .leo-builder-stage-wrap {
    padding: 18px 26px 24px;
    background: #fff;
}

.leo-builder-pro .leo-builder-stage {
    min-height: 560px;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(40,56,67,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40,56,67,.1) 1px, transparent 1px),
        #fbfaf6;
    background-size: 18px 18px;
}

.leo-stage-dim {
    position: absolute;
    z-index: 1;
    color: #111;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}

.leo-stage-dim::before,
.leo-stage-dim::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.leo-stage-dim-top {
    left: 24%;
    right: 15%;
    top: 24px;
    text-align: center;
    border-top: 1px solid currentColor;
    padding-top: 6px;
}

.leo-stage-dim-left {
    left: 32px;
    top: 38%;
    transform: rotate(-90deg);
    transform-origin: left center;
    border-top: 1px solid currentColor;
    width: 190px;
    text-align: center;
    padding-top: 6px;
}

.leo-stage-dim-right {
    right: 30px;
    top: 31%;
    transform: rotate(90deg);
    transform-origin: right center;
    border-top: 1px solid currentColor;
    width: 170px;
    text-align: center;
    padding-top: 6px;
}

.leo-stage-dim-bottom {
    left: 58%;
    right: 14%;
    bottom: 32px;
    text-align: center;
    border-top: 1px solid currentColor;
    padding-top: 6px;
}

.leo-builder-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1e1b17;
    overflow: visible;
}

.leo-builder-item.is-selected .leo-builder-plan,
.leo-builder-item:hover .leo-builder-plan {
    outline: 3px solid rgba(42,117,176,.68);
    outline-offset: 2px;
}

.leo-builder-plan {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border-radius: 14px;
    filter: drop-shadow(0 10px 15px rgba(35,31,25,.16));
}

.leo-builder-plan .piece {
    position: absolute;
    border: 2px solid rgba(77,70,60,.48);
    background:
        radial-gradient(circle at 38% 20%, rgba(255,255,255,.76), transparent 24%),
        repeating-linear-gradient(110deg, rgba(255,255,255,.16) 0 4px, rgba(73,66,55,.05) 4px 9px),
        linear-gradient(135deg, #ddd8cf, #b7ad9f);
    box-shadow: inset 0 4px 14px rgba(255,255,255,.42), inset 0 -14px 24px rgba(62,54,45,.14);
}

.leo-thumb-pouf::before {
    left: 24px;
    top: 18px;
    width: 54px;
    height: 54px;
    border-radius: 7px;
}

.leo-thumb-pouf::after {
    display: none !important;
}

.leo-thumb-pouf i {
    left: 30px;
    top: 24px;
    width: 42px;
    height: 1px;
    border: 0;
    background: rgba(76,68,58,.28);
    box-shadow: 0 14px 0 rgba(76,68,58,.22), 0 28px 0 rgba(76,68,58,.18);
}

.leo-builder-plan .piece.main {
    inset: 0;
    border-radius: 14px;
}

.leo-builder-plan .piece.top {
    left: 0;
    right: 0;
    top: 0;
    height: 48%;
    border-radius: 14px 14px 7px 7px;
}

.leo-builder-plan .piece.left {
    left: 0;
    top: 0;
    width: 48%;
    height: 74%;
    border-radius: 14px 7px 7px 14px;
}

.leo-builder-plan .piece.left.tall {
    height: 100%;
}

.leo-builder-plan .piece.right {
    right: 0;
    top: 0;
    width: 48%;
    height: 74%;
    border-radius: 7px 14px 14px 7px;
}

.leo-builder-plan .piece.right.tall {
    height: 100%;
}

.leo-builder-plan .seam {
    position: absolute;
    z-index: 2;
    background: rgba(88,80,69,.36);
}

.leo-builder-plan .seam-h {
    left: 12%;
    right: 12%;
    top: 50%;
    height: 1px;
}

.leo-builder-plan .seam-h2 {
    top: 32%;
}

.leo-builder-plan .seam-v {
    top: 12%;
    bottom: 12%;
    left: 50%;
    width: 1px;
}

.leo-drop-marker {
    position: absolute !important;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    border: 2px dashed #3676af;
    border-radius: 9px;
    background: rgba(255,255,255,.44);
    pointer-events: none;
}

.leo-drop-marker::before,
.leo-drop-marker::after {
    content: "";
    position: absolute;
    background: #3676af;
}

.leo-drop-marker::before {
    left: 7px;
    right: 7px;
    top: 14px;
    height: 2px;
}

.leo-drop-marker::after {
    top: 7px;
    bottom: 7px;
    left: 14px;
    width: 2px;
}

.leo-builder-item-label,
.leo-builder-item small {
    position: relative;
    z-index: 5;
    max-width: 76%;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.36);
    text-align: center;
    pointer-events: none;
}

.leo-builder-item-label {
    align-self: center;
    font-size: 12px !important;
    line-height: 1.15;
}

.leo-builder-item small {
    align-self: end;
    margin-bottom: 12px;
    font-size: 11px !important;
    color: #302a22;
}

.leo-measure {
    z-index: 6;
    color: #111;
    font-size: 10px;
    font-style: normal;
    pointer-events: none;
}

.leo-measure-top {
    top: -22px;
    left: 0;
    right: 0;
    border-top: 1px solid currentColor;
    padding-top: 4px;
}

.leo-measure-side {
    right: -30px;
    top: 10px;
    bottom: 10px;
    writing-mode: vertical-rl;
    border-right: 1px solid currentColor;
    padding-right: 4px;
}

.leo-builder-item button {
    z-index: 8;
}

.leo-builder-pro .leo-builder-accept {
    background: #171613;
    color: #fff;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 260px minmax(520px, 1fr) 320px;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: repeat(7, 150px) 150px;
        overflow-x: auto;
    }

    .leo-builder-pro .leo-builder-tools strong {
        grid-column: 1 / -1;
    }

    .leo-builder-pro .leo-builder-stage-wrap {
        overflow-x: auto;
    }

    .leo-builder-pro .leo-builder-stage {
        min-width: 720px;
        min-height: 520px;
    }
}

@media (max-width: 560px) {
    .leo-builder-pro .leo-builder-head h2 {
        font-size: 25px;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: repeat(7, 138px) 138px;
    }

    .leo-module-card {
        min-height: 154px;
    }

    .leo-builder-stage-price {
        font-size: 20px;
    }
}

/* Reference-style tighter builder layout */
.single-product .product {
    max-width: none;
}

.leo-builder-pro {
    width: min(1180px, calc(100vw - 28px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.leo-builder-pro .leo-builder-shell {
    grid-template-columns: 292px minmax(0, 1fr) 288px;
    gap: 14px;
    width: 100%;
    overflow: visible;
}

.leo-builder-pro .leo-builder-tools,
.leo-builder-pro .leo-builder-stage-wrap,
.leo-builder-pro .leo-builder-summary {
    min-width: 0;
}

.leo-builder-pro .leo-builder-summary {
    overflow: visible;
    padding: 22px 18px;
}

.leo-builder-pro .leo-builder-stage-wrap {
    padding: 18px 20px 24px;
}

.leo-builder-pro .leo-builder-stage {
    min-height: 520px;
}

.leo-builder-form input,
.leo-builder-form textarea {
    min-width: 0;
}

.leo-builder-form button {
    white-space: normal;
}

.leo-module-card .leo-module-thumb::before,
.leo-module-card .leo-module-thumb::after,
.leo-module-card .leo-module-thumb i,
.leo-builder-plan .piece {
    background:
        radial-gradient(circle at 36% 24%, rgba(255,255,255,.72), transparent 17%),
        linear-gradient(180deg, rgba(255,255,255,.28), rgba(83,76,67,.08)),
        linear-gradient(135deg, #d3d0c8, #aaa397 70%, #8d8579);
    box-shadow:
        inset 0 3px 8px rgba(255,255,255,.42),
        inset 0 -12px 18px rgba(54,48,41,.18),
        0 10px 16px rgba(41,36,30,.18);
}

.leo-module-card .leo-module-thumb {
    transform: perspective(280px) rotateX(16deg) rotateZ(-2deg);
}

.leo-thumb-seat::before {
    left: 30px;
    top: 18px;
    width: 48px;
    height: 50px;
    border-radius: 6px;
}

.leo-thumb-seat::after {
    left: 28px;
    top: 12px;
    width: 52px;
    height: 14px;
    border-radius: 8px 8px 4px 4px;
}

.leo-thumb-corner::before {
    left: 22px;
    top: 20px;
    width: 50px;
    height: 50px;
    border-radius: 7px;
}

.leo-thumb-corner::after {
    left: 21px;
    top: 12px;
    width: 56px;
    height: 16px;
    border-radius: 8px 8px 4px 4px;
}

.leo-thumb-corner i {
    right: 17px;
    top: 17px;
    width: 16px;
    height: 54px;
    border-radius: 5px;
}

.leo-thumb-chaise-left::before,
.leo-thumb-chaise-right::before {
    top: 27px;
    width: 66px;
    height: 34px;
    border-radius: 7px;
}

.leo-thumb-chaise-left::before { left: 24px; }
.leo-thumb-chaise-right::before { left: 12px; }

.leo-thumb-chaise-left::after,
.leo-thumb-chaise-right::after {
    top: 20px;
    width: 16px;
    height: 54px;
    border-radius: 8px;
}

.leo-thumb-chaise-left::after { left: 13px; }
.leo-thumb-chaise-right::after { right: 11px; }

.leo-thumb-sleep::before,
.leo-thumb-arm-left::before,
.leo-thumb-arm-right::before {
    left: 18px;
    top: 30px;
    width: 70px;
    height: 34px;
    border-radius: 7px;
}

.leo-thumb-sleep::after,
.leo-thumb-arm-left::after,
.leo-thumb-arm-right::after {
    left: 17px;
    top: 19px;
    width: 74px;
    height: 15px;
    border-radius: 8px 8px 4px 4px;
}

.leo-builder-plan .piece.main {
    inset: 0;
    border-radius: 12px;
}

.leo-builder-plan .piece.back {
    left: 4%;
    right: 4%;
    top: 0;
    height: 18%;
    border-radius: 12px 12px 5px 5px;
}

.leo-builder-plan .piece.left-arm {
    left: 0;
    top: 2%;
    width: 18%;
    height: 74%;
    border-radius: 12px 5px 5px 12px;
}

.leo-builder-plan .piece.left-arm.tall {
    height: 100%;
}

.leo-builder-plan .piece.right-arm {
    right: 0;
    top: 2%;
    width: 18%;
    height: 74%;
    border-radius: 5px 12px 12px 5px;
}

.leo-builder-plan .piece.right-arm.tall {
    height: 100%;
}

.leo-builder-plan .piece.back,
.leo-builder-plan .piece.left-arm,
.leo-builder-plan .piece.right-arm {
    z-index: 3;
}

.leo-plan-seat .seam-h,
.leo-plan-sleep .seam-h {
    top: 50%;
}

.leo-plan-pouf .piece.main {
    border-radius: 12px;
}

.leo-module-pouf .leo-drop-marker {
    width: 26px;
    height: 26px;
}

.leo-plan-sleep .seam-h2 {
    top: 66%;
}

.leo-builder-item-label {
    margin-top: 22px;
}

.leo-builder-item small {
    margin-bottom: 20px;
}

.leo-builder-summary > strong[data-leo-builder-price] {
    font-size: 29px;
}

@media (max-width: 1220px) {
    .leo-builder-pro {
        width: min(100%, calc(100vw - 20px));
    }

    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 280px minmax(460px, 1fr) 270px;
        gap: 10px;
    }

    .leo-builder-pro .leo-builder-summary {
        padding: 20px 14px;
    }
}

@media (max-width: 980px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 1fr;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: repeat(7, 148px) 148px;
    }

    .leo-builder-pro .leo-builder-stage-wrap {
        overflow-x: auto;
    }

    .leo-builder-pro .leo-builder-stage {
        min-width: 700px;
    }
}

/* Final builder refinements: compact form and reference-like 3D module palette */
.leo-builder-pro .leo-builder-shell {
    grid-template-columns: 292px minmax(0, 1fr) 288px;
    align-items: start;
    overflow: hidden;
}

.leo-builder-pro .leo-builder-summary {
    align-self: start;
    overflow: hidden;
}

.leo-builder-form[hidden] {
    display: none !important;
}

.leo-builder-form-toggle {
    width: 100%;
    min-height: 48px;
    border: 1px solid #171613;
    border-radius: 6px;
    background: #171613;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.leo-builder-form-toggle.is-open {
    background: #f5f1ea;
    color: #171613;
}

.leo-builder-form.is-visible {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #ded8cf;
}

.leo-builder-pro .leo-builder-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.leo-module-card {
    min-height: 170px;
    grid-template-rows: 84px minmax(32px, auto) 18px 16px;
    overflow: visible;
}

.leo-module-card .leo-module-thumb {
    width: 106px;
    height: 82px;
    overflow: visible;
    filter: drop-shadow(0 12px 12px rgba(32, 28, 22, .2));
}

.leo-module-card .leo-module-thumb::before,
.leo-module-card .leo-module-thumb::after,
.leo-module-card .leo-module-thumb i {
    border: 1px solid rgba(68, 63, 55, .18);
    background:
        radial-gradient(circle at 34% 18%, rgba(255,255,255,.82), transparent 18%),
        linear-gradient(145deg, #dedbd4 0%, #b9b3a8 58%, #8e867b 100%);
    box-shadow:
        inset 0 3px 9px rgba(255,255,255,.48),
        inset 0 -13px 18px rgba(54,48,41,.18),
        0 7px 10px rgba(44,39,32,.12);
}

.leo-module-card .leo-module-thumb::before {
    transform: skewY(-6deg);
}

.leo-module-card .leo-module-thumb::after,
.leo-module-card .leo-module-thumb i {
    transform: skewY(-6deg);
}

.leo-thumb-seat::before {
    left: 31px !important;
    top: 29px !important;
    width: 48px !important;
    height: 39px !important;
    border-radius: 4px 4px 8px 8px !important;
}

.leo-thumb-seat::after {
    left: 26px !important;
    top: 12px !important;
    width: 56px !important;
    height: 23px !important;
    border-radius: 6px 6px 3px 3px !important;
}

.leo-thumb-seat i {
    left: 29px !important;
    top: 21px !important;
    width: 51px !important;
    height: 2px !important;
    border: 0 !important;
    background: rgba(72,65,56,.28) !important;
    box-shadow: 0 18px 0 rgba(72,65,56,.18) !important;
}

.leo-thumb-corner::before {
    left: 24px !important;
    top: 28px !important;
    width: 47px !important;
    height: 42px !important;
    border-radius: 5px 5px 8px 8px !important;
}

.leo-thumb-corner::after {
    left: 20px !important;
    top: 13px !important;
    width: 57px !important;
    height: 22px !important;
    border-radius: 7px 7px 3px 3px !important;
}

.leo-thumb-corner i {
    right: 18px !important;
    top: 19px !important;
    width: 20px !important;
    height: 49px !important;
    border-radius: 4px 7px 7px 4px !important;
    background:
        radial-gradient(circle at 32% 18%, rgba(255,255,255,.7), transparent 18%),
        linear-gradient(145deg, #cbc6bd, #948b80) !important;
}

.leo-thumb-chaise-left::before {
    left: 29px !important;
    top: 31px !important;
    width: 66px !important;
    height: 32px !important;
    border-radius: 5px 9px 9px 5px !important;
}

.leo-thumb-chaise-left::after {
    left: 17px !important;
    top: 22px !important;
    width: 20px !important;
    height: 45px !important;
    border-radius: 7px 4px 4px 7px !important;
}

.leo-thumb-chaise-left i {
    left: 28px !important;
    top: 18px !important;
    width: 52px !important;
    height: 18px !important;
    border-radius: 6px 6px 3px 3px !important;
}

.leo-thumb-pouf::before {
    left: 31px !important;
    top: 27px !important;
    width: 51px !important;
    height: 42px !important;
    border-radius: 7px !important;
}

.leo-thumb-pouf::after {
    display: block !important;
    left: 34px !important;
    top: 18px !important;
    width: 46px !important;
    height: 17px !important;
    border-radius: 8px 8px 3px 3px !important;
    opacity: .82;
}

.leo-thumb-pouf i {
    left: 36px !important;
    top: 33px !important;
    width: 41px !important;
    height: 1px !important;
    border: 0 !important;
    background: rgba(70,64,56,.22) !important;
    box-shadow: 0 14px 0 rgba(70,64,56,.16), 0 26px 0 rgba(70,64,56,.12) !important;
}

.leo-thumb-sleep::before {
    left: 13px !important;
    top: 35px !important;
    width: 80px !important;
    height: 29px !important;
    border-radius: 5px 5px 9px 9px !important;
}

.leo-thumb-sleep::after {
    left: 14px !important;
    top: 19px !important;
    width: 78px !important;
    height: 20px !important;
    border-radius: 7px 7px 3px 3px !important;
}

.leo-thumb-sleep i {
    left: 18px !important;
    top: 49px !important;
    width: 70px !important;
    height: 1px !important;
    border: 0 !important;
    background: rgba(72,65,56,.3) !important;
    box-shadow: 0 9px 0 rgba(72,65,56,.21), 0 -18px 0 rgba(255,255,255,.18) !important;
}

.leo-module-card span:not(.leo-module-thumb),
.leo-module-card small,
.leo-module-card::after {
    text-shadow: none;
}

@media (max-width: 1220px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 260px minmax(0, 1fr) 260px;
    }
}

@media (max-width: 980px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: repeat(5, 150px) 132px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 16px;
    }

    .leo-builder-pro .leo-builder-summary {
        overflow: visible;
    }
}

@media (max-width: 560px) {
    .leo-module-card {
        min-height: 158px;
    }

    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: repeat(5, 140px) 128px;
    }
}

/* Front-facing 3D product thumbnails for module palette */
.leo-module-card .leo-module-thumb {
    width: 112px;
    height: 84px;
    transform: none !important;
    filter: drop-shadow(0 12px 10px rgba(28, 24, 19, .18));
}

.leo-module-card .leo-module-thumb::before,
.leo-module-card .leo-module-thumb::after,
.leo-module-card .leo-module-thumb i {
    transform: none !important;
    border: 1px solid rgba(86, 79, 68, .16) !important;
    background:
        radial-gradient(circle at 32% 22%, rgba(255,255,255,.82), transparent 18%),
        linear-gradient(180deg, #dedbd4 0%, #c3bdb2 62%, #9a9184 100%) !important;
    box-shadow:
        inset 0 5px 10px rgba(255,255,255,.48),
        inset 0 -11px 18px rgba(54,48,41,.16),
        0 7px 11px rgba(44,39,32,.13) !important;
}

.leo-module-card .leo-module-thumb::before {
    content: "";
    position: absolute;
    z-index: 2;
}

.leo-module-card .leo-module-thumb::after {
    content: "";
    position: absolute;
    z-index: 1;
}

.leo-module-card .leo-module-thumb i {
    content: "";
    position: absolute;
    z-index: 3;
    display: block;
}

.leo-thumb-seat::after {
    left: 26px !important;
    top: 11px !important;
    width: 60px !important;
    height: 28px !important;
    border-radius: 8px 8px 5px 5px !important;
}

.leo-thumb-seat::before {
    left: 24px !important;
    top: 34px !important;
    width: 64px !important;
    height: 36px !important;
    border-radius: 8px 8px 12px 12px !important;
}

.leo-thumb-seat i {
    left: 29px !important;
    top: 46px !important;
    width: 54px !important;
    height: 1px !important;
    border: 0 !important;
    background: rgba(81,73,63,.22) !important;
    box-shadow: 0 13px 0 rgba(81,73,63,.13) !important;
}

.leo-thumb-corner::after {
    left: 18px !important;
    top: 10px !important;
    width: 54px !important;
    height: 29px !important;
    border-radius: 8px 8px 4px 4px !important;
}

.leo-thumb-corner::before {
    left: 17px !important;
    top: 34px !important;
    width: 63px !important;
    height: 36px !important;
    border-radius: 8px 8px 12px 12px !important;
}

.leo-thumb-corner i {
    right: 16px !important;
    top: 18px !important;
    width: 25px !important;
    height: 51px !important;
    border-radius: 8px 10px 12px 7px !important;
    background:
        radial-gradient(circle at 34% 20%, rgba(255,255,255,.75), transparent 18%),
        linear-gradient(180deg, #cfcac1 0%, #aca498 100%) !important;
}

.leo-thumb-chaise-left::after {
    left: 18px !important;
    top: 19px !important;
    width: 22px !important;
    height: 48px !important;
    border-radius: 9px 5px 5px 11px !important;
}

.leo-thumb-chaise-left::before {
    left: 36px !important;
    top: 32px !important;
    width: 63px !important;
    height: 36px !important;
    border-radius: 6px 12px 13px 6px !important;
}

.leo-thumb-chaise-left i {
    left: 35px !important;
    top: 15px !important;
    width: 52px !important;
    height: 25px !important;
    border-radius: 8px 8px 4px 4px !important;
}

.leo-thumb-pouf::after {
    display: block !important;
    left: 29px !important;
    top: 23px !important;
    width: 56px !important;
    height: 15px !important;
    border-radius: 9px 9px 4px 4px !important;
}

.leo-thumb-pouf::before {
    left: 27px !important;
    top: 34px !important;
    width: 60px !important;
    height: 36px !important;
    border-radius: 8px 8px 12px 12px !important;
}

.leo-thumb-pouf i {
    left: 33px !important;
    top: 46px !important;
    width: 48px !important;
    height: 1px !important;
    border: 0 !important;
    background: rgba(81,73,63,.2) !important;
    box-shadow: 0 12px 0 rgba(81,73,63,.12) !important;
}

.leo-thumb-sleep::after {
    left: 15px !important;
    top: 12px !important;
    width: 82px !important;
    height: 24px !important;
    border-radius: 8px 8px 4px 4px !important;
}

.leo-thumb-sleep::before {
    left: 13px !important;
    top: 32px !important;
    width: 86px !important;
    height: 38px !important;
    border-radius: 7px 7px 13px 13px !important;
}

.leo-thumb-sleep i {
    left: 18px !important;
    top: 44px !important;
    width: 76px !important;
    height: 1px !important;
    border: 0 !important;
    background: rgba(81,73,63,.26) !important;
    box-shadow:
        0 11px 0 rgba(81,73,63,.17),
        0 -18px 0 rgba(255,255,255,.16) !important;
}

/* Clean canvas measurements and SVG product thumbnails */
.leo-builder-item small,
.leo-measure-top {
    display: none !important;
}

.leo-builder-item-label {
    max-width: 82% !important;
    margin-top: 0 !important;
    padding: 3px 5px !important;
    background: rgba(255, 255, 255, .62) !important;
    font-size: 11px !important;
}

.leo-measure-side {
    right: -34px !important;
    top: 8px !important;
    bottom: 8px !important;
    z-index: 7 !important;
    padding: 4px 3px !important;
    border-right: 1px solid #171613 !important;
    background: rgba(251, 250, 246, .82) !important;
    font-size: 11px !important;
}

.leo-module-card .leo-module-thumb {
    width: 116px !important;
    height: 84px !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: contain !important;
    filter: drop-shadow(0 13px 10px rgba(28, 24, 19, .2)) !important;
}

.leo-module-card .leo-module-thumb::before,
.leo-module-card .leo-module-thumb::after,
.leo-module-card .leo-module-thumb i {
    display: none !important;
}

.leo-thumb-seat {
    background-image: url("module-seat.svg") !important;
}

.leo-thumb-corner {
    background-image: url("module-corner.svg") !important;
}

.leo-thumb-chaise-left,
.leo-thumb-chaise-right {
    background-image: url("module-chaise.svg") !important;
}

.leo-thumb-pouf {
    background-image: url("module-pouf.svg") !important;
}

.leo-thumb-sleep {
    background-image: url("module-sleep.svg") !important;
}

@media (max-width: 560px) {
    .leo-module-card .leo-module-thumb {
        width: 104px !important;
        height: 76px !important;
    }
}

/* Dimension-first 2D builder */
.leo-builder-selected {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid #ddd3c6;
    border-radius: 12px;
    background: #f7f3ec;
}

.leo-builder-selected span,
.leo-builder-selected small {
    color: #756b5f;
    font-size: 12px;
    line-height: 1.35;
}

.leo-builder-selected strong {
    color: #171613;
    font-size: 19px;
    line-height: 1.1;
}

.leo-builder-add-module {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: #171613;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.leo-builder-pro .leo-builder-tools {
    align-content: start;
    max-height: 760px;
    overflow: auto;
}

.leo-builder-pro .leo-builder-shell {
    grid-template-columns: minmax(270px, 320px) minmax(460px, 1fr) minmax(280px, 320px);
}

.leo-module-card {
    min-height: 172px !important;
    padding: 12px 10px 14px !important;
    gap: 5px !important;
}

.leo-module-card .leo-module-thumb {
    position: relative !important;
    width: 118px !important;
    height: 82px !important;
    margin: 0 auto 4px !important;
    background-image: none !important;
    background: transparent !important;
    filter: drop-shadow(0 12px 11px rgba(31, 27, 22, .18)) !important;
}

.leo-module-card .leo-module-thumb::before,
.leo-module-card .leo-module-thumb::after,
.leo-module-card .leo-module-thumb i {
    content: "" !important;
    position: absolute !important;
    display: block !important;
    border: 1px solid rgba(84, 76, 66, .2) !important;
    background:
        radial-gradient(circle at 34% 22%, rgba(255,255,255,.78), transparent 20%),
        linear-gradient(180deg, #e3dfd6 0%, #c4bcaf 66%, #9d9282 100%) !important;
    box-shadow:
        inset 0 5px 10px rgba(255,255,255,.48),
        inset 0 -12px 18px rgba(54,48,41,.16) !important;
}

.leo-thumb-seat::after,
.leo-thumb-seat-sleep::after {
    left: 24px !important;
    top: 11px !important;
    width: 70px !important;
    height: 26px !important;
    border-radius: 9px 9px 5px 5px !important;
}

.leo-thumb-seat::before,
.leo-thumb-seat-sleep::before {
    left: 22px !important;
    top: 34px !important;
    width: 74px !important;
    height: 36px !important;
    border-radius: 8px 8px 13px 13px !important;
}

.leo-thumb-seat i,
.leo-thumb-seat-sleep i {
    left: 28px !important;
    top: 51px !important;
    width: 62px !important;
    height: 1px !important;
    border: 0 !important;
    background: rgba(73, 65, 55, .22) !important;
    box-shadow: 0 -10px 0 rgba(255,255,255,.16), 0 12px 0 rgba(73,65,55,.14) !important;
}

.leo-thumb-seat-wide::after,
.leo-thumb-seat-wide-sleep::after,
.leo-thumb-arm-left-sleep::after,
.leo-thumb-arm-right-sleep::after {
    left: 10px !important;
    top: 11px !important;
    width: 98px !important;
    height: 25px !important;
    border-radius: 9px 9px 5px 5px !important;
}

.leo-thumb-seat-wide::before,
.leo-thumb-seat-wide-sleep::before,
.leo-thumb-arm-left-sleep::before,
.leo-thumb-arm-right-sleep::before {
    left: 9px !important;
    top: 33px !important;
    width: 100px !important;
    height: 37px !important;
    border-radius: 8px 8px 13px 13px !important;
}

.leo-thumb-seat-wide i,
.leo-thumb-seat-wide-sleep i,
.leo-thumb-arm-left-sleep i,
.leo-thumb-arm-right-sleep i {
    left: 42px !important;
    top: 45px !important;
    width: 32px !important;
    height: 1px !important;
    border: 0 !important;
    background: rgba(73,65,55,.22) !important;
    box-shadow: -28px 0 0 rgba(73,65,55,.16), 28px 0 0 rgba(73,65,55,.16), 0 14px 0 rgba(73,65,55,.13) !important;
}

.leo-thumb-corner-left::after,
.leo-thumb-corner-right::after {
    left: 23px !important;
    top: 10px !important;
    width: 58px !important;
    height: 27px !important;
    border-radius: 9px 9px 4px 4px !important;
}

.leo-thumb-corner-left::before,
.leo-thumb-corner-right::before {
    left: 22px !important;
    top: 33px !important;
    width: 62px !important;
    height: 38px !important;
    border-radius: 8px 8px 13px 13px !important;
}

.leo-thumb-corner-left i {
    left: 13px !important;
    top: 16px !important;
    width: 24px !important;
    height: 54px !important;
    border-radius: 10px 6px 8px 12px !important;
}

.leo-thumb-corner-right i {
    right: 13px !important;
    top: 16px !important;
    width: 24px !important;
    height: 54px !important;
    border-radius: 6px 10px 12px 8px !important;
}

.leo-thumb-arm-left::after,
.leo-thumb-arm-right::after {
    left: 12px !important;
    top: 13px !important;
    width: 86px !important;
    height: 25px !important;
    border-radius: 9px 9px 5px 5px !important;
}

.leo-thumb-arm-left::before,
.leo-thumb-arm-right::before {
    left: 20px !important;
    top: 34px !important;
    width: 76px !important;
    height: 36px !important;
    border-radius: 8px 8px 13px 13px !important;
}

.leo-thumb-arm-left i {
    left: 8px !important;
    top: 23px !important;
    width: 21px !important;
    height: 47px !important;
    border-radius: 10px 5px 8px 12px !important;
}

.leo-thumb-arm-right i {
    right: 8px !important;
    top: 23px !important;
    width: 21px !important;
    height: 47px !important;
    border-radius: 5px 10px 12px 8px !important;
}

.leo-thumb-chaise-left::after,
.leo-thumb-chaise-right::after,
.leo-thumb-ottoman::after {
    left: 25px !important;
    top: 10px !important;
    width: 62px !important;
    height: 24px !important;
    border-radius: 9px 9px 5px 5px !important;
}

.leo-thumb-chaise-left::before,
.leo-thumb-chaise-right::before,
.leo-thumb-ottoman::before {
    left: 29px !important;
    top: 31px !important;
    width: 58px !important;
    height: 43px !important;
    border-radius: 8px 8px 15px 15px !important;
}

.leo-thumb-chaise-left i {
    left: 16px !important;
    top: 25px !important;
    width: 20px !important;
    height: 49px !important;
    border-radius: 10px 5px 8px 13px !important;
}

.leo-thumb-chaise-right i {
    right: 16px !important;
    top: 25px !important;
    width: 20px !important;
    height: 49px !important;
    border-radius: 5px 10px 13px 8px !important;
}

.leo-thumb-ottoman i {
    display: none !important;
}

.leo-thumb-pouf::before {
    left: 28px !important;
    top: 30px !important;
    width: 62px !important;
    height: 40px !important;
    border-radius: 10px 10px 14px 14px !important;
}

.leo-thumb-pouf::after {
    left: 31px !important;
    top: 20px !important;
    width: 56px !important;
    height: 16px !important;
    border-radius: 10px 10px 5px 5px !important;
}

.leo-thumb-pouf i {
    display: none !important;
}

.leo-thumb-side-arm::before {
    left: 48px !important;
    top: 12px !important;
    width: 24px !important;
    height: 60px !important;
    border-radius: 10px 10px 12px 12px !important;
}

.leo-thumb-side-arm::after,
.leo-thumb-side-arm i {
    display: none !important;
}

.leo-builder-item small {
    display: none !important;
}

.leo-measure-top {
    display: block !important;
    left: 8px !important;
    right: 8px !important;
    top: -25px !important;
    height: 16px !important;
    border-top: 1px solid #171613 !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 16px !important;
}

.leo-measure-top::before,
.leo-measure-top::after {
    content: "";
    position: absolute;
    top: -5px;
    width: 1px;
    height: 10px;
    background: #171613;
}

.leo-measure-top::before { left: 0; }
.leo-measure-top::after { right: 0; }

.leo-measure-side {
    display: grid !important;
    place-items: center !important;
    right: -42px !important;
    top: 8px !important;
    bottom: 8px !important;
    width: 28px !important;
    padding: 0 !important;
    border-right: 1px solid #171613 !important;
    background: transparent !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.leo-measure-side::before,
.leo-measure-side::after {
    content: "";
    position: absolute;
    right: -5px;
    width: 10px;
    height: 1px;
    background: #171613;
}

.leo-measure-side::before { top: 0; }
.leo-measure-side::after { bottom: 0; }

.leo-builder-plan .sleep-arrow {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 44%;
    width: 26px;
    height: 42px;
    transform: translate(-50%, -50%);
    border: 2px solid #1b1a17;
    border-bottom: 0;
    background: transparent;
}

.leo-builder-plan .sleep-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 24px;
    height: 24px;
    border-right: 2px solid #1b1a17;
    border-bottom: 2px solid #1b1a17;
    transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 1180px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: minmax(230px, 300px) minmax(420px, 1fr);
    }

    .leo-builder-pro .leo-builder-summary {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .leo-builder-pro .leo-builder-summary > p,
    .leo-builder-summary > strong[data-leo-builder-price],
    .leo-builder-summary > span[data-leo-builder-count],
    .leo-builder-form,
    .leo-builder-form-toggle {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .leo-builder-pro {
        width: min(100%, calc(100vw - 18px));
        padding: 0;
    }

    .leo-builder-pro .leo-builder-shell {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        overflow: visible;
    }

    .leo-builder-pro .leo-builder-tools {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(138px, 1fr)) !important;
        max-height: none;
        overflow: visible;
        padding: 12px;
    }

    .leo-builder-pro .leo-builder-tools strong,
    .leo-builder-pro .leo-builder-clear {
        grid-column: 1 / -1;
    }

    .leo-module-card {
        min-height: 154px !important;
    }

    .leo-module-card .leo-module-thumb {
        width: 104px !important;
        height: 74px !important;
    }

    .leo-builder-pro .leo-builder-stage-wrap {
        padding: 14px 10px 18px;
        overflow-x: auto;
    }

    .leo-builder-pro .leo-builder-stage {
        width: 720px;
        min-width: 720px;
        min-height: 520px;
    }

    .leo-builder-pro .leo-builder-summary {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .leo-builder-stage-price {
        position: sticky;
        left: 0;
    }
}

@media (max-width: 460px) {
    .leo-builder-pro .leo-builder-tools {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .leo-module-card {
        min-height: 146px !important;
        padding: 10px 7px !important;
    }

    .leo-module-card span:not(.leo-module-thumb) {
        font-size: 12px !important;
    }

    .leo-module-card small {
        font-size: 11px !important;
    }
}

/* Module dimension modal and wider workspace */
.leo-builder-pro {
    width: min(1480px, calc(100vw - 24px)) !important;
}

.leo-builder-pro .leo-builder-shell {
    grid-template-columns: minmax(320px, 380px) minmax(620px, 1fr) minmax(260px, 310px) !important;
}

.leo-builder-pro .leo-builder-stage {
    min-height: 620px !important;
}

.leo-module-modal[hidden] {
    display: none !important;
}

.leo-module-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(18, 17, 15, .5);
    backdrop-filter: blur(4px);
}

.leo-module-modal-card {
    position: relative;
    width: min(520px, calc(100vw - 28px));
    display: grid;
    gap: 18px;
    padding: 26px;
    border: 1px solid #ded3c5;
    border-radius: 18px;
    background: #fbfaf7;
    box-shadow: 0 28px 80px rgba(31, 27, 22, .25);
}

.leo-module-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #171613;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.leo-module-modal-head {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    align-items: center;
}

.leo-module-modal-head .leo-module-thumb {
    width: 132px !important;
    height: 96px !important;
    border: 1px solid #e0d6c9;
    border-radius: 14px;
    background: #f4f1eb !important;
}

.leo-module-modal-head p {
    margin: 0 0 5px;
    color: #8b7d6c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.leo-module-modal-head h3 {
    margin: 0;
    color: #171613;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1;
}

.leo-module-modal-head small {
    display: block;
    margin-top: 10px;
    color: #63594d;
    font-size: 14px;
    line-height: 1.45;
}

.leo-module-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.leo-module-modal .leo-builder-field {
    margin: 0;
}

.leo-module-modal .leo-builder-field input {
    height: 54px;
    font-size: 22px;
}

.leo-module-modal .leo-builder-field input:disabled {
    color: #71675c;
    background: #eee9e1;
    cursor: not-allowed;
}

.leo-module-modal-fixed {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f2eee7;
    color: #5f564b;
    font-size: 14px;
    line-height: 1.4;
}

.leo-module-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 10px;
}

.leo-module-modal-actions button {
    min-height: 52px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.leo-module-modal-secondary {
    border: 1px solid #d8cdbf;
    background: #fff;
    color: #171613;
}

.leo-module-modal-primary {
    border: 0;
    background: #171613;
    color: #fff;
}

.leo-builder-summary .leo-builder-selected,
.leo-builder-summary .leo-builder-field,
.leo-builder-summary .leo-builder-add-module {
    display: none !important;
}

@media (max-width: 1260px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: minmax(270px, 330px) minmax(520px, 1fr) !important;
    }

    .leo-builder-pro .leo-builder-summary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: 1fr !important;
    }

    .leo-builder-pro .leo-builder-stage {
        width: 760px !important;
        min-width: 760px !important;
        min-height: 540px !important;
    }

    .leo-module-modal {
        align-items: end;
        padding: 10px;
    }

    .leo-module-modal-card {
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow: auto;
        padding: 20px;
        border-radius: 18px 18px 12px 12px;
    }

    .leo-module-modal-head {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }

    .leo-module-modal-head .leo-module-thumb {
        width: 100px !important;
        height: 78px !important;
    }
}

@media (max-width: 480px) {
    .leo-module-modal-grid,
    .leo-module-modal-actions {
        grid-template-columns: 1fr;
    }

    .leo-module-modal-card {
        gap: 14px;
        padding: 18px 14px;
    }

    .leo-module-modal-head h3 {
        font-size: 24px;
    }
}

/* Corrected technical drawing scale: rulers match module proportions */
.leo-builder-pro .leo-builder-stage {
    min-height: 660px !important;
    overflow: hidden !important;
}

.leo-stage-dim {
    z-index: 2 !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    background: rgba(251, 250, 246, .8);
}

.leo-stage-dim-top {
    left: 64px !important;
    right: auto !important;
    top: 25px !important;
    width: 384px !important;
    border-top: 1px solid currentColor !important;
}

.leo-stage-dim-left {
    left: 30px !important;
    top: 438px !important;
    width: 384px !important;
    border-top: 1px solid currentColor !important;
}

.leo-stage-dim-right {
    right: 30px !important;
    top: 132px !important;
    width: 216px !important;
    border-top: 1px solid currentColor !important;
}

.leo-stage-dim-bottom {
    left: auto !important;
    right: 116px !important;
    bottom: 46px !important;
    width: 228px !important;
    border-top: 1px solid currentColor !important;
}

.leo-builder-item {
    z-index: 6 !important;
}

.leo-builder-item.is-selected {
    z-index: 9 !important;
}

.leo-measure-top,
.leo-measure-side {
    z-index: 12 !important;
    color: #111 !important;
    font-weight: 800 !important;
    background: rgba(251, 250, 246, .86) !important;
}

.leo-builder-item-label {
    max-width: 70% !important;
    color: #27221c !important;
    background: rgba(255,255,255,.76) !important;
    box-shadow: 0 4px 12px rgba(31,27,22,.08);
}

@media (max-width: 760px) {
    .leo-builder-pro .leo-builder-stage {
        min-height: 660px !important;
    }

    .leo-stage-dim-top {
        left: 54px !important;
        width: 384px !important;
    }

    .leo-stage-dim-left {
        top: 438px !important;
    }

    .leo-stage-dim-bottom {
        right: 84px !important;
    }
}

/* Mobile configurator: no sideways canvas, module palette opened from a button */
.leo-mobile-module-picker,
.leo-mobile-module-close {
    display: none;
}

.leo-stage-dim-top,
.leo-stage-dim-left {
    width: var(--leo-ruler-320, 384px) !important;
}

.leo-stage-dim-right {
    width: var(--leo-ruler-180, 216px) !important;
}

.leo-stage-dim-bottom {
    width: var(--leo-ruler-190, 228px) !important;
}

@media (max-width: 760px) {
    .leo-product,
    .leo-builder,
    .leo-builder-pro,
    .leo-builder-pro * {
        max-width: 100%;
    }

    .leo-builder-pro {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .leo-builder-pro .leo-builder-shell {
        grid-template-columns: minmax(0, 1fr) !important;
        overflow: visible !important;
    }

    .leo-mobile-module-picker {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 54px;
        margin: 0 0 12px;
        border: 0;
        border-radius: 999px;
        background: #171613;
        color: #fff;
        font-size: 16px;
        font-weight: 900;
        letter-spacing: .01em;
        box-shadow: 0 14px 34px rgba(26, 23, 18, .18);
        cursor: pointer;
    }

    .leo-builder-pro .leo-builder-tools {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        z-index: 10045 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        max-height: min(78vh, 640px) !important;
        padding: 16px !important;
        overflow: auto !important;
        border: 1px solid #ded3c5 !important;
        border-radius: 22px !important;
        background: #fbfaf7 !important;
        box-shadow: 0 24px 90px rgba(22, 19, 15, .34) !important;
        transform: translateY(calc(100% + 22px));
        opacity: 0;
        pointer-events: none;
        transition: transform 220ms ease, opacity 220ms ease;
    }

    .leo-builder-pro .leo-builder-tools.is-mobile-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .leo-builder-pro .leo-builder-tools strong {
        grid-column: 1 / 2 !important;
        display: flex;
        align-items: center;
        min-height: 36px;
        margin: 0 !important;
    }

    .leo-mobile-module-close {
        display: flex;
        grid-column: 2 / 3 !important;
        align-items: center;
        justify-content: center;
        justify-self: end;
        width: auto !important;
        min-height: 36px !important;
        padding: 0 16px !important;
        border: 1px solid #d8cdbf !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #171613 !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        box-shadow: none !important;
    }

    .leo-builder-pro .leo-builder-clear {
        grid-column: 1 / -1 !important;
        position: static !important;
        width: 100% !important;
        min-height: 46px !important;
        margin-top: 2px !important;
        border-radius: 999px !important;
    }

    .leo-builder-pro .leo-module-card {
        min-height: 148px !important;
        padding: 10px 7px !important;
        border-radius: 12px !important;
    }

    .leo-builder-pro .leo-module-card .leo-module-thumb {
        width: 96px !important;
        height: 62px !important;
    }

    .leo-builder-pro .leo-module-card span:not(.leo-module-thumb) {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    .leo-builder-pro .leo-module-card small {
        font-size: 11px !important;
    }

    .leo-builder-pro .leo-builder-stage-wrap {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    .leo-builder-pro .leo-builder-stage-price {
        position: static !important;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
        font-size: clamp(20px, 6vw, 28px) !important;
        white-space: normal;
    }

    .leo-builder-pro .leo-builder-stage {
        width: 100% !important;
        min-width: 0 !important;
        height: min(68vh, 620px) !important;
        min-height: 470px !important;
        overflow: hidden !important;
        touch-action: none;
        background-size: 14px 14px !important;
    }

    .leo-builder-placeholder {
        width: min(260px, calc(100% - 50px));
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    .leo-stage-dim {
        font-size: 11px !important;
    }

    .leo-stage-dim-top {
        left: 34px !important;
        top: 22px !important;
        width: var(--leo-ruler-320, calc(100% - 68px)) !important;
    }

    .leo-stage-dim-left {
        left: 18px !important;
        top: auto !important;
        bottom: 74px !important;
        width: var(--leo-ruler-320, calc(100% - 68px)) !important;
    }

    .leo-stage-dim-right {
        right: 18px !important;
        top: 78px !important;
        width: var(--leo-ruler-180, 160px) !important;
    }

    .leo-stage-dim-bottom {
        right: 34px !important;
        bottom: 34px !important;
        width: var(--leo-ruler-190, 170px) !important;
    }

    .leo-builder-item {
        font-size: 10px !important;
    }

    .leo-builder-item-label {
        max-width: 78% !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .leo-builder-item small {
        display: none !important;
    }

    .leo-measure {
        font-size: 10px !important;
    }

    .leo-builder-accept,
    .leo-builder-pdf,
    .leo-builder-delivery {
        width: 100% !important;
    }
}

@media (max-width: 420px) {
    .leo-builder-pro .leo-builder-stage {
        height: 66vh !important;
        min-height: 430px !important;
    }

    .leo-builder-pro .leo-module-card .leo-module-thumb {
        width: 86px !important;
        height: 58px !important;
    }

    .leo-builder-pro .leo-module-card {
        min-height: 138px !important;
    }
}

/* Builder rotations: every click turns the module by one side, 90 degrees */
.leo-builder-item.leo-rotation-0 {
    transform: none !important;
}

.leo-builder-item.leo-rotation-90,
.leo-builder-item.leo-rotation-180,
.leo-builder-item.leo-rotation-270 {
    transform: none !important;
}

.leo-builder-item.leo-rotation-90 .piece.back {
    left: auto;
    right: 0;
    top: 4%;
    bottom: 4%;
    width: 18%;
    height: auto;
    border-radius: 4px 12px 12px 4px;
}

.leo-builder-item.leo-rotation-180 .piece.back {
    top: auto;
    bottom: 0;
    height: 18%;
    border-radius: 4px 4px 12px 12px;
}

.leo-builder-item.leo-rotation-270 .piece.back {
    left: 0;
    right: auto;
    top: 4%;
    bottom: 4%;
    width: 18%;
    height: auto;
    border-radius: 12px 4px 4px 12px;
}

.leo-builder-item.leo-rotation-90 .piece.left-arm,
.leo-builder-item.leo-rotation-90 .piece.right-arm,
.leo-builder-item.leo-rotation-270 .piece.left-arm,
.leo-builder-item.leo-rotation-270 .piece.right-arm {
    width: auto;
    height: 18%;
}

.leo-builder-item.leo-rotation-90 .piece.left-arm,
.leo-builder-item.leo-rotation-270 .piece.right-arm {
    left: 4%;
    right: 22%;
    top: 0;
    bottom: auto;
    border-radius: 12px 12px 4px 4px;
}

.leo-builder-item.leo-rotation-90 .piece.right-arm,
.leo-builder-item.leo-rotation-270 .piece.left-arm {
    left: 22%;
    right: 4%;
    top: auto;
    bottom: 0;
    border-radius: 4px 4px 12px 12px;
}

.leo-builder-item.leo-rotation-180 .piece.left-arm {
    left: auto;
    right: 0;
}

.leo-builder-item.leo-rotation-180 .piece.right-arm {
    left: 0;
    right: auto;
}

.leo-builder-item.leo-rotation-90 .seam-h,
.leo-builder-item.leo-rotation-270 .seam-h {
    top: 12%;
    bottom: 12%;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
}

.leo-builder-item.leo-rotation-90 .seam-v,
.leo-builder-item.leo-rotation-270 .seam-v {
    left: 12%;
    right: 12%;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
}

.leo-builder-stage.is-left .leo-builder-item {
    --leo-orientation-accent: #2a75b0;
}

/* Final builder correction: left/right modules and chaises use a seat cutout, not an armrest. */
.leo-builder-plan .piece.cutout {
    z-index: 5;
    top: 20%;
    bottom: -2px;
    width: var(--leo-cutout-size, 25%);
    background: #f7f5ef;
    border: 2px solid rgba(61, 57, 50, .7);
    border-bottom-color: #f7f5ef;
    box-shadow: inset 0 0 0 999px rgba(247, 245, 239, .92);
}

.leo-builder-plan .piece.cutout-left {
    left: -2px;
    border-left-color: #f7f5ef;
    border-radius: 0 8px 0 0;
}

.leo-builder-plan .piece.cutout-right {
    right: -2px;
    border-right-color: #f7f5ef;
    border-radius: 8px 0 0 0;
}

.leo-module-cutout .leo-builder-plan .piece.main {
    border-radius: 14px;
}

.leo-module-cutout .leo-builder-plan .piece.back {
    left: var(--leo-back-left, 3%);
    right: var(--leo-back-right, 3%);
    top: 0;
    height: 20%;
}

.leo-module-cutout.leo-rotation-90 .piece.back,
.leo-module-cutout.leo-rotation-270 .piece.back {
    top: var(--leo-back-top, 4%);
    bottom: var(--leo-back-bottom, 4%);
}

.leo-module-cutout .leo-measure-cutout {
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #5c554c;
    font-size: 10px;
}

.leo-module-cutout.leo-rotation-180 .piece.cutout-left {
    left: auto;
    right: -2px;
    border-left-color: rgba(61, 57, 50, .7);
    border-right-color: #f7f5ef;
    border-radius: 8px 0 0 0;
}

.leo-module-cutout.leo-rotation-180 .piece.cutout-right {
    right: auto;
    left: -2px;
    border-right-color: rgba(61, 57, 50, .7);
    border-left-color: #f7f5ef;
    border-radius: 0 8px 0 0;
}

.leo-module-cutout.leo-rotation-90 .piece.cutout,
.leo-module-cutout.leo-rotation-270 .piece.cutout {
    left: auto;
    right: 20%;
    width: var(--leo-cutout-size, 25%);
    top: auto;
    bottom: -2px;
}

.leo-module-cutout.leo-rotation-270 .piece.cutout {
    right: auto;
    left: 20%;
}

.leo-thumb-arm-left,
.leo-thumb-arm-right,
.leo-thumb-arm-left-sleep,
.leo-thumb-arm-right-sleep,
.leo-thumb-chaise-left,
.leo-thumb-chaise-right {
    position: relative;
    overflow: visible;
}

.leo-thumb-arm-left::before,
.leo-thumb-arm-right::before,
.leo-thumb-arm-left-sleep::before,
.leo-thumb-arm-right-sleep::before,
.leo-thumb-chaise-left::before,
.leo-thumb-chaise-right::before {
    content: "";
    position: absolute;
    left: 16px !important;
    top: 28px !important;
    width: 72px !important;
    height: 34px !important;
    border: 1px solid rgba(86, 80, 70, .22);
    border-radius: 10px !important;
    background:
        radial-gradient(circle at 42% 32%, rgba(255,255,255,.78), rgba(255,255,255,0) 18px),
        linear-gradient(180deg, #d8d2c7, #b8afa1 65%, #a79e91);
    box-shadow: 0 12px 18px rgba(39,34,28,.17) !important;
}

.leo-thumb-arm-left::after,
.leo-thumb-arm-right::after,
.leo-thumb-arm-left-sleep::after,
.leo-thumb-arm-right-sleep::after,
.leo-thumb-chaise-left::after,
.leo-thumb-chaise-right::after {
    content: "";
    position: absolute;
    left: 16px !important;
    top: 15px !important;
    width: 72px !important;
    height: 22px !important;
    border: 1px solid rgba(86, 80, 70, .2);
    border-radius: 10px 10px 5px 5px !important;
    background:
        radial-gradient(circle at 38% 35%, rgba(255,255,255,.72), rgba(255,255,255,0) 17px),
        linear-gradient(180deg, #ded9cf, #b9b0a3);
    box-shadow: 0 8px 15px rgba(39,34,28,.14) !important;
}

.leo-thumb-arm-left i,
.leo-thumb-arm-right i,
.leo-thumb-arm-left-sleep i,
.leo-thumb-arm-right-sleep i,
.leo-thumb-chaise-left i,
.leo-thumb-chaise-right i {
    display: block !important;
    position: absolute !important;
    z-index: 4 !important;
    top: 36px !important;
    width: 26px !important;
    height: 28px !important;
    border: 1px solid rgba(86, 80, 70, .32) !important;
    border-bottom: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

.leo-thumb-arm-left i,
.leo-thumb-arm-left-sleep i,
.leo-thumb-chaise-left i {
    left: 16px !important;
    right: auto !important;
    border-left-color: #fff !important;
    border-radius: 0 7px 0 0 !important;
}

.leo-thumb-arm-right i,
.leo-thumb-arm-right-sleep i,
.leo-thumb-chaise-right i {
    right: 16px !important;
    left: auto !important;
    border-right-color: #fff !important;
    border-radius: 7px 0 0 0 !important;
}

.leo-thumb-chaise-left::before,
.leo-thumb-chaise-right::before {
    top: 26px !important;
    height: 48px !important;
}

.leo-thumb-chaise-left i,
.leo-thumb-chaise-right i {
    height: 42px !important;
}

.leo-builder-modal-grid .leo-builder-cutout-field[hidden] {
    display: none !important;
}

.leo-shot video,
.leo-media-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f3f0ea;
}

.leo-shot-video {
    background: #f3f0ea;
}

.leo-product--upendo .leo-upendo-video-shot video {
    object-fit: cover;
    object-position: center center;
    background: #f8f6f1;
}

.leo-product--upendo .leo-upendo-video-shot figcaption {
    color: #fff;
    background: rgba(24, 23, 20, .72);
}

.leo-product--upendo .leo-shot img {
    object-fit: cover !important;
    object-position: center 42% !important;
    transform: none !important;
    background: #fff;
}

.leo-product--upendo .leo-shot-1 {
    min-height: 460px;
}

.leo-product--upendo .leo-shot:not(.leo-shot-1) {
    min-height: 315px;
}

.leo-product--upendo .leo-upendo-crop-main img {
    object-position: center 40% !important;
    transform: none !important;
}

.leo-product--upendo .leo-upendo-crop-wide img {
    object-position: center 44% !important;
    transform: none !important;
}

.leo-product--upendo .leo-upendo-crop-detail img {
    object-position: center 45% !important;
    transform: none !important;
}

.leo-product--photo-gallery .leo-shot {
    background: #fffef8;
}

.leo-product--photo-gallery .leo-shot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    background: #fffef8;
}

.leo-product--photo-gallery .leo-shot-1 {
    min-height: 460px;
}

.leo-product--photo-gallery .leo-shot:not(.leo-shot-1) {
    min-height: 315px;
}

.leo-product--photo-gallery .leo-media-card img {
    object-fit: contain;
    object-position: center center;
    background: #fffef8;
}

@media (max-width: 760px) {
    .leo-product--photo-gallery .leo-gallery,
    .leo-product--upendo .leo-gallery {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .leo-product--photo-gallery .leo-shot,
    .leo-product--photo-gallery .leo-shot-1,
    .leo-product--photo-gallery .leo-shot:not(.leo-shot-1),
    .leo-product--upendo .leo-shot,
    .leo-product--upendo .leo-shot-1,
    .leo-product--upendo .leo-shot:not(.leo-shot-1) {
        min-height: 0;
        aspect-ratio: 1.08 / 1;
        width: 100%;
        max-width: 100%;
    }

    .leo-product--photo-gallery .leo-shot img,
    .leo-product--upendo .leo-shot img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        background: #fff;
    }

    .leo-product--upendo .leo-upendo-video-shot video {
        object-fit: cover;
    }
}

.leo-product-story {
    max-width: 1480px;
    margin: 58px auto 18px;
    padding: clamp(28px, 4vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: clamp(28px, 5vw, 76px);
    border: 1px solid #ded3c2;
    background: #f7f5f0;
}

.leo-product-story-copy > p {
    margin: 0 0 16px;
    color: #8b7657;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.leo-product-story h2 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: clamp(34px, 4vw, 64px);
    line-height: .98;
    font-weight: 420;
    letter-spacing: 0;
    color: #2c2925;
}

.leo-product-story-copy div {
    display: grid;
    gap: 14px;
    max-width: 820px;
}

.leo-product-story-copy div p {
    margin: 0;
    color: #5f594f;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.7;
}

.leo-product-story-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.leo-product-story-highlights article {
    min-height: 132px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ded3c2;
    background: #fff;
}

.leo-product-story-highlights strong {
    color: #191714;
    font-size: 15px;
}

.leo-product-story-highlights span {
    color: #6a6257;
    font-size: 18px;
    line-height: 1.35;
}

.leo-product-media {
    max-width: 1480px;
    margin: 70px auto 28px;
    padding: 0 clamp(18px, 4vw, 48px);
}

.leo-product-media .leo-section-title {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
}

.leo-product-media .leo-section-title h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 52px);
    font-weight: 400;
    letter-spacing: 0;
    color: #2d2a26;
}

.leo-product-media .leo-section-title span {
    flex: 1;
    height: 1px;
    background: #d8c8aa;
}

.leo-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.leo-media-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    aspect-ratio: 16 / 10;
    margin: 0;
    border: 1px solid #ded3c2;
    background: #f6f3ef;
}

.leo-media-card-image:nth-child(-n + 3) {
    aspect-ratio: 16 / 9;
}

.leo-media-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    background: #fff;
}

.leo-media-card-video {
    background: #0f0e0b;
}

.leo-media-card-video video {
    object-fit: cover;
}

.leo-media-card-image:nth-child(1) img,
.leo-media-card-image:nth-child(2) img,
.leo-media-card-image:nth-child(3) img,
.leo-media-card-image:nth-child(4) img,
.leo-media-card-image:nth-child(5) img,
.leo-media-card-image:nth-child(6) img,
.leo-media-card-image:nth-child(7) img {
    transform: none;
    transform-origin: center bottom;
}

.leo-media-card-image:nth-child(8) img,
.leo-media-card-image:nth-child(9) img,
.leo-media-card-image:nth-child(10) img {
    transform: none;
    transform-origin: center center;
}

.leo-video-links {
    margin-top: 22px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #ded3c2;
    background: #f7f5f0;
}

.leo-video-links strong {
    color: #2d2a26;
    font-size: 16px;
}

.leo-video-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.leo-video-links a {
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    background: #181611;
}

.leo-media-card figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: rgba(22, 20, 17, .72);
}

@media (max-width: 900px) {
    .leo-product-story {
        grid-template-columns: 1fr;
    }

    .leo-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .leo-product-story {
        margin-top: 34px;
        padding: 26px 18px;
    }

    .leo-product-story-highlights {
        grid-template-columns: 1fr;
    }

    .leo-product-media {
        margin-top: 44px;
        padding: 0 16px;
    }

    .leo-product-media .leo-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .leo-product-media .leo-section-title span {
        width: 100%;
        flex: 0 0 1px;
    }

    .leo-media-grid {
        grid-template-columns: 1fr;
    }

    .leo-media-card {
        min-height: 220px;
    }

    .leo-video-links {
        align-items: stretch;
        flex-direction: column;
    }

    .leo-video-links div {
        justify-content: flex-start;
    }
}

