/* ===================================
   ESTILOS PARA VARIANTES EN MODALES
   =================================== */

/* Variantes en item de orden */
.order-item-variants {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    margin-top: 6px;
    color: #666;
}

.order-item-variants i {
    color: #d4af37;
    font-size: 12px;
}

.order-item-variants strong {
    color: #111;
    font-weight: 600;
}

/* Item meta con iconos mejorados */
.order-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.order-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-item-meta i {
    color: #d4af37;
    font-size: 12px;
}

/* Modal de detalles de orden */
.order-details-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Item de orden en modal */
.order-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #f0f1f3;
    border-color: #d1d5db;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
    border: 2px solid #e5e7eb;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.order-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.order-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Sección de orden */
.order-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.order-section:last-child {
    border-bottom: none;
}

.order-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.order-section h4 i {
    color: #d4af37;
    font-size: 18px;
}

/* Resumen de orden */
.order-summary-details {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: #666;
}

.summary-row.total {
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    color: #111;
}

.summary-row.discount {
    color: #10b981;
}

/* Detalles de envío */
.shipping-details {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    line-height: 1.8;
}

.shipping-details p {
    margin: 4px 0;
    color: #666;
}

.shipping-details p:first-child {
    font-size: 16px;
    color: #111;
}

.shipping-details i {
    color: #d4af37;
    margin-right: 8px;
}

/* Notas y tracking */
.order-notes,
.tracking-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
}

.order-notes p,
.tracking-info p {
    margin: 4px 0;
    line-height: 1.6;
    color: #666;
}

/* Fechas */
.order-dates {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
}

.order-dates p {
    margin: 8px 0;
    color: #666;
}

.order-dates strong {
    color: #111;
    font-weight: 600;
}

/* Acciones de orden */
.order-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
}

.btn-cancel-order {
    padding: 12px 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel-order:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Header de detalles */
.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    color: white;
}

.order-number-large {
    font-size: 24px;
    font-weight: 700;
}

/* Estados en detalles */
.order-details-header .order-status {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===================================
   RESPONSIVE PARA VARIANTES
   =================================== */

@media (max-width: 640px) {
    .order-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .order-item img {
        width: 60px;
        height: 60px;
    }

    .order-item-price {
        grid-column: 2;
        text-align: left;
        justify-content: flex-start;
        margin-top: 8px;
        font-size: 16px;
    }

    .order-item-variants {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .order-item-meta {
        flex-direction: column;
        gap: 6px;
    }

    .order-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-number-large {
        font-size: 20px;
    }

    .order-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cancel-order {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   ANIMACIONES
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-item {
    animation: fadeIn 0.3s ease;
}

.order-section {
    animation: fadeIn 0.4s ease;
}