@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* assets/css/style.css — E-Commerce Grade Configurator (DARK THEME RESTORED) */

.asg-plugin-container { width: 100%; display: flex; justify-content: center; padding: 40px 20px; background: transparent; box-sizing: border-box; }
#asg-configuratore-wrapper { width: 100%; max-width: 1700px; font-family: 'Inter', system-ui, sans-serif; color: #e2e8f0; }
#asg-configuratore-wrapper *, #asg-configuratore-wrapper *::before, #asg-configuratore-wrapper *::after { box-sizing: border-box; }

.asg-flow-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

.asg-flow-step {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    color: #9fb2c7;
    background: rgba(255,255,255,.03);
}

.asg-flow-step.is-active {
    color: #eaf6ff;
    border-color: rgba(0,212,170,.5);
    background: linear-gradient(135deg, rgba(0,212,170,.16), rgba(91,154,255,.16));
}

.asg-config-status-note.is-success {
    border-color: rgba(0,212,170,.35);
    color: #d9fff4;
}

.asg-config-status-note.is-warning {
    border-color: rgba(255,180,80,.35);
    color: #ffe7c2;
}

#asg-configuratore-wrapper .asg-modal-content:focus {
    outline: 2px solid rgba(91,154,255,.55);
    outline-offset: 2px;
}

.asg-grid { display: flex; gap: 35px; align-items: stretch; }

.asg-viewer-col {
    flex: 1; position: relative;
    background: radial-gradient(circle at 50% 24%, #0a1730 0%, #07111f 58%, #030811 100%);
    min-height: min(850px, 80vh); border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 30px 80px rgba(0,0,0,.6);
    overflow: hidden;
}
#asg-3d-canvas {
    position: absolute; inset: 0;
    background: #050b14; transition: background 0.6s ease;
}
#asg-3d-canvas.realistic-mode {
    background: radial-gradient(circle at 50% 24%, #0a1730 0%, #07111f 58%, #030811 100%);
}
#asg-3d-canvas canvas { display: block; width: 100%; height: 100%; }

.asg-viewer-overlay {
    position: absolute; top: 20px; left: 20px; right: 20px; bottom: 20px;
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
    pointer-events: none; z-index: 10;
}
.asg-viewer-controls {
    pointer-events: auto; display: flex; gap: 8px; justify-content: center;
    align-self: center;
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 8px 16px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.asg-viewer-controls .btn-sm {
    border-radius: 30px; padding: 7px 14px; font-weight: 600; font-size: 11px;
    border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: #c8d5e3;
    transition: all 0.25s;
}
.asg-viewer-controls .btn-sm:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.asg-btn-active { background: linear-gradient(135deg, #00d4aa, #0099ff); border-color: transparent; color: #fff; box-shadow: 0 0 18px rgba(0,212,170,0.35); }

.asg-watermark {
    position: absolute; bottom: 20px; right: 20px; width: 120px; opacity: .12; pointer-events: none;
    user-select: none; filter: invert(1); mix-blend-mode: screen;
}

.asg-viewer-overlay .badge {
    background: rgba(12,15,26,.85); backdrop-filter: blur(12px);
    border: 1px solid rgba(79,140,255,.18); color: #5b9aff;
    padding: 8px 16px; border-radius: 100px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
}

.asg-controls-col {
    flex: 0 0 580px;
    background: rgba(12, 16, 28, 0.92);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    display: flex; flex-direction: column;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.5);
    overflow: hidden;
}

.asg-step-view { display: none; height: 100%; flex-direction: column; }
.asg-step-view.active-step { display: flex; }

.asg-controls-header {
    padding: 32px 36px 20px; position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04); margin-bottom: 0;
    background: linear-gradient(180deg, rgba(0,212,170,0.03) 0%, transparent 100%);
}
.asg-controls-header h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.3px; line-height: 1.3; }
.asg-controls-header p { margin: 0; color: #7b8ba5; font-size: 13px; font-weight: 400; }
.gradient-text { background: linear-gradient(135deg, #00d4aa, #5b9aff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.asg-controls-body { flex: 1; overflow-y: auto; padding: 0 36px; }
.asg-controls-body::-webkit-scrollbar { width: 3px; }
.asg-controls-body::-webkit-scrollbar-track { background: transparent; }
.asg-controls-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }

.control-group {
    background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.05);
    border-radius: 0; padding: 24px 0; margin-bottom: 0;
    box-shadow: none;
}
.control-group:last-child { border-bottom: none; }
.control-group h3 {
    margin: 0 0 18px; color: #e2e8f0; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1.2px;
}
.control-group h3 i { color: #00d4aa; font-size: 14px; }

.asg-controls-footer {
    padding: 20px 36px; background: rgba(8, 12, 22, 0.95);
    border-top: 1px solid rgba(255,255,255,0.05); flex-shrink: 0;
}

.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-col { flex: 1; }
.form-row-full { width: 100%; margin-bottom: 16px; }
.mt-3 { margin-top: 20px; }
.mt-2 { margin-top: 10px; }

label {
    display: block; font-size: 11px; color: #5e6e82; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: .8px; font-weight: 600;
}

.asg-select, .asg-input {
    width: 100%; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); color: #fff;
    padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 600;
    transition: all .2s; outline: none; -webkit-appearance: none; appearance: none;
}
select.asg-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6e82' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
.asg-select:focus, .asg-input:focus {
    background: rgba(0,0,0,.5); border-color: #00d4aa;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2);
}
.asg-select option { background: #10141f; color: #fff; }

/* STEPPER UI (DARK THEME) */
.asg-stepper-container {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 100px; padding: 6px; box-shadow: inset 0 2px 15px rgba(0,0,0,0.4);
}
.btn-stepper {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.02); color: #c8d5e3;
    font-size: 18px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.btn-stepper:hover {
    background: linear-gradient(135deg, #1e293b, #334155); color: #00d4aa; border-color: rgba(0,212,170,0.4);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.15);
}
.btn-stepper:active { transform: scale(0.9); }
.stepper-value {
    font-size: 18px; font-weight: 700; color: #fff; text-align: center; flex: 1; letter-spacing: 0.5px;
}

.asg-swatch-wrapper { display: flex; flex-direction: column; gap: 10px; }
.asg-swatch-group { display: flex; gap: 10px; flex-wrap: wrap; }
.asg-swatch {
    position: relative; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.asg-swatch input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.asg-swatch .swatch-color {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; border-radius: 50%; border: 3px solid #1a1a1a;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), 0 4px 10px rgba(0,0,0,.4);
    transition: all .2s ease;
}
.asg-swatch:hover .swatch-color { transform: scale(1.05); border-color: #333; }
.asg-swatch input[type="radio"]:checked + .swatch-color {
    border-color: #ffffff; box-shadow: 0 0 0 2px #000, inset 0 2px 4px rgba(255,255,255,0.4), 0 6px 15px rgba(255,255,255,.1);
    transform: scale(1.15);
}

.ral-gradient  { background: conic-gradient(from 0deg,#FF6B6B,#4ECDC4,#FFE66D,#1A535C,#FF6B6B); }
.other-gradient{ background: linear-gradient(135deg,#222,#555); }
.soltis-gradient{ background: repeating-linear-gradient(45deg,#d0d0d0,#d0d0d0 2px,#f5f5f5 2px,#f5f5f5 4px); }
.icon-sm { color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.selected-color-label { font-size: 13px; color: #c8d5e3; font-weight: 500; }

.asg-checkbox-label {
    display: flex; align-items: center; gap: 12px; cursor: pointer; color: #c0cdd8; font-size: 14px; font-weight: 500;
    margin-bottom: 10px; padding: 12px 16px; background: rgba(0,0,0,.12); border-radius: 10px; border: 1px solid rgba(255,255,255,.03); transition: all .2s;
}
.asg-checkbox-label:hover { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); color: #fff; }
.asg-checkbox-label input[type="checkbox"] {
    appearance: none; width: 20px; height: 20px; border: 1.5px solid #4e5d72; border-radius: 5px; background: transparent; display: grid; place-content: center; cursor: pointer; transition: all .15s;
}
.asg-checkbox-label:hover input[type="checkbox"] { border-color: #5b9aff; }
.asg-checkbox-label input[type="checkbox"]::before {
    content: ""; width: 10px; height: 10px; transform: scale(0); transition: .12s transform ease-in-out; background: #00d4aa; clip-path: polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);
}
.asg-checkbox-label input[type="checkbox"]:checked { border-color: #00d4aa; background: rgba(0,212,170,.1); }
.asg-checkbox-label input[type="checkbox"]:checked::before { transform: scale(1); }

.asg-controls-footer {
    background: rgba(0,0,0,0.3); padding: 24px 32px; border-top: 1px solid rgba(255,255,255,.03);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2); z-index: 10;
}
.price-box { margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.price-label { display: block; font-size: 10px; color: #7b8ba5; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 6px; }
.price-value { font-size: 38px; font-weight: 800; color: #ffffff; letter-spacing: -1.5px; line-height: 1; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.price-value .currency { font-size: 24px; font-weight: 600; margin-right: 4px; vertical-align: top; opacity: 0.8; }

.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    padding: 16px 28px; border-radius: 14px; font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.8px; cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1); border: none; font-family: inherit; color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 11px; border-radius: 10px; font-weight: 600; letter-spacing: 0.5px; }
.btn-primary {
    background: linear-gradient(135deg, #00d4aa 0%, #0099ff 100%); border: none;
    box-shadow: 0 6px 18px rgba(0, 212, 170, .25), inset 0 1px 1px rgba(255,255,255,0.2);
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 212, 170, .35); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-outline {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    color: #a4b4c4; backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }
.btn-back-models {
    position: absolute; top: 40px; right: 40px; padding: 8px 16px; font-size: 11px;
    border-radius: 10px; background: rgba(255,255,255,0.05); color: #8ba0b8;
    border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.2s;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.btn-back-models:hover { background: rgba(255,255,255,0.1); color: #fff; }
.w-100 { width: 100%; }
.mb-3 { margin-bottom: 12px; }
.disclaimer { font-size: 11px; color: #4a5568; margin-top: 16px; line-height: 1.5; text-align: center; }

/* FIX FOR FOOTER DISAPPEARING */
.asg-step-view { display: none; animation: fadeInStep 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.asg-step-view.active-step { display: flex; flex-direction: column; flex: 1; height: 100%; overflow: hidden; }

@keyframes fadeInStep { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.asg-models-grid { display: flex; flex-direction: column; gap: 16px; }
.asg-model-card { display: flex; align-items: center; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 22px; cursor: pointer; transition: all 0.3s; }
.asg-model-card:hover { background: rgba(91, 154, 255, 0.08); border-color: #5b9aff; transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(91, 154, 255, 0.2); }
.asg-model-card-clean.is-compare-selected { border-color: rgba(0,212,170,.6); box-shadow: 0 0 0 2px rgba(0,212,170,.2), 0 12px 24px rgba(0,0,0,.4); }
.asg-model-card .mc-icon { font-size: 32px; color: #00d4aa; margin-right: 22px; width: 45px; text-align: center; transition: transform 0.3s; }
.asg-model-card:hover .mc-icon { transform: scale(1.15) rotate(5deg); }
.asg-model-card .mc-info { flex: 1; }
.asg-model-card .mc-info h4 { margin: 0 0 6px 0; font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.asg-model-card .mc-info p { margin: 0; font-size: 13.5px; color: #7b8ba5; font-weight: 500; }
.asg-model-card .mc-arrow { font-size: 18px; color: #5e6e82; transition: color 0.3s, transform 0.3s; }
.asg-model-card:hover .mc-arrow { color: #5b9aff; transform: translateX(6px); }

@media (max-width: 1100px) {
    .asg-plugin-container { padding: 16px 10px; }
    .asg-grid { flex-direction: column; }
    .asg-viewer-col { flex: none; height: 500px; min-height: auto; }
    .asg-controls-col { flex: none; width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.04); }
    .asg-controls-header { padding: 24px 20px 16px; }
    .asg-controls-body { padding: 0 20px 20px; }
    .asg-controls-footer { padding: 20px; }
}
/* MacBook / short viewport fix */
@media (max-height: 900px) and (min-width: 1101px) {
    .asg-viewer-col { min-height: 70vh; }
    .asg-controls-header { padding: 22px 30px 14px; }
    .asg-controls-header h2 { font-size: 21px; }
    .control-group { padding: 18px 0; }
    .asg-controls-footer { padding: 16px 28px; }
    .price-value { font-size: 32px; }
}
@media (max-width: 600px) { .asg-controls-header h2 { font-size: 22px; } .form-row { flex-direction: column; gap: 12px; } .price-value { font-size: 32px; } }

/* --- COLOR PICKER PANEL --- */
.asg-color-picker-panel {
    margin-top: 12px; padding: 14px; border-radius: 14px;
    background: rgba(0,212,170,0.04); border: 1px solid rgba(0,212,170,0.15);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.asg-picker-row { display: flex; align-items: center; gap: 12px; }
.asg-color-wheel {
    width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
    background: none; -webkit-appearance: none; padding: 0;
}
.asg-color-wheel::-webkit-color-swatch-wrapper { padding: 0; }
.asg-color-wheel::-webkit-color-swatch { border: 2px solid rgba(255,255,255,0.15); border-radius: 50%; }
.asg-color-wheel::-moz-color-swatch { border: 2px solid rgba(255,255,255,0.15); border-radius: 50%; }
.asg-hex-input {
    flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08);
    color: #fff; font-size: 14px; font-family: 'Courier New', monospace; font-weight: 700;
    padding: 10px 14px; border-radius: 10px; letter-spacing: 1px; text-transform: uppercase;
}
.asg-hex-input:focus { border-color: #00d4aa; outline: none; box-shadow: 0 0 0 3px rgba(0,212,170,0.12); }
.asg-picker-label { display: block; margin-top: 8px; font-size: 11px; color: #00d4aa; letter-spacing: 0.3px; }

