/* ═══════════════════════════════════════════════════════════════════
   G-TECH V14.4 - GLASS CANOPY CONFIGURATOR
   IKEA PAX Planner style - step-based configurator
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ────────────────────────────────────── */
.gtech-planner * { box-sizing: border-box; margin: 0; padding: 0; }
.gtech-planner {
    --primary: #0058A3;
    --primary-dark: #003E75;
    --accent: #FBD914;
    --accent-hover: #E5C412;
    --surface: #F5F5F5;
    --surface-alt: #FFFFFF;
    --text: #111111;
    --text-secondary: #484848;
    --text-muted: #929292;
    --border: #DFDFDF;
    --success: #0A8A00;
    --sidebar-w: 360px;
    --header-h: 52px;
    --bottom-h: 48px;
    
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    display: flex;
    flex-direction: column;
    height: 100vh; /* JS will override */
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--surface);
    line-height: 1.4;
}

/* ── HEADER ────────────────────────────────────── */
.gtech-header {
    height: var(--header-h);
    min-height: var(--header-h);
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    flex-shrink: 0;
}

.gtech-header-left { display: flex; align-items: center; }
.gtech-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gtech-logo span {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.gtech-logo em {
    font-style: normal;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    border-left: 1px solid var(--border);
    padding-left: 10px;
    margin-left: 2px;
}

/* Step Indicators */
.gtech-steps-indicator {
    display: flex;
    align-items: center;
    gap: 0;
}

.step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.3s;
    font-family: inherit;
}
.step-dot:hover { background: rgba(0,88,163,0.06); }

.dot-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.step-dot.active .dot-num,
.step-dot.completed .dot-num {
    background: var(--primary);
    color: #fff;
}
.step-dot.completed .dot-num {
    background: var(--success);
}

.dot-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}
.step-dot.active .dot-label { color: var(--primary); font-weight: 600; }
.step-dot.completed .dot-label { color: var(--success); }

.step-line {
    width: 32px;
    height: 2px;
    background: var(--border);
    transition: background 0.3s;
}
.step-line.completed { background: var(--success); }


/* ── MAIN CONTENT ────────────────────────────────────── */
.gtech-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0; /* critical for flex children to shrink */
}

/* ── SIDEBAR ────────────────────────────────────── */
.gtech-sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    background: var(--surface-alt);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    flex-shrink: 0;
}
.gtech-sidebar::-webkit-scrollbar { width: 4px; }
.gtech-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* Step Panels */
.gtech-step-panel {
    display: none;
    flex-direction: column;
    min-height: 100%;
    animation: stepFadeIn 0.35s ease;
}
.gtech-step-panel.active { display: flex; }

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-panel-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.step-panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.step-panel-header p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.step-panel-body {
    flex: 1;
    padding: 20px 24px;
}

.step-panel-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: var(--surface);
}

/* ── DIMENSION CONTROLS ────────────────────────────────────── */
.dim-control { margin-bottom: 20px; }
.dim-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.dim-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.dim-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gtech-range {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #E0E0E0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background 0.2s;
}
.gtech-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,88,163,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.gtech-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(0,88,163,0.4);
}
.gtech-range::-webkit-slider-thumb:active {
    transform: scale(1.25);
}
.gtech-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.dim-value {
    min-width: 75px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.dim-value small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #EBF5FB, #E8F8F5);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
    border: 1px solid #D4E6F1;
}
.info-card-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}
.info-card-row:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.06); }
.info-card-row span { color: var(--text-secondary); }
.info-card-row strong { color: var(--primary); }

/* ── MATERIAL CARDS ────────────────────────────────────── */
.material-cards { display: flex; flex-direction: column; gap: 12px; }

.material-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--surface-alt);
    position: relative;
}
.material-card:hover { border-color: var(--primary); background: #F8FBFF; }
.material-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #F0F7FF, #EBF5FB);
    box-shadow: 0 0 0 3px rgba(0,88,163,0.12);
}

.mat-card-visual {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.glass-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #E8F4F8 50%, #fff 100%);
    border: 1px solid #B3D7E8;
}
.poly-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
    border: 1px solid #D4A015;
}

.mat-card-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.mat-card-info p { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.mat-card-info ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.mat-card-info li {
    font-size: 11px;
    background: var(--surface);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.mat-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s;
}
.material-card.active .mat-card-check {
    background: var(--primary);
    color: #fff;
}

/* Subsection */
.subsection { margin-top: 24px; }
.subsection-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

/* Color Chips */
.color-chips { display: flex; gap: 10px; }
.color-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface-alt);
    font-family: inherit;
    flex: 1;
}
.color-chip:hover { border-color: var(--primary); }
.color-chip.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,88,163,0.12); }
.chip-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}
.chip-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

/* ── PROFILE COLOR CARDS ────────────────────────────────────── */
.profile-color-cards { display: flex; flex-direction: column; gap: 10px; }

.profile-color-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--surface-alt);
    position: relative;
}
.profile-color-card:hover { border-color: var(--primary); }
.profile-color-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #F0F7FF, #EBF5FB);
    box-shadow: 0 0 0 3px rgba(0,88,163,0.12);
}

.pcc-swatch {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
}
.pcc-info strong { display: block; font-size: 13px; }
.pcc-info span { font-size: 12px; color: var(--text-muted); }
.pcc-check {
    position: absolute;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s;
}
.profile-color-card.active .pcc-check {
    background: var(--primary);
    color: #fff;
}

.color-preview-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.cpb-swatch {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.3s;
}
.cpb-text strong { display: block; font-size: 14px; transition: all 0.3s; }
.cpb-text span { font-size: 12px; color: var(--text-muted); }

/* ── SUMMARY ────────────────────────────────────── */
.summary-section { display: flex; flex-direction: column; gap: 10px; }
.sum-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.sum-card-icon { font-size: 24px; }
.sum-card-body { flex: 1; }
.sum-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.sum-card-body strong { display: block; font-size: 14px; margin-top: 2px; }
.sum-card-body small { font-size: 12px; color: var(--text-muted); }

.toggle-details {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-top: 16px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
}
.toggle-details:hover { background: var(--surface); border-color: var(--primary); }
.toggle-details.open svg { transform: rotate(180deg); }

.details-panel { margin-top: 12px; }
.detail-section { margin-bottom: 16px; }
.detail-section h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text-secondary); }
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--surface);
    border-radius: 8px;
    font-size: 11px;
}
.detail-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}
.detail-item-info { flex: 1; min-width: 0; }
.detail-item-code { font-weight: 700; display: block; font-size: 10px; color: var(--primary); }
.detail-item-val { color: var(--text-muted); font-size: 10px; }

/* ── BUTTONS ────────────────────────────────────── */
.btn-next {
    flex: 1;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-next:hover { background: var(--primary-dark); }
.btn-next:active { transform: scale(0.97); }

.btn-back {
    padding: 12px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-back:hover { border-color: var(--text-secondary); }

.btn-quote {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-quote:hover { background: var(--accent-hover); }

/* ── VIEWPORT ────────────────────────────────────── */
.gtech-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #E8EAED;
    position: relative;
    overflow: hidden;
    min-width: 0; /* prevent flex overflow */
}

.viewport-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1A1D2E 0%, #22263A 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vp-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 8px;
    border: 1.5px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    font-family: inherit;
    color: rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}
.vp-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(135deg, rgba(232,71,94,0.12) 0%, rgba(232,71,94,0.04) 100%);
}
.vp-tab:hover { 
    background: rgba(255,255,255,0.06); 
    border-color: rgba(255,255,255,0.12); 
    color: rgba(255,255,255,0.85);
    transform: translateY(-1px);
}
.vp-tab:hover::before { opacity: 1; }
.vp-tab.active {
    background: linear-gradient(135deg, #E8475E 0%, #C93A4E 100%);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: 0 6px 20px rgba(232,71,94,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.vp-tab.active::before { opacity: 0; }
.vp-tab-icon { display: flex; align-items: center; justify-content: center; height: 26px; }
.vp-tab-icon svg { stroke: currentColor; transition: all 0.3s; }
.vp-tab.active .vp-tab-icon svg { stroke: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.vp-tab[data-view="drawing"] .vp-tab-icon svg { stroke: none; }
.vp-tab.active[data-view="drawing"] .vp-tab-icon svg { stroke: none; }
.vp-tab-title { font-size: 12px; font-weight: 700; letter-spacing: 0.2px; text-transform: uppercase; }
.vp-tab-sub { font-size: 9.5px; font-weight: 400; opacity: 0.65; letter-spacing: 0.1px; }

.viewport-content {
    display: none;
    flex: 1;
    position: relative;
    min-height: 0; /* critical for flex overflow */
    overflow: hidden;
}
.viewport-content.active { display: flex; flex-direction: column; }

/* 3D Frame */
#view-3d { background: linear-gradient(180deg, #DDE1E4 0%, #C8CDD0 100%); }
.webgl-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.gtech-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 5;
    background: rgba(232,234,237,0.9);
    backdrop-filter: blur(6px);
}
.loading-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gtech-loading p { font-size: 13px; color: var(--text-muted); }

/* Specs Overlay */
.specs-overlay {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 8px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.5);
}
.specs-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 4px;
}
.specs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.specs-item b { font-weight: 700; color: var(--text); }
.specs-divider { color: var(--border); }

/* Reference Photos */
.ref-strip {
    position: absolute;
    bottom: 12px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.ref-thumb {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.7);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ref-thumb:hover { transform: scale(1.1); border-color: var(--primary); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Drawing View */
.drawing-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #FAFAFA;
    min-height: 0;
    overflow: hidden;
}
.tech-drawing { width: 100%; height: 100%; max-width: 100%; max-height: 100%; }

/* Materials View */
.materials-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: linear-gradient(180deg, #F6F8FA 0%, #EEF1F4 100%);
    min-height: 0;
}
.materials-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #E8E8E8;
}
.materials-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.materials-model { font-size: 12px; color: var(--text-secondary); }
.materials-model strong { color: var(--primary); font-weight: 700; }
.materials-section { margin-bottom: 20px; }
.section-heading {
    font-size: 13px; font-weight: 700; color: var(--text);
    margin-bottom: 10px; padding: 8px 12px;
    background: #fff;
    border-left: 3px solid #E8475E;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 6px;
}
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.mat-card {
    background: #fff; 
    border-radius: 10px; 
    padding: 10px;
    border: 1px solid #EAEAEA; 
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}
.mat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #E8475E, #F59E0B);
    opacity: 0;
    transition: opacity 0.25s;
}
.mat-card:hover { 
    border-color: #E8475E; 
    box-shadow: 0 6px 16px rgba(0,0,0,0.08); 
    transform: translateY(-3px); 
}
.mat-card:hover::after { opacity: 1; }
.mat-card-img {
    width: 100%; height: 80px; 
    background: linear-gradient(135deg, #F4F6F8 0%, #E8ECF0 100%); 
    border-radius: 8px;
    margin-bottom: 8px; 
    display: flex; align-items: center; justify-content: center; 
    overflow: hidden;
    border: 1px solid #F0F0F0;
}
.mat-card-img img { max-width: 88%; max-height: 70px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.mat-card-img svg { width: 40px; height: 40px; opacity: 0.2; }
.mat-code { font-size: 11px; font-weight: 800; color: #E8475E; margin-bottom: 1px; letter-spacing: 0.3px; }
.mat-name { font-size: 11px; font-weight: 600; color: var(--text); margin-bottom: 5px; line-height: 1.3; }
.mat-info { font-size: 9.5px; color: var(--text-muted); display: flex; flex-direction: column; gap: 1px; }
.mat-info span { display: flex; align-items: center; gap: 3px; }
.mat-weight { 
    font-size: 12px; font-weight: 700; color: #D4880F; margin-top: 5px; 
    padding-top: 5px; border-top: 1px solid #F0F0F0;
}
.materials-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px; padding: 12px 16px; 
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #E8E8E8;
}
.mat-total { font-size: 14px; color: var(--text); }
.mat-total strong { font-size: 17px; color: var(--primary); margin-left: 8px; }

.montaj-pdf-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; background: var(--primary); color: #fff; border: none;
    border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
    box-shadow: 0 2px 8px rgba(232,71,94,0.3);
}
.montaj-pdf-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,71,94,0.4); }

/* ── MONTAJ VIEW ───────────────────────────────────── */
.montaj-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: linear-gradient(180deg, #F6F8FA 0%, #EEF1F4 100%);
    min-height: 0;
}
.montaj-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #E8E8E8;
}
.montaj-main-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.montaj-subtitle { font-size: 12px; color: var(--text-secondary); margin: 0; }

.montaj-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.montaj-step {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #EAEAEA;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    overflow: hidden;
}
.montaj-step:hover {
    border-color: #E8475E;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.montaj-step-num {
    position: absolute;
    top: 6px; left: 6px;
    width: 22px; height: 22px;
    background: linear-gradient(135deg, #E8475E, #C93A4E);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(232,71,94,0.3);
    z-index: 2;
}
.montaj-step img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 6px;
    opacity: 0.85;
}
.montaj-step img[src=""], .montaj-step img:not([src]) {
    display: none;
}
.montaj-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.montaj-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    margin-bottom: 4px;
}
.montaj-step-desc {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

.montaj-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}
.montaj-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #E8E8E8;
}
.montaj-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #E8475E;
}

/* ── BOTTOM BAR ────────────────────────────────────── */
.gtech-bottombar {
    height: var(--bottom-h);
    min-height: var(--bottom-h);
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    flex-shrink: 0;
}

.bb-specs { display: flex; align-items: center; gap: 6px; }
.bb-item { text-align: center; padding: 0 12px; }
.bb-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.bb-val { font-size: 14px; font-weight: 700; color: var(--text); }
.bb-divider { width: 1px; height: 28px; background: var(--border); }

.bb-quote-btn {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.bb-quote-btn:hover { background: var(--accent-hover); transform: scale(1.02); }

/* ── MODAL ────────────────────────────────────── */
.gtech-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.gtech-modal {
    background: var(--surface-alt);
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.2s;
}
.modal-close:hover { background: #E0E0E0; }

.modal-header { margin-bottom: 24px; }
.modal-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.modal-header p { font-size: 13px; color: var(--text-muted); }

.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-group { flex: 1; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,88,163,0.1); }

.form-summary {
    background: var(--surface);
    border-radius: 10px;
    padding: 14px;
    margin: 16px 0;
    font-size: 12px;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.form-submit:hover { background: var(--accent-hover); }

/* ── LIGHTBOX ────────────────────────────────────── */
.gtech-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.gtech-lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; }
.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
    .gtech-planner { --sidebar-w: 100%; }
    .gtech-main { flex-direction: column; }
    .gtech-sidebar {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .gtech-viewport { min-height: 250px; }
    .gtech-steps-indicator { display: none; }
    .gtech-logo em { display: none; }
    .specs-overlay { bottom: 50px; padding: 6px 12px; }
    .specs-row { font-size: 10px; gap: 4px; }
    .materials-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
    .montaj-steps { grid-template-columns: repeat(2, 1fr); }
    
    .viewport-tabs { gap: 4px; padding: 6px 8px; }
    .vp-tab { padding: 8px 4px; gap: 3px; }
    .vp-tab-title { font-size: 10px; }
    .vp-tab-sub { font-size: 8px; }
    .vp-tab-icon svg { width: 20px; height: 20px; }
    
    .bb-specs { overflow-x: auto; gap: 2px; }
    .bb-item { padding: 0 6px; }
    .bb-val { font-size: 11px; }
    .bb-label { font-size: 8px; }
    
    .form-row { flex-direction: column; }
}

@media (max-width: 600px) {
    .gtech-header { padding: 0 12px; }
    .gtech-logo span { font-size: 15px; }
    .ref-strip { display: none; }
    .bb-specs .bb-item:nth-child(n+8) { display: none; }
    
    .vp-tab-sub { display: none; }
    .vp-tab { padding: 8px 2px; border-radius: 8px; }
    .vp-tab-title { font-size: 9px; }
    .montaj-steps { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .montaj-gallery { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .materials-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ── WORDPRESS UYUMLULUK ────────────────────────────── */
/* WordPress tema padding/margin sıfırla */
.gtech-planner-page .site-content,
.gtech-planner-page .entry-content,
.gtech-planner-page .page-content,
.gtech-planner-page #content,
.gtech-planner-page .ast-container,
.gtech-planner-page main#main,
.gtech-planner-page article,
.gtech-planner-page .e-con,
.gtech-planner-page .elementor-widget-container,
.gtech-planner-page .elementor-shortcode,
.gtech-planner-page .wp-block-shortcode {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
/* Elementor section/column sıfırla */
.gtech-planner-page .elementor-section,
.gtech-planner-page .elementor-column-wrap,
.gtech-planner-page .elementor-widget-wrap {
    padding: 0 !important;
}
