@media screen and (max-width: 1280px) {
        .container2 {
            min-height: 720px;
        }
    }

    @media screen and (max-width: 1024px) {
        .container2 {
            min-height: 600px;
        }
    }

    @media screen and (max-width: 768px) {
        .container2 {
            min-height: 500px;
        }
    }

    @media screen and (max-width: 500px) {
        .container2 {
            min-height: 360px;
        }
    }

    .label {
        color: white;
        font-size: 2rem;
    }

    .container2 {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 200px;
        max-height: 650px;
        height: auto;
        overflow-y: hidden;
        background: #fafafa;
        position: relative;
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .wall-textures #mainImage,
    .floor-textures #mainImage {
        width: 100%;
        height: auto;
        cursor: pointer;
    }

    .color-container,
    .size-container,
    .details-container {
        margin-top: 20px;
    }

    .color-container select,
    .size-container select {
        width: 100%;
        padding: 5px;
    }

    .details-container p {
        margin: 0;
    }

    .size-buttons {
        display: flex;
        gap: 5px;
        margin-top: 5px;
    }

    .size-buttons button {
        background-color: #E56262;
        color: white;
        border: none;
        padding: 5px;
        cursor: pointer;
    }

    .product-name,
    .size-buttons {
        display: block;
    }

    .texture-description,
    .fc-more-details-btn,
    .thumbnail-product {
        display: none;
    }

    .fc-more-details-btn {
        color: #BF1901;
        text-decoration: underline;
        font-size: 13px;
        font-weight: 600;
        margin-top: 8px;
        align-items: center;
        background: transparent;
    }

    .fc-more-details-btn:hover {
        color: #901000;
    }

    .texture-description.active,
    .product-name.active {
        display: block;
    }

    .fc-more-details-btn.active {
        display: flex;
    }

    .size-buttons,
    .size-buttons.active {
        display: flex;
        justify-content: space-between;
    }

    .thumbnail-product.active {
        display: flex;
    }

    /* ── Action Buttons (Screenshot, Download, Delete) ── */
    .fc-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 600;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        line-height: 1;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    .fc-action-btn svg {
        flex-shrink: 0;
    }

    .fc-action-btn--default {
        background: #f1f5f9;
        color: #475569;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .fc-action-btn--default:hover {
        background: #e2e8f0;
        color: #1e293b;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

    .fc-action-btn--primary {
        background: linear-gradient(135deg, #bf1901 0%, #dc2626 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(191, 25, 1, 0.25);
    }

    .fc-action-btn--primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(191, 25, 1, 0.35);
        filter: brightness(1.05);
    }

    .fc-action-btn--success {
        background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    }

    .fc-action-btn--success:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
        filter: brightness(1.05);
    }

    .fc-action-btn--danger {
        background: #fff;
        color: #dc2626;
        border: 2px solid #fecaca;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .fc-action-btn--danger:hover {
        background: #fef2f2;
        border-color: #dc2626;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(220, 38, 38, 0.15);
    }

    .fc-action-btn:active {
        transform: translateY(0) !important;
    }

    @media (max-width: 640px) {
        .fc-action-btn {
            padding: 8px 14px;
            font-size: 12.5px;
            gap: 6px;
            border-radius: 8px;
        }

        .fc-action-btn svg {
            width: 18px !important;
            height: 18px !important;
        }
    }

    #screenshot-list {
        scroll-behavior: smooth;
    }

    .sidebar,
    .wall-textures-container,
    .floor-textures-container {
        position: relative;
        z-index: 10;
    }

    .texture-item,
    .size-buttons,
    .product-name,
    .texture-description,
    .thumbnail-product {
        position: relative;
        z-index: 20;
    }

    .active {
        display: block;
    }

    .texture-details>.texture-description:not(.active) {
        display: none;
    }

    .rotate-icon {
        display: inline-block;
        cursor: pointer;
        margin: 10px;
        padding: 5px;
        background-color: #f0f0f0;
        border-radius: 5px;
        text-align: center;
    }

    .rotate-icon i {
        margin-left: 5px;
    }

    .buttons {
        display: flex;
        justify-content: space-around;
    }

    .tile-editor {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 8px;
    }

    .tile-placeholder {
        border: 1px dashed #aaa;
        border-radius: 4px;
    }

    .texture-thumbnail {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border 0.2s;
    }

    .texture-thumbnail:hover {
        border: 2px solid #1d4ed8;
    }

    #tileEditorModal.tileEditorModal {
        --fc-floating-modal-inset: 16px;
        position: absolute;
        inset: 0;
        z-index: 1250;
        display: none;
        align-items: flex-end;
        justify-content: flex-end;
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: var(--fc-floating-modal-inset) !important;
        border: 0;
        border-radius: 0;
        background: rgba(15, 17, 21, 0.12);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: auto;
        animation: fc-modal-backdrop-in 0.24s ease both;
    }

    #tileEditorModal.tw-flex {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }

    #tileEditorModal.tw-hidden {
        display: none;
    }

    #tileEditorModal .modal-content {
        width: min(520px, calc(100vw - 32px));
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-width: none !important;
        max-height: min(680px, calc(100% - (var(--fc-floating-modal-inset) * 2)));
        margin-left: auto !important;
        margin-right: 0 !important;
        overflow: hidden;
        pointer-events: auto;
        background: var(--fc-panel-solid);
        border: 1px solid var(--fc-border);
        border-radius: 8px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
        z-index: 1251;
        transform-origin: bottom right;
        animation: fc-modal-slide-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
        will-change: transform, opacity;
    }

    #tileEditorModal.is-closing {
        pointer-events: none;
        animation: fc-modal-backdrop-out 0.24s ease both;
    }

    #tileEditorModal.is-closing .modal-content {
        animation: fc-modal-slide-out 0.24s cubic-bezier(0.7, 0, 0.84, 0) both;
    }

    body.dark-mode #tileEditorModal.tileEditorModal {
        background: rgba(3, 7, 18, 0.24);
        box-shadow: none;
    }

    body.dark-mode #tileEditorModal .modal-content {
        background: var(--fc-panel-solid);
    }

    .fc-tile-editor-panel__header {
        flex: 0 0 auto;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 20px;
        border-bottom: 1px solid var(--fc-border);
    }

    .fc-tile-editor-panel__header h2 {
        margin: 0;
        color: var(--fc-text);
        font-size: 22px;
        font-weight: 800;
        letter-spacing: 0;
    }

    .fc-tile-editor-close {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--fc-muted);
        cursor: pointer;
        font-size: 20px;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .fc-tile-editor-close:hover {
        background: var(--fc-search-bg);
        color: var(--fc-text);
    }

    .fc-tile-editor-panel__body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 20px;
        color: var(--fc-text);
    }

    .fc-tile-editor-section-label {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin: 0 0 10px;
    }

    .fc-tile-editor-section-label span {
        color: var(--fc-text);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.25;
    }

    .fc-tile-editor-section-label small {
        color: var(--fc-muted);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.35;
    }

    .fc-tile-editor-section-label--compact {
        margin-bottom: 12px;
    }

    .fc-layout-grid + .fc-tile-editor-section-label {
        padding-top: 14px;
        border-top: 1px solid rgba(15, 23, 42, 0.1);
    }

    @keyframes fc-modal-slide-in {
        from {
            transform: translate3d(0, 100%, 0);
            visibility: visible;
        }

        to {
            transform: translate3d(0, 0, 0);
        }
    }

    @keyframes fc-modal-slide-out {
        from {
            transform: translate3d(0, 0, 0);
        }

        to {
            transform: translate3d(0, 100%, 0);
            visibility: hidden;
        }
    }

    @keyframes fc-modal-backdrop-out {
        from {
            opacity: 1;
        }

        to {
            opacity: 0;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        #tileEditorModal .modal-content,
        #tileEditorModal.is-closing .modal-content,
        .fc-grout-panel,
        .fc-grout-overlay.is-closing .fc-grout-panel {
            animation-duration: 1ms !important;
            transform: none !important;
        }

        #tileEditorModal.is-closing,
        .fc-grout-overlay,
        .fc-grout-overlay.is-closing {
            animation-duration: 1ms !important;
        }
    }

    body.dark-mode #resetTileEditorBtn {
        background: #b91c1c;
        color: #ffffff;
        border: 1px solid #ef4444;
        transition: background-color 0.2s ease, transform 0.15s ease;
    }

    body.dark-mode #resetTileEditorBtn:hover {
        background: #dc2626;
    }

    body.dark-mode #resetTileEditorBtn:active {
        transform: scale(0.98);
    }

    #CategoryModal.CategoryModal {
        position: absolute;
        width: 370px;
        min-height: 0;
        max-height: 660px;
        z-index: 200;
        background: #fff;
        box-shadow: -2px 0 16px rgba(0, 0, 0, 0.07);
        display: none;
        transition: transform 0.2s;
        border-left: 1px solid #e5e7eb;
        margin-left: 20px;
    }

    #CategoryModal.tw-flex {
        display: flex;
        flex-direction: column;
    }

    #CategoryModal.tw-hidden {
        display: none;
    }

    #CategoryModal.category-content {
        width: 100%;
        min-height: 0;
        max-height: 500px;
        overflow-y: auto;
        pointer-events: auto;
        background: inherit;
        border-radius: 0;
        box-shadow: none;
        z-index: 200;
    }

    body.dark-mode #CategoryModal.CategoryModal {
        background: #161a20;
        border-left: 1px solid #2a2f37;
        box-shadow: -2px 0 16px rgba(0, 0, 0, 0.45);
    }

    body.dark-mode #CategoryModal.category-content {
        background: inherit;
    }

    .sidebar,
    .main-sidebar,
    .content {
        display: block !important;
    }

    #tilesContainer {
        display: grid;
        gap: 12px;
    }

    .fc-checkered-empty {
        width: 100%;
        padding: 14px;
        border: 1px dashed var(--fc-border);
        border-radius: 8px;
        background: var(--fc-search-bg);
        color: var(--fc-muted);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        text-align: left;
    }

    .fc-applied-overlay {
        --fc-floating-modal-inset: 16px;
        position: absolute;
        inset: 0;
        z-index: 1260;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        padding: var(--fc-floating-modal-inset);
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fc-applied-overlay.tw-hidden {
        display: none;
    }

    .fc-applied-panel {
        width: min(390px, calc(100% - (var(--fc-floating-modal-inset) * 2)));
        max-height: min(560px, calc(100% - (var(--fc-floating-modal-inset) * 2)));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid var(--fc-border);
        border-radius: 8px;
        background: var(--fc-panel-solid);
        color: var(--fc-text);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    }

    .fc-applied-panel__header {
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 18px;
        border-bottom: 1px solid var(--fc-border);
    }

    .fc-applied-panel__header h2 {
        margin: 0;
        color: var(--fc-text);
        font-size: 22px;
        font-weight: 800;
        letter-spacing: 0;
    }

    .fc-applied-panel__header span {
        display: block;
        margin-top: 2px;
        color: var(--fc-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .fc-applied-close {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--fc-muted);
        cursor: pointer;
        font-size: 20px;
    }

    .fc-applied-close:hover {
        background: var(--fc-search-bg);
        color: var(--fc-text);
    }

    .fc-applied-panel__body {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

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

    .fc-applied-tabs button {
        min-height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid var(--fc-border);
        border-radius: 7px;
        background: transparent;
        color: var(--fc-text);
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
    }

    .fc-applied-tabs button.is-active {
        border-color: var(--fc-control-active-bg);
        background: var(--fc-control-active-bg);
        color: var(--fc-control-active-text);
    }

    .fc-applied-list {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow-y: auto;
        padding-right: 4px;
    }

    .fc-applied-item {
        min-height: 86px;
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) 32px;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border: 1px solid var(--fc-border);
        border-radius: 8px;
        background: var(--fc-search-bg);
    }

    .fc-applied-item img {
        width: 80px;
        height: 70px;
        border-radius: 7px;
        object-fit: cover;
        background: rgba(148, 163, 184, 0.2);
    }

    .fc-applied-item strong,
    .fc-applied-item span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fc-applied-item strong {
        color: var(--fc-text);
        font-size: 14px;
        font-weight: 800;
    }

    .fc-applied-item span {
        margin-top: 3px;
        color: var(--fc-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .fc-applied-item button {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: var(--fc-muted);
        cursor: pointer;
    }

    .fc-applied-item button:hover {
        background: rgba(191, 25, 1, 0.12);
        color: #bf1901;
    }

    .fc-applied-empty {
        padding: 18px;
        border: 1px dashed var(--fc-border);
        border-radius: 8px;
        background: var(--fc-search-bg);
        color: var(--fc-muted);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
    }

    .fc-layout-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 12px;
        margin-bottom: 16px;
    }

    .fc-layout-option {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: #334155;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
        background: transparent;
        border: 0;
        cursor: pointer;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

    .fc-layout-option:disabled {
        cursor: not-allowed;
        opacity: 0.78;
    }

    .fc-layout-label {
        min-height: 27px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        color: currentColor;
        font-weight: 700;
    }

    .fc-layout-preview {
        width: 56px;
        height: 56px;
        border-radius: 7px;
        border: 1px solid rgba(15, 23, 42, 0.18);
        background-color: #a5a5a5;
        box-shadow: 0 5px 12px rgba(15, 23, 42, 0.18);
        overflow: hidden;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .fc-layout-option.is-selected .fc-layout-preview {
        border-color: #bf1901;
        box-shadow: 0 0 0 2px rgba(191, 25, 1, 0.22), 0 5px 12px rgba(15, 23, 42, 0.18);
        transform: translateY(-1px);
    }

    body.dark-mode #tileEditorModal .fc-layout-option,
    html.dark-mode body #tileEditorModal .fc-layout-option {
        color: #e5e7eb;
    }

    body.dark-mode #tileEditorModal .fc-layout-option:disabled,
    html.dark-mode body #tileEditorModal .fc-layout-option:disabled {
        color: #cbd5e1;
        opacity: 0.72;
    }

    body.dark-mode #tileEditorModal .fc-layout-option.is-selected,
    html.dark-mode body #tileEditorModal .fc-layout-option.is-selected {
        color: #ffffff;
    }

    .fc-layout-preview--grid {
        background-image:
            linear-gradient(90deg, transparent 31%, #f1f5f9 31% 35%, transparent 35% 64%, #f1f5f9 64% 68%, transparent 68%),
            linear-gradient(transparent 31%, #f1f5f9 31% 35%, transparent 35% 64%, #f1f5f9 64% 68%, transparent 68%);
    }

    .fc-layout-preview--brick,
    .fc-layout-preview--stretcher-bond {
        background-image:
            linear-gradient(#f1f5f9 0 0),
            linear-gradient(90deg, transparent 47%, #f1f5f9 47% 51%, transparent 51%),
            linear-gradient(90deg, #f1f5f9 0 4%, transparent 4% 48%, #f1f5f9 48% 52%, transparent 52% 96%, #f1f5f9 96%),
            repeating-linear-gradient(0deg, transparent 0 16px, #f1f5f9 16px 19px);
        background-size: 100% 3px, 100% 19px, 100% 19px, 100% 19px;
        background-position: 0 0, 0 3px, 0 22px, 0 0;
        background-repeat: repeat;
    }

    .fc-layout-preview--vertical-stack,
    .fc-layout-preview--vertical {
        background-image:
            repeating-linear-gradient(90deg, transparent 0 12px, #f1f5f9 12px 15px),
            repeating-linear-gradient(0deg, transparent 0 28px, #f1f5f9 28px 31px);
    }

    .fc-layout-preview--checkered {
        background-color: #e5e7eb;
        background-image:
            linear-gradient(45deg, #9ca3af 25%, transparent 25%),
            linear-gradient(-45deg, #9ca3af 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, #9ca3af 75%),
            linear-gradient(-45deg, transparent 75%, #9ca3af 75%);
        background-position: 0 0, 0 28px, 28px -28px, -28px 0;
        background-size: 56px 56px;
    }

    .fc-layout-preview--customize {
        background-image:
            linear-gradient(90deg, rgba(241, 245, 249, 0.85) 1px, transparent 1px),
            linear-gradient(rgba(241, 245, 249, 0.85) 1px, transparent 1px);
        background-size: 14px 14px;
        position: relative;
    }

    .fc-layout-preview--customize::after {
        content: "";
        display: block;
        width: 38px;
        height: 20px;
        margin: 18px auto 0;
        border-left: 3px solid #334155;
        border-bottom: 3px solid #334155;
        transform: rotate(-24deg);
    }

    .fc-layout-preview--horizontal {
        background-image:
            repeating-linear-gradient(0deg, transparent 0 11px, #f1f5f9 11px 14px),
            repeating-linear-gradient(90deg, transparent 0 28px, #f1f5f9 28px 31px);
    }

    .fc-layout-preview--bookmatch {
        background-image:
            linear-gradient(135deg, transparent 37%, #f8fafc 38% 43%, transparent 44%),
            linear-gradient(45deg, transparent 37%, #f8fafc 38% 43%, transparent 44%),
            linear-gradient(90deg, transparent 48%, #f8fafc 48% 52%, transparent 52%);
    }

    .fc-layout-preview--herringbone {
        background-image:
            repeating-linear-gradient(45deg, transparent 0 13px, #f1f5f9 13px 17px, transparent 17px 30px),
            repeating-linear-gradient(-45deg, transparent 0 13px, #f1f5f9 13px 17px, transparent 17px 30px);
    }

    .tile-texture-choice {
        cursor: pointer;
    }

    .tile-texture-choice:focus-visible {
        outline: 2px solid #bf1901;
        outline-offset: -2px;
    }

    .tile-cell-actions {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 6px;
    }

    .tile-cell-actions button {
        display: inline-flex;
        width: 32px;
        height: 28px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--fc-border);
        border-radius: 6px;
        background: var(--fc-panel-solid);
        color: var(--fc-text);
        cursor: pointer;
    }

    .tile-cell-actions button:hover,
    .tile-cell-actions button:focus-visible {
        border-color: #bf1901;
        color: #bf1901;
        outline: none;
    }

    .fc-rotation-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 16px;
    }

    .fc-rotation-pill {
        display: inline-flex;
        min-height: 34px;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 1px solid #cbd5e1;
        border-radius: 999px;
        background: #ffffff;
        color: #334155;
        font-weight: 600;
        line-height: 1;
    }

    .fc-rotation-pill.is-selected {
        border-color: #27231f;
        background: #27231f;
        color: #ffffff;
    }

    .fc-rotation-pill:last-child {
        grid-column: 2;
    }

    .fc-rotation-dot {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        border: 2px solid #cbd5e1;
        background: #f8fafc;
    }

    .fc-rotation-pill.is-selected .fc-rotation-dot {
        border-color: #ffffff;
        box-shadow: inset 0 0 0 4px #27231f;
        background: #ffffff;
    }

    .parallax_2 {
        background-image: url("img/tile-visualizer.jpg");
    }

    .hiddenOutdoor,
    .hiddenIndoor,
    .hiddenFloor,
    .hiddenWall {
        display: none;
    }

    :root {
        --fc-bg: #f6f1eb;
        --fc-panel: rgba(255, 252, 247, 0.9);
        --fc-panel-solid: #fffaf4;
        --fc-text: #211c18;
        --fc-muted: #756b61;
        --fc-border: rgba(80, 62, 48, 0.14);
        --fc-control-bg: rgba(255, 252, 247, 0.84);
        --fc-control-text: #322a23;
        --fc-control-active-bg: #9f1708;
        --fc-control-active-text: #ffffff;
        --fc-card-bg: rgba(255, 253, 249, 0.94);
        --fc-card-media-bg: #efe8df;
        --fc-search-bg: rgba(255, 250, 244, 0.82);
        --fc-viewport-bg: #d9d0c5;
        --fc-canvas-bg: #e8dfd4;
        --fc-tag-bg: #f2ebe3;
        --fc-tag-text: #66584c;
        --fc-showroom-gold: #ba8a3b;
        --fc-shadow: 0 28px 80px rgba(54, 38, 28, 0.16);
        --fc-soft-shadow: 0 14px 34px rgba(54, 38, 28, 0.1);
        --fc-radius: 20px;
    }

    body.dark-mode:has(.fc-visualizer-app),
    html.dark-mode body:has(.fc-visualizer-app) {
        --fc-bg: #11100f;
        --fc-panel: rgba(31, 28, 25, 0.92);
        --fc-panel-solid: #1f1c19;
        --fc-text: #f8efe5;
        --fc-muted: #b9aa9c;
        --fc-border: rgba(255, 239, 218, 0.13);
        --fc-control-bg: rgba(43, 38, 34, 0.92);
        --fc-control-text: #f4e8dc;
        --fc-control-active-bg: #bf1901;
        --fc-control-active-text: #ffffff;
        --fc-card-bg: rgba(35, 31, 28, 0.95);
        --fc-card-media-bg: #2c2824;
        --fc-search-bg: rgba(43, 38, 34, 0.94);
        --fc-viewport-bg: #181513;
        --fc-canvas-bg: #15120f;
        --fc-tag-bg: #302a25;
        --fc-tag-text: #d6c8ba;
        --fc-showroom-gold: #d2a85a;
        --fc-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
        --fc-soft-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-height: 100%;
        overflow-x: hidden;
        background: var(--fc-bg);
    }

    body:has(.fc-visualizer-app) {
        --fc-site-header-height: 64px;
        overflow-x: hidden;
    }

    body:has(.fc-visualizer-app) .subscribe-navbar,
    body:has(.fc-visualizer-app) #subscribeNavbar {
        display: none !important;
    }

    body:has(.fc-visualizer-app) .fc-visualizer-footer {
        display: none !important;
        margin-top: 0 !important;
    }

    @media (max-width: 640px) {
        body:has(.fc-visualizer-app) .fc-storefront-header nav {
            max-width: 100vw !important;
            min-width: 0 !important;
            gap: 4px !important;
            padding-right: 6px !important;
            overflow: hidden !important;
        }

        body:has(.fc-visualizer-app) .fc-storefront-header nav > .row-center-center {
            min-width: 0 !important;
            gap: 4px !important;
        }

        body:has(.fc-visualizer-app) .fc-storefront-header #indexLink button {
            width: 56px !important;
            min-width: 56px !important;
        }

        body:has(.fc-visualizer-app) .fc-storefront-header #mega_menu_products_btn {
            width: 44px !important;
            min-width: 44px !important;
            height: 44px !important;
            padding: 0 !important;
            justify-content: center !important;
        }

        body:has(.fc-visualizer-app) .fc-storefront-header #mega_menu_products_btn span {
            display: none !important;
        }

        body:has(.fc-visualizer-app) .fc-storefront-header #mega_menu_products_btn svg {
            width: 28px !important;
            height: 28px !important;
        }

        body:has(.fc-visualizer-app) .fc-storefront-header .fc-icon-btn,
        body:has(.fc-visualizer-app) .fc-storefront-header .fc-mobile-nav-trigger {
            width: 42px !important;
            min-width: 42px !important;
            height: 42px !important;
            min-height: 42px !important;
        }
    }

    body:has(.fc-visualizer-app) #mega_menu_products_modal,
    body:has(.fc-visualizer-app) #mega_menu_blogs_modal {
        top: var(--fc-site-header-height) !important;
        bottom: 0 !important;
        height: calc(100dvh - var(--fc-site-header-height)) !important;
        max-height: calc(100dvh - var(--fc-site-header-height)) !important;
        align-items: flex-start !important;
        overflow: visible !important;
        z-index: 1300 !important;
    }

    body:has(.fc-visualizer-app) #mega_menu_products_modal #product,
    body:has(.fc-visualizer-app) #mega_menu_blogs_modal #idea_blog {
        width: min(1280px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        height: min(600px, calc(100dvh - var(--fc-site-header-height) - 24px)) !important;
        max-height: calc(100dvh - var(--fc-site-header-height) - 24px) !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
        overflow: hidden !important;
    }

    body:has(.fc-visualizer-app) #mega_menu_products_modal #product > .tw-gap-1 {
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body:has(.fc-visualizer-app) #mega_menu_products_modal #product > .tw-gap-1 > div:first-child,
    body:has(.fc-visualizer-app) #mega_menu_products_modal #product .panels,
    body:has(.fc-visualizer-app) #mega_menu_products_modal #product .panel {
        min-height: 0 !important;
        overflow-x: hidden !important;
    }

    body:has(.fc-visualizer-app) #mega_menu_products_modal #product > .tw-gap-1 > div:first-child,
    body:has(.fc-visualizer-app) #mega_menu_products_modal #product .panel {
        max-height: 100% !important;
        overflow-y: auto !important;
    }

    body:has(.fc-visualizer-app) #mega_menu_products_modal #product .panels {
        height: 100% !important;
        overflow-y: hidden !important;
    }

    body:has(.fc-visualizer-app)>.container,
    body:has(.fc-visualizer-app) .container:has(.fc-visualizer-app),
    body:has(.fc-visualizer-app) .row:has(.fc-visualizer-app) {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        --bs-gutter-x: 0;
    }

    .fc-visualizer-app,
    .fc-visualizer-app *,
    .fc-visualizer-app *::before,
    .fc-visualizer-app *::after {
        box-sizing: border-box;
    }

    .fc-visualizer-app {
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    .fc-visualizer-app {
        width: 100%;
        max-width: 100vw;
        --fc-app-content-height: calc(100vh - var(--fc-site-header-height) - 32px);
        --fc-app-content-height: calc(100dvh - var(--fc-site-header-height) - 32px);
        height: calc(100vh - var(--fc-site-header-height));
        height: calc(100dvh - var(--fc-site-header-height));
        min-height: calc(100vh - var(--fc-site-header-height));
        min-height: calc(100dvh - var(--fc-site-header-height));
        margin-top: var(--fc-site-header-height);
        display: grid;
        grid-template-columns: 320px minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        overflow: hidden;
        color: var(--fc-text);
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 245, 0.92)),
            radial-gradient(circle at 72% 18%, rgba(220, 220, 220, 0.34), transparent 36%);
    }

    body.dark-mode .fc-visualizer-app,
    html.dark-mode body .fc-visualizer-app {
        background:
            linear-gradient(135deg, rgba(15, 17, 21, 0.98), rgba(22, 26, 33, 0.94)),
            radial-gradient(circle at 72% 18%, rgba(191, 25, 1, 0.16), transparent 38%);
    }

    .fc-visualizer-app:fullscreen,
    .fc-visualizer-app:-webkit-full-screen {
        --fc-site-header-height: 0px;
        --fc-app-content-height: calc(100vh - 32px);
        --fc-app-content-height: calc(100dvh - 32px);
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        margin-top: 0;
        padding: 16px;
        display: grid;
        grid-template-columns: 320px minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        gap: 16px;
        overflow: hidden;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 245, 0.92)),
            radial-gradient(circle at 72% 18%, rgba(220, 220, 220, 0.34), transparent 36%);
    }

    body.dark-mode .fc-visualizer-app:fullscreen,
    html.dark-mode body .fc-visualizer-app:fullscreen,
    body.dark-mode .fc-visualizer-app:-webkit-full-screen,
    html.dark-mode body .fc-visualizer-app:-webkit-full-screen {
        background:
            linear-gradient(135deg, rgba(15, 17, 21, 0.98), rgba(22, 26, 33, 0.94)),
            radial-gradient(circle at 72% 18%, rgba(191, 25, 1, 0.16), transparent 38%);
    }

    .fc-visualizer-app:fullscreen::backdrop {
        background: #0f1115;
    }

    .fc-visualizer-app:fullscreen .fc-visualizer-sidebar,
    .fc-visualizer-app:-webkit-full-screen .fc-visualizer-sidebar,
    .fc-visualizer-app:fullscreen .fc-visualizer-stage,
    .fc-visualizer-app:-webkit-full-screen .fc-visualizer-stage {
        height: var(--fc-app-content-height);
    }

    .fc-visualizer-sidebar {
        align-self: stretch;
        min-width: 0;
        min-height: 0;
        height: var(--fc-app-content-height);
        border: 1px solid var(--fc-border);
        border-radius: var(--fc-radius);
        background: var(--fc-panel);
        box-shadow: var(--fc-soft-shadow);
        backdrop-filter: blur(20px);
        overflow: hidden;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }

    .fc-catalog-panel {
        width: 100%;
        height: 100%;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }

    .fc-surface-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px 14px 10px;
    }

    .fc-surface-tab,
    .fc-tool-btn,
    .fc-nav-btn,
    .fc-icon-btn,
    .fc-toolbar-btn,
    .fc-floating-btn,
    .fc-quick-apply {
        border: 1px solid var(--fc-border);
        background: var(--fc-control-bg);
        color: var(--fc-control-text);
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    }

    .fc-surface-tab {
        height: 44px;
        border-radius: 13px;
        font-weight: 800;
        color: var(--fc-muted);
    }

    .fc-surface-tab.is-active,
    .fc-nav-btn--dark {
        background: var(--fc-control-active-bg);
        color: var(--fc-control-active-text);
        border-color: var(--fc-control-active-bg);
    }

    .fc-surface-tab:hover,
    .fc-tool-btn:hover,
    .fc-nav-btn:hover,
    .fc-icon-btn:hover,
    .fc-toolbar-btn:hover,
    .fc-floating-btn:hover,
    .fc-quick-apply:hover {
        transform: translateY(-1px);
        box-shadow: var(--fc-soft-shadow);
    }

    .fc-catalog-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
        gap: 8px;
        padding: 8px 14px 12px;
        position: sticky;
        top: 0;
        z-index: 4;
        background: linear-gradient(180deg, var(--fc-panel-solid) 70%, color-mix(in srgb, var(--fc-panel-solid) 72%, transparent));
    }

    .fc-search-field {
        grid-column: 1 / -1;
        min-width: 0;
        height: 42px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 13px;
        border: 1px solid var(--fc-border);
        border-radius: 13px;
        background: var(--fc-search-bg);
        color: var(--fc-muted);
    }

    .fc-search-field input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 13px;
        color: var(--fc-text);
    }

    .fc-search-field input::placeholder {
        color: var(--fc-muted);
        opacity: 0.9;
    }

    .fc-tool-btn {
        height: 42px;
        border-radius: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-weight: 800;
        padding: 0 12px;
    }

    #categoriesButton {
        justify-content: center;
    }

    .fc-favorite-filter-btn {
        color: #d90404;
    }

    .fc-tool-btn.fc-favorite-filter-btn.is-active {
        background: #ffffff;
        border-color: rgba(217, 4, 4, 0.34);
        color: #d90404;
        box-shadow: 0 10px 24px rgba(217, 4, 4, 0.14);
    }

    .fc-tool-btn.is-active {
        background: var(--fc-control-active-bg);
        color: var(--fc-control-active-text);
    }

    .fc-catalog-meta,
    .fc-section-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--fc-muted);
        font-size: 12px;
    }

    .fc-catalog-meta {
        padding: 0 18px 12px;
        border-bottom: 1px solid var(--fc-border);
    }

    .fc-sort-form {
        position: relative;
        gap: 10px;
    }

    .fc-sort-select {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        appearance: auto;
        -webkit-appearance: menulist;
        -moz-appearance: auto;
        background: transparent;
        color: var(--fc-muted);
        font: inherit;
        font-weight: 600;
        cursor: pointer;
        color-scheme: dark;
        padding: 0;
    }

    .fc-sort-select:focus-visible {
        color: var(--fc-text);
    }

    .fc-favorites-bulk {
        padding: 12px 14px 0;
    }

    .fc-favorites-bulk-btn {
        width: 100%;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid var(--fc-control-active-bg);
        border-radius: 8px;
        background: var(--fc-control-active-bg);
        color: var(--fc-control-active-text);
        font-weight: 800;
        cursor: pointer;
        transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
    }

    .fc-favorites-bulk-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        background: #b91c1c;
    }

    .fc-favorites-bulk-btn:disabled {
        cursor: not-allowed;
        opacity: 0.52;
        transform: none;
    }

    .fc-favorites-bulk-btn[hidden] {
        display: none !important;
    }

    .fc-catalog-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 14px;
        scroll-behavior: smooth;
    }

    .fc-catalog-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .fc-catalog-scroll::-webkit-scrollbar-thumb {
        background: #d6d8dc;
        border-radius: 999px;
    }

    .fc-section-heading {
        margin: 2px 2px 12px;
        font-weight: 800;
        color: var(--fc-text);
    }

    .fc-section-heading small {
        color: var(--fc-muted);
        font-weight: 500;
    }

    /* Accordion Dropdown Box */
    .fc-list-detail-box {
        grid-column: 1 / -1;
        position: relative;
        background: var(--fc-panel-solid);
        border: 1px solid var(--fc-border);
        border-radius: 12px;
        padding: 16px;
        margin-top: -4px;
        margin-bottom: 12px;
        box-shadow: var(--fc-soft-shadow);
        animation: fc-slide-down 0.25s ease-out;
    }

    .fc-list-detail-box::before {
        content: "";
        position: absolute;
        top: -8px;
        left: var(--fc-detail-arrow-left, 50%);
        width: 14px;
        height: 14px;
        background: var(--fc-panel-solid);
        border-top: 1px solid var(--fc-border);
        border-left: 1px solid var(--fc-border);
        transform: translateX(-50%) rotate(45deg);
    }

    #product-main .fc-list-detail-box .fc-tile-card__content {
        display: block !important;
    }

    #product-main.is-grid-view .fc-list-detail-box .fc-tile-card__content {
        display: block !important;
    }

    #product-main .fc-list-detail-box .fc-card-row {
        display: block;
    }

    #product-main .fc-list-detail-box .fc-add-cart-btn {
        display: none;
    }

    #product-main .fc-list-detail-box .product-name {
        display: block !important;
        margin-bottom: 8px;
        color: var(--fc-text);
        font-size: 13px;
        font-weight: 800;
    }

    #product-main .fc-list-detail-box .fc-card-size {
        display: block !important;
        justify-content: flex-start;
        margin-top: 0;
        color: var(--fc-muted);
        font-size: 13px;
        font-weight: 500;
    }

    #product-main .fc-list-detail-box .fc-more-details-btn.active {
        display: inline-flex !important;
        margin-top: 10px;
    }

    @keyframes fc-slide-down {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .fc-tile-card {
        position: relative;
        margin-bottom: 12px;
        border: 1px solid var(--fc-border);
        border-radius: 16px;
        background: var(--fc-card-bg);
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }

    .fc-tile-card:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--fc-text) 18%, transparent);
        box-shadow: var(--fc-soft-shadow);
    }

    .fc-tile-card__body {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .fc-tile-card__media {
        position: relative;
        width: 92px;
        aspect-ratio: 1;
        border-radius: 12px;
        overflow: hidden;
        background: var(--fc-card-media-bg);
    }

    .fc-tile-card__media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        cursor: pointer;
        transition: transform 0.24s ease;
    }

    .fc-tile-card:hover .fc-tile-card__media img {
        transform: scale(1.05);
    }

    .fc-favorite-btn {
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 8;
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 999px;
        background: rgba(111, 111, 96, 0.76);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
        pointer-events: auto;
    }

    .fc-favorite-btn:hover,
    .fc-favorite-btn.is-favorite {
        background: #ffffff;
        color: #d90404;
    }

    .fc-tile-card.is-favorite-filtered {
        display: none !important;
    }

    #product-main.is-grid-view .fc-texture-section {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        align-items: start;
    }

    #product-main.is-grid-view .fc-section-heading {
        grid-column: 1 / -1;
        margin: 2px 2px 4px;
    }

    #product-main.is-grid-view .fc-tile-card {
        width: 100%;
        max-width: none;
        aspect-ratio: 1;
        margin: 0;
        border-radius: 10px;
        padding: 0;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }

    #product-main.is-grid-view .fc-tile-card__body {
        display: block;
        width: 100%;
        height: 100%;
        padding: 3px;
    }

    #product-main.is-grid-view .fc-tile-card__media {
        width: 100%;
        height: 100%;
        aspect-ratio: 1;
        border-radius: 8px;
    }

    #product-main.is-grid-view .fc-tile-card__content {
        display: none !important;
    }

    #product-main.is-grid-view .fc-favorite-btn {
        top: 6px;
        right: 6px;
        width: 26px;
        height: 26px;
        color: #fff;
        background: rgba(34, 34, 34, 0.45);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    }

    #product-main.is-grid-view .fc-favorite-btn:hover {
        background: rgba(17, 17, 17, 0.72);
    }

    #product-main.is-grid-view .fc-favorite-btn.is-favorite,
    #product-main.is-list-view .fc-favorite-btn.is-favorite {
        background: #ffffff;
        color: #d90404;
    }

    #product-main.is-list-view .fc-texture-section {
        display: block;
    }

    #product-main.is-list-view .fc-tile-card {
        margin-bottom: 10px;
        border-radius: 12px;
        box-shadow: none;
    }

    #product-main.is-list-view .fc-tile-card__body {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
        padding: 9px;
        align-items: center;
    }

    #product-main.is-list-view .fc-tile-card__media {
        width: 78px;
        border-radius: 9px;
    }

    #product-main.is-list-view .fc-favorite-btn {
        top: 6px;
        right: 6px;
        width: 26px;
        height: 26px;
        color: #ffffff;
        background: rgba(111, 111, 96, 0.76);
    }

    #product-main.is-list-view .fc-tag-row {
        margin-top: 6px;
    }

    #product-main .fc-texture-section.is-hidden {
        display: none !important;
    }

    .fc-card-row {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .fc-card-row h3,
    .fc-card-size,
    .texture-description {
        margin: 0;
    }

    .fc-card-row h3 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--fc-text);
        font-size: 13px;
        font-weight: 800;
        line-height: 1.25;
    }

    .fc-card-size {
        margin-top: 5px;
        display: block !important;
        color: var(--fc-muted);
        font-size: 12px;
        font-weight: 600;
    }

    .fc-tag-row {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .fc-tag-row span {
        padding: 3px 7px;
        border-radius: 999px;
        background: var(--fc-tag-bg);
        color: var(--fc-tag-text);
        font-size: 11px;
        font-weight: 700;
    }

    .texture-description {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 8px;
        color: var(--fc-muted);
        font-size: 11px;
        line-height: 1.35;
    }

    .fc-quick-apply {
        margin-top: 9px;
        width: 100%;
        height: 32px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 800;
    }

    .fc-add-cart-form {
        flex: 0 0 auto;
        margin: 0;
    }

    .fc-add-cart-btn {
        width: 28px;
        height: 28px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        border: 1px solid var(--fc-border);
        border-radius: 999px;
        background: var(--fc-control-bg);
        color: var(--fc-muted);
        cursor: pointer;
        transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    }

    .fc-add-cart-btn.is-available:hover {
        transform: translateY(-1px);
        border-color: var(--fc-control-active-bg);
        background: var(--fc-control-active-bg);
        color: var(--fc-control-active-text);
    }

    .fc-add-cart-btn.is-unavailable {
        cursor: not-allowed;
        opacity: 0.45;
    }

    .fc-visualizer-stage {
        position: relative;
        align-self: stretch;
        min-width: 0;
        min-height: 0;
        height: var(--fc-app-content-height);
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 12px;
    }

    .fc-topbar,
    .fc-bottom-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 1px solid var(--fc-border);
        border-radius: var(--fc-radius);
        background: var(--fc-panel);
        box-shadow: var(--fc-soft-shadow);
        backdrop-filter: blur(20px);
    }

    .fc-topbar {
        min-height: 58px;
        padding: 8px;
        z-index: 20;
        justify-content: space-between;
        gap: 12px;
    }

    .fc-topbar__group,
    .fc-topbar__actions,
    .fc-toolbar-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .fc-topbar__actions {
        flex: 0 1 auto;
        gap: 0;
        justify-content: flex-end;
        margin-left: auto;
    }

    .fc-room-title {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
        padding-right: 8px;
    }

    .fc-room-title span {
        font-size: 15px;
        font-weight: 800;
    }

    .fc-room-title small {
        color: var(--fc-muted);
        font-size: 11px;
    }

    .fc-icon-btn,
    .fc-floating-btn {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 7px;
        flex: 0 0 auto;
    }

    .fc-nav-btn,
    .fc-toolbar-btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 14px;
        border-radius: 7px;
        font-weight: 700;
        white-space: nowrap;
    }

    .fc-topbar .fc-nav-btn,
    .fc-topbar .fc-icon-btn {
        min-height: 42px;
        border-color: var(--fc-border);
        background: var(--fc-control-bg);
        color: var(--fc-control-text);
        font-size: 16px;
        font-weight: 500;
        box-shadow: none;
    }

    .fc-topbar .fc-contact-open-btn {
        border-color: var(--fc-border);
        background: color-mix(in srgb, var(--fc-control-bg) 92%, transparent);
        color: var(--fc-control-text);
    }

    .fc-topbar .fc-contact-open-btn:hover {
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 38%, var(--fc-border));
        background: color-mix(in srgb, var(--fc-control-active-bg) 12%, var(--fc-control-bg));
        color: var(--fc-text);
    }

    .fc-topbar .fc-nav-btn + .fc-nav-btn,
    .fc-topbar .fc-nav-btn + .fc-room-menu,
    .fc-topbar .fc-room-menu + .fc-room-menu,
    .fc-topbar .fc-room-menu + .fc-nav-btn,
    .fc-topbar .fc-icon-btn + .fc-nav-btn,
    .fc-topbar .fc-nav-btn + .fc-icon-btn {
        margin-left: 8px;
    }

    .fc-menu-placeholder {
        display: block;
        padding: 10px 12px;
        color: #70747c;
        font-size: 13px;
        font-weight: 700;
    }

    .fc-nav-btn--cart {
        position: relative;
    }

    .fc-nav-btn--cart b {
        position: absolute;
        top: -7px;
        right: -6px;
        width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #e53935;
        color: #fff;
        font-size: 10px;
    }

    .fc-room-menu {
        position: relative;
    }

    .fc-room-menu__panel {
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        width: min(420px, calc(100vw - 32px));
        max-height: min(420px, calc(100dvh - 132px));
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 10px;
        border: 1px solid var(--fc-border);
        border-radius: 12px;
        background: color-mix(in srgb, var(--fc-panel) 96%, transparent);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: var(--fc-shadow);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 40;
    }

    .fc-room-menu__panel.is-open {
        display: grid;
    }

    .fc-room-menu__panel--actions {
        width: min(300px, calc(100vw - 32px));
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .fc-room-menu__panel--actions.is-open {
        display: grid;
    }

    .fc-menu-section {
        padding: 8px 10px 4px;
        color: var(--fc-muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
        text-transform: uppercase;
    }

    .fc-menu-action {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 10px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        color: var(--fc-control-text);
        cursor: pointer;
        font: inherit;
        font-weight: 700;
        line-height: 1.15;
        text-align: left;
    }

    .fc-menu-action i {
        width: 18px;
        flex: 0 0 18px;
        color: color-mix(in srgb, var(--fc-control-text) 78%, transparent);
        text-align: center;
    }

    .fc-menu-action span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fc-menu-action:hover,
    .fc-menu-action:focus-visible {
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 36%, var(--fc-border));
        background: color-mix(in srgb, var(--fc-control-active-bg) 12%, var(--fc-control-bg));
        color: var(--fc-text);
        outline: none;
    }

    .fc-room-menu__panel a {
        min-width: 0;
        padding: 10px 12px;
        border: 1px solid transparent;
        border-radius: 8px;
        color: var(--fc-control-text);
        text-decoration: none;
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fc-room-menu__panel a:hover,
    .fc-room-menu__panel a.is-active {
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 36%, var(--fc-border));
        background: color-mix(in srgb, var(--fc-control-active-bg) 12%, var(--fc-control-bg));
        color: var(--fc-text);
    }

    .fc-contact-modal {
        position: fixed;
        inset: 0;
        z-index: 1300;
        display: grid;
        place-items: center;
        padding: 16px;
        background: rgba(17, 17, 17, 0.44);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .fc-contact-modal.tw-hidden {
        display: none;
    }

    .fc-contact-modal__panel {
        width: min(520px, calc(100vw - 28px));
        max-height: calc(100dvh - 28px);
        overflow-y: auto;
        border-radius: 8px;
        background: #fff;
        color: #252a31;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    }

    .fc-contact-modal__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        padding: 20px 20px 14px;
        border-bottom: 1px solid #eceff3;
    }

    .fc-contact-modal__header h2 {
        margin: 0;
        color: #252a31;
        font-size: 24px;
        font-weight: 800;
    }

    .fc-contact-modal__header p {
        margin: 6px 0 0;
        color: #70747c;
        font-size: 14px;
    }

    .fc-contact-modal__close {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #6f7a85;
        cursor: pointer;
        font-size: 18px;
    }

    .fc-contact-modal__close:hover {
        background: #f4f4f4;
        color: #252a31;
    }

    .fc-contact-form {
        display: grid;
        gap: 12px;
        padding: 20px;
    }

    .fc-contact-form input,
    .fc-contact-form textarea {
        width: 100%;
        border: 1px solid #9ca3af;
        border-radius: 8px;
        padding: 10px 12px;
        color: #4b5563;
        font-size: 16px;
        font-weight: 400;
        outline: none;
    }

    .fc-contact-form input:focus,
    .fc-contact-form textarea:focus {
        border-color: #252525;
        box-shadow: 0 0 0 3px rgba(37, 37, 37, 0.1);
    }

    .fc-contact-form button {
        width: 100%;
        min-height: 44px;
        margin-top: 8px;
        border: 0;
        border-radius: 8px;
        background: #111827;
        color: #fff;
        cursor: pointer;
        font-size: 18px;
        font-weight: 800;
        transition: background 0.2s ease;
    }

    .fc-contact-form button:hover {
        background: #b91c1c;
    }

    .fc-contact-error {
        margin-top: -6px;
        color: #b91c1c;
        font-size: 13px;
        font-weight: 700;
    }

    .fc-contact-alert {
        margin: 16px 20px 0;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
    }

    .fc-contact-alert--success {
        background: #dcfce7;
        color: #166534;
    }

    .fc-contact-alert--error {
        background: #fee2e2;
        color: #991b1b;
    }

    body.dark-mode .fc-contact-modal__panel,
    html.dark-mode body .fc-contact-modal__panel {
        border: 1px solid var(--fc-border);
        background: var(--fc-panel-solid);
        color: var(--fc-text);
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
    }

    body.dark-mode .fc-contact-modal__header,
    html.dark-mode body .fc-contact-modal__header {
        border-bottom-color: var(--fc-border);
    }

    body.dark-mode .fc-contact-modal__header h2,
    html.dark-mode body .fc-contact-modal__header h2 {
        color: var(--fc-text);
    }

    body.dark-mode .fc-contact-modal__header p,
    body.dark-mode .fc-contact-modal__close,
    html.dark-mode body .fc-contact-modal__header p,
    html.dark-mode body .fc-contact-modal__close {
        color: var(--fc-muted);
    }

    body.dark-mode .fc-contact-modal__close:hover,
    html.dark-mode body .fc-contact-modal__close:hover {
        background: var(--fc-search-bg);
        color: var(--fc-text);
    }

    body.dark-mode .fc-contact-form input,
    body.dark-mode .fc-contact-form textarea,
    html.dark-mode body .fc-contact-form input,
    html.dark-mode body .fc-contact-form textarea {
        border-color: var(--fc-border);
        background: var(--fc-search-bg);
        color: var(--fc-text);
    }

    body.dark-mode .fc-contact-form input:focus,
    body.dark-mode .fc-contact-form textarea:focus,
    html.dark-mode body .fc-contact-form input:focus,
    html.dark-mode body .fc-contact-form textarea:focus {
        border-color: var(--fc-control-active-bg);
        box-shadow: 0 0 0 3px rgba(217, 4, 4, 0.16);
    }

    body.dark-mode .fc-contact-form button,
    html.dark-mode body .fc-contact-form button {
        background: var(--fc-control-active-bg);
        color: var(--fc-control-active-text);
    }

    body.dark-mode .fc-contact-form button:hover,
    html.dark-mode body .fc-contact-form button:hover {
        background: #b91c1c;
    }

    .fc-grout-overlay {
        --fc-floating-modal-inset: 16px;
        position: absolute;
        inset: 0;
        z-index: 1250;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        padding: var(--fc-floating-modal-inset);
        background: rgba(17, 17, 17, 0.14);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        animation: fc-modal-backdrop-in 0.24s ease both;
        transition: opacity 0.22s ease;
    }

    .fc-grout-overlay.tw-hidden {
        display: none;
    }

    .fc-grout-overlay.is-closing {
        pointer-events: none;
        animation: fc-modal-backdrop-out 0.24s ease both;
    }

    .fc-grout-panel {
        width: min(520px, calc(100vw - 32px));
        max-height: min(820px, calc(100% - (var(--fc-floating-modal-inset) * 2)));
        overflow-y: auto;
        border: 1px solid var(--fc-border);
        border-radius: 8px;
        background: var(--fc-panel-solid);
        color: var(--fc-text);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
        transform: translateY(0) scale(1);
        transform-origin: bottom right;
        animation: fc-modal-slide-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
        will-change: transform, opacity;
    }

    .fc-grout-overlay.is-closing .fc-grout-panel {
        animation: fc-modal-slide-out 0.24s cubic-bezier(0.7, 0, 0.84, 0) both;
    }

    body.dark-mode .fc-grout-overlay,
    html.dark-mode body .fc-grout-overlay {
        background: rgba(3, 7, 18, 0.24);
    }

    @keyframes fc-modal-backdrop-in {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .fc-grout-panel__header {
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 22px;
        border-bottom: 1px solid var(--fc-border);
    }

    .fc-grout-panel__header h2 {
        margin: 0;
        color: var(--fc-text);
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 0;
    }

    .fc-grout-close {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        color: var(--fc-muted);
        cursor: pointer;
        font-size: 20px;
        transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

    .fc-grout-close:hover {
        border-color: var(--fc-border);
        background: var(--fc-search-bg);
        color: var(--fc-text);
    }

    .fc-grout-panel__body {
        padding: 18px 20px 20px;
    }

    .fc-grout-range {
        display: grid;
        gap: 8px;
        padding: 0 0 14px;
    }

    .fc-grout-range output {
        min-height: 24px;
        color: var(--fc-text);
        font-size: 13px;
        font-weight: 800;
        text-align: center;
    }

    .fc-grout-range input[type="range"] {
        width: 100%;
        accent-color: var(--fc-control-active-bg);
        cursor: pointer;
    }

    .fc-grout-divider {
        height: 1px;
        background: var(--fc-border);
    }

    .fc-grout-selected-color {
        display: grid;
        gap: 8px;
        margin-top: 14px;
    }

    .fc-grout-color-label {
        color: var(--fc-muted);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .fc-grout-selected-color__card {
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border: 1px solid var(--fc-border);
        border-radius: 8px;
        background: var(--fc-control-bg);
    }

    .fc-grout-selected-color__preview {
        width: 36px;
        height: 28px;
        flex: 0 0 auto;
        border: 1px solid rgba(17, 17, 17, 0.16);
        border-radius: 6px;
        background: var(--grout-color);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    }

    .fc-grout-selected-color__name {
        min-width: 0;
        color: var(--fc-text);
        font-size: 15px;
        font-weight: 800;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fc-grout-color-groups {
        display: grid;
        gap: 12px;
        margin-top: 14px;
    }

    .fc-grout-color-group {
        display: grid;
        gap: 8px;
    }

    .fc-grout-color-group h3 {
        margin: 0;
        color: var(--fc-text);
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0;
    }

    .fc-grout-palette {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .fc-grout-swatch {
        width: 100%;
        min-height: 78px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: stretch;
        gap: 0;
        padding: 0;
        border: 1px solid var(--fc-border);
        border-radius: 8px;
        background: var(--fc-control-bg);
        color: var(--fc-control-text);
        cursor: pointer;
        overflow: hidden;
        text-align: center;
        transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    }

    .fc-grout-swatch__preview {
        width: 100%;
        min-height: 42px;
        flex: 0 0 42px;
        border-bottom: 1px solid var(--fc-border);
        background: var(--grout-color);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    }

    .fc-grout-swatch__label {
        width: 100%;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 7px;
    }

    .fc-grout-swatch__name,
    .fc-grout-swatch__check {
        min-width: 0;
        color: inherit;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
    }

    .fc-grout-swatch__name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fc-grout-swatch__check {
        display: none;
        flex: 0 0 auto;
    }

    .fc-grout-swatch:hover {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 34%, var(--fc-border));
        background: color-mix(in srgb, var(--fc-control-active-bg) 8%, var(--fc-control-bg));
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    }

    .fc-grout-swatch.is-selected {
        border-color: var(--fc-control-active-bg);
        background: color-mix(in srgb, var(--fc-control-active-bg) 14%, var(--fc-control-bg));
        color: var(--fc-text);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc-control-active-bg) 20%, transparent);
    }

    .fc-grout-swatch.is-selected .fc-grout-swatch__check {
        display: inline-flex;
    }

    .fc-grout-swatch:focus-visible {
        outline: 2px solid var(--fc-control-active-bg);
        outline-offset: 3px;
    }

    @media (max-width: 380px) {
        .fc-grout-palette {
            gap: 6px;
        }

        .fc-grout-swatch__label {
            padding: 5px;
        }

        .fc-grout-swatch__name,
        .fc-grout-swatch__check {
            font-size: 11px;
        }
    }

    .fc-viewport-shell {
        position: relative;
        min-height: 0;
        height: 100%;
        border-radius: 22px;
        overflow: hidden;
        background: var(--fc-viewport-bg);
        box-shadow: var(--fc-shadow);
    }

    .container2.fc-visualizer-canvas {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 22px;
        background: var(--fc-canvas-bg);
    }

    .container2.fc-visualizer-canvas canvas {
        width: 100% !important;
        height: 100% !important;
        display: block;
        touch-action: none;
    }

    .fc-visualizer-app button,
    .fc-visualizer-app a,
    .fc-toolbar-btn,
    .fc-nav-btn,
    .fc-icon-btn,
    .fc-floating-btn {
        touch-action: manipulation;
    }

    .fc-viewport-actions {
        position: absolute;
        z-index: 12;
        display: flex;
        align-items: center;
        gap: 8px;
        top: 16px;
        right: 16px;
        flex-direction: column;
    }

    .progress-bar-container {
        position: absolute;
        inset: 0;
        z-index: 30;
        display: grid;
        place-items: center;
        pointer-events: auto;
        background: color-mix(in srgb, var(--fc-panel-solid) 30%, transparent);
        backdrop-filter: blur(8px);
    }

    .progress-bar-container progress {
        width: min(280px, 60vw);
        accent-color: var(--fc-control-active-bg);
    }

    .fc-bottom-toolbar {
        min-height: 68px;
        padding: 10px 64px 10px 12px;
        z-index: 20;
    }

    .fc-active-material {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 220px;
        padding-right: 12px;
        border-right: 1px solid var(--fc-border);
    }

    .fc-active-material small,
    .fc-active-material strong {
        display: block;
        line-height: 1.1;
    }

    .fc-active-material small {
        color: var(--fc-muted);
        font-size: 11px;
    }

    .fc-active-material strong {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
    }

    .fc-stack-icon {
        position: relative;
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: #111;
        color: #fff;
    }

    .fc-stack-icon b {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #e53935;
        font-size: 10px;
    }

    .fc-toolbar-controls {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .fc-toolbar-btn--danger {
        width: 42px;
        padding: 0;
        color: #d93025;
    }

    .fc-slider-control {
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        border: 1px solid var(--fc-border);
        border-radius: 13px;
        background: var(--fc-control-bg);
        color: var(--fc-control-text);
        font-size: 12px;
        font-weight: 800;
    }

    .fc-slider-control input {
        width: 96px;
        accent-color: var(--fc-control-active-bg);
    }

    .fc-pattern-select {
        height: 42px;
        border: 1px solid var(--fc-border);
        border-radius: 13px;
        background: var(--fc-control-bg);
        color: var(--fc-control-text);
        padding: 0 12px;
        font-weight: 800;
    }

    body.dark-mode .fc-visualizer-app input::placeholder,
    html.dark-mode body .fc-visualizer-app input::placeholder {
        color: var(--fc-muted);
    }

    body.dark-mode .fc-favorite-btn,
    body.dark-mode .fc-screenshot-close,
    body.dark-mode .fc-screenshot-action,
    body.dark-mode .screenshot-item,
    body.dark-mode .fc-filter-modal,
    body.dark-mode .fc-filter-modal__header,
    body.dark-mode .fc-filter-modal__footer,
    body.dark-mode .fc-filter-modal__panels,
    body.dark-mode .fc-filter-tab.is-active,
    body.dark-mode .fc-filter-tab:hover,
    html.dark-mode body .fc-favorite-btn,
    html.dark-mode body .fc-screenshot-close,
    html.dark-mode body .fc-screenshot-action,
    html.dark-mode body .screenshot-item,
    html.dark-mode body .fc-filter-modal,
    html.dark-mode body .fc-filter-modal__header,
    html.dark-mode body .fc-filter-modal__footer,
    html.dark-mode body .fc-filter-modal__panels,
    html.dark-mode body .fc-filter-tab.is-active,
    html.dark-mode body .fc-filter-tab:hover {
        background: var(--fc-panel-solid);
        color: var(--fc-text);
        border-color: var(--fc-border);
    }

    body.dark-mode .fc-screenshot-drawer,
    html.dark-mode body .fc-screenshot-drawer {
        background: color-mix(in srgb, var(--fc-panel-solid) 96%, transparent);
        color: var(--fc-text);
    }

    body.dark-mode .fc-screenshot-drawer__header h2,
    body.dark-mode .fc-filter-modal__header h2,
    body.dark-mode .fc-filter-section h3,
    body.dark-mode .fc-filter-tab,
    html.dark-mode body .fc-screenshot-drawer__header h2,
    html.dark-mode body .fc-filter-modal__header h2,
    html.dark-mode body .fc-filter-section h3,
    html.dark-mode body .fc-filter-tab {
        color: var(--fc-text);
    }

    body.dark-mode .fc-screenshot-empty,
    body.dark-mode .fc-filter-option,
    body.dark-mode .fc-filter-modal__close,
    html.dark-mode body .fc-screenshot-empty,
    html.dark-mode body .fc-filter-option,
    html.dark-mode body .fc-filter-modal__close {
        color: var(--fc-muted);
    }

    body.dark-mode .fc-filter-modal__tabs,
    body.dark-mode .fc-filter-modal__close:hover,
    html.dark-mode body .fc-filter-modal__tabs,
    html.dark-mode body .fc-filter-modal__close:hover {
        background: var(--fc-search-bg);
        color: var(--fc-text);
    }

    body.dark-mode .fc-screenshot-action--primary,
    html.dark-mode body .fc-screenshot-action--primary {
        background: var(--fc-control-active-bg);
        border-color: var(--fc-control-active-bg);
        color: var(--fc-control-active-text);
    }

    body.dark-mode .screenshot-item input[type="checkbox"],
    body.dark-mode .fc-filter-option input,
    html.dark-mode body .screenshot-item input[type="checkbox"],
    html.dark-mode body .fc-filter-option input {
        accent-color: var(--fc-control-active-bg);
    }

    body.dark-mode .fc-favorite-btn,
    html.dark-mode body .fc-favorite-btn {
        background: rgba(111, 111, 96, 0.84);
        color: #ffffff;
    }

    body.dark-mode .fc-favorite-btn:hover,
    body.dark-mode .fc-favorite-btn.is-favorite,
    html.dark-mode body .fc-favorite-btn:hover,
    html.dark-mode body .fc-favorite-btn.is-favorite {
        background: #ffffff;
        color: #d90404;
    }

    body.dark-mode .fc-favorite-filter-btn,
    html.dark-mode body .fc-favorite-filter-btn {
        color: #ff3b3b;
    }

    body.dark-mode .fc-tool-btn.fc-favorite-filter-btn.is-active,
    html.dark-mode body .fc-tool-btn.fc-favorite-filter-btn.is-active {
        background: #ffffff;
        border-color: rgba(255, 59, 59, 0.42);
        color: #d90404;
    }

    .fc-screenshot-overlay {
        position: fixed;
        inset: 0;
        z-index: 950;
        display: flex;
        justify-content: flex-end;
        background: rgba(17, 17, 17, 0.34);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    #zoomModal {
        z-index: 1200;
        pointer-events: auto;
    }

    #zoomModal.tw-hidden {
        display: none;
    }

    #zoomModal img {
        pointer-events: auto;
    }

    .fc-screenshot-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .fc-screenshot-overlay.tw-hidden {
        display: none;
    }

    .fc-screenshot-drawer {
        width: min(430px, calc(100vw - 28px));
        height: 100%;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: -24px 0 70px rgba(0, 0, 0, 0.22);
        transform: translateX(100%);
        transition: transform 0.26s ease;
    }

    .fc-screenshot-overlay.is-open .fc-screenshot-drawer {
        transform: translateX(0);
    }

    .fc-screenshot-drawer__header,
    .fc-screenshot-drawer__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px;
        border-bottom: 1px solid var(--fc-border);
    }

    .fc-screenshot-drawer__footer {
        border-top: 1px solid var(--fc-border);
        border-bottom: 0;
    }

    .fc-screenshot-drawer__header h2 {
        margin: 0;
        color: #111;
        font-size: 20px;
        font-weight: 800;
    }

    .fc-screenshot-drawer__header span {
        display: block;
        margin-top: 3px;
        color: var(--fc-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .fc-screenshot-close,
    .fc-screenshot-action {
        border: 1px solid var(--fc-border);
        background: #fff;
        color: #252525;
        cursor: pointer;
        font-weight: 800;
    }

    .fc-screenshot-close {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        font-size: 18px;
    }

    .fc-screenshot-action {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 13px;
        border-radius: 12px;
        font-size: 13px;
    }

    .fc-screenshot-action--primary {
        background: #111;
        color: #fff;
        border-color: #111;
    }

    .fc-screenshot-list {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 12px;
        overflow-y: auto;
        padding: 18px;
    }

    .fc-screenshot-empty {
        min-height: 220px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 10px;
        border: 1px dashed #d7dbe0;
        border-radius: 14px;
        color: #8a8f98;
        font-weight: 800;
    }

    .fc-screenshot-empty i {
        font-size: 30px;
    }

    .screenshot-item {
        position: relative;
        border: 1px solid var(--fc-border);
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .screenshot-item label {
        display: block;
        margin: 0;
        cursor: zoom-in;
    }

    .screenshot-item img {
        width: 100%;
        aspect-ratio: 16 / 10;
        display: block;
        object-fit: cover;
        cursor: zoom-in;
    }

    .screenshot-item input[type="checkbox"] {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 2;
        width: 22px;
        height: 22px;
        margin: 0;
        accent-color: #111;
        cursor: pointer;
    }

    .fc-screenshot-toast {
        position: fixed;
        right: 24px;
        bottom: 24px;
        z-index: 1100;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 15px;
        border-radius: 14px;
        background: rgba(17, 17, 17, 0.94);
        color: #fff;
        box-shadow: var(--fc-shadow);
        font-size: 14px;
        font-weight: 800;
        transform: translateY(16px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

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

    #tileEditorModal.tileEditorModal {
        position: absolute;
        inset: 0;
        margin: 0 !important;
        border: 0;
        border-radius: 0;
        background: rgba(15, 17, 21, 0.12);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #tileEditorModal .modal-content {
        border-radius: 8px;
    }

    body.dark-mode #tileEditorModal.tileEditorModal {
        background: rgba(3, 7, 18, 0.24);
    }

    #CategoryModal.CategoryModal,
    #CategoryModal.CategoryModal.tw-flex {
        position: fixed;
        inset: 0;
        z-index: 1400;
        display: grid !important;
        place-items: center;
        width: 100vw;
        height: 100dvh;
        margin: 0;
        padding: 12px;
        border: 0;
        background: rgba(17, 17, 17, 0.42);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: auto;
    }

    #CategoryModal.CategoryModal.tw-hidden {
        display: none !important;
    }

    body.dark-mode #CategoryModal.CategoryModal,
    body.dark-mode #CategoryModal.CategoryModal.tw-flex,
    html.dark-mode body #CategoryModal.CategoryModal,
    html.dark-mode body #CategoryModal.CategoryModal.tw-flex {
        background: rgba(8, 10, 14, 0.62);
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fc-filter-modal {
        width: min(674px, calc(100vw - 28px));
        height: min(568px, calc(100dvh - 28px));
        display: grid;
        grid-template-rows: 68px minmax(0, 1fr) 72px;
        overflow: hidden;
        border-radius: 6px;
        background: #fff;
        color: #252a31;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        pointer-events: auto;
    }

    .fc-filter-modal__header,
    .fc-filter-modal__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 16px;
        background: #fff;
    }

    .fc-filter-modal__header {
        border-bottom: 1px solid #f0f0f0;
    }

    .fc-filter-modal__header h2 {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0;
        color: #252a31;
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .fc-filter-modal__header h2 i {
        font-size: 15px;
    }

    .fc-filter-modal__close {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #6f7a85;
        cursor: pointer;
        font-size: 21px;
    }

    .fc-filter-modal__close:hover {
        background: #f4f4f4;
        color: #252a31;
    }

    .fc-filter-modal__body {
        min-height: 0;
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
        overflow: hidden;
    }

    .fc-filter-modal__tabs {
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
        background: #f3f3f3;
    }

    .fc-filter-tab {
        width: 100%;
        min-height: 61px;
        padding: 0 16px;
        border: 0;
        background: transparent;
        color: #252a31;
        cursor: pointer;
        text-align: left;
        text-transform: uppercase;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0;
    }

    .fc-filter-tab.is-active,
    .fc-filter-tab:hover {
        background: #fff;
    }

    .fc-filter-modal__panels {
        min-height: 0;
        overflow-y: auto;
        padding: 14px 28px 18px 20px;
        background: #fff;
    }

    .fc-filter-panel {
        display: none;
    }

    .fc-filter-panel.is-active {
        display: block;
    }

    .fc-filter-section + .fc-filter-section {
        margin-top: 22px;
    }

    .fc-filter-section h3 {
        margin: 0 0 12px;
        color: #252a31;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .fc-filter-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        column-gap: 46px;
        row-gap: 20px;
    }

    .fc-filter-option {
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 0;
        color: #535c66;
        cursor: pointer;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.2;
    }

    .fc-filter-tab,
    .fc-filter-option,
    .fc-filter-option input,
    .fc-filter-clear,
    .fc-filter-apply,
    .fc-filter-modal__close {
        pointer-events: auto;
    }

    .fc-filter-option span {
        min-width: 0;
    }

    .fc-filter-option input {
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
        margin: 0;
        border: 1px solid #8b8f94;
        border-radius: 2px;
        accent-color: #252525;
        cursor: pointer;
    }

    .fc-filter-modal__footer {
        justify-content: flex-end;
        border-top: 1px solid #f0f0f0;
    }

    .fc-filter-clear,
    .fc-filter-apply {
        height: 43px;
        border: 0;
        cursor: pointer;
        font-size: 16px;
        font-weight: 700;
    }

    .fc-filter-clear {
        padding: 0 18px;
        background: transparent;
        color: #111;
    }

    .fc-filter-apply {
        min-width: 111px;
        border-radius: 7px;
        background: #252525;
        color: #fff;
    }

    .fc-filter-apply:hover {
        background: #111;
    }

    /* Premium showroom polish layer */
    .fc-visualizer-app {
        grid-template-columns: 340px minmax(0, 1fr);
        gap: 18px;
        padding: 18px;
        background:
            linear-gradient(120deg, rgba(250, 246, 240, 0.98), rgba(239, 229, 218, 0.94)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(226, 212, 197, 0.26));
    }

    body.dark-mode .fc-visualizer-app,
    html.dark-mode body .fc-visualizer-app {
        background:
            linear-gradient(120deg, rgba(17, 15, 13, 0.99), rgba(31, 26, 22, 0.96)),
            linear-gradient(180deg, rgba(191, 25, 1, 0.1), rgba(0, 0, 0, 0.18));
    }

    .fc-visualizer-sidebar,
    .fc-topbar,
    .fc-bottom-toolbar,
    .fc-contact-modal__panel,
    .fc-filter-modal,
    .fc-grout-panel,
    #tileEditorModal .modal-content,
    .fc-screenshot-drawer {
        border-color: rgba(80, 62, 48, 0.16);
        background:
            linear-gradient(180deg, rgba(255, 253, 249, 0.95), rgba(250, 244, 237, 0.9));
        box-shadow: 0 18px 46px rgba(54, 38, 28, 0.1);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body.dark-mode .fc-visualizer-sidebar,
    body.dark-mode .fc-topbar,
    body.dark-mode .fc-bottom-toolbar,
    body.dark-mode .fc-contact-modal__panel,
    body.dark-mode .fc-filter-modal,
    body.dark-mode .fc-grout-panel,
    body.dark-mode #tileEditorModal .modal-content,
    body.dark-mode .fc-screenshot-drawer,
    html.dark-mode body .fc-visualizer-sidebar,
    html.dark-mode body .fc-topbar,
    html.dark-mode body .fc-bottom-toolbar,
    html.dark-mode body .fc-contact-modal__panel,
    html.dark-mode body .fc-filter-modal,
    html.dark-mode body .fc-grout-panel,
    html.dark-mode body #tileEditorModal .modal-content,
    html.dark-mode body .fc-screenshot-drawer {
        border-color: rgba(255, 239, 218, 0.13);
        background:
            linear-gradient(180deg, rgba(35, 31, 28, 0.95), rgba(25, 22, 19, 0.94));
        box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
    }

    .fc-visualizer-sidebar {
        border-radius: 24px;
        box-shadow:
            0 18px 46px rgba(54, 38, 28, 0.11),
            inset 0 1px 0 rgba(255, 255, 255, 0.54);
    }

    .fc-materials-header {
        display: grid;
        gap: 4px;
        padding: 18px 18px 10px;
        border-bottom: 1px solid color-mix(in srgb, var(--fc-border) 86%, transparent);
    }

    .fc-materials-header small,
    .fc-room-title small,
    .fc-active-material small,
    .fc-menu-section,
    .fc-grout-color-label {
        color: var(--fc-showroom-gold);
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .fc-materials-header small {
        font-size: 10px;
        font-weight: 900;
    }

    .fc-materials-header strong {
        color: var(--fc-text);
        font-size: 18px;
        font-weight: 900;
        line-height: 1.1;
    }

    .fc-surface-tabs {
        padding: 12px 18px 10px;
        gap: 8px;
    }

    .fc-surface-tab {
        height: 42px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--fc-panel-solid) 68%, transparent);
        color: var(--fc-muted);
    }

    .fc-surface-tab.is-active {
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 78%, var(--fc-border));
        background:
            linear-gradient(135deg, var(--fc-control-active-bg), #6f1006);
        color: var(--fc-control-active-text);
        box-shadow: 0 12px 28px rgba(159, 23, 8, 0.18);
    }

    .fc-catalog-search {
        padding: 10px 18px 14px;
        background: linear-gradient(180deg, var(--fc-panel-solid) 74%, color-mix(in srgb, var(--fc-panel-solid) 40%, transparent));
    }

    .fc-search-field,
    .fc-tool-btn,
    .fc-sort-select,
    .fc-toolbar-btn,
    .fc-nav-btn,
    .fc-icon-btn,
    .fc-floating-btn,
    .fc-menu-action,
    .fc-room-menu__panel a {
        border-radius: 999px;
    }

    .fc-search-field,
    .fc-tool-btn,
    .fc-topbar .fc-nav-btn,
    .fc-topbar .fc-icon-btn,
    .fc-toolbar-btn,
    .fc-floating-btn {
        border-color: color-mix(in srgb, var(--fc-border) 92%, transparent);
        background: rgba(255, 252, 247, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    body.dark-mode .fc-search-field,
    body.dark-mode .fc-tool-btn,
    body.dark-mode .fc-topbar .fc-nav-btn,
    body.dark-mode .fc-topbar .fc-icon-btn,
    body.dark-mode .fc-toolbar-btn,
    body.dark-mode .fc-floating-btn,
    html.dark-mode body .fc-search-field,
    html.dark-mode body .fc-tool-btn,
    html.dark-mode body .fc-topbar .fc-nav-btn,
    html.dark-mode body .fc-topbar .fc-icon-btn,
    html.dark-mode body .fc-toolbar-btn,
    html.dark-mode body .fc-floating-btn {
        background: rgba(43, 38, 34, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .fc-tool-btn:hover,
    .fc-topbar .fc-nav-btn:hover,
    .fc-topbar .fc-icon-btn:hover,
    .fc-toolbar-btn:hover,
    .fc-floating-btn:hover {
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 40%, var(--fc-border));
        background: color-mix(in srgb, var(--fc-control-active-bg) 8%, var(--fc-control-bg));
        box-shadow: 0 12px 26px rgba(54, 38, 28, 0.12);
    }

    .fc-catalog-meta {
        margin: 0 18px;
        padding: 0 0 14px;
        border-bottom-style: dashed;
    }

    .fc-catalog-scroll {
        padding: 16px 18px 18px;
    }

    .fc-section-heading {
        margin: 6px 2px 12px;
        color: var(--fc-text);
        font-size: 13px;
        letter-spacing: 0.01em;
    }

    .fc-section-heading small {
        color: var(--fc-muted);
        font-weight: 700;
    }

    .fc-tile-card {
        border-radius: 18px;
        background:
            linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(248, 241, 233, 0.94));
        box-shadow:
            0 10px 26px rgba(54, 38, 28, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    body.dark-mode .fc-tile-card,
    html.dark-mode body .fc-tile-card {
        background:
            linear-gradient(180deg, rgba(39, 34, 30, 0.98), rgba(31, 27, 24, 0.94));
        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .fc-tile-card:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 30%, var(--fc-border));
        box-shadow: 0 18px 38px rgba(54, 38, 28, 0.13);
    }

    #product-main.is-list-view .fc-tile-card__body {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        padding: 11px;
    }

    #product-main.is-list-view .fc-tile-card__media {
        width: 92px;
        border-radius: 13px;
    }

    .fc-tile-card__media {
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent),
            var(--fc-card-media-bg);
    }

    .fc-card-row h3 {
        font-size: 13.5px;
        font-weight: 900;
    }

    .fc-card-size {
        color: var(--fc-muted);
        font-size: 11px;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .fc-tag-row span {
        background: color-mix(in srgb, var(--fc-showroom-gold) 12%, var(--fc-tag-bg));
        color: var(--fc-tag-text);
        font-size: 10.5px;
        letter-spacing: 0.02em;
    }

    .fc-favorite-btn,
    #product-main.is-list-view .fc-favorite-btn,
    #product-main.is-grid-view .fc-favorite-btn {
        background: rgba(33, 28, 24, 0.62);
        color: #ffffff;
        backdrop-filter: blur(8px);
    }

    .fc-favorite-btn:hover,
    .fc-favorite-btn.is-favorite,
    #product-main.is-grid-view .fc-favorite-btn.is-favorite,
    #product-main.is-list-view .fc-favorite-btn.is-favorite {
        background: #fffaf4;
        color: #bf1901;
    }

    .fc-add-cart-btn.is-available:hover,
    .fc-favorites-bulk-btn,
    .fc-contact-form button,
    .fc-screenshot-action--primary {
        background:
            linear-gradient(135deg, var(--fc-control-active-bg), #6f1006);
        color: #ffffff;
    }

    .fc-visualizer-stage {
        gap: 14px;
    }

    .fc-topbar {
        min-height: 62px;
        padding: 9px 10px;
    }

    .fc-room-title {
        min-width: 0;
        padding-right: 16px;
    }

    .fc-room-title small {
        font-size: 10px;
        font-weight: 900;
    }

    .fc-room-title span {
        max-width: 260px;
        color: var(--fc-text);
        font-size: 17px;
        font-weight: 900;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fc-topbar .fc-contact-open-btn {
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 35%, var(--fc-border));
        background: color-mix(in srgb, var(--fc-control-active-bg) 10%, var(--fc-control-bg));
    }

    .fc-room-menu__panel {
        border-radius: 18px;
        padding: 12px;
        background:
            linear-gradient(180deg, rgba(255, 253, 249, 0.97), rgba(248, 241, 233, 0.94));
    }

    body.dark-mode .fc-room-menu__panel,
    html.dark-mode body .fc-room-menu__panel {
        background:
            linear-gradient(180deg, rgba(39, 34, 30, 0.98), rgba(31, 27, 24, 0.96));
    }

    .fc-viewport-shell {
        border: 1px solid rgba(80, 62, 48, 0.18);
        border-radius: 28px;
        background:
            linear-gradient(145deg, rgba(226, 215, 202, 0.96), rgba(199, 184, 169, 0.84));
        box-shadow:
            0 34px 90px rgba(54, 38, 28, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.54),
            inset 0 -28px 70px rgba(54, 38, 28, 0.08);
    }

    .fc-viewport-shell::before {
        content: "";
        position: absolute;
        inset: 12px;
        z-index: 1;
        border: 1px solid rgba(255, 255, 255, 0.42);
        border-radius: 22px;
        pointer-events: none;
    }

    .container2.fc-visualizer-canvas {
        border-radius: 28px;
        background:
            linear-gradient(180deg, rgba(246, 239, 230, 0.8), rgba(217, 204, 190, 0.42)),
            var(--fc-canvas-bg);
    }

    .fc-viewport-actions {
        top: 18px;
        right: 18px;
    }

    .fc-floating-btn {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        background: rgba(255, 250, 244, 0.84);
        box-shadow: 0 14px 32px rgba(54, 38, 28, 0.16);
    }

    .fc-bottom-toolbar {
        min-height: 72px;
        padding: 11px 64px 11px 14px;
        border-radius: 24px;
    }

    .fc-active-material {
        min-width: 250px;
        gap: 12px;
    }

    .fc-stack-icon {
        background:
            linear-gradient(135deg, #2b211b, #9f1708);
        box-shadow: 0 14px 28px rgba(159, 23, 8, 0.22);
    }

    .fc-stack-icon b {
        background: var(--fc-showroom-gold);
        color: #211c18;
    }

    .fc-active-material strong {
        max-width: 220px;
        font-size: 14px;
        font-weight: 900;
    }

    .fc-toolbar-btn {
        min-height: 44px;
        padding: 0 16px;
        font-weight: 800;
    }

    .fc-toolbar-btn[data-fc-open-grout],
    .fc-toolbar-btn[data-fc-open-editor] {
        border-color: color-mix(in srgb, var(--fc-control-active-bg) 30%, var(--fc-border));
    }

    .fc-contact-modal,
    .fc-screenshot-overlay {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .fc-contact-modal__panel,
    .fc-filter-modal,
    .fc-grout-panel,
    #tileEditorModal .modal-content,
    .fc-screenshot-drawer {
        border-radius: 20px;
    }

    .fc-contact-modal__header,
    .fc-filter-modal__header,
    .fc-filter-modal__footer,
    .fc-grout-panel__header,
    .fc-tile-editor-panel__header,
    .fc-screenshot-drawer__header,
    .fc-screenshot-drawer__footer {
        border-color: color-mix(in srgb, var(--fc-border) 82%, transparent);
    }

    .fc-contact-modal__header h2,
    .fc-filter-modal__header h2,
    .fc-grout-panel__header h2,
    .fc-tile-editor-panel__header h2,
    .fc-screenshot-drawer__header h2 {
        color: var(--fc-text);
        font-weight: 900;
    }

    .fc-contact-modal__header p,
    .fc-screenshot-drawer__header span {
        color: var(--fc-muted);
    }

    .fc-contact-form input,
    .fc-contact-form textarea,
    .fc-filter-option,
    .fc-grout-selected-color__card,
    .fc-grout-swatch,
    .fc-layout-option,
    .fc-rotation-pill {
        border-color: color-mix(in srgb, var(--fc-border) 92%, transparent);
        background: color-mix(in srgb, var(--fc-panel-solid) 78%, transparent);
        color: var(--fc-text);
    }

    .fc-visualizer-app :is(button, a, input, select, textarea):focus-visible {
        outline: 2px solid color-mix(in srgb, var(--fc-control-active-bg) 86%, #ffffff);
        outline-offset: 3px;
    }

    .fc-toast {
        position: fixed;
        right: 24px;
        top: 92px;
        z-index: 1000;
        padding: 12px 14px;
        border: 1px solid var(--fc-border);
        border-radius: 14px;
        background: rgba(17, 17, 17, 0.92);
        color: #fff;
        box-shadow: var(--fc-shadow);
        font-weight: 800;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

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

    .fc-mobile-only {
        display: none;
    }

    @media (max-width: 1180px) {
        .fc-visualizer-app {
            --fc-app-content-height: calc(100vh - var(--fc-site-header-height) - 24px);
            --fc-app-content-height: calc(100dvh - var(--fc-site-header-height) - 24px);
            grid-template-columns: 300px minmax(0, 1fr);
            padding: 12px;
            gap: 12px;
        }

        .fc-topbar__actions .fc-nav-btn span {
            display: none;
        }

        .fc-topbar__actions [data-fc-menu-toggle] span {
            display: inline;
        }

        .fc-catalog-search {
            grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
        }

        #categoriesButton span {
            display: none;
        }

        .fc-nav-btn {
            width: 42px;
            padding: 0;
        }

        .fc-nav-btn--dark {
            width: auto;
            padding: 0 12px;
        }

        .fc-nav-btn--dark span {
            display: inline !important;
        }
    }

    @media (max-width: 900px) {
        .fc-visualizer-app {
            grid-template-columns: 1fr;
            min-height: calc(100dvh - var(--fc-site-header-height));
        }

        .fc-visualizer-app:fullscreen,
        .fc-visualizer-app:-webkit-full-screen {
            --fc-site-header-height: 0px;
            --fc-app-content-height: calc(100dvh - 24px);
            grid-template-columns: 1fr;
            padding: 12px;
        }

        .fc-visualizer-sidebar {
            position: fixed;
            inset: calc(var(--fc-site-header-height) + 12px) auto 12px 12px;
            z-index: 80;
            width: min(320px, calc(100vw - 24px));
            transform: translateX(calc(-100% - 18px));
            opacity: 0;
        }

        .fc-visualizer-sidebar.is-open {
            transform: translateX(0);
            opacity: 1;
        }

        .fc-visualizer-app:fullscreen .fc-visualizer-sidebar,
        .fc-visualizer-app:-webkit-full-screen .fc-visualizer-sidebar {
            inset: 12px auto 12px 12px;
            height: calc(100dvh - 24px);
        }

        .fc-mobile-only {
            display: grid;
        }

        .fc-bottom-toolbar {
            align-items: flex-start;
            flex-direction: column;
        }

        .fc-active-material {
            width: 100%;
            border-right: 0;
            border-bottom: 1px solid var(--fc-border);
            padding: 0 0 10px;
        }

        .fc-toolbar-controls {
            width: 100%;
            justify-content: flex-start;
            overflow-x: auto;
            flex-wrap: nowrap;
            padding-bottom: 2px;
        }
    }

    @media (max-width: 640px) {
        .fc-visualizer-app {
            --fc-app-content-height: calc(100vh - var(--fc-site-header-height) - 16px);
            --fc-app-content-height: calc(100dvh - var(--fc-site-header-height) - 16px);
            padding: 8px;
            gap: 8px;
        }

        .fc-visualizer-stage {
            gap: 8px;
            grid-template-rows: auto minmax(0, 1fr) auto;
        }

        .fc-topbar {
            min-width: 0;
            min-height: 50px;
            padding: 6px;
            gap: 6px;
            overflow: hidden;
        }

        .fc-topbar__group,
        .fc-topbar__actions {
            min-width: 0;
            gap: 6px;
        }

        .fc-topbar__actions {
            overflow-x: auto;
            scrollbar-width: none;
        }

        .fc-topbar__actions::-webkit-scrollbar {
            display: none;
        }

        .fc-topbar .fc-icon-btn,
        .fc-topbar .fc-nav-btn {
            width: 40px;
            min-width: 40px;
            height: 40px;
            min-height: 40px;
            padding: 0;
            font-size: 14px;
        }

        .fc-topbar .fc-nav-btn span {
            display: none !important;
        }

        .fc-topbar #screenshot-btn,
        .fc-topbar .fc-nav-btn + .fc-nav-btn,
        .fc-topbar .fc-nav-btn + .fc-room-menu,
        .fc-topbar .fc-room-menu + .fc-room-menu,
        .fc-topbar .fc-room-menu + .fc-nav-btn,
        .fc-topbar .fc-icon-btn + .fc-nav-btn,
        .fc-topbar .fc-nav-btn + .fc-icon-btn {
            margin-left: 0;
        }

        .fc-room-menu__panel {
            width: min(320px, calc(100vw - 28px));
            grid-template-columns: 1fr;
            max-height: min(360px, calc(100dvh - 120px));
        }

        .fc-grout-overlay {
            justify-content: center;
            align-items: flex-end;
            padding: 12px;
        }

        .fc-grout-panel {
            width: 100%;
            max-height: calc(100dvh - 24px);
        }

        #tileEditorModal.tileEditorModal,
        #tileEditorModal.tw-flex {
            align-items: flex-end;
            justify-content: center;
            padding: 12px !important;
        }

        #tileEditorModal .modal-content {
            width: 100%;
            max-height: calc(100dvh - 24px);
            margin-left: 0 !important;
            margin-right: 0 !important;
            transform-origin: bottom center;
        }

        .fc-grout-panel__header,
        .fc-grout-panel__body {
            padding-left: 16px;
            padding-right: 16px;
        }

        .fc-bottom-toolbar {
            width: 100%;
            min-height: 0;
            padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
            overflow: hidden;
        }

        .fc-active-material {
            min-width: 0;
            padding: 0 0 8px;
            gap: 8px;
        }

        .fc-active-material strong {
            max-width: min(220px, calc(100vw - 96px));
        }

        .fc-stack-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
        }

        .fc-toolbar-controls {
            width: 100%;
            max-width: 100%;
            display: flex;
            flex-wrap: nowrap;
            gap: 8px;
            justify-content: flex-start;
            overflow-x: auto;
            padding-bottom: 2px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .fc-toolbar-controls::-webkit-scrollbar {
            display: none;
        }

        .fc-toolbar-btn {
            flex: 0 0 auto;
            min-height: 44px;
            padding: 0 12px;
        }

        .fc-topbar,
        .fc-bottom-toolbar,
        .fc-viewport-shell,
        .container2.fc-visualizer-canvas {
            border-radius: 16px;
        }

        .fc-room-title small {
            display: none;
        }

        .fc-filter-modal {
            width: min(100%, calc(100vw - 16px));
            height: min(620px, calc(100vh - 16px));
            grid-template-rows: 58px minmax(0, 1fr) 64px;
        }

        .fc-filter-modal__body {
            grid-template-columns: 150px minmax(0, 1fr);
        }

        .fc-filter-tab {
            min-height: 50px;
            padding: 0 12px;
            font-size: 12px;
        }

        .fc-filter-modal__panels {
            padding: 14px;
        }

        .fc-filter-options {
            grid-template-columns: 1fr;
            gap: 14px;
        }

        .fc-filter-option {
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .fc-visualizer-app {
            height: calc(100vh - var(--fc-site-header-height));
            height: calc(100dvh - var(--fc-site-header-height));
            min-height: calc(100dvh - var(--fc-site-header-height));
            display: flex;
            flex-direction: column;
            padding: 8px;
            overflow-x: hidden;
            overflow-y: hidden;
        }

        .fc-visualizer-stage {
            flex: 1 1 auto;
            width: 100%;
            max-width: 100%;
            min-height: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
            gap: 8px;
            overflow: hidden;
        }

        .fc-viewport-shell {
            flex: 1 1 auto;
            width: 100%;
            min-height: 0;
            max-height: none;
            height: auto;
            aspect-ratio: auto;
            align-self: stretch;
            border-radius: 16px;
        }

        .container2.fc-visualizer-canvas {
            aspect-ratio: auto;
            height: 100% !important;
            min-height: 0 !important;
            border-radius: 16px;
        }

        .fc-viewport-actions {
            top: 10px;
            right: 10px;
            gap: 6px;
        }

        .fc-floating-btn {
            width: 40px;
            height: 40px;
            border-radius: 9px;
        }

        .fc-applied-overlay {
            padding: 12px;
            align-items: flex-end;
        }

        .fc-applied-panel {
            width: 100%;
            max-height: min(520px, calc(100dvh - 24px));
        }
    }

    @media (max-width: 380px) {
        .fc-visualizer-app {
            padding: 6px;
        }

        .fc-visualizer-stage {
            gap: 6px;
        }

        .fc-viewport-shell {
            width: 100%;
            min-height: 0;
            max-height: none;
        }

        .fc-toolbar-btn {
            min-height: 40px;
            padding: 0 10px;
            font-size: 13px;
        }

        .fc-active-material small {
            font-size: 10px;
        }

        .fc-active-material strong {
            font-size: 12px;
        }
    }

    @media (max-width: 760px) and (max-height: 520px) and (orientation: landscape) {
        .fc-visualizer-app {
            --fc-app-content-height: calc(100vh - var(--fc-site-header-height));
            --fc-app-content-height: calc(100dvh - var(--fc-site-header-height));
            height: calc(100vh - var(--fc-site-header-height));
            height: calc(100dvh - var(--fc-site-header-height));
            min-height: calc(100dvh - var(--fc-site-header-height));
            padding: 6px 8px;
            overflow: hidden;
        }

        .fc-visualizer-stage {
            position: relative;
            height: 100%;
            min-height: 0;
            display: grid;
            grid-template-rows: 46px minmax(168px, 1fr);
            gap: 6px;
            overflow: hidden;
        }

        .fc-topbar {
            min-height: 46px;
            height: 46px;
            padding: 4px;
            border-radius: 14px;
            overflow: visible;
        }

        .fc-room-title span {
            max-width: min(180px, 36vw);
            font-size: 15px;
        }

        .fc-topbar__actions {
            flex: 0 0 auto;
            overflow: visible;
        }

        .fc-topbar .fc-icon-btn,
        .fc-topbar .fc-nav-btn {
            width: 38px;
            min-width: 38px;
            height: 38px;
            min-height: 38px;
        }

        .fc-topbar #screenshot-btn {
            display: none;
        }

        .fc-room-menu {
            position: relative;
            flex: 0 0 auto;
        }

        .fc-room-menu__panel {
            position: fixed !important;
            top: 52px !important;
            right: 10px !important;
            width: min(280px, calc(100vw - 20px));
            max-height: calc(100dvh - 132px) !important;
            z-index: 160 !important;
            overflow-y: auto;
        }

        .fc-viewport-shell {
            min-height: 168px;
            height: 100%;
            border-radius: 14px;
        }

        .container2.fc-visualizer-canvas {
            height: 100% !important;
            min-height: 168px !important;
            border-radius: 14px;
        }

        .fc-viewport-actions {
            top: 8px;
            right: 8px;
            gap: 6px;
            z-index: 32;
        }

        .fc-floating-btn {
            width: 38px;
            height: 38px;
            min-width: 38px;
            min-height: 38px;
            border-radius: 10px;
        }

        .fc-bottom-toolbar {
            position: absolute;
            left: 8px;
            right: 8px;
            bottom: 8px;
            z-index: 28;
            width: auto;
            min-height: 48px;
            padding: 6px;
            border-radius: 14px;
            background: color-mix(in srgb, var(--fc-panel-solid) 86%, transparent);
        }

        body.dark-mode .fc-bottom-toolbar,
        html.dark-mode body .fc-bottom-toolbar {
            background: rgba(31, 28, 25, 0.9);
        }

        .fc-active-material {
            display: none;
        }

        .fc-toolbar-controls {
            width: 100%;
            justify-content: center;
            gap: 6px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .fc-toolbar-controls::-webkit-scrollbar {
            display: none;
        }

        .fc-toolbar-btn {
            width: 40px;
            min-width: 40px;
            height: 40px;
            min-height: 40px;
            padding: 0;
        }

        .fc-toolbar-btn span {
            display: none !important;
        }

        body:has(.fc-visualizer-app) .fc-help-btn {
            display: none !important;
        }
    }
    /* Premium filter and product details polish */
    #CategoryModal.CategoryModal {
        align-items: center;
        justify-content: center;
        padding: 18px;
        background: rgba(21, 18, 15, 0.48);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fc-filter-modal {
        width: min(780px, calc(100vw - 32px));
        height: min(648px, calc(100dvh - 36px));
        grid-template-rows: 74px minmax(0, 1fr) 76px;
        border: 1px solid rgba(120, 104, 84, 0.18);
        border-radius: 24px;
        background: #fffdf9;
        box-shadow: 0 34px 90px rgba(26, 20, 14, 0.28);
    }

    .fc-filter-modal__header,
    .fc-filter-modal__footer {
        padding: 0 22px;
        background: rgba(255, 253, 249, 0.94);
    }

    .fc-filter-modal__header {
        border-bottom: 1px solid rgba(130, 113, 92, 0.16);
    }

    .fc-filter-modal__header h2 {
        gap: 10px;
        color: #1c1917;
        font-size: 22px;
        letter-spacing: -0.01em;
    }

    .fc-filter-modal__header h2 i {
        width: 34px;
        height: 34px;
        display: inline-grid;
        place-items: center;
        border-radius: 12px;
        background: rgba(176, 26, 16, 0.1);
        color: #9f1d14;
        font-size: 14px;
    }

    .fc-filter-modal__close {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(130, 113, 92, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        color: #60584f;
        transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
    }

    .fc-filter-modal__close:hover,
    .fc-filter-modal__close:focus-visible {
        border-color: rgba(159, 29, 20, 0.28);
        background: rgba(176, 26, 16, 0.08);
        color: #9f1d14;
        transform: translateY(-1px);
        outline: none;
    }

    .fc-filter-modal__body {
        grid-template-columns: 238px minmax(0, 1fr);
        background: linear-gradient(90deg, #f7f2ea 0, #f7f2ea 238px, #fffdf9 238px);
    }

    .fc-filter-modal__tabs {
        gap: 6px;
        padding: 14px 12px;
        border-right: 1px solid rgba(130, 113, 92, 0.16);
        background: transparent;
    }

    .fc-filter-tab {
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid transparent;
        border-radius: 14px;
        color: #3b332b;
        text-transform: none;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0;
        transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
    }

    .fc-filter-tab:hover {
        border-color: rgba(120, 104, 84, 0.18);
        background: rgba(255, 255, 255, 0.68);
        transform: translateX(2px);
    }

    .fc-filter-tab.is-active {
        border-color: rgba(159, 29, 20, 0.2);
        background: #ffffff;
        color: #9f1d14;
        box-shadow: 0 12px 26px rgba(70, 55, 36, 0.1);
    }

    .fc-filter-modal__panels {
        padding: 20px 22px;
        background: #fffdf9;
    }

    .fc-filter-section h3 {
        margin-bottom: 14px;
        color: #6f5131;
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .fc-filter-options {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 10px;
    }

    .fc-filter-option {
        min-height: 48px;
        padding: 10px 12px 10px 14px;
        border: 1px solid rgba(130, 113, 92, 0.16);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.7);
        color: #302b26;
        font-size: 14px;
        font-weight: 700;
        transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    }

    .fc-filter-option:hover,
    .fc-filter-option:focus-within {
        border-color: rgba(159, 29, 20, 0.22);
        background: #ffffff;
        box-shadow: 0 12px 24px rgba(70, 55, 36, 0.08);
        transform: translateY(-1px);
    }

    .fc-filter-option input {
        width: 18px;
        height: 18px;
        border-radius: 5px;
        accent-color: #b01a10;
    }

    .fc-filter-modal__footer {
        border-top: 1px solid rgba(130, 113, 92, 0.16);
    }

    .fc-filter-clear,
    .fc-filter-apply {
        height: 46px;
        border-radius: 999px;
        font-size: 14px;
        transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
    }

    .fc-filter-clear {
        padding: 0 20px;
        border: 1px solid rgba(130, 113, 92, 0.16);
        background: #ffffff;
        color: #312820;
    }

    .fc-filter-apply {
        min-width: 124px;
        background: #1c1917;
        color: #fffdf9;
        box-shadow: 0 14px 28px rgba(28, 25, 23, 0.18);
    }

    .fc-filter-clear:hover,
    .fc-filter-clear:focus-visible,
    .fc-filter-apply:hover,
    .fc-filter-apply:focus-visible {
        transform: translateY(-1px);
        outline: none;
    }

    .fc-filter-apply:hover,
    .fc-filter-apply:focus-visible {
        background: #9f1d14;
        box-shadow: 0 16px 30px rgba(159, 29, 20, 0.22);
    }

    .fc-more-details-btn {
        width: fit-content;
        min-height: 30px;
        display: none;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #9f1d14;
        text-decoration: none;
        font-size: 12px;
        font-weight: 850;
        letter-spacing: 0;
        transition: color 180ms ease, transform 180ms ease;
    }

    .fc-more-details-btn.active {
        display: inline-flex;
    }

    .fc-more-details-btn:hover,
    .fc-more-details-btn:focus-visible {
        color: #1c1917;
        transform: translateX(2px);
        outline: none;
    }

    body.dark-mode .fc-more-details-btn:hover,
    body.dark-mode .fc-more-details-btn:focus-visible,
    html.dark-mode body .fc-more-details-btn:hover,
    html.dark-mode body .fc-more-details-btn:focus-visible {
        color: #f8f3ec;
    }

    .fc-more-details-btn i {
        margin-left: 0 !important;
        font-size: 11px;
    }

    .fc-product-details-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: rgba(21, 18, 15, 0.58);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .fc-grout-overlay {
        background: rgba(243, 244, 246, 0.22);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.dark-mode .fc-grout-overlay,
    html.dark-mode body .fc-grout-overlay {
        background: rgba(3, 7, 18, 0.18);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .fc-product-details-modal.tw-hidden {
        display: none !important;
    }

    .fc-product-details-modal__panel {
        position: relative;
        width: min(760px, calc(100vw - 32px));
        max-height: min(640px, calc(100dvh - 40px));
        display: grid;
        grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
        gap: 22px;
        overflow: auto;
        padding: 26px;
        border: 1px solid rgba(130, 113, 92, 0.16);
        border-radius: 22px;
        background: linear-gradient(135deg, #fffdf9 0%, #ffffff 58%, #f7f2ea 100%);
        box-shadow: 0 34px 90px rgba(26, 20, 14, 0.32);
    }

    .fc-product-details-modal__close {
        position: absolute;
        top: 18px;
        right: 18px;
        z-index: 2;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(130, 113, 92, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.82);
        color: #766b5f;
        cursor: pointer;
        transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
    }

    .fc-product-details-modal__close:hover,
    .fc-product-details-modal__close:focus-visible {
        border-color: rgba(159, 29, 20, 0.28);
        background: rgba(176, 26, 16, 0.08);
        color: #9f1d14;
        transform: translateY(-1px);
        outline: none;
    }

    .fc-product-details-modal__media {
        min-width: 0;
        display: flex;
        align-items: stretch;
    }

    .fc-product-details-modal__image-frame {
        width: 100%;
        min-height: 280px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid rgba(130, 113, 92, 0.16);
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(247, 242, 234, 0.86)), #f7f2ea;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    .fc-product-details-modal__image {
        width: 100%;
        height: 100%;
        max-height: 340px;
        object-fit: contain;
        padding: 14px;
    }

    .fc-product-details-modal__content {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 2px 10px 2px 0;
    }

    .fc-product-details-modal__intro {
        padding-right: 42px;
    }

    .fc-product-details-modal__eyebrow {
        display: inline-flex;
        margin-bottom: 8px;
        color: #9a6a26;
        font-size: 11px;
        font-weight: 850;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .fc-product-details-modal__content h2 {
        margin: 0;
        color: #12100e;
        font-size: clamp(24px, 3vw, 32px);
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.01em;
    }

    .fc-product-details-modal__section h3 {
        margin: 0 0 12px;
        color: #50473f;
        font-size: 15px;
        font-weight: 850;
    }

    .fc-product-specs {
        display: grid;
        gap: 8px;
        margin: 0;
    }

    .fc-product-specs div {
        display: grid;
        grid-template-columns: minmax(108px, 0.9fr) minmax(0, 1.1fr);
        gap: 14px;
        align-items: start;
        min-height: 38px;
        padding: 10px 12px;
        border: 1px solid rgba(130, 113, 92, 0.14);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.72);
    }

    .fc-product-specs dt {
        color: #74675d;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .fc-product-specs dd {
        margin: 0;
        color: #26211d;
        font-size: 14px;
        font-weight: 750;
        line-height: 1.35;
        text-align: right;
        overflow-wrap: anywhere;
    }

    #pdModalDesc {
        margin: 0;
        padding: 12px 14px;
        border: 1px solid rgba(130, 113, 92, 0.14);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.72);
        color: #5f554c;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
    }

    body.dark-mode .fc-filter-modal,
    html.dark-mode body .fc-filter-modal,
    body.dark-mode .fc-product-details-modal__panel,
    html.dark-mode body .fc-product-details-modal__panel {
        border-color: rgba(255, 255, 255, 0.12);
        background: linear-gradient(135deg, #171412 0%, #1f1b18 68%, #29221c 100%);
        color: #f8f3ec;
    }

    body.dark-mode .fc-filter-modal__header,
    body.dark-mode .fc-filter-modal__footer,
    html.dark-mode body .fc-filter-modal__header,
    html.dark-mode body .fc-filter-modal__footer {
        background: rgba(23, 20, 18, 0.94);
        border-color: rgba(255, 255, 255, 0.12);
    }

    body.dark-mode .fc-filter-modal__body,
    html.dark-mode body .fc-filter-modal__body {
        background: linear-gradient(90deg, #211d1a 0, #211d1a 238px, #171412 238px);
    }

    body.dark-mode .fc-filter-modal__panels,
    html.dark-mode body .fc-filter-modal__panels {
        background: #171412;
    }

    body.dark-mode .fc-filter-tab,
    body.dark-mode .fc-filter-option,
    body.dark-mode .fc-filter-modal__header h2,
    body.dark-mode .fc-product-details-modal__content h2,
    html.dark-mode body .fc-filter-tab,
    html.dark-mode body .fc-filter-option,
    html.dark-mode body .fc-filter-modal__header h2,
    html.dark-mode body .fc-product-details-modal__content h2 {
        color: #f8f3ec;
    }

    body.dark-mode .fc-filter-tab.is-active,
    body.dark-mode .fc-filter-option,
    body.dark-mode .fc-filter-clear,
    body.dark-mode .fc-product-specs div,
    body.dark-mode #pdModalDesc,
    html.dark-mode body .fc-filter-tab.is-active,
    html.dark-mode body .fc-filter-option,
    html.dark-mode body .fc-filter-clear,
    html.dark-mode body .fc-product-specs div,
    html.dark-mode body #pdModalDesc {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .fc-product-specs dd,
    html.dark-mode body .fc-product-specs dd {
        color: #f8f3ec;
    }

    @media (max-width: 760px) {
        #CategoryModal.CategoryModal,
        #CategoryModal.CategoryModal.tw-flex {
            padding: 8px;
        }

        .fc-filter-modal {
            width: calc(100vw - 16px);
            max-width: none;
            height: calc(100dvh - 16px);
            max-height: calc(100dvh - 16px);
            border-radius: 20px;
            grid-template-rows: 64px minmax(0, 1fr) 68px;
        }

        .fc-filter-modal__body {
            grid-template-columns: 136px minmax(0, 1fr);
            background: linear-gradient(90deg, #f7f2ea 0, #f7f2ea 136px, #fffdf9 136px);
        }

        body.dark-mode .fc-filter-modal__body,
        html.dark-mode body .fc-filter-modal__body {
            background: linear-gradient(90deg, #211d1a 0, #211d1a 136px, #171412 136px);
        }

        .fc-filter-modal__tabs {
            padding: 10px 8px;
        }

        .fc-filter-tab {
            min-height: 44px;
            padding: 0 10px;
            font-size: 12px;
        }

        .fc-filter-modal__panels {
            padding: 14px 12px;
        }

        .fc-filter-options {
            grid-template-columns: 1fr;
        }

        .fc-product-details-modal {
            align-items: flex-end;
            padding: 10px;
        }

        .fc-product-details-modal__panel {
            width: 100%;
            max-height: calc(100dvh - 20px);
            grid-template-columns: 1fr;
            gap: 18px;
            padding: 22px;
            border-radius: 24px 24px 18px 18px;
        }

        .fc-product-details-modal__content {
            padding: 0;
        }

        .fc-product-details-modal__image-frame {
            min-height: 260px;
        }

        .fc-product-specs div {
            grid-template-columns: 1fr;
            gap: 5px;
        }

        .fc-product-specs dd {
            text-align: left;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .fc-filter-tab,
        .fc-filter-option,
        .fc-filter-modal__close,
        .fc-filter-clear,
        .fc-filter-apply,
        .fc-more-details-btn,
        .fc-product-details-modal__close {
            transition: none !important;
        }
    }

    .fc-visualizer-sidebar #product-main.is-grid-view .fc-texture-section {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px;
        align-items: start;
    }

    .fc-visualizer-sidebar #product-main.is-grid-view .fc-section-heading {
        grid-column: 1 / -1;
    }

    .fc-visualizer-sidebar #product-main.is-grid-view .fc-tile-card {
        min-width: 0;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .fc-visualizer-sidebar #product-main.is-grid-view .fc-tile-card__body,
    .fc-visualizer-sidebar #product-main.is-grid-view .fc-tile-card__media {
        min-width: 0;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-catalog-search {
        background:
            linear-gradient(180deg, rgba(31, 28, 25, 0.98), rgba(31, 28, 25, 0.9));
        border-color: rgba(255, 239, 218, 0.1);
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-search-field {
        border-color: rgba(255, 239, 218, 0.16);
        background: rgba(43, 38, 34, 0.96) !important;
        color: #b9aa9c;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            0 10px 24px rgba(0, 0, 0, 0.2);
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-search-field:focus-within {
        border-color: rgba(210, 168, 90, 0.56);
        background: rgba(47, 41, 36, 0.98) !important;
        box-shadow:
            0 0 0 3px rgba(210, 168, 90, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-search-field input {
        background: transparent !important;
        border-color: transparent !important;
        color: #f8efe5 !important;
        color-scheme: dark;
        box-shadow: none !important;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-search-field input::placeholder {
        color: #9f9287 !important;
        opacity: 1;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-catalog-meta {
        background: rgba(31, 28, 25, 0.98);
        border-color: rgba(255, 239, 218, 0.11);
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-sort-select {
        background: rgba(31, 28, 25, 0.98) !important;
        border-color: transparent !important;
        color: #f8efe5 !important;
        color-scheme: dark;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-sort-select:focus-visible {
        background: rgba(43, 38, 34, 0.98) !important;
        color: #ffffff !important;
        outline: 2px solid rgba(210, 168, 90, 0.44);
        outline-offset: 3px;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app .fc-sort-select option {
        background: #1f1c19;
        color: #f8efe5;
    }
    /* Restrained studio workspace
       This final layer replaces the decorative showroom treatment while retaining
       the visualizer's existing layout, state classes, and responsive behavior. */
    .fc-visualizer-app {
        gap: 12px;
        padding: 12px;
        background: #f3f2ef;
    }

    .fc-visualizer-sidebar,
    .fc-topbar,
    .fc-bottom-toolbar {
        border-color: #dedbd6;
        background: #ffffff;
        box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fc-visualizer-sidebar {
        border-radius: 14px;
    }

    .fc-materials-header {
        gap: 3px;
        padding: 15px 16px 12px;
        border-color: #e7e4df;
    }

    .fc-materials-header small,
    .fc-room-title small,
    .fc-active-material small,
    .fc-menu-section,
    .fc-grout-color-label {
        color: #8f2d22;
        letter-spacing: 0.08em;
    }

    .fc-materials-header small {
        font-size: 9px;
    }

    .fc-materials-header strong {
        font-size: 17px;
        font-weight: 800;
    }

    .fc-surface-tabs {
        gap: 8px;
        padding: 10px 16px;
    }

    .fc-surface-tab {
        height: 40px;
        border-radius: 8px;
        background: #f7f6f4;
        box-shadow: none;
    }

    .fc-surface-tab.is-active {
        border-color: #a71507;
        background: #a71507;
        box-shadow: none;
    }

    .fc-catalog-search {
        padding: 8px 16px 12px;
        background: #ffffff;
    }

    .fc-search-field,
    .fc-tool-btn,
    .fc-sort-select,
    .fc-toolbar-btn,
    .fc-nav-btn,
    .fc-icon-btn,
    .fc-floating-btn,
    .fc-menu-action,
    .fc-room-menu__panel a {
        border-radius: 8px;
    }

    .fc-search-field,
    .fc-tool-btn,
    .fc-topbar .fc-nav-btn,
    .fc-topbar .fc-icon-btn,
    .fc-toolbar-btn,
    .fc-floating-btn {
        border-color: #ddd9d3;
        background: #ffffff;
        box-shadow: none;
    }

    .fc-tool-btn:hover,
    .fc-topbar .fc-nav-btn:hover,
    .fc-topbar .fc-icon-btn:hover,
    .fc-toolbar-btn:hover,
    .fc-floating-btn:hover {
        border-color: #bbb5ad;
        background: #f7f6f4;
        box-shadow: none;
        transform: none;
    }

    .fc-catalog-meta {
        margin: 0 16px;
        padding-bottom: 12px;
        border-color: #e7e4df;
        border-bottom-style: solid;
    }

    .fc-catalog-scroll {
        padding: 12px 16px 16px;
    }

    .fc-section-heading {
        margin: 5px 2px 10px;
    }

    .fc-tile-card {
        border-radius: 10px;
        background: #ffffff;
        box-shadow: none;
    }

    .fc-tile-card:hover {
        border-color: #c9c5bf;
        box-shadow: 0 4px 12px rgba(28, 25, 23, 0.09);
        transform: none;
    }

    .fc-tile-card__media {
        background: var(--fc-card-media-bg);
    }

    .fc-favorite-btn,
    #product-main.is-list-view .fc-favorite-btn,
    #product-main.is-grid-view .fc-favorite-btn {
        backdrop-filter: none;
    }

    .fc-visualizer-stage {
        gap: 10px;
    }

    .fc-topbar {
        min-height: 56px;
        padding: 7px 8px;
        border-radius: 12px;
    }

    .fc-room-title {
        padding-right: 12px;
    }

    .fc-room-title span {
        font-size: 16px;
        font-weight: 800;
    }

    .fc-topbar .fc-contact-open-btn {
        border-color: #d8aaa4;
        background: #fffafa;
        color: #711d16;
    }

    .fc-room-menu__panel,
    .fc-contact-modal__panel,
    .fc-filter-modal,
    .fc-grout-panel,
    #tileEditorModal .modal-content,
    .fc-screenshot-drawer {
        border-radius: 12px;
        border-color: #dedbd6;
        background: #ffffff;
        box-shadow: 0 12px 32px rgba(28, 25, 23, 0.14);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fc-room-menu__panel {
        padding: 10px;
    }

    .fc-viewport-shell {
        border-color: #d8d5d0;
        border-radius: 14px;
        background: #deddd9;
        box-shadow: none;
    }

    .fc-viewport-shell::before {
        display: none;
    }

    .container2.fc-visualizer-canvas {
        border-radius: 13px;
        background: var(--fc-canvas-bg);
    }

    .fc-viewport-actions {
        top: 12px;
        right: 12px;
    }

    .fc-floating-btn {
        width: 40px;
        height: 40px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 1px 3px rgba(28, 25, 23, 0.12);
    }

    .fc-bottom-toolbar {
        min-height: 62px;
        padding: 9px 56px 9px 12px;
        border-radius: 12px;
    }

    .fc-active-material {
        min-width: 230px;
        gap: 10px;
    }

    .fc-stack-icon {
        border-radius: 8px;
        background: #a71507;
        box-shadow: none;
    }

    .fc-stack-icon b {
        background: #ffffff;
        color: #7f1d1d;
    }

    .fc-active-material strong {
        font-size: 13px;
        font-weight: 800;
    }

    .fc-toolbar-btn {
        min-height: 40px;
        padding: 0 14px;
        font-weight: 700;
    }

    .fc-toolbar-btn[data-fc-open-grout],
    .fc-toolbar-btn[data-fc-open-editor] {
        border-color: #d8aaa4;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-app {
        background: #171717;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-visualizer-sidebar,
    :is(body.dark-mode, html.dark-mode body) .fc-topbar,
    :is(body.dark-mode, html.dark-mode body) .fc-bottom-toolbar,
    :is(body.dark-mode, html.dark-mode body) .fc-catalog-search,
    :is(body.dark-mode, html.dark-mode body) .fc-catalog-meta,
    :is(body.dark-mode, html.dark-mode body) .fc-tile-card,
    :is(body.dark-mode, html.dark-mode body) .fc-room-menu__panel,
    :is(body.dark-mode, html.dark-mode body) .fc-contact-modal__panel,
    :is(body.dark-mode, html.dark-mode body) .fc-filter-modal,
    :is(body.dark-mode, html.dark-mode body) .fc-grout-panel,
    :is(body.dark-mode, html.dark-mode body) #tileEditorModal .modal-content,
    :is(body.dark-mode, html.dark-mode body) .fc-screenshot-drawer {
        border-color: #3a3632;
        background: #211f1d;
        box-shadow: none;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-search-field,
    :is(body.dark-mode, html.dark-mode body) .fc-tool-btn,
    :is(body.dark-mode, html.dark-mode body) .fc-topbar .fc-nav-btn,
    :is(body.dark-mode, html.dark-mode body) .fc-topbar .fc-icon-btn,
    :is(body.dark-mode, html.dark-mode body) .fc-toolbar-btn,
    :is(body.dark-mode, html.dark-mode body) .fc-floating-btn {
        border-color: #47413c;
        background: #292623;
        box-shadow: none;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-surface-tab {
        background: #292623;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-surface-tab.is-active {
        border-color: #bf1901;
        background: #bf1901;
    }

    :is(body.dark-mode, html.dark-mode body) .fc-viewport-shell {
        border-color: #3a3632;
        background: #111111;
    }

    @media (min-width: 1025px) {
        .fc-visualizer-app {
            grid-template-columns: 312px minmax(0, 1fr);
        }
    }

    @media (max-width: 1024px) {
        .fc-visualizer-app {
            gap: 10px;
            padding: 10px;
        }

        .fc-visualizer-sidebar,
        .fc-topbar,
        .fc-bottom-toolbar {
            border-radius: 12px;
        }
    }

    @media (max-width: 760px) {
        .fc-visualizer-app {
            gap: 8px;
            padding: 8px;
        }

        .fc-topbar {
            min-height: 52px;
        }

        .fc-viewport-shell,
        .container2.fc-visualizer-canvas {
            border-radius: 10px;
        }

        .fc-bottom-toolbar {
            min-height: 58px;
            border-radius: 10px;
        }

        .fc-active-material {
            min-width: 0;
        }
    }

    @media (max-width: 480px) {
        .fc-visualizer-app {
            gap: 6px;
            padding: 6px;
        }

        .fc-room-title {
            padding-right: 4px;
        }

        .fc-floating-btn {
            width: 38px;
            height: 38px;
        }
    }
