/* ── Smart Wood 3D Viewer ── */
.sw-product-viewer {
    width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.sw-container {
    width: 100%;
    height: 480px;
    background: linear-gradient(160deg, #f9f9f7 0%, #f0ede8 100%);
    border: 1px solid #e8e4de;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.sw-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,.08);
    transition: opacity .4s;
}

.sw-progress-fill {
    height: 100%;
    width: 0%;
    background: #16a5e6;
    transition: width .3s;
}

.sw-color-panel {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 12px 12px 4px;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sw-color-panel::-webkit-scrollbar {
    display: none;
}

.sw-color-name {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    padding: 6px 14px 10px;
    text-align: center;
    width: 100%;
    min-height: 28px;
}

@media (min-width: 768px) {
    .sw-color-panel {
        display: none;
    }
    .sw-color-name {
        display: none;
    }
}

.sw-variant-btn {
    background: none;
    border: 2px solid transparent;
    padding: 2px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .18s, transform .12s;
    -webkit-tap-highlight-color: transparent;
}

.sw-variant-btn:hover {
    border-color: #16a5e6;
    transform: scale(1.1);
}

.sw-variant-btn:active {
    transform: scale(1.0);
}

.sw-variant-btn.active {
    border-color: #16a5e6;
}

.sw-color-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.12);
    display: block;
    position: relative;
}

.sw-color-dot--natural {
    background: linear-gradient(135deg, #d4a96a 0%, #c8944f 40%, #b87d3a 60%, #c8944f 100%);
}

.sw-variant-btn.active .sw-color-dot::after {
    display: none;
}

.sw-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
    animation: sw-fade-in .2s ease;
}

@keyframes sw-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sw-error-icon {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #fff;
    flex-shrink: 0;
}

.sw-error-msg {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    padding: 10px 24px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    background: rgba(0,0,0,.55);
    border-radius: 10px;
}

.sw-error-msg em {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,.75);
    margin-top: 4px;
}

.sw-launch {
    width: 100%;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f9f9f7 0%, #f0ede8 100%);
    border: 1px solid #e8e4de;
    border-radius: 16px;
}

.sw-launch-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e0dbd4;
    border-radius: 14px;
    padding: 28px 40px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #444;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.sw-launch-btn:hover {
    border-color: #16a5e6;
    box-shadow: 0 4px 16px rgba(22,165,230,.2);
    transform: translateY(-2px);
    color: #0d8fc7;
}

.sw-launch-label {
    letter-spacing: 0.02em;
}

.sw-viewer-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
}

.sw-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.85);
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .2s, color .2s, border-color .2s;
    padding: 0;
    line-height: 1;
}

.sw-close-btn:hover {
    background: #fff;
    border-color: #c0392b;
    color: #c0392b;
}




























/* ── Smart Wood 3D Viewer ── 
.sw-product-viewer {
    width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.sw-container {
    width: 100%;
    height: 480px;
    background: linear-gradient(160deg, #f9f9f7 0%, #f0ede8 100%);
    border: 1px solid #e8e4de;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.sw-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,.08);
    transition: opacity .4s;
}

.sw-progress-fill {
    height: 100%;
    width: 0%;
    background: #16a5e6;
    transition: width .3s;
}

.sw-color-panel {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 8px 6px;
    flex: 1;
}

.sw-variant-btn {
    background: #fff;
    border: 1.5px solid #e0dbd4;
    padding: 8px 15px 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
    color: #444;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sw-variant-btn:hover {
    border-color: #16a5e6;
    background: #f4faff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(22,165,230,.15);
}

.sw-variant-btn:active {
    transform: translateY(0);
}

.sw-variant-btn.active {
    border-color: #16a5e6;
    background: #eaf6ff;
    color: #0d8fc7;
    box-shadow: 0 2px 8px rgba(22,165,230,.25);
}

.sw-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(0,0,0,.10);
    flex-shrink: 0;
    position: relative;
    transition: transform .18s;
}

.sw-variant-btn.active .sw-color-dot {
    transform: scale(1.15);
    border-color: rgba(0,0,0,.20);
}

.sw-variant-btn.active .sw-color-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background:
        rgba(255,255,255,.25)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='2,5 4,7.5 8,2.5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / 70% no-repeat;
}

.sw-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
    animation: sw-fade-in .2s ease;
}

@keyframes sw-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sw-error-icon {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #fff;
    flex-shrink: 0;
}

.sw-error-msg {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    padding: 10px 24px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    background: rgba(0,0,0,.55);
    border-radius: 10px;
}

.sw-error-msg em {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,.75);
    margin-top: 4px;
}

.sw-launch {
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f9f9f7 0%, #f0ede8 100%);
    border: 1px solid #e8e4de;
    border-radius: 16px;
}

.sw-launch-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e0dbd4;
    border-radius: 14px;
    padding: 28px 40px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #444;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.sw-launch-btn:hover {
    border-color: #16a5e6;
    box-shadow: 0 4px 16px rgba(22,165,230,.2);
    transform: translateY(-2px);
    color: #0d8fc7;
}

.sw-launch-label {
    letter-spacing: 0.02em;
}

.sw-viewer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 8px 6px 0;
}

.sw-close-btn {
    background: none;
    border: 1.5px solid #e0dbd4;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}

.sw-close-btn:hover {
    border-color: #c0392b;
    color: #c0392b;
} */