/* =============================================
   MissMirror Mirror Configurator - Frontend
   ============================================= */

:root {
    --mmmc-gold: #C5A44E;
    --mmmc-dark: #1a1a1a;
    --mmmc-dark-card: #2a2a2a;
    --mmmc-dark-lighter: #333;
    --mmmc-white: #ffffff;
    --mmmc-gray: #888;
    --mmmc-radius: 12px;
}

/* Container */
.mmmc-configurator {
    color: var(--mmmc-white);
    font-family: inherit;
}

/* Header */
.mmmc-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.mmmc-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--mmmc-white);
}

.mmmc-btn-configurador {
    background: transparent;
    color: var(--mmmc-white);
    border: 2px solid var(--mmmc-white);
    border-radius: 30px;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.mmmc-btn-configurador:hover,
.mmmc-btn-configurador.active {
    background: var(--mmmc-white);
    color: var(--mmmc-dark);
}

/* Intro */
.mmmc-intro p {
    font-size: 1.1rem;
    color: var(--mmmc-gray);
    margin: 10px 0 0;
}

/* Progress Dots */
.mmmc-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.mmmc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mmmc-dark-lighter);
    transition: background 0.3s;
    cursor: pointer;
}

.mmmc-dot.active {
    background: var(--mmmc-gold);
}

.mmmc-dot.completed {
    background: var(--mmmc-gold);
}

/* Steps */
.mmmc-step {
    display: none;
}

.mmmc-step.active {
    display: block;
}

.mmmc-step-title {
    color: var(--mmmc-gold);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 15px;
}

.mmmc-step-content {
    background: var(--mmmc-dark-card);
    border-radius: var(--mmmc-radius);
    padding: 25px;
}

/* Section Headers */
.mmmc-section-header {
    background: var(--mmmc-gold);
    color: var(--mmmc-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mmmc-section-label {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mmmc-section-label span {
    font-weight: 400;
}

.mmmc-extras-title {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* =============================================
   STEP 1: Sizes
   ============================================= */
.mmmc-sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.mmmc-size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.mmmc-size-item:hover {
    transform: scale(1.05);
}

.mmmc-size-circle {
    border: 2px solid var(--mmmc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--mmmc-white);
    transition: all 0.3s;
    background: transparent;
}

.mmmc-size-item.selected .mmmc-size-circle {
    border-color: var(--mmmc-gold);
    box-shadow: 0 0 0 3px rgba(197, 164, 78, 0.3);
}

.mmmc-size-label {
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--mmmc-gray);
}

.mmmc-size-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--mmmc-gray);
    margin-top: 8px;
    background: transparent;
    transition: all 0.3s;
}

.mmmc-size-item.selected .mmmc-size-radio {
    background: var(--mmmc-gold);
    border-color: var(--mmmc-gold);
}

/* Rectangular / Oval / Irregular size shapes */
.mmmc-size-rect {
    border: 2px solid var(--mmmc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--mmmc-white);
    transition: all 0.3s;
    background: transparent;
}

.mmmc-size-item.selected .mmmc-size-rect {
    border-color: var(--mmmc-gold);
    box-shadow: 0 0 0 3px rgba(197, 164, 78, 0.3);
}

/* Custom size */
.mmmc-custom-fields {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.mmmc-custom-fields label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.mmmc-custom-fields input {
    width: 100px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: var(--mmmc-dark);
    color: var(--mmmc-white);
    font-size: 0.9rem;
}

/* =============================================
   STEP 2: Colors
   ============================================= */
.mmmc-colors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mmmc-color-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.mmmc-color-item:hover {
    background: var(--mmmc-dark-lighter);
}

.mmmc-color-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--mmmc-gray);
    flex-shrink: 0;
    transition: all 0.3s;
}

.mmmc-color-item.selected .mmmc-color-radio,
.mmmc-touch-item.selected .mmmc-color-radio {
    background: var(--mmmc-gold);
    border-color: var(--mmmc-gold);
}

.mmmc-color-code {
    font-weight: 700;
    min-width: 35px;
}

.mmmc-color-price {
    font-size: 0.8rem;
    color: var(--mmmc-gray);
}

.mmmc-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.mmmc-color-name {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.mmmc-color-link {
    color: var(--mmmc-gold);
    text-decoration: underline;
    font-size: 0.85rem;
    margin-left: auto;
}

/* Chart color input */
.mmmc-chart-input {
    margin-top: 15px;
    padding: 15px;
    background: var(--mmmc-dark);
    border-radius: 8px;
    border: 1px solid var(--mmmc-gold);
}

.mmmc-chart-input label {
    display: block;
    font-size: 0.9rem;
    color: var(--mmmc-gold);
    margin-bottom: 8px;
}

.mmmc-chart-input input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: var(--mmmc-dark-card);
    color: var(--mmmc-white);
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* =============================================
   STEP 3: Touchs
   ============================================= */
.mmmc-touchs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mmmc-touch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.mmmc-touch-item:hover {
    background: var(--mmmc-dark-lighter);
}

.mmmc-touch-item.selected {
    color: var(--mmmc-gold);
}

.mmmc-touch-item.selected .mmmc-touch-code {
    color: var(--mmmc-gold);
}

.mmmc-touch-code {
    font-weight: 700;
    min-width: 70px;
}

.mmmc-touch-price {
    font-size: 0.8rem;
    color: var(--mmmc-gray);
}

.mmmc-touch-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mmmc-touch-icons img {
    width: 28px;
    height: 28px;
    filter: invert(1);
}

.mmmc-touch-desc {
    font-size: 0.85rem;
}

/* =============================================
   STEP 4: Extras Aumento
   ============================================= */
.mmmc-aumento-category {
    margin-bottom: 15px;
}

.mmmc-aumento-category-header {
    background: var(--mmmc-gold);
    color: var(--mmmc-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
}

.mmmc-aumento-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.mmmc-aumento-item:hover {
    background: var(--mmmc-dark-lighter);
}

.mmmc-aumento-item.selected .mmmc-aumento-radio {
    background: var(--mmmc-gold);
    border-color: var(--mmmc-gold);
}

.mmmc-aumento-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--mmmc-gray);
    flex-shrink: 0;
    transition: all 0.3s;
}

.mmmc-aumento-code {
    font-weight: 700;
    min-width: 40px;
}

.mmmc-aumento-price {
    font-weight: 700;
}

.mmmc-aumento-specs {
    font-size: 0.85rem;
    color: var(--mmmc-gray);
}

.mmmc-aumento-luz {
    margin-left: auto;
    font-size: 0.9rem;
}

/* Quantity selector */
.mmmc-qty-wrap {
    margin-top: 15px;
    padding: 15px;
    background: var(--mmmc-dark);
    border-radius: 8px;
    border: 1px solid var(--mmmc-gold);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mmmc-qty-wrap label {
    color: var(--mmmc-gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.mmmc-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.mmmc-qty-btn {
    width: 36px;
    height: 36px;
    background: var(--mmmc-dark-card);
    color: var(--mmmc-white);
    border: 1px solid var(--mmmc-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmmc-qty-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.mmmc-qty-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.mmmc-qty-btn:hover {
    background: var(--mmmc-gold);
    color: var(--mmmc-dark);
    border-color: var(--mmmc-gold);
}

.mmmc-qty-controls input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--mmmc-gray);
    border-left: none;
    border-right: none;
    background: var(--mmmc-dark-card);
    color: var(--mmmc-white);
    font-size: 1rem;
    font-weight: 700;
    -moz-appearance: textfield;
}

.mmmc-qty-controls input::-webkit-outer-spin-button,
.mmmc-qty-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.mmmc-extra-max {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--mmmc-gray);
    font-style: italic;
}

/* =============================================
   STEP 5 & 6: LED & Speakers
   ============================================= */
.mmmc-led-list,
.mmmc-altavoces-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mmmc-extra-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.mmmc-extra-item:hover {
    background: var(--mmmc-dark-lighter);
}

.mmmc-extra-item.selected .mmmc-extra-radio {
    background: var(--mmmc-gold);
    border-color: var(--mmmc-gold);
}

.mmmc-extra-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--mmmc-gray);
    flex-shrink: 0;
    transition: all 0.3s;
}

.mmmc-extra-code {
    font-weight: 700;
    min-width: 35px;
}

.mmmc-extra-price {
    font-weight: 700;
}

.mmmc-extra-specs {
    font-size: 0.85rem;
    color: var(--mmmc-gray);
}

.mmmc-extra-image {
    margin-top: 15px;
    text-align: center;
}

.mmmc-extra-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

/* =============================================
   STEP 7: Verification
   ============================================= */
.mmmc-summary {
    margin-bottom: 20px;
    line-height: 1.7;
}

.mmmc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--mmmc-dark-lighter);
}

.mmmc-summary-row-label {
    color: var(--mmmc-gold);
    font-weight: 600;
}

.mmmc-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
    border-top: 2px solid var(--mmmc-gold);
    margin-top: 10px;
}

.mmmc-summary-total .mmmc-summary-row-label {
    font-size: 1.2rem;
}

.mmmc-summary-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}

.mmmc-summary-customer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmmc-summary-customer input,
.mmmc-summary-customer textarea {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: var(--mmmc-dark);
    color: var(--mmmc-white);
    font-size: 0.9rem;
    box-sizing: border-box;
}

.mmmc-summary-customer textarea {
    resize: vertical;
    min-height: 60px;
}

.mmmc-btn-conforme,
.mmmc-btn-enviar {
    padding: 12px 30px;
    border: 2px solid var(--mmmc-white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: var(--mmmc-white);
}

.mmmc-btn-conforme:hover {
    background: var(--mmmc-white);
    color: var(--mmmc-dark);
}

.mmmc-btn-enviar {
    background: var(--mmmc-gold);
    border-color: var(--mmmc-gold);
    color: var(--mmmc-dark);
}

.mmmc-btn-enviar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mmmc-btn-enviar:not(:disabled):hover {
    background: #d4b45e;
}

/* =============================================
   Navigation
   ============================================= */
.mmmc-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 25px;
}

.mmmc-nav-prev,
.mmmc-nav-next {
    background: transparent;
    border: none;
    color: var(--mmmc-white);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.mmmc-nav-prev:hover,
.mmmc-nav-next:hover {
    color: var(--mmmc-gold);
}

/* =============================================
   Messages
   ============================================= */
.mmmc-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.mmmc-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.mmmc-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid #F44336;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .mmmc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mmmc-title {
        font-size: 1.6rem;
    }

    .mmmc-sizes-grid {
        justify-content: center;
    }

    .mmmc-custom-fields {
        flex-direction: column;
        gap: 10px;
    }

    .mmmc-summary-actions {
        flex-direction: column;
    }

    .mmmc-btn-conforme,
    .mmmc-btn-enviar {
        width: 100%;
        text-align: center;
    }
}
