@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --studio-bg: #F9F8F6;
    --studio-accent: #C5A059;
    --studio-plum: #3B1C32;
    --studio-border: rgba(197, 160, 89, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(197, 160, 89, 0.2);
}

/* 1. AGGRESSIVE GLOBAL RESET - RESTORED */
html,
body {
    margin: 0;
    padding: 0;
}

body.studio-active {
    overflow: hidden !important;
    height: 100vh;
    width: 100vw;
}

.studio-container {
    position: fixed;
    inset: 0;
    background: var(--studio-bg);
    display: flex;
    flex-direction: column;
    z-index: 999999;
    /* Absolute top */
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

/* Kill all scrollbars everywhere */
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

* {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* 2. ARTISAN HEADER (Pristine Horizontal) */
.studio-header {
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--studio-border);
    flex-shrink: 0;
    position: relative;
    z-index: 1000;
}

.studio-branding {
    display: flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
}

.studio-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--studio-plum);
    font-weight: 900;
}

.studio-subtitle {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--studio-accent);
    text-transform: uppercase;
    font-weight: 700;
}

.studio-step-indicator {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    /* Prevent stacking */
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.45;
    /* Increased from 0.2 for readability */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.active {
    opacity: 1;
}

.step-dot {
    width: 5px;
    height: 5px;
    background: var(--studio-plum);
    border-radius: 50%;
}

.step-item.active .step-dot {
    transform: scale(1.4);
    background: var(--studio-accent);
}

.step-item span {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--studio-plum);
}

.btn-studio-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--studio-border);
    background: #fff;
    color: var(--studio-plum);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-studio-close:hover {
    background: var(--studio-plum);
    color: #fff;
}

/* 3. CORE BODY */
.studio-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* 4. VISUALIZER (360 STAGE) */
.studio-visualizer {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f4f4f0 100%);
    overflow: hidden;
}

#three-canvas-container {
    width: 100%;
    height: 100%;
}

/* 5. LIGHTING RIG (Docked Bottom-Right to avoid Header) */
.lighting-rig-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 170px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    z-index: 500;
    /* Below step indicators if they ever overlap on small screens */
}

.rig-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--studio-plum);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    opacity: 0.5;
}

.rig-top-view {
    position: relative;
    height: 110px;
    margin-bottom: 15px;
}

.rig-mannequin-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--studio-plum);
    border-radius: 50%;
    opacity: 0.05;
}

.shadow-box-rig {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--studio-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shadow-box-rig i {
    font-size: 0.9rem;
    color: #ccc;
}

.shadow-box-rig span {
    font-size: 0.5rem;
    font-weight: 800;
    color: #bbb;
    margin-top: 2px;
}

.shadow-box-rig.active {
    background: var(--studio-plum);
    border-color: var(--studio-plum);
    box-shadow: 0 5px 15px rgba(59, 28, 50, 0.2);
}

.shadow-box-rig.active i,
.shadow-box-rig.active span {
    color: #fff;
}

.shadow-box-rig.key {
    top: 65%;
    left: 0%;
    transform: rotate(15deg);
}

.shadow-box-rig.fill {
    top: 65%;
    right: 0%;
    transform: rotate(-15deg);
}

.shadow-box-rig.back {
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
}

.rig-camera-icon {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--studio-accent);
    opacity: 0.3;
}

/* 66. SIDE CONTROL PANEL */
.studio-side-panel {
    width: 440px;
    background: #ffffff;
    border-left: 1px solid var(--studio-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.panel-content {
    flex: 1;
    padding: 50px 40px;
    overflow-y: auto;
    position: relative;
}

.panel-footer {
    padding: 30px 40px;
    border-top: 1px solid var(--studio-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

/* 7. BOUTIQUE ELEMENTS */
.studio-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--studio-plum);
    margin-bottom: 8px;
}

.studio-description {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 40px;
    line-height: 1.6;
}

.garment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.garment-card {
    background: #fdfdfb;
    border: 1px solid var(--studio-border);
    padding: 30px 15px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.garment-card.active {
    border-color: var(--studio-plum);
    background: #fff;
    box-shadow: 0 10px 30px rgba(59, 28, 50, 0.06);
}

.garment-card i {
    font-size: 1.8rem;
    color: var(--studio-accent);
    margin-bottom: 12px;
    display: block;
}

.garment-card span {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--studio-plum);
}

.unit-toggle {
    display: flex;
    background: #f0f0e8;
    padding: 4px;
    border-radius: 50px;
    width: 140px;
    margin-bottom: 30px;
}

.unit-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    color: #aaa;
}

.unit-btn.active {
    background: #fff;
    color: var(--studio-plum);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Premium Buttons */
.btn-studio-back-styled {
    background: none;
    border: 1.5px solid var(--studio-border);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 950;
    /* Heavier weight */
    color: #888;
    /* Slightly darker */
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-studio-back-styled:hover {
    border-color: var(--studio-plum);
    color: var(--studio-plum);
    background: #fdfdfb;
}

.btn-studio-next {
    background: var(--studio-plum);
    color: #fff;
    border: none;
    padding: 12px 45px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(59, 28, 50, 0.2);
}

.btn-studio-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 28, 50, 0.3);
}

/* Overlays */
.visualizer-controls-top {
    position: absolute;
    top: 30px;
    left: 30px;
}

.btn-ctrl-360 {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque */
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 950;
    color: var(--studio-plum);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.btn-ctrl-360:hover {
    background: #fff;
    border-color: var(--studio-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.15);
}

.btn-ctrl-360.active {
    background: var(--studio-plum);
    color: #fff;
    border-color: var(--studio-plum);
}

.visualizer-overlay-new {
    position: absolute;
    bottom: 30px;
    left: 30px;
}

.badge-premium {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--studio-accent);
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 950;
    color: var(--studio-plum);
    letter-spacing: 1px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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