/* Table product layout. */
body:has(.table-studio-page) { --studio-accent: #ef7d00; --studio-paper: #faf8f4; --studio-line: #e4dfd7; }
body:has(.table-studio-page) .main > div:has(> .woocommerce-breadcrumb),
body:has(.table-studio-page) .ohub-chat-widget { display: none; }
body:has(.table-studio-page) #wrapper { overflow: clip; }
.table-studio-page { margin: 0; padding: 0; }
.table-studio, .table-studio * { box-sizing: border-box; }
.table-studio.detail__grid--table { --studio-height: max(500px, calc(100dvh - var(--table-studio-top, 116px))); display: grid; grid-template-columns: minmax(0, 1fr) 450px; grid-template-areas: "gallery panel"; max-width: none; width: 100%; gap: 0; align-items: stretch; }
.table-studio .table-studio__scene { position: sticky; top: 76px; height: var(--studio-height); min-width: 0; margin: 0; background: #73736f; overflow: hidden; }
.table-studio .table-product-media,
.table-studio .table-product-3d,
.table-studio .table-product-visual,
.table-studio .table-product-visual__image { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
.table-studio .table-product-visual__image { object-fit: contain; background: #f4f1ec; }
.table-studio .table-product-3d[hidden],
.table-studio .table-product-visual[hidden] { display: none; }
.table-studio .table-product-media__tabs { top: auto; bottom: 20px; left: 50%; transform: translateX(-50%); border: 1px solid #ffffff40; border-radius: 4px; padding: 3px; background: #ffffff14; box-shadow: none; backdrop-filter: blur(12px); }
.table-studio .table-product-media__tab { min-width: 62px; padding: 9px 13px; border-radius: 2px; color: #f7f5ef; font-size: 11px; font-weight: 500; }
.table-studio .table-product-media__tab[aria-selected="true"] { color: #272824; background: #faf8f1; }
.table-studio__title { position: absolute; z-index: 2; top: 26px; left: 36px; max-width: calc(100% - 220px); color: #f5f2ea; pointer-events: none; }
.table-studio__title h1 { margin: 0; font: 400 clamp(36px, 3.6vw, 52px)/1.1 Georgia, serif; letter-spacing: -1px; color: inherit; }
.table-studio__title h1 span { color: #f49b35; }
.table-studio__hint { position: absolute; z-index: 2; bottom: 23px; left: 35px; max-width: calc(50% - 130px); margin: 0; color: #e3dfd6; font-size: 10px; line-height: 1.5; letter-spacing: .4px; pointer-events: none; }
.table-studio__hint span { margin-right: 8px; color: #f1b165; }
.table-studio .table-product-visual__pagination { bottom: 74px; }
.table-studio .table-product-3d__status { bottom: 76px; }
.table-studio--photo .table-studio__title { color: #302f2a; }
.table-studio--photo .table-product-media__tabs { background: #ded9d0; border-color: #d8d1c6; }
.table-studio--photo .table-product-media__tab { color: #60594f; }
.table-studio--photo .table-studio__hint { display: none; }
.table-studio[data-studio-preset="light"] .table-studio__title,
.table-studio[data-studio-preset="kitchen-room"] .table-studio__title { color: #302f2a; }
.table-studio[data-studio-preset="light"] .table-studio__hint,
.table-studio[data-studio-preset="kitchen-room"] .table-studio__hint { color: #61584c; }
.table-studio[data-studio-preset="light"] .table-product-media__tabs,
.table-studio[data-studio-preset="kitchen-room"] .table-product-media__tabs { background: #faf8f4f2; border-color: #d8d1c6; }
.table-studio[data-studio-preset="light"] .table-product-media__tab,
.table-studio[data-studio-preset="kitchen-room"] .table-product-media__tab { color: #60594f; }
.table-studio[data-studio-preset="light"] .table-product-media__tab[aria-selected="true"],
.table-studio[data-studio-preset="kitchen-room"] .table-product-media__tab[aria-selected="true"] { background: #fff1df; color: #925008; }
.table-studio[data-studio-preset="kitchen-room"]:not(.table-studio--photo) .table-studio__title { padding: 6px 10px; margin: -6px -10px; border-radius: 4px; background: #faf8f4eb; backdrop-filter: blur(12px); }
.table-studio[data-studio-preset="kitchen-room"] .table-studio__hint { padding: 7px 10px; margin: -7px -10px; border-radius: 3px; background: #faf8f4eb; }
.table-studio[data-studio-preset="light"] .table-studio__hint span,
.table-studio[data-studio-preset="kitchen-room"] .table-studio__hint span { color: #b85e00; }
.table-studio__panel { grid-area: panel; min-width: 0; height: var(--studio-height); display: flex; flex-direction: column; background: var(--studio-paper); border-left: 1px solid #d6d0c7; }
.table-studio .table-studio__fields { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cfc6b9 transparent; padding: 28px 28px 14px; overscroll-behavior-y: auto; }
.table-studio .table-product-configurator { display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; }
.table-crm-guide { display: grid; gap: 9px; margin: 0 0 24px; padding: 0 0 15px; border-bottom: 1px solid #e4dfd7; color: #453e35; order: 0; }
.table-crm-guide__title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.table-crm-guide__route { display: flex; flex-wrap: wrap; gap: 7px 5px; align-items: center; margin: 0; padding: 0; list-style: none; }
.table-crm-guide__step { display: flex; align-items: center; gap: 5px; color: #8b8175; font-size: 12px; line-height: 1.3; }
.table-crm-guide__step:not(:last-child)::after { content: '→'; color: #b7aea3; }
.table-crm-guide__step--done { color: #6e665d; text-decoration: line-through; text-decoration-color: #b7aea3; }
.table-crm-guide__step--current { padding: 4px 7px; border: 1px solid #ef7d00; border-radius: 3px; background: #fff4e6; color: #9a5000; font-weight: 500; text-decoration: none; }
.table-studio .table-product-configurator__group { min-width: 0; margin: 0 0 21px; padding: 0; border: 0; order: 8; }
.table-product-configurator__group--next { outline: 1px solid #ef7d0066; outline-offset: 7px; border-radius: 2px; }
.table-studio .table-product-configurator__group[hidden] { display: none; }
.table-studio .table-product-configurator__group-title { width: 100%; margin: 0 0 10px; gap: 12px; color: #453e35; font-size: 16px; font-weight: 500; line-height: 1.4; }
.table-crm-addon-price { margin-left: auto; padding: 3px 7px; border-radius: 3px; background: #fff0dd; color: #a65400; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.table-crm-addon-price[hidden] { display: none; }
.table-studio .table-product-configurator__group-name[data-step]::before { content: attr(data-step); color: #857764; font-size: 12px; font-weight: 400; margin-right: 10px; }
.table-studio .table-product-configurator__palette-button { min-height: 0; padding: 0; border: 0; border-radius: 0; color: #87551d; font-size: 13px; font-weight: 400; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.table-studio .table-product-configurator__palette-button:hover { color: #d56f00; background: transparent; }
.table-studio .table-product-configurator__options { gap: 8px; }
.table-studio .table-product-configurator__option { flex: 0 1 auto; }
.table-studio .table-product-configurator__label { min-height: 44px; padding: 10px 12px; border: 1px solid #e2ddd4; border-radius: 3px; background: #fffdfa; color: #554d42; font-size: 16px; font-weight: 400; line-height: 1.4; }
.table-studio .table-product-configurator__label::before,
.table-studio .table-product-configurator__label::after { display: none; }
.table-studio .table-product-configurator__input:checked + .table-product-configurator__label { color: #925008; border-color: #e4b47e; background: #fff1df; }
.table-studio .table-product-configurator__input:focus-visible + .table-product-configurator__label { outline: 2px solid var(--studio-accent); outline-offset: 2px; }
.table-studio .table-product-configurator__input:disabled + .table-product-configurator__label { opacity: .4; }
.table-studio .table-product-configurator__select { display: block; width: 100%; max-width: none; min-height: 46px; padding: 8px 24px 10px 0; border: 0; border-bottom: 1px solid #d9d2c7; border-radius: 0; background-color: transparent; color: #453e35; font: inherit; font-size: 16px; box-shadow: none; }
.table-studio .table-product-configurator__select:focus { outline: none; border-bottom-color: var(--studio-accent); box-shadow: 0 1px var(--studio-accent); }
.table-crm-field-note { margin: 8px 0 0; color: #8b8175; font-size: 12px; line-height: 1.45; }
.table-studio .table-product-3d-options__check { width: 100%; min-height: 46px; margin: 0; padding: 8px 0 10px; border: 0; border-bottom: 1px solid #d9d2c7; border-radius: 0; background: transparent; color: #453e35; font-size: 16px; }
.table-studio .table-product-3d-options__check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--studio-accent); }
.table-studio .table-product-3d-options__check:has(input:checked) { color: #925008; border-bottom-color: var(--studio-accent); background: transparent; }
.table-studio .table-product-3d-options__check:has(input:disabled) { color: #8b8175; opacity: .55; cursor: not-allowed; }
.table-studio .table-studio__order { position: relative; flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; width: 100%; max-width: none; margin: 0; padding: 20px 28px 15px; border-top: 1px solid var(--studio-line); background: var(--studio-paper); }
.table-studio .detail__prices { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 0; }
.table-studio__price-label { display: grid; justify-items: start; gap: 3px; }
.table-studio .detail__prices-name { max-width: 170px; font-size: 14px; line-height: 1.4; color: #756b5f; }
.table-studio .detail__prices-value { margin: 0; color: #373127; font-size: 30px; line-height: 1.3; white-space: nowrap; }
.detail__prices-placeholder { display: block; max-width: 150px; color: #756b5f; font-size: 14px; font-weight: 400; line-height: 1.4; text-align: right; white-space: normal; }
.table-studio .detail__prices-value small { font-size: 13px; font-weight: 400; }
.table-studio .detail__cta { margin: 0; }
.table-studio .detail__order { width: 100%; min-height: 48px; padding: 12px 18px; border-radius: 3px; box-shadow: none; font-size: 16px; font-weight: 500; }
.table-studio .detail__order::after { content: '↗'; margin-left: auto; font-size: 16px; }
.table-studio .table-studio__price-note { margin: 0; color: #756b5f; text-align: center; font-size: 13px; line-height: 1.4; }
.table-studio__about { margin: 2px 0 20px; border-top: 1px solid var(--studio-line); color: #6d6152; font-size: 15px; }
.table-studio__about summary { display: flex; justify-content: space-between; padding: 16px 0; list-style: none; cursor: pointer; }
.table-studio__about summary::-webkit-details-marker { display: none; }
.table-studio__about[open] summary span { transform: rotate(45deg); }
.table-studio__about table { width: 100%; font-size: 14px; line-height: 1.6; text-align: left; }
.table-studio__about th { padding: 8px 10px 8px 0; vertical-align: top; font-weight: 500; }
.table-studio__about td { padding: 8px 0; }
.table-studio__about td p { margin: 0; }
.table-studio .table-studio__native-select { display: none; }
.table-studio .table-studio__has-samples .table-product-configurator__palette-button { display: none; }
.table-studio__sample-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 3px; margin: -3px; }
.table-studio__sample { position: relative; flex: 0 0 44px; width: 44px; height: 44px; padding: 4px; border: 1px solid #d9d2c7; border-radius: 50%; background: var(--sample-color, #eee9df); box-shadow: inset 0 0 0 4px var(--studio-paper); cursor: pointer; }
.table-studio__sample--metal { background-image: linear-gradient(135deg, #ffffff30, transparent 40%, #00000012 70%, #ffffff30); }
.table-studio__sample--texture { flex-basis: 48px; width: 48px; height: 48px; padding: 3px; border-radius: 5px; box-shadow: none; background: #f0ebe2; }
.table-studio__sample img { display: block; width: 100%; height: 100%; border-radius: 2px; object-fit: cover; }
.table-studio__sample[aria-pressed="true"] { outline: 2px solid #a46c2c; outline-offset: 2px; border-color: var(--studio-paper); }
.table-studio__sample:focus-visible { outline: 3px solid #ef7d00; outline-offset: 3px; }
.table-studio__sample-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 12px; }
.table-studio__sample-name { margin: 0; color: #6d6252; font-size: 15px; line-height: 1.5; }
.table-studio__sample-link { min-height: 32px; padding: 3px 0; border: 0; background: none; color: #86541f; font: inherit; font-size: 14px; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.table-studio__sample-more { margin-top: 3px; }
@media (min-width: 1500px) { .table-studio.detail__grid--table { grid-template-columns: minmax(0, 1fr) 480px; } .table-studio .table-studio__fields { padding-right: 34px; padding-left: 34px; } .table-studio .table-studio__order { padding-right: 34px; padding-left: 34px; } }
@media (max-width: 1100px) and (min-width: 901px) { .table-studio.detail__grid--table { grid-template-columns: minmax(0, 1fr) 390px; } .table-studio .table-studio__fields { padding-right: 22px; padding-left: 22px; } .table-studio .table-studio__order { padding: 16px 22px; } }
/* The same form stays in the document when the mobile sheet opens and closes. */
.table-studio__sheet { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.table-studio__sheet-controls, .table-studio__sheet-handle, .table-studio__sheet-close, .table-studio__sections, .table-studio__configure { display: none; }
@media (max-width: 900px) {
    .table-studio.detail__grid--table { display: flex; flex-direction: column; }
    .table-studio .table-studio__scene { position: relative; top: auto; height: clamp(440px, 68dvh, 660px); }
    .table-studio__panel { height: auto; border-left: 0; }
    .table-studio .table-studio__fields { overflow: visible; padding: 0 22px 18px; }
    .table-studio .table-studio__order { gap: 8px; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); }
    .table-studio .detail__prices-value { font-size: 26px; }
    .table-studio .detail__prices-name { font-size: 13px; }
    .table-studio .table-product-media__tabs { bottom: 12px; }
    .table-studio .table-product-media__tab { font-size: 13px; min-height: 36px; min-width: 58px; padding: 9px 12px; }
    .table-studio__title { top: 20px; left: 22px; max-width: calc(100% - 185px); }
    .table-studio__title h1 { font-size: clamp(20px, 6vw, 26px); letter-spacing: -.5px; }
    .table-studio[data-studio-preset="kitchen-room"]:not(.table-studio--photo) .table-studio__title { padding: 5px 8px; margin: -5px -8px; }
    .table-studio__hint { display: none; }
    .table-studio .table-product-configurator__group-title { align-items: flex-start; flex-direction: column; gap: 6px; font-size: 16px; }
    .table-studio .table-product-configurator__select { font-size: 16px; }
    .table-studio--mobile { --studio-dock-height: 112px; --studio-sheet-height: 360px; }
    .table-studio--mobile.detail__grid--table { height: var(--studio-mobile-height); min-height: 0; }
    .table-studio--mobile .table-studio__scene { height: calc(var(--studio-mobile-height) - var(--studio-dock-height)); flex: 0 0 auto; }
    .table-studio--mobile.table-studio--sheet-open .table-studio__scene { height: calc(var(--studio-mobile-height) - var(--studio-dock-height) - var(--studio-sheet-height)); }
    .table-studio--mobile .table-studio__panel { position: static; height: 0; border: 0; }
    .table-studio--mobile .table-studio__sheet { position: fixed; z-index: 25; bottom: var(--studio-dock-height); left: 0; right: 0; height: var(--studio-sheet-height); background: var(--studio-paper); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px #211d2317; transform: translateY(100%); visibility: hidden; }
    .table-studio--mobile.table-studio--sheet-open .table-studio__sheet { transform: none; visibility: visible; }
    .table-studio--mobile .table-studio__sheet-controls { position: relative; display: block; flex-shrink: 0; height: 44px; }
    .table-studio--mobile .table-studio__sheet-handle { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 100%; height: 36px; padding: 0; border: 0; background: none; touch-action: none; cursor: grab; }
    .table-studio__sheet-handle span { width: 38px; height: 4px; background: #c7bfb3; border-radius: 5px; }
    .table-studio--mobile .table-studio__sheet-close { position: absolute; top: 0; right: 8px; display: block; width: 44px; height: 44px; border: 0; background: none; color: #665c50; font: 28px/1 Arial, sans-serif; cursor: pointer; }
    .table-studio--mobile .table-studio__sections { display: flex; flex-shrink: 0; gap: 6px; padding: 0 16px 12px; }
    .table-studio__sections button { flex: 1 1 0; min-height: 40px; padding: 8px 6px; border: 1px solid #d9d0c2; border-radius: 5px; background: transparent; color: #675c4e; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
    .table-studio__sections button[aria-selected="true"] { border-color: #c5904e; color: #865019; background: #fff0dd; }
    .table-studio--mobile .table-studio__fields { overflow-y: auto; padding: 8px 20px 10px; }
    .table-studio--mobile .table-product-configurator > [data-studio-section],
    .table-studio--mobile .table-studio__about { display: none; }
    .table-studio--mobile[data-studio-active-section="size"] [data-studio-section="size"],
    .table-studio--mobile[data-studio-active-section="tabletop"] [data-studio-section="tabletop"],
    .table-studio--mobile[data-studio-active-section="support"] [data-studio-section="support"] { display: block; }
    .table-studio--mobile .table-studio__order { position: fixed; z-index: 26; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--studio-line); background: var(--studio-paper); box-shadow: 0 -3px 20px #3930250a; }
    .table-studio--mobile .detail__prices { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .table-studio--mobile .detail__prices-name { margin: 0; }
    .table-studio--mobile .detail__prices-value { font-size: 25px; }
    .table-studio--mobile .table-studio__configure { grid-column: 1; grid-row: 2; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 10px 8px; border: 1px solid #b9aa97; border-radius: 4px; color: #574a39; background: transparent; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
    .table-studio--mobile .table-studio__configure > span:first-child { font-size: 20px; line-height: 1; }
    .table-studio--mobile .table-studio__configure[aria-expanded="true"] { background: #eee7dc; border-color: #bda78a; }
    .table-studio--mobile .detail__cta { grid-column: 2; grid-row: 2; }
    .table-studio--mobile .detail__order { min-height: 46px; padding: 10px 8px; font-size: 14px; }
    .table-studio--mobile .detail__order::after, .table-studio--mobile .table-studio__price-note { display: none; }
    .table-studio--mobile.table-studio--sheet-open .table-studio__title { top: 18px; }
    .table-studio--mobile.table-studio--sheet-open .table-studio__title h1 { font-size: clamp(20px, 6vw, 24px); }
    body.table-studio-sheet-open { overflow: hidden; }
    body:has(.table-studio--mobile) { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
    .table-studio__sections button { font-size: 12px; }
    .table-studio--mobile .table-studio__order { padding-right: 12px; padding-left: 12px; }
    .table-studio--mobile .table-studio__configure, .table-studio--mobile .detail__order { font-size: 13px; }
}
